configure revision 875c6e4f
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for xorg-server 21.1.13. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/xserver/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 186test \$(( 1 + 1 )) = 2 || exit 1 187 188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 192 PATH=/empty FPATH=/empty; export PATH FPATH 193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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/xserver/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 599as_awk_strverscmp=' 600 # Use only awk features that work with 7th edition Unix awk (1978). 601 # My, what an old awk you have, Mr. Solaris! 602 END { 603 while (length(v1) && length(v2)) { 604 # Set d1 to be the next thing to compare from v1, and likewise for d2. 605 # Normally this is a single character, but if v1 and v2 contain digits, 606 # compare them as integers and fractions as strverscmp does. 607 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 608 # Split v1 and v2 into their leading digit string components d1 and d2, 609 # and advance v1 and v2 past the leading digit strings. 610 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 611 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 612 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 613 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 614 if (d1 ~ /^0/) { 615 if (d2 ~ /^0/) { 616 # Compare two fractions. 617 while (d1 ~ /^0/ && d2 ~ /^0/) { 618 d1 = substr(d1, 2); len1-- 619 d2 = substr(d2, 2); len2-- 620 } 621 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 622 # The two components differ in length, and the common prefix 623 # contains only leading zeros. Consider the longer to be less. 624 d1 = -len1 625 d2 = -len2 626 } else { 627 # Otherwise, compare as strings. 628 d1 = "x" d1 629 d2 = "x" d2 630 } 631 } else { 632 # A fraction is less than an integer. 633 exit 1 634 } 635 } else { 636 if (d2 ~ /^0/) { 637 # An integer is greater than a fraction. 638 exit 2 639 } else { 640 # Compare two integers. 641 d1 += 0 642 d2 += 0 643 } 644 } 645 } else { 646 # The normal case, without worrying about digits. 647 d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 648 d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 649 } 650 if (d1 < d2) exit 1 651 if (d1 > d2) exit 2 652 } 653 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 654 # which mishandles some comparisons of empty strings to integers. 655 if (length(v2)) exit 1 656 if (length(v1)) exit 2 657 } 658' 659SHELL=${CONFIG_SHELL-/bin/sh} 660 661 662test -n "$DJDIR" || exec 7<&0 </dev/null 663exec 6>&1 664 665# Name of the host. 666# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 667# so uname gets run too. 668ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 669 670# 671# Initializations. 672# 673ac_default_prefix=/usr/local 674ac_clean_files= 675ac_config_libobj_dir=. 676LIBOBJS= 677cross_compiling=no 678subdirs= 679MFLAGS= 680MAKEFLAGS= 681 682# Identity of this package. 683PACKAGE_NAME='xorg-server' 684PACKAGE_TARNAME='xorg-server' 685PACKAGE_VERSION='21.1.13' 686PACKAGE_STRING='xorg-server 21.1.13' 687PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/xserver/issues' 688PACKAGE_URL='' 689 690ac_unique_file="Makefile.am" 691# Factoring default headers for most tests. 692ac_includes_default="\ 693#include <stddef.h> 694#ifdef HAVE_STDIO_H 695# include <stdio.h> 696#endif 697#ifdef HAVE_STDLIB_H 698# include <stdlib.h> 699#endif 700#ifdef HAVE_STRING_H 701# include <string.h> 702#endif 703#ifdef HAVE_INTTYPES_H 704# include <inttypes.h> 705#endif 706#ifdef HAVE_STDINT_H 707# include <stdint.h> 708#endif 709#ifdef HAVE_STRINGS_H 710# include <strings.h> 711#endif 712#ifdef HAVE_SYS_TYPES_H 713# include <sys/types.h> 714#endif 715#ifdef HAVE_SYS_STAT_H 716# include <sys/stat.h> 717#endif 718#ifdef HAVE_UNISTD_H 719# include <unistd.h> 720#endif" 721 722ac_header_c_list= 723ac_config_libobj_dir=os 724ac_subst_vars='am__EXEEXT_FALSE 725am__EXEEXT_TRUE 726LTLIBOBJS 727DIX_CFLAGS 728RELEASE_DATE 729SYSCONFDIR 730PROJECTROOT 731XEPHYR_FALSE 732XEPHYR_TRUE 733KDRIVE_LIBS 734KDRIVE_LOCAL_LIBS 735KDRIVE_MAIN_LIB 736KDRIVE_PURE_LIBS 737KDRIVE_CFLAGS 738KDRIVE_PURE_INCS 739KDRIVE_INCS 740XEPHYR_INCS 741XEPHYR_LIBS 742XEPHYR_CFLAGS 743KDRIVE_FALSE 744KDRIVE_TRUE 745STANDALONE_XPBPROXY_FALSE 746STANDALONE_XPBPROXY_TRUE 747XQUARTZ_SPARKLE_FALSE 748XQUARTZ_SPARKLE_TRUE 749XQUARTZ_FALSE 750XQUARTZ_TRUE 751am__fastdepOBJC_FALSE 752am__fastdepOBJC_TRUE 753OBJCDEPMODE 754OBJCFLAGS 755OBJCLINK 756OBJCCLD 757OBJC 758PSEUDORAMIX_FALSE 759PSEUDORAMIX_TRUE 760XPBPROXY_LIBS 761XPBPROXY_CFLAGS 762XQUARTZ_LIBS 763XWIN_WINDOWS_DRI_FALSE 764XWIN_WINDOWS_DRI_TRUE 765XWIN_GLX_WINDOWS_FALSE 766XWIN_GLX_WINDOWS_TRUE 767XWIN_FALSE 768XWIN_TRUE 769KHRONOS_SPEC_DIR 770KHRONOS_OPENGL_REGISTRY_LIBS 771KHRONOS_OPENGL_REGISTRY_CFLAGS 772PYTHON3 773XWIN_SYS_LIBS 774XWIN_SERVER_NAME 775XWIN_LIBS 776WINDOWSDRI_LIBS 777WINDOWSDRI_CFLAGS 778XWINMODULES_LIBS 779XWINMODULES_CFLAGS 780WINDRES 781GLAMOR_EGL_FALSE 782GLAMOR_EGL_TRUE 783GBM_LIBS 784GBM_CFLAGS 785GLAMOR_LIBS 786GLAMOR_CFLAGS 787GLAMOR_FALSE 788GLAMOR_TRUE 789XORG_DRIVER_INPUT_INPUTTEST_FALSE 790XORG_DRIVER_INPUT_INPUTTEST_TRUE 791XORG_DRIVER_MODESETTING_FALSE 792XORG_DRIVER_MODESETTING_TRUE 793XORG_BUS_PLATFORM_FALSE 794XORG_BUS_PLATFORM_TRUE 795DGA_FALSE 796DGA_TRUE 797SOLARIS_VT_FALSE 798SOLARIS_VT_TRUE 799LNXAPM_FALSE 800LNXAPM_TRUE 801LNXACPI_FALSE 802LNXACPI_TRUE 803XORG_BUS_SPARC_FALSE 804XORG_BUS_SPARC_TRUE 805XORG_BUS_BSDPCI_FALSE 806XORG_BUS_BSDPCI_TRUE 807XORG_BUS_PCI_FALSE 808XORG_BUS_PCI_TRUE 809XORG_FALSE 810XORG_TRUE 811abi_extension 812abi_xinput 813abi_videodrv 814abi_ansic 815logdir 816sysconfigdir 817extdir 818sdkdir 819driverdir 820moduledir 821DEFAULT_XDG_DATA_HOME_LOGDIR 822DEFAULT_XDG_DATA_HOME 823DEFAULT_LOGPREFIX 824DEFAULT_LOGDIR 825DEFAULT_LIBRARY_PATH 826DEFAULT_MODULE_PATH 827XCONFIGDIR 828XF86CONFIGFILE 829XCONFIGFILE 830XF86CONFIGDIR 831XORG_CFLAGS 832XORG_OS_SUBDIR 833XORG_INCS 834XORG_SYS_LIBS 835XORG_LIBS 836XORG_MODULES_LIBS 837XORG_MODULES_CFLAGS 838DGA_LIBS 839DGA_CFLAGS 840SOLARIS_INOUT_ARCH 841PCI_TXT_IDS_PATH 842PCIACCESS_LIBS 843PCIACCESS_CFLAGS 844symbol_visibility 845LIBXCVT_LIBS 846LIBXCVT_CFLAGS 847XNEST_SYS_LIBS 848XNEST_LIBS 849XNEST_FALSE 850XNEST_TRUE 851XNESTMODULES_LIBS 852XNESTMODULES_CFLAGS 853XVFB_SYS_LIBS 854XVFB_LIBS 855XVFB_FALSE 856XVFB_TRUE 857NO_UNDEFINED_FALSE 858NO_UNDEFINED_TRUE 859CYGWIN_FALSE 860CYGWIN_TRUE 861XORG_DRIVER_LIBS 862LD_NO_UNDEFINED_FLAG 863LD_EXPORT_SYMBOLS_FLAG 864UTILS_SYS_LIBS 865XSERVER_SYS_LIBS 866XSERVER_LIBS 867HAVE_LIBUNWIND_FALSE 868HAVE_LIBUNWIND_TRUE 869LIBUNWIND_LIBS 870LIBUNWIND_CFLAGS 871XSERVERLIBS_LIBS 872XSERVERLIBS_CFLAGS 873XSERVERCFLAGS_LIBS 874XSERVERCFLAGS_CFLAGS 875SHA1_CFLAGS 876SHA1_LIBS 877OPENSSL_LIBS 878OPENSSL_CFLAGS 879LIBSHA1_LIBS 880LIBSHA1_CFLAGS 881MAIN_LIB 882OS_LIB 883DIX_LIB 884DEBUG_FALSE 885DEBUG_TRUE 886VENDOR_NAME_SHORT 887DRI_DRIVER_PATH 888BASE_FONT_PATH 889SERVER_MISC_CONFIG_PATH 890COMPILEDDEFAULTFONTPATH 891XF86VIDMODE_FALSE 892XF86VIDMODE_TRUE 893XDMAUTH_FALSE 894XDMAUTH_TRUE 895XDMCP_FALSE 896XDMCP_TRUE 897XDMCP_LIBS 898XDMCP_CFLAGS 899XKB_DFLT_OPTIONS 900XKB_DFLT_VARIANT 901XKB_DFLT_LAYOUT 902XKB_DFLT_MODEL 903XKB_DFLT_RULES 904XKB_COMPILED_DIR 905XKM_OUTPUT_DIR 906XKB_BIN_DIRECTORY 907XKB_BASE_DIRECTORY 908INT10MODULE_FALSE 909INT10MODULE_TRUE 910VGAHW_FALSE 911VGAHW_TRUE 912XF86UTILS_FALSE 913XF86UTILS_TRUE 914DPMSExtension_FALSE 915DPMSExtension_TRUE 916XF86BIGFONT_FALSE 917XF86BIGFONT_TRUE 918DBE_FALSE 919DBE_TRUE 920XCSECURITY_FALSE 921XCSECURITY_TRUE 922SELINUX_LIBS 923SELINUX_CFLAGS 924XSELINUX_FALSE 925XSELINUX_TRUE 926XACE_FALSE 927XACE_TRUE 928XINERAMA_FALSE 929XINERAMA_TRUE 930PRESENT_FALSE 931PRESENT_TRUE 932GLX_SYS_LIBS 933GLX_DEFINES 934HASHTABLE_FALSE 935HASHTABLE_TRUE 936GLX_FALSE 937GLX_TRUE 938GL_LIBS 939GL_CFLAGS 940XLIB_LIBS 941XLIB_CFLAGS 942LIBDRM_LIBS 943LIBDRM_CFLAGS 944DRI3_FALSE 945DRI3_TRUE 946XSHMFENCE_FALSE 947XSHMFENCE_TRUE 948XSHMFENCE_LIBS 949XSHMFENCE_CFLAGS 950BUSFAULT_FALSE 951BUSFAULT_TRUE 952DRI3PROTO_LIBS 953DRI3PROTO_CFLAGS 954DRI2_FALSE 955DRI2_TRUE 956DRI2PROTO_LIBS 957DRI2PROTO_CFLAGS 958DRI_FALSE 959DRI_TRUE 960CLIENTIDS_FALSE 961CLIENTIDS_TRUE 962RES_FALSE 963RES_TRUE 964SCREENSAVER_FALSE 965SCREENSAVER_TRUE 966RECORD_FALSE 967RECORD_TRUE 968MITSHM_FALSE 969MITSHM_TRUE 970COMPOSITE_FALSE 971COMPOSITE_TRUE 972XVMC_FALSE 973XVMC_TRUE 974XV_FALSE 975XV_TRUE 976CONFIG_WSCONS_FALSE 977CONFIG_WSCONS_TRUE 978NEED_DBUS_FALSE 979NEED_DBUS_TRUE 980SUID_WRAPPER_FALSE 981SUID_WRAPPER_TRUE 982SUID_WRAPPER_DIR 983SYSTEMD_LOGIND_FALSE 984SYSTEMD_LOGIND_TRUE 985CONFIG_HAL_FALSE 986CONFIG_HAL_TRUE 987HAL_LIBS 988HAL_CFLAGS 989HAVE_DBUS_FALSE 990HAVE_DBUS_TRUE 991DBUS_LIBS 992DBUS_CFLAGS 993CONFIG_UDEV_KMS_FALSE 994CONFIG_UDEV_KMS_TRUE 995CONFIG_UDEV_FALSE 996CONFIG_UDEV_TRUE 997UDEV_LIBS 998UDEV_CFLAGS 999HAVE_SYSTEMD_DAEMON_FALSE 1000HAVE_SYSTEMD_DAEMON_TRUE 1001SYSTEMD_DAEMON_LIBS 1002SYSTEMD_DAEMON_CFLAGS 1003PTHREAD_CFLAGS 1004PTHREAD_LIBS 1005PTHREAD_CC 1006ax_pthread_config 1007SDK_REQUIRED_MODULES 1008PIXMAN_LIBS 1009PIXMAN_CFLAGS 1010INT10_STUB_FALSE 1011INT10_STUB_TRUE 1012INT10_X86EMU_FALSE 1013INT10_X86EMU_TRUE 1014INT10_VM86_FALSE 1015INT10_VM86_TRUE 1016SECURE_RPC_FALSE 1017SECURE_RPC_TRUE 1018INSTALL_SETUID_FALSE 1019INSTALL_SETUID_TRUE 1020XQUARTZ_SPARKLE_FEED_URL 1021XQUARTZ_SPARKLE 1022BUNDLE_VERSION_STRING 1023BUNDLE_VERSION 1024BUNDLE_ID_PREFIX 1025APPLE_APPLICATION_NAME 1026APPLE_APPLICATIONS_DIR 1027FONT100DPIDIR 1028FONT75DPIDIR 1029FONTTYPE1DIR 1030FONTTTFDIR 1031FONTOTFDIR 1032FONTMISCDIR 1033FONTROOTDIR 1034SPARC64_VIDEO_FALSE 1035SPARC64_VIDEO_TRUE 1036PPC_VIDEO_FALSE 1037PPC_VIDEO_TRUE 1038I386_VIDEO_FALSE 1039I386_VIDEO_TRUE 1040ARM_VIDEO_FALSE 1041ARM_VIDEO_TRUE 1042ALPHA_VIDEO_FALSE 1043ALPHA_VIDEO_TRUE 1044GLX_ARCH_DEFINES 1045FREEBSD_KLDLOAD_FALSE 1046FREEBSD_KLDLOAD_TRUE 1047FBDEVHW_FALSE 1048FBDEVHW_TRUE 1049AGP_FALSE 1050AGP_TRUE 1051LIBBSD_LIBS 1052LIBBSD_CFLAGS 1053POLL_FALSE 1054POLL_TRUE 1055LIBOBJS 1056DLOPEN_LIBS 1057SPECIAL_DTRACE_OBJECTS_FALSE 1058SPECIAL_DTRACE_OBJECTS_TRUE 1059XSERVER_DTRACE_FALSE 1060XSERVER_DTRACE_TRUE 1061DTRACE 1062TRADITIONALCPPFLAGS 1063RAWCPPFLAGS 1064RAWCPP 1065CPP 1066YFLAGS 1067YACC 1068LEXLIB 1069LEX_OUTPUT_ROOT 1070LEX 1071LT_SYS_LIBRARY_PATH 1072OTOOL64 1073OTOOL 1074LIPO 1075NMEDIT 1076DSYMUTIL 1077MANIFEST_TOOL 1078RANLIB 1079ac_ct_AR 1080AR 1081FILECMD 1082NM 1083ac_ct_DUMPBIN 1084DUMPBIN 1085LD 1086FGREP 1087EGREP 1088GREP 1089LIBTOOL 1090OBJDUMP 1091DLLTOOL 1092AS 1093LN_S 1094am__fastdepCCAS_FALSE 1095am__fastdepCCAS_TRUE 1096CCASDEPMODE 1097CCASFLAGS 1098CCAS 1099HAVE_LD_WRAP_FALSE 1100HAVE_LD_WRAP_TRUE 1101ENABLE_UNIT_TESTS_FALSE 1102ENABLE_UNIT_TESTS_TRUE 1103XORG_MALLOC_DEBUG_ENV 1104HAVE_XSLTPROC_FALSE 1105HAVE_XSLTPROC_TRUE 1106XSLTPROC 1107HAVE_FOP_FALSE 1108HAVE_FOP_TRUE 1109FOP 1110HAVE_XMLTO_FALSE 1111HAVE_XMLTO_TRUE 1112HAVE_XMLTO_TEXT_FALSE 1113HAVE_XMLTO_TEXT_TRUE 1114XMLTO 1115ENABLE_DEVEL_DOCS_FALSE 1116ENABLE_DEVEL_DOCS_TRUE 1117ENABLE_DOCS_FALSE 1118ENABLE_DOCS_TRUE 1119HAVE_STYLESHEETS_FALSE 1120HAVE_STYLESHEETS_TRUE 1121XSL_STYLESHEET 1122STYLESHEET_SRCDIR 1123XORG_SGML_PATH 1124HAVE_DOXYGEN_FALSE 1125HAVE_DOXYGEN_TRUE 1126HAVE_DOT_FALSE 1127HAVE_DOT_TRUE 1128HAVE_DOT 1129DOT 1130DOXYGEN 1131MAN_SUBSTS 1132XORG_MAN_PAGE 1133ADMIN_MAN_DIR 1134DRIVER_MAN_DIR 1135MISC_MAN_DIR 1136FILE_MAN_DIR 1137LIB_MAN_DIR 1138APP_MAN_DIR 1139ADMIN_MAN_SUFFIX 1140DRIVER_MAN_SUFFIX 1141MISC_MAN_SUFFIX 1142FILE_MAN_SUFFIX 1143LIB_MAN_SUFFIX 1144APP_MAN_SUFFIX 1145SED 1146host_os 1147host_vendor 1148host_cpu 1149host 1150build_os 1151build_vendor 1152build_cpu 1153build 1154INSTALL_CMD 1155PKG_CONFIG_LIBDIR 1156PKG_CONFIG_PATH 1157PKG_CONFIG 1158CHANGELOG_CMD 1159STRICT_CFLAGS 1160CWARNFLAGS 1161BASE_CFLAGS 1162am__fastdepCC_FALSE 1163am__fastdepCC_TRUE 1164CCDEPMODE 1165am__nodep 1166AMDEPBACKSLASH 1167AMDEP_FALSE 1168AMDEP_TRUE 1169am__include 1170DEPDIR 1171OBJEXT 1172EXEEXT 1173ac_ct_CC 1174CPPFLAGS 1175LDFLAGS 1176CFLAGS 1177CC 1178AM_BACKSLASH 1179AM_DEFAULT_VERBOSITY 1180AM_DEFAULT_V 1181AM_V 1182CSCOPE 1183ETAGS 1184CTAGS 1185am__untar 1186am__tar 1187AMTAR 1188am__leading_dot 1189SET_MAKE 1190AWK 1191mkdir_p 1192MKDIR_P 1193INSTALL_STRIP_PROGRAM 1194STRIP 1195install_sh 1196MAKEINFO 1197AUTOHEADER 1198AUTOMAKE 1199AUTOCONF 1200ACLOCAL 1201VERSION 1202PACKAGE 1203CYGPATH_W 1204am__isrc 1205INSTALL_DATA 1206INSTALL_SCRIPT 1207INSTALL_PROGRAM 1208target_alias 1209host_alias 1210build_alias 1211LIBS 1212ECHO_T 1213ECHO_N 1214ECHO_C 1215DEFS 1216mandir 1217localedir 1218libdir 1219psdir 1220pdfdir 1221dvidir 1222htmldir 1223infodir 1224docdir 1225oldincludedir 1226includedir 1227runstatedir 1228localstatedir 1229sharedstatedir 1230sysconfdir 1231datadir 1232datarootdir 1233libexecdir 1234sbindir 1235bindir 1236program_transform_name 1237prefix 1238exec_prefix 1239PACKAGE_URL 1240PACKAGE_BUGREPORT 1241PACKAGE_STRING 1242PACKAGE_VERSION 1243PACKAGE_TARNAME 1244PACKAGE_NAME 1245PATH_SEPARATOR 1246SHELL 1247am__quote' 1248ac_subst_files='' 1249ac_user_opts=' 1250enable_option_checking 1251enable_silent_rules 1252enable_dependency_tracking 1253enable_selective_werror 1254enable_strict_compilation 1255with_doxygen 1256enable_docs 1257enable_devel_docs 1258with_xmlto 1259with_fop 1260with_xsltproc 1261enable_unit_tests 1262enable_static 1263enable_shared 1264with_pic 1265enable_fast_install 1266with_aix_soname 1267with_gnu_ld 1268with_sysroot 1269enable_libtool_lock 1270enable_largefile 1271with_dtrace 1272enable_agp 1273enable_werror 1274enable_debug 1275with_int10 1276with_vendor_name 1277with_vendor_name_short 1278with_vendor_web 1279with_module_dir 1280with_log_dir 1281with_builder_addr 1282with_builderstring 1283enable_listen_tcp 1284enable_listen_unix 1285enable_listen_local 1286with_fallback_input_driver 1287with_fontrootdir 1288with_fontmiscdir 1289with_fontotfdir 1290with_fontttfdir 1291with_fonttype1dir 1292with_font75dpidir 1293with_font100dpidir 1294with_default_font_path 1295with_xkb_path 1296with_xkb_output 1297with_default_xkb_rules 1298with_default_xkb_model 1299with_default_xkb_layout 1300with_default_xkb_variant 1301with_default_xkb_options 1302with_serverconfig_path 1303with_apple_applications_dir 1304with_apple_application_name 1305with_bundle_id_prefix 1306with_bundle_version 1307with_bundle_version_string 1308enable_sparkle 1309with_sparkle_feed_url 1310enable_visibility 1311with_khronos_spec_dir 1312enable_composite 1313enable_mitshm 1314enable_xres 1315enable_record 1316enable_xv 1317enable_xvmc 1318enable_dga 1319enable_screensaver 1320enable_xdmcp 1321enable_xdm_auth_1 1322enable_glx 1323enable_dri 1324enable_dri2 1325enable_dri3 1326enable_present 1327enable_xinerama 1328enable_xf86vidmode 1329enable_xace 1330enable_xselinux 1331enable_xcsecurity 1332enable_dbe 1333enable_xf86bigfont 1334enable_dpms 1335enable_config_udev 1336enable_config_udev_kms 1337enable_config_hal 1338enable_config_wscons 1339enable_xfree86_utils 1340enable_vgahw 1341enable_int10_module 1342enable_windowsdri 1343enable_libdrm 1344enable_clientids 1345enable_pciaccess 1346enable_linux_acpi 1347enable_linux_apm 1348enable_systemd_logind 1349enable_suid_wrapper 1350enable_xorg 1351enable_xvfb 1352enable_xnest 1353enable_xquartz 1354enable_standalone_xpbproxy 1355enable_xwin 1356enable_glamor 1357enable_xf86_input_inputtest 1358enable_kdrive 1359enable_xephyr 1360enable_libunwind 1361enable_xshmfence 1362enable_install_setuid 1363enable_unix_transport 1364enable_tcp_transport 1365enable_ipv6 1366enable_local_transport 1367enable_secure_rpc 1368enable_input_thread 1369with_systemd_daemon 1370enable_xtrans_send_fds 1371with_xkb_bin_directory 1372with_sha1 1373' 1374 ac_precious_vars='build_alias 1375host_alias 1376target_alias 1377CC 1378CFLAGS 1379LDFLAGS 1380LIBS 1381CPPFLAGS 1382PKG_CONFIG 1383PKG_CONFIG_PATH 1384PKG_CONFIG_LIBDIR 1385DOXYGEN 1386DOT 1387XMLTO 1388FOP 1389XSLTPROC 1390XORG_MALLOC_DEBUG_ENV 1391CCAS 1392CCASFLAGS 1393LT_SYS_LIBRARY_PATH 1394YACC 1395YFLAGS 1396CPP 1397LIBBSD_CFLAGS 1398LIBBSD_LIBS 1399PIXMAN_CFLAGS 1400PIXMAN_LIBS 1401SYSTEMD_DAEMON_CFLAGS 1402SYSTEMD_DAEMON_LIBS 1403UDEV_CFLAGS 1404UDEV_LIBS 1405DBUS_CFLAGS 1406DBUS_LIBS 1407HAL_CFLAGS 1408HAL_LIBS 1409DRI2PROTO_CFLAGS 1410DRI2PROTO_LIBS 1411DRI3PROTO_CFLAGS 1412DRI3PROTO_LIBS 1413XSHMFENCE_CFLAGS 1414XSHMFENCE_LIBS 1415LIBDRM_CFLAGS 1416LIBDRM_LIBS 1417XLIB_CFLAGS 1418XLIB_LIBS 1419GL_CFLAGS 1420GL_LIBS 1421SELINUX_CFLAGS 1422SELINUX_LIBS 1423XDMCP_CFLAGS 1424XDMCP_LIBS 1425LIBSHA1_CFLAGS 1426LIBSHA1_LIBS 1427OPENSSL_CFLAGS 1428OPENSSL_LIBS 1429XSERVERCFLAGS_CFLAGS 1430XSERVERCFLAGS_LIBS 1431XSERVERLIBS_CFLAGS 1432XSERVERLIBS_LIBS 1433LIBUNWIND_CFLAGS 1434LIBUNWIND_LIBS 1435XNESTMODULES_CFLAGS 1436XNESTMODULES_LIBS 1437LIBXCVT_CFLAGS 1438LIBXCVT_LIBS 1439PCIACCESS_CFLAGS 1440PCIACCESS_LIBS 1441DGA_CFLAGS 1442DGA_LIBS 1443XORG_MODULES_CFLAGS 1444XORG_MODULES_LIBS 1445GLAMOR_CFLAGS 1446GLAMOR_LIBS 1447GBM_CFLAGS 1448GBM_LIBS 1449XWINMODULES_CFLAGS 1450XWINMODULES_LIBS 1451WINDOWSDRI_CFLAGS 1452WINDOWSDRI_LIBS 1453KHRONOS_OPENGL_REGISTRY_CFLAGS 1454KHRONOS_OPENGL_REGISTRY_LIBS 1455XPBPROXY_CFLAGS 1456XPBPROXY_LIBS 1457XEPHYR_CFLAGS 1458XEPHYR_LIBS' 1459 1460 1461# Initialize some variables set by options. 1462ac_init_help= 1463ac_init_version=false 1464ac_unrecognized_opts= 1465ac_unrecognized_sep= 1466# The variables have the same names as the options, with 1467# dashes changed to underlines. 1468cache_file=/dev/null 1469exec_prefix=NONE 1470no_create= 1471no_recursion= 1472prefix=NONE 1473program_prefix=NONE 1474program_suffix=NONE 1475program_transform_name=s,x,x, 1476silent= 1477site= 1478srcdir= 1479verbose= 1480x_includes=NONE 1481x_libraries=NONE 1482 1483# Installation directory options. 1484# These are left unexpanded so users can "make install exec_prefix=/foo" 1485# and all the variables that are supposed to be based on exec_prefix 1486# by default will actually change. 1487# Use braces instead of parens because sh, perl, etc. also accept them. 1488# (The list follows the same order as the GNU Coding Standards.) 1489bindir='${exec_prefix}/bin' 1490sbindir='${exec_prefix}/sbin' 1491libexecdir='${exec_prefix}/libexec' 1492datarootdir='${prefix}/share' 1493datadir='${datarootdir}' 1494sysconfdir='${prefix}/etc' 1495sharedstatedir='${prefix}/com' 1496localstatedir='${prefix}/var' 1497runstatedir='${localstatedir}/run' 1498includedir='${prefix}/include' 1499oldincludedir='/usr/include' 1500docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1501infodir='${datarootdir}/info' 1502htmldir='${docdir}' 1503dvidir='${docdir}' 1504pdfdir='${docdir}' 1505psdir='${docdir}' 1506libdir='${exec_prefix}/lib' 1507localedir='${datarootdir}/locale' 1508mandir='${datarootdir}/man' 1509 1510ac_prev= 1511ac_dashdash= 1512for ac_option 1513do 1514 # If the previous option needs an argument, assign it. 1515 if test -n "$ac_prev"; then 1516 eval $ac_prev=\$ac_option 1517 ac_prev= 1518 continue 1519 fi 1520 1521 case $ac_option in 1522 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1523 *=) ac_optarg= ;; 1524 *) ac_optarg=yes ;; 1525 esac 1526 1527 case $ac_dashdash$ac_option in 1528 --) 1529 ac_dashdash=yes ;; 1530 1531 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1532 ac_prev=bindir ;; 1533 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1534 bindir=$ac_optarg ;; 1535 1536 -build | --build | --buil | --bui | --bu) 1537 ac_prev=build_alias ;; 1538 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1539 build_alias=$ac_optarg ;; 1540 1541 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1542 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1543 ac_prev=cache_file ;; 1544 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1545 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1546 cache_file=$ac_optarg ;; 1547 1548 --config-cache | -C) 1549 cache_file=config.cache ;; 1550 1551 -datadir | --datadir | --datadi | --datad) 1552 ac_prev=datadir ;; 1553 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1554 datadir=$ac_optarg ;; 1555 1556 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1557 | --dataroo | --dataro | --datar) 1558 ac_prev=datarootdir ;; 1559 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1560 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1561 datarootdir=$ac_optarg ;; 1562 1563 -disable-* | --disable-*) 1564 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1565 # Reject names that are not valid shell variable names. 1566 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1567 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1568 ac_useropt_orig=$ac_useropt 1569 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1570 case $ac_user_opts in 1571 *" 1572"enable_$ac_useropt" 1573"*) ;; 1574 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1575 ac_unrecognized_sep=', ';; 1576 esac 1577 eval enable_$ac_useropt=no ;; 1578 1579 -docdir | --docdir | --docdi | --doc | --do) 1580 ac_prev=docdir ;; 1581 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1582 docdir=$ac_optarg ;; 1583 1584 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1585 ac_prev=dvidir ;; 1586 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1587 dvidir=$ac_optarg ;; 1588 1589 -enable-* | --enable-*) 1590 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1591 # Reject names that are not valid shell variable names. 1592 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1593 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1594 ac_useropt_orig=$ac_useropt 1595 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1596 case $ac_user_opts in 1597 *" 1598"enable_$ac_useropt" 1599"*) ;; 1600 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1601 ac_unrecognized_sep=', ';; 1602 esac 1603 eval enable_$ac_useropt=\$ac_optarg ;; 1604 1605 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1606 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1607 | --exec | --exe | --ex) 1608 ac_prev=exec_prefix ;; 1609 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1610 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1611 | --exec=* | --exe=* | --ex=*) 1612 exec_prefix=$ac_optarg ;; 1613 1614 -gas | --gas | --ga | --g) 1615 # Obsolete; use --with-gas. 1616 with_gas=yes ;; 1617 1618 -help | --help | --hel | --he | -h) 1619 ac_init_help=long ;; 1620 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1621 ac_init_help=recursive ;; 1622 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1623 ac_init_help=short ;; 1624 1625 -host | --host | --hos | --ho) 1626 ac_prev=host_alias ;; 1627 -host=* | --host=* | --hos=* | --ho=*) 1628 host_alias=$ac_optarg ;; 1629 1630 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1631 ac_prev=htmldir ;; 1632 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1633 | --ht=*) 1634 htmldir=$ac_optarg ;; 1635 1636 -includedir | --includedir | --includedi | --included | --include \ 1637 | --includ | --inclu | --incl | --inc) 1638 ac_prev=includedir ;; 1639 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1640 | --includ=* | --inclu=* | --incl=* | --inc=*) 1641 includedir=$ac_optarg ;; 1642 1643 -infodir | --infodir | --infodi | --infod | --info | --inf) 1644 ac_prev=infodir ;; 1645 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1646 infodir=$ac_optarg ;; 1647 1648 -libdir | --libdir | --libdi | --libd) 1649 ac_prev=libdir ;; 1650 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1651 libdir=$ac_optarg ;; 1652 1653 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1654 | --libexe | --libex | --libe) 1655 ac_prev=libexecdir ;; 1656 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1657 | --libexe=* | --libex=* | --libe=*) 1658 libexecdir=$ac_optarg ;; 1659 1660 -localedir | --localedir | --localedi | --localed | --locale) 1661 ac_prev=localedir ;; 1662 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1663 localedir=$ac_optarg ;; 1664 1665 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1666 | --localstate | --localstat | --localsta | --localst | --locals) 1667 ac_prev=localstatedir ;; 1668 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1669 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1670 localstatedir=$ac_optarg ;; 1671 1672 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1673 ac_prev=mandir ;; 1674 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1675 mandir=$ac_optarg ;; 1676 1677 -nfp | --nfp | --nf) 1678 # Obsolete; use --without-fp. 1679 with_fp=no ;; 1680 1681 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1682 | --no-cr | --no-c | -n) 1683 no_create=yes ;; 1684 1685 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1686 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1687 no_recursion=yes ;; 1688 1689 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1690 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1691 | --oldin | --oldi | --old | --ol | --o) 1692 ac_prev=oldincludedir ;; 1693 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1694 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1695 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1696 oldincludedir=$ac_optarg ;; 1697 1698 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1699 ac_prev=prefix ;; 1700 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1701 prefix=$ac_optarg ;; 1702 1703 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1704 | --program-pre | --program-pr | --program-p) 1705 ac_prev=program_prefix ;; 1706 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1707 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1708 program_prefix=$ac_optarg ;; 1709 1710 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1711 | --program-suf | --program-su | --program-s) 1712 ac_prev=program_suffix ;; 1713 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1714 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1715 program_suffix=$ac_optarg ;; 1716 1717 -program-transform-name | --program-transform-name \ 1718 | --program-transform-nam | --program-transform-na \ 1719 | --program-transform-n | --program-transform- \ 1720 | --program-transform | --program-transfor \ 1721 | --program-transfo | --program-transf \ 1722 | --program-trans | --program-tran \ 1723 | --progr-tra | --program-tr | --program-t) 1724 ac_prev=program_transform_name ;; 1725 -program-transform-name=* | --program-transform-name=* \ 1726 | --program-transform-nam=* | --program-transform-na=* \ 1727 | --program-transform-n=* | --program-transform-=* \ 1728 | --program-transform=* | --program-transfor=* \ 1729 | --program-transfo=* | --program-transf=* \ 1730 | --program-trans=* | --program-tran=* \ 1731 | --progr-tra=* | --program-tr=* | --program-t=*) 1732 program_transform_name=$ac_optarg ;; 1733 1734 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1735 ac_prev=pdfdir ;; 1736 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1737 pdfdir=$ac_optarg ;; 1738 1739 -psdir | --psdir | --psdi | --psd | --ps) 1740 ac_prev=psdir ;; 1741 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1742 psdir=$ac_optarg ;; 1743 1744 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1745 | -silent | --silent | --silen | --sile | --sil) 1746 silent=yes ;; 1747 1748 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1749 | --runstate | --runstat | --runsta | --runst | --runs \ 1750 | --run | --ru | --r) 1751 ac_prev=runstatedir ;; 1752 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1753 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1754 | --run=* | --ru=* | --r=*) 1755 runstatedir=$ac_optarg ;; 1756 1757 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1758 ac_prev=sbindir ;; 1759 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1760 | --sbi=* | --sb=*) 1761 sbindir=$ac_optarg ;; 1762 1763 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1764 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1765 | --sharedst | --shareds | --shared | --share | --shar \ 1766 | --sha | --sh) 1767 ac_prev=sharedstatedir ;; 1768 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1769 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1770 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1771 | --sha=* | --sh=*) 1772 sharedstatedir=$ac_optarg ;; 1773 1774 -site | --site | --sit) 1775 ac_prev=site ;; 1776 -site=* | --site=* | --sit=*) 1777 site=$ac_optarg ;; 1778 1779 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1780 ac_prev=srcdir ;; 1781 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1782 srcdir=$ac_optarg ;; 1783 1784 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1785 | --syscon | --sysco | --sysc | --sys | --sy) 1786 ac_prev=sysconfdir ;; 1787 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1788 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1789 sysconfdir=$ac_optarg ;; 1790 1791 -target | --target | --targe | --targ | --tar | --ta | --t) 1792 ac_prev=target_alias ;; 1793 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1794 target_alias=$ac_optarg ;; 1795 1796 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1797 verbose=yes ;; 1798 1799 -version | --version | --versio | --versi | --vers | -V) 1800 ac_init_version=: ;; 1801 1802 -with-* | --with-*) 1803 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1804 # Reject names that are not valid shell variable names. 1805 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1806 as_fn_error $? "invalid package name: \`$ac_useropt'" 1807 ac_useropt_orig=$ac_useropt 1808 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1809 case $ac_user_opts in 1810 *" 1811"with_$ac_useropt" 1812"*) ;; 1813 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1814 ac_unrecognized_sep=', ';; 1815 esac 1816 eval with_$ac_useropt=\$ac_optarg ;; 1817 1818 -without-* | --without-*) 1819 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1820 # Reject names that are not valid shell variable names. 1821 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1822 as_fn_error $? "invalid package name: \`$ac_useropt'" 1823 ac_useropt_orig=$ac_useropt 1824 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1825 case $ac_user_opts in 1826 *" 1827"with_$ac_useropt" 1828"*) ;; 1829 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1830 ac_unrecognized_sep=', ';; 1831 esac 1832 eval with_$ac_useropt=no ;; 1833 1834 --x) 1835 # Obsolete; use --with-x. 1836 with_x=yes ;; 1837 1838 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1839 | --x-incl | --x-inc | --x-in | --x-i) 1840 ac_prev=x_includes ;; 1841 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1842 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1843 x_includes=$ac_optarg ;; 1844 1845 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1846 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1847 ac_prev=x_libraries ;; 1848 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1849 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1850 x_libraries=$ac_optarg ;; 1851 1852 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1853Try \`$0 --help' for more information" 1854 ;; 1855 1856 *=*) 1857 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1858 # Reject names that are not valid shell variable names. 1859 case $ac_envvar in #( 1860 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1861 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1862 esac 1863 eval $ac_envvar=\$ac_optarg 1864 export $ac_envvar ;; 1865 1866 *) 1867 # FIXME: should be removed in autoconf 3.0. 1868 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1869 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1870 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1871 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1872 ;; 1873 1874 esac 1875done 1876 1877if test -n "$ac_prev"; then 1878 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1879 as_fn_error $? "missing argument to $ac_option" 1880fi 1881 1882if test -n "$ac_unrecognized_opts"; then 1883 case $enable_option_checking in 1884 no) ;; 1885 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1886 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1887 esac 1888fi 1889 1890# Check all directory arguments for consistency. 1891for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1892 datadir sysconfdir sharedstatedir localstatedir includedir \ 1893 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1894 libdir localedir mandir runstatedir 1895do 1896 eval ac_val=\$$ac_var 1897 # Remove trailing slashes. 1898 case $ac_val in 1899 */ ) 1900 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1901 eval $ac_var=\$ac_val;; 1902 esac 1903 # Be sure to have absolute directory names. 1904 case $ac_val in 1905 [\\/$]* | ?:[\\/]* ) continue;; 1906 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1907 esac 1908 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1909done 1910 1911# There might be people who depend on the old broken behavior: `$host' 1912# used to hold the argument of --host etc. 1913# FIXME: To remove some day. 1914build=$build_alias 1915host=$host_alias 1916target=$target_alias 1917 1918# FIXME: To remove some day. 1919if test "x$host_alias" != x; then 1920 if test "x$build_alias" = x; then 1921 cross_compiling=maybe 1922 elif test "x$build_alias" != "x$host_alias"; then 1923 cross_compiling=yes 1924 fi 1925fi 1926 1927ac_tool_prefix= 1928test -n "$host_alias" && ac_tool_prefix=$host_alias- 1929 1930test "$silent" = yes && exec 6>/dev/null 1931 1932 1933ac_pwd=`pwd` && test -n "$ac_pwd" && 1934ac_ls_di=`ls -di .` && 1935ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1936 as_fn_error $? "working directory cannot be determined" 1937test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1938 as_fn_error $? "pwd does not report name of working directory" 1939 1940 1941# Find the source files, if location was not specified. 1942if test -z "$srcdir"; then 1943 ac_srcdir_defaulted=yes 1944 # Try the directory containing this script, then the parent directory. 1945 ac_confdir=`$as_dirname -- "$as_myself" || 1946$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1947 X"$as_myself" : 'X\(//\)[^/]' \| \ 1948 X"$as_myself" : 'X\(//\)$' \| \ 1949 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1950printf "%s\n" X"$as_myself" | 1951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1952 s//\1/ 1953 q 1954 } 1955 /^X\(\/\/\)[^/].*/{ 1956 s//\1/ 1957 q 1958 } 1959 /^X\(\/\/\)$/{ 1960 s//\1/ 1961 q 1962 } 1963 /^X\(\/\).*/{ 1964 s//\1/ 1965 q 1966 } 1967 s/.*/./; q'` 1968 srcdir=$ac_confdir 1969 if test ! -r "$srcdir/$ac_unique_file"; then 1970 srcdir=.. 1971 fi 1972else 1973 ac_srcdir_defaulted=no 1974fi 1975if test ! -r "$srcdir/$ac_unique_file"; then 1976 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1977 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1978fi 1979ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1980ac_abs_confdir=`( 1981 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1982 pwd)` 1983# When building in place, set srcdir=. 1984if test "$ac_abs_confdir" = "$ac_pwd"; then 1985 srcdir=. 1986fi 1987# Remove unnecessary trailing slashes from srcdir. 1988# Double slashes in file names in object file debugging info 1989# mess up M-x gdb in Emacs. 1990case $srcdir in 1991*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1992esac 1993for ac_var in $ac_precious_vars; do 1994 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1995 eval ac_env_${ac_var}_value=\$${ac_var} 1996 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1997 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1998done 1999 2000# 2001# Report the --help message. 2002# 2003if test "$ac_init_help" = "long"; then 2004 # Omit some internal or obsolete options to make the list less imposing. 2005 # This message is too long to be a string in the A/UX 3.1 sh. 2006 cat <<_ACEOF 2007\`configure' configures xorg-server 21.1.13 to adapt to many kinds of systems. 2008 2009Usage: $0 [OPTION]... [VAR=VALUE]... 2010 2011To assign environment variables (e.g., CC, CFLAGS...), specify them as 2012VAR=VALUE. See below for descriptions of some of the useful variables. 2013 2014Defaults for the options are specified in brackets. 2015 2016Configuration: 2017 -h, --help display this help and exit 2018 --help=short display options specific to this package 2019 --help=recursive display the short help of all the included packages 2020 -V, --version display version information and exit 2021 -q, --quiet, --silent do not print \`checking ...' messages 2022 --cache-file=FILE cache test results in FILE [disabled] 2023 -C, --config-cache alias for \`--cache-file=config.cache' 2024 -n, --no-create do not create output files 2025 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 2026 2027Installation directories: 2028 --prefix=PREFIX install architecture-independent files in PREFIX 2029 [$ac_default_prefix] 2030 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 2031 [PREFIX] 2032 2033By default, \`make install' will install all the files in 2034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 2035an installation prefix other than \`$ac_default_prefix' using \`--prefix', 2036for instance \`--prefix=\$HOME'. 2037 2038For better control, use the options below. 2039 2040Fine tuning of the installation directories: 2041 --bindir=DIR user executables [EPREFIX/bin] 2042 --sbindir=DIR system admin executables [EPREFIX/sbin] 2043 --libexecdir=DIR program executables [EPREFIX/libexec] 2044 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 2045 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 2046 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 2047 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 2048 --libdir=DIR object code libraries [EPREFIX/lib] 2049 --includedir=DIR C header files [PREFIX/include] 2050 --oldincludedir=DIR C header files for non-gcc [/usr/include] 2051 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 2052 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 2053 --infodir=DIR info documentation [DATAROOTDIR/info] 2054 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 2055 --mandir=DIR man documentation [DATAROOTDIR/man] 2056 --docdir=DIR documentation root [DATAROOTDIR/doc/xorg-server] 2057 --htmldir=DIR html documentation [DOCDIR] 2058 --dvidir=DIR dvi documentation [DOCDIR] 2059 --pdfdir=DIR pdf documentation [DOCDIR] 2060 --psdir=DIR ps documentation [DOCDIR] 2061_ACEOF 2062 2063 cat <<\_ACEOF 2064 2065Program names: 2066 --program-prefix=PREFIX prepend PREFIX to installed program names 2067 --program-suffix=SUFFIX append SUFFIX to installed program names 2068 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 2069 2070System types: 2071 --build=BUILD configure for building on BUILD [guessed] 2072 --host=HOST cross-compile to build programs to run on HOST [BUILD] 2073_ACEOF 2074fi 2075 2076if test -n "$ac_init_help"; then 2077 case $ac_init_help in 2078 short | recursive ) echo "Configuration of xorg-server 21.1.13:";; 2079 esac 2080 cat <<\_ACEOF 2081 2082Optional Features: 2083 --disable-option-checking ignore unrecognized --enable/--with options 2084 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 2085 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 2086 --enable-silent-rules less verbose build output (undo: "make V=1") 2087 --disable-silent-rules verbose build output (undo: "make V=0") 2088 --enable-dependency-tracking 2089 do not reject slow dependency extractors 2090 --disable-dependency-tracking 2091 speeds up one-time build 2092 --disable-selective-werror 2093 Turn off selective compiler errors. (default: 2094 enabled) 2095 --enable-strict-compilation 2096 Enable all warnings from compiler and make them 2097 errors (default: disabled) 2098 --enable-docs Enable building the documentation (default: yes) 2099 --enable-devel-docs Enable building the developer documentation 2100 (default: yes) 2101 --enable-unit-tests Enable building unit test cases (default: auto) 2102 --enable-static[=PKGS] build static libraries [default=no] 2103 --enable-shared[=PKGS] build shared libraries [default=yes] 2104 --enable-fast-install[=PKGS] 2105 optimize for fast installation [default=yes] 2106 --disable-libtool-lock avoid locking (might break parallel builds) 2107 --disable-largefile omit support for large files 2108 --enable-agp Enable AGP support (default: auto) 2109 --enable-werror Obsolete - use --enable-strict-compilation instead 2110 --enable-debug Enable debugging (default: disabled) 2111 --enable-listen-tcp Listen on TCP by default (default:disabled) 2112 --disable-listen-unix Listen on Unix by default (default:enabled) 2113 --disable-listen-local Listen on local by default (default:enabled) 2114 --enable-sparkle Enable updating of X11.app using the Sparkle 2115 Framework (default: disabled) 2116 --enable-visibility Enable symbol visibility (default: auto) 2117 --disable-composite Build Composite extension (default: enabled) 2118 --disable-mitshm Build SHM extension (default: auto) 2119 --disable-xres Build XRes extension (default: enabled) 2120 --disable-record Build Record extension (default: enabled) 2121 --disable-xv Build Xv extension (default: enabled) 2122 --disable-xvmc Build XvMC extension (default: enabled) 2123 --disable-dga Build DGA extension (default: auto) 2124 --disable-screensaver Build ScreenSaver extension (default: enabled) 2125 --disable-xdmcp Build XDMCP extension (default: auto) 2126 --disable-xdm-auth-1 Build XDM-Auth-1 extension (default: auto) 2127 --disable-glx Build GLX extension (default: enabled) 2128 --enable-dri Build DRI extension (default: auto) 2129 --enable-dri2 Build DRI2 extension (default: auto) 2130 --enable-dri3 Build DRI3 extension (default: auto) 2131 --disable-present Build Present extension (default: enabled) 2132 --disable-xinerama Build Xinerama extension (default: enabled) 2133 --disable-xf86vidmode Build XF86VidMode extension (default: auto) 2134 --disable-xace Build X-ACE extension (default: enabled) 2135 --enable-xselinux Build SELinux extension (default: disabled) 2136 --enable-xcsecurity Build Security extension (default: disabled) 2137 --disable-dbe Build DBE extension (default: enabled) 2138 --enable-xf86bigfont Build XF86 Big Font extension (default: disabled) 2139 --disable-dpms Build DPMS extension (default: enabled) 2140 --enable-config-udev Build udev support (default: auto) 2141 --enable-config-udev-kms 2142 Build udev kms support (default: auto) 2143 --disable-config-hal Build HAL support (default: auto) 2144 --enable-config-wscons Build wscons config support (default: auto) 2145 --enable-xfree86-utils Build xfree86 DDX utilities (default: enabled) 2146 --enable-vgahw Build Xorg with vga access (default: enabled) 2147 --enable-int10-module Build Xorg with int10 module (default: enabled) 2148 --enable-windowsdri Build XWin with WindowsDRI extension (default: auto) 2149 --enable-libdrm Build Xorg with libdrm support (default: enabled) 2150 --disable-clientids Build Xorg with client ID tracking (default: 2151 enabled) 2152 --enable-pciaccess Build Xorg with pciaccess library (default: enabled) 2153 --disable-linux-acpi Disable building ACPI support on Linux (if 2154 available). 2155 --disable-linux-apm Disable building APM support on Linux (if 2156 available). 2157 --enable-systemd-logind Build systemd-logind support (default: auto) 2158 --enable-suid-wrapper Build suid-root wrapper for legacy driver support on 2159 rootless xserver systems (default: no) 2160 --enable-xorg Build Xorg server (default: auto) 2161 --enable-xvfb Build Xvfb server (default: yes) 2162 --enable-xnest Build Xnest server (default: auto) 2163 --enable-xquartz Build Xquartz server for OS-X (default: auto) 2164 --enable-standalone-xpbproxy 2165 Build a standalone xpbproxy (in addition to the one 2166 integrated into Xquartz as a separate thread) 2167 (default: no) 2168 --enable-xwin Build XWin server (default: auto) 2169 --enable-glamor Build glamor dix module (default: auto) 2170 --enable-xf86-input-inputtest 2171 Build Xorg test input driver (default: yes) 2172 --enable-kdrive Build kdrive servers (default: no) 2173 --enable-xephyr Build the kdrive Xephyr server (default: auto) 2174 --enable-libunwind Use libunwind for backtracing (default: auto) 2175 --disable-xshmfence Disable xshmfence (default: auto) 2176 --enable-install-setuid Install Xorg server as owned by root with setuid bit 2177 (default: auto) 2178 --enable-unix-transport Enable UNIX domain socket transport 2179 --enable-tcp-transport Enable TCP socket transport 2180 --enable-ipv6 Enable IPv6 support 2181 --enable-local-transport 2182 Enable os-specific local transport 2183 --enable-secure-rpc Enable Secure RPC 2184 --enable-input-thread Enable input threads 2185 --disable-xtrans-send-fds 2186 Use Xtrans support for fd passing (default: auto) 2187 2188Optional Packages: 2189 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 2190 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 2191 --with-doxygen Use doxygen to regenerate documentation (default: 2192 auto) 2193 --with-xmlto Use xmlto to regenerate documentation (default: 2194 auto) 2195 --with-fop Use fop to regenerate documentation (default: auto) 2196 --with-xsltproc Use xsltproc for the transformation of XML documents 2197 (default: auto) 2198 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 2199 both] 2200 --with-aix-soname=aix|svr4|both 2201 shared library versioning (aka "SONAME") variant to 2202 provide on AIX, [default=aix]. 2203 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 2204 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 2205 compiler's sysroot if not specified). 2206 --with-dtrace=PATH Enable dtrace probes (default: enabled if dtrace 2207 found) 2208 --with-int10=BACKEND int10 backend: vm86, x86emu or stub 2209 --with-vendor-name=VENDOR 2210 Vendor string reported by the server 2211 --with-vendor-name-short=VENDOR 2212 Short version of vendor string reported by the 2213 server 2214 --with-vendor-web=URL Vendor web address reported by the server 2215 --with-module-dir=DIR Directory where modules are installed (default: 2216 $libdir/xorg/modules) 2217 --with-log-dir=DIR Directory where log files are kept (default: 2218 $localstatedir/log) 2219 --with-builder-addr=ADDRESS 2220 Builder address (default: 2221 xorg@lists.freedesktop.org) 2222 --with-builderstring=BUILDERSTRING 2223 Additional builder string 2224 --with-fallback-input-driver=$FALLBACK_INPUT_DRIVER 2225 Input driver fallback if the requested driver for a 2226 device is unavailable 2227 --with-fontrootdir=DIR Path to root directory for font files 2228 --with-fontmiscdir=DIR Path to misc files [FONTROOTDIR/misc] 2229 --with-fontotfdir=DIR Path to OTF files [FONTROOTDIR/OTF] 2230 --with-fontttfdir=DIR Path to TTF files [FONTROOTDIR/TTF] 2231 --with-fonttype1dir=DIR Path to Type1 files [FONTROOTDIR/Type1] 2232 --with-font75dpidir=DIR Path to 75dpi files [FONTROOTDIR/75dpi] 2233 --with-font100dpidir=DIR 2234 Path to 100dpi files [FONTROOTDIR/100dpi] 2235 --with-default-font-path=PATH 2236 Comma separated list of font dirs 2237 --with-xkb-path=PATH Path to XKB base dir (default: auto) 2238 --with-xkb-output=PATH Path to XKB output dir (default: 2239 ${datadir}/X11/xkb/compiled) 2240 --with-default-xkb-rules=RULES 2241 Keyboard ruleset (default: base/evdev) 2242 --with-default-xkb-model=MODEL 2243 Keyboard model (default: pc105) 2244 --with-default-xkb-layout=LAYOUT 2245 Keyboard layout (default: us) 2246 --with-default-xkb-variant=VARIANT 2247 Keyboard variant (default: (none)) 2248 --with-default-xkb-options=OPTIONS 2249 Keyboard layout options (default: (none)) 2250 --with-serverconfig-path=PATH 2251 Directory where ancillary server config files are 2252 installed (default: ${libdir}/xorg) 2253 --with-apple-applications-dir=PATH 2254 Path to the Applications directory (default: 2255 /Applications/Utilities) 2256 --with-apple-application-name=NAME 2257 Name for the .app (default: X11) 2258 --with-bundle-id-prefix=RDNS_PREFIX 2259 Prefix to use for bundle identifiers (default: 2260 org.x) 2261 --with-bundle-version=VERSION 2262 Version to use for X11.app's CFBundleVersion 2263 (default: 21.1.13) 2264 --with-bundle-version-string=VERSION 2265 Version to use for X11.app's 2266 CFBundleShortVersionString (default: 21.1.13) 2267 --with-sparkle-feed-url=URL 2268 URL for the Sparkle feed (default: 2269 https://www.xquartz.org/releases/sparkle/release.xml) 2270 --with-khronos-spec-dir=PATH 2271 Path to Khronos OpenGL registry database files 2272 (default: auto) 2273 --with-systemd-daemon support systemd socket activation (default: auto) 2274 --with-xkb-bin-directory=DIR 2275 Directory containing xkbcomp program (default: auto) 2276 --with-sha1=libc|libmd|libnettle|libgcrypt|libcrypto|libsha1|CommonCrypto|CryptoAPI 2277 choose SHA1 implementation 2278 2279Some influential environment variables: 2280 CC C compiler command 2281 CFLAGS C compiler flags 2282 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2283 nonstandard directory <lib dir> 2284 LIBS libraries to pass to the linker, e.g. -l<library> 2285 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2286 you have headers in a nonstandard directory <include dir> 2287 PKG_CONFIG path to pkg-config utility 2288 PKG_CONFIG_PATH 2289 directories to add to pkg-config's search path 2290 PKG_CONFIG_LIBDIR 2291 path overriding pkg-config's built-in search path 2292 DOXYGEN Path to doxygen command 2293 DOT Path to the dot graphics utility 2294 XMLTO Path to xmlto command 2295 FOP Path to fop command 2296 XSLTPROC Path to xsltproc command 2297 XORG_MALLOC_DEBUG_ENV 2298 Environment variables to enable memory checking in tests 2299 CCAS assembler compiler command (defaults to CC) 2300 CCASFLAGS assembler compiler flags (defaults to CFLAGS) 2301 LT_SYS_LIBRARY_PATH 2302 User-defined run-time library search path. 2303 YACC The `Yet Another Compiler Compiler' implementation to use. 2304 Defaults to the first program found out of: `bison -y', `byacc', 2305 `yacc'. 2306 YFLAGS The list of arguments that will be passed by default to $YACC. 2307 This script will default YFLAGS to the empty string to avoid a 2308 default value of `-d' given by some make applications. 2309 CPP C preprocessor 2310 LIBBSD_CFLAGS 2311 C compiler flags for LIBBSD, overriding pkg-config 2312 LIBBSD_LIBS linker flags for LIBBSD, overriding pkg-config 2313 PIXMAN_CFLAGS 2314 C compiler flags for PIXMAN, overriding pkg-config 2315 PIXMAN_LIBS linker flags for PIXMAN, overriding pkg-config 2316 SYSTEMD_DAEMON_CFLAGS 2317 C compiler flags for SYSTEMD_DAEMON, overriding pkg-config 2318 SYSTEMD_DAEMON_LIBS 2319 linker flags for SYSTEMD_DAEMON, overriding pkg-config 2320 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config 2321 UDEV_LIBS linker flags for UDEV, overriding pkg-config 2322 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config 2323 DBUS_LIBS linker flags for DBUS, overriding pkg-config 2324 HAL_CFLAGS C compiler flags for HAL, overriding pkg-config 2325 HAL_LIBS linker flags for HAL, overriding pkg-config 2326 DRI2PROTO_CFLAGS 2327 C compiler flags for DRI2PROTO, overriding pkg-config 2328 DRI2PROTO_LIBS 2329 linker flags for DRI2PROTO, overriding pkg-config 2330 DRI3PROTO_CFLAGS 2331 C compiler flags for DRI3PROTO, overriding pkg-config 2332 DRI3PROTO_LIBS 2333 linker flags for DRI3PROTO, overriding pkg-config 2334 XSHMFENCE_CFLAGS 2335 C compiler flags for XSHMFENCE, overriding pkg-config 2336 XSHMFENCE_LIBS 2337 linker flags for XSHMFENCE, overriding pkg-config 2338 LIBDRM_CFLAGS 2339 C compiler flags for LIBDRM, overriding pkg-config 2340 LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config 2341 XLIB_CFLAGS C compiler flags for XLIB, overriding pkg-config 2342 XLIB_LIBS linker flags for XLIB, overriding pkg-config 2343 GL_CFLAGS C compiler flags for GL, overriding pkg-config 2344 GL_LIBS linker flags for GL, overriding pkg-config 2345 SELINUX_CFLAGS 2346 C compiler flags for SELINUX, overriding pkg-config 2347 SELINUX_LIBS 2348 linker flags for SELINUX, overriding pkg-config 2349 XDMCP_CFLAGS 2350 C compiler flags for XDMCP, overriding pkg-config 2351 XDMCP_LIBS linker flags for XDMCP, overriding pkg-config 2352 LIBSHA1_CFLAGS 2353 C compiler flags for LIBSHA1, overriding pkg-config 2354 LIBSHA1_LIBS 2355 linker flags for LIBSHA1, overriding pkg-config 2356 OPENSSL_CFLAGS 2357 C compiler flags for OPENSSL, overriding pkg-config 2358 OPENSSL_LIBS 2359 linker flags for OPENSSL, overriding pkg-config 2360 XSERVERCFLAGS_CFLAGS 2361 C compiler flags for XSERVERCFLAGS, overriding pkg-config 2362 XSERVERCFLAGS_LIBS 2363 linker flags for XSERVERCFLAGS, overriding pkg-config 2364 XSERVERLIBS_CFLAGS 2365 C compiler flags for XSERVERLIBS, overriding pkg-config 2366 XSERVERLIBS_LIBS 2367 linker flags for XSERVERLIBS, overriding pkg-config 2368 LIBUNWIND_CFLAGS 2369 C compiler flags for LIBUNWIND, overriding pkg-config 2370 LIBUNWIND_LIBS 2371 linker flags for LIBUNWIND, overriding pkg-config 2372 XNESTMODULES_CFLAGS 2373 C compiler flags for XNESTMODULES, overriding pkg-config 2374 XNESTMODULES_LIBS 2375 linker flags for XNESTMODULES, overriding pkg-config 2376 LIBXCVT_CFLAGS 2377 C compiler flags for LIBXCVT, overriding pkg-config 2378 LIBXCVT_LIBS 2379 linker flags for LIBXCVT, overriding pkg-config 2380 PCIACCESS_CFLAGS 2381 C compiler flags for PCIACCESS, overriding pkg-config 2382 PCIACCESS_LIBS 2383 linker flags for PCIACCESS, overriding pkg-config 2384 DGA_CFLAGS C compiler flags for DGA, overriding pkg-config 2385 DGA_LIBS linker flags for DGA, overriding pkg-config 2386 XORG_MODULES_CFLAGS 2387 C compiler flags for XORG_MODULES, overriding pkg-config 2388 XORG_MODULES_LIBS 2389 linker flags for XORG_MODULES, overriding pkg-config 2390 GLAMOR_CFLAGS 2391 C compiler flags for GLAMOR, overriding pkg-config 2392 GLAMOR_LIBS linker flags for GLAMOR, overriding pkg-config 2393 GBM_CFLAGS C compiler flags for GBM, overriding pkg-config 2394 GBM_LIBS linker flags for GBM, overriding pkg-config 2395 XWINMODULES_CFLAGS 2396 C compiler flags for XWINMODULES, overriding pkg-config 2397 XWINMODULES_LIBS 2398 linker flags for XWINMODULES, overriding pkg-config 2399 WINDOWSDRI_CFLAGS 2400 C compiler flags for WINDOWSDRI, overriding pkg-config 2401 WINDOWSDRI_LIBS 2402 linker flags for WINDOWSDRI, overriding pkg-config 2403 KHRONOS_OPENGL_REGISTRY_CFLAGS 2404 C compiler flags for KHRONOS_OPENGL_REGISTRY, overriding 2405 pkg-config 2406 KHRONOS_OPENGL_REGISTRY_LIBS 2407 linker flags for KHRONOS_OPENGL_REGISTRY, overriding pkg-config 2408 XPBPROXY_CFLAGS 2409 C compiler flags for XPBPROXY, overriding pkg-config 2410 XPBPROXY_LIBS 2411 linker flags for XPBPROXY, overriding pkg-config 2412 XEPHYR_CFLAGS 2413 C compiler flags for XEPHYR, overriding pkg-config 2414 XEPHYR_LIBS linker flags for XEPHYR, overriding pkg-config 2415 2416Use these variables to override the choices made by `configure' or to help 2417it to find libraries and programs with nonstandard names/locations. 2418 2419Report bugs to <https://gitlab.freedesktop.org/xorg/xserver/issues>. 2420_ACEOF 2421ac_status=$? 2422fi 2423 2424if test "$ac_init_help" = "recursive"; then 2425 # If there are subdirs, report their specific --help. 2426 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2427 test -d "$ac_dir" || 2428 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2429 continue 2430 ac_builddir=. 2431 2432case "$ac_dir" in 2433.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2434*) 2435 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 2436 # A ".." for each directory in $ac_dir_suffix. 2437 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2438 case $ac_top_builddir_sub in 2439 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2440 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2441 esac ;; 2442esac 2443ac_abs_top_builddir=$ac_pwd 2444ac_abs_builddir=$ac_pwd$ac_dir_suffix 2445# for backward compatibility: 2446ac_top_builddir=$ac_top_build_prefix 2447 2448case $srcdir in 2449 .) # We are building in place. 2450 ac_srcdir=. 2451 ac_top_srcdir=$ac_top_builddir_sub 2452 ac_abs_top_srcdir=$ac_pwd ;; 2453 [\\/]* | ?:[\\/]* ) # Absolute name. 2454 ac_srcdir=$srcdir$ac_dir_suffix; 2455 ac_top_srcdir=$srcdir 2456 ac_abs_top_srcdir=$srcdir ;; 2457 *) # Relative name. 2458 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2459 ac_top_srcdir=$ac_top_build_prefix$srcdir 2460 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2461esac 2462ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2463 2464 cd "$ac_dir" || { ac_status=$?; continue; } 2465 # Check for configure.gnu first; this name is used for a wrapper for 2466 # Metaconfig's "Configure" on case-insensitive file systems. 2467 if test -f "$ac_srcdir/configure.gnu"; then 2468 echo && 2469 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2470 elif test -f "$ac_srcdir/configure"; then 2471 echo && 2472 $SHELL "$ac_srcdir/configure" --help=recursive 2473 else 2474 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2475 fi || ac_status=$? 2476 cd "$ac_pwd" || { ac_status=$?; break; } 2477 done 2478fi 2479 2480test -n "$ac_init_help" && exit $ac_status 2481if $ac_init_version; then 2482 cat <<\_ACEOF 2483xorg-server configure 21.1.13 2484generated by GNU Autoconf 2.71 2485 2486Copyright (C) 2021 Free Software Foundation, Inc. 2487This configure script is free software; the Free Software Foundation 2488gives unlimited permission to copy, distribute and modify it. 2489_ACEOF 2490 exit 2491fi 2492 2493## ------------------------ ## 2494## Autoconf initialization. ## 2495## ------------------------ ## 2496 2497# ac_fn_c_try_compile LINENO 2498# -------------------------- 2499# Try to compile conftest.$ac_ext, and return whether this succeeded. 2500ac_fn_c_try_compile () 2501{ 2502 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2503 rm -f conftest.$ac_objext conftest.beam 2504 if { { ac_try="$ac_compile" 2505case "(($ac_try" in 2506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2507 *) ac_try_echo=$ac_try;; 2508esac 2509eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2510printf "%s\n" "$ac_try_echo"; } >&5 2511 (eval "$ac_compile") 2>conftest.err 2512 ac_status=$? 2513 if test -s conftest.err; then 2514 grep -v '^ *+' conftest.err >conftest.er1 2515 cat conftest.er1 >&5 2516 mv -f conftest.er1 conftest.err 2517 fi 2518 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2519 test $ac_status = 0; } && { 2520 test -z "$ac_c_werror_flag" || 2521 test ! -s conftest.err 2522 } && test -s conftest.$ac_objext 2523then : 2524 ac_retval=0 2525else $as_nop 2526 printf "%s\n" "$as_me: failed program was:" >&5 2527sed 's/^/| /' conftest.$ac_ext >&5 2528 2529 ac_retval=1 2530fi 2531 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2532 as_fn_set_status $ac_retval 2533 2534} # ac_fn_c_try_compile 2535 2536# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2537# ------------------------------------------------------- 2538# Tests whether HEADER exists and can be compiled using the include files in 2539# INCLUDES, setting the cache variable VAR accordingly. 2540ac_fn_c_check_header_compile () 2541{ 2542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2544printf %s "checking for $2... " >&6; } 2545if eval test \${$3+y} 2546then : 2547 printf %s "(cached) " >&6 2548else $as_nop 2549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2550/* end confdefs.h. */ 2551$4 2552#include <$2> 2553_ACEOF 2554if ac_fn_c_try_compile "$LINENO" 2555then : 2556 eval "$3=yes" 2557else $as_nop 2558 eval "$3=no" 2559fi 2560rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2561fi 2562eval ac_res=\$$3 2563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2564printf "%s\n" "$ac_res" >&6; } 2565 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2566 2567} # ac_fn_c_check_header_compile 2568 2569# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 2570# ------------------------------------------------------------------ 2571# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2572# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 2573ac_fn_check_decl () 2574{ 2575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2576 as_decl_name=`echo $2|sed 's/ *(.*//'` 2577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2578printf %s "checking whether $as_decl_name is declared... " >&6; } 2579if eval test \${$3+y} 2580then : 2581 printf %s "(cached) " >&6 2582else $as_nop 2583 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2584 eval ac_save_FLAGS=\$$6 2585 as_fn_append $6 " $5" 2586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2587/* end confdefs.h. */ 2588$4 2589int 2590main (void) 2591{ 2592#ifndef $as_decl_name 2593#ifdef __cplusplus 2594 (void) $as_decl_use; 2595#else 2596 (void) $as_decl_name; 2597#endif 2598#endif 2599 2600 ; 2601 return 0; 2602} 2603_ACEOF 2604if ac_fn_c_try_compile "$LINENO" 2605then : 2606 eval "$3=yes" 2607else $as_nop 2608 eval "$3=no" 2609fi 2610rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2611 eval $6=\$ac_save_FLAGS 2612 2613fi 2614eval ac_res=\$$3 2615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2616printf "%s\n" "$ac_res" >&6; } 2617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2618 2619} # ac_fn_check_decl 2620 2621# ac_fn_c_try_link LINENO 2622# ----------------------- 2623# Try to link conftest.$ac_ext, and return whether this succeeded. 2624ac_fn_c_try_link () 2625{ 2626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2627 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 2628 if { { ac_try="$ac_link" 2629case "(($ac_try" in 2630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2631 *) ac_try_echo=$ac_try;; 2632esac 2633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2634printf "%s\n" "$ac_try_echo"; } >&5 2635 (eval "$ac_link") 2>conftest.err 2636 ac_status=$? 2637 if test -s conftest.err; then 2638 grep -v '^ *+' conftest.err >conftest.er1 2639 cat conftest.er1 >&5 2640 mv -f conftest.er1 conftest.err 2641 fi 2642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2643 test $ac_status = 0; } && { 2644 test -z "$ac_c_werror_flag" || 2645 test ! -s conftest.err 2646 } && test -s conftest$ac_exeext && { 2647 test "$cross_compiling" = yes || 2648 test -x conftest$ac_exeext 2649 } 2650then : 2651 ac_retval=0 2652else $as_nop 2653 printf "%s\n" "$as_me: failed program was:" >&5 2654sed 's/^/| /' conftest.$ac_ext >&5 2655 2656 ac_retval=1 2657fi 2658 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2659 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2660 # interfere with the next link command; also delete a directory that is 2661 # left behind by Apple's compiler. We do this before executing the actions. 2662 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2664 as_fn_set_status $ac_retval 2665 2666} # ac_fn_c_try_link 2667 2668# ac_fn_c_check_func LINENO FUNC VAR 2669# ---------------------------------- 2670# Tests whether FUNC exists, setting the cache variable VAR accordingly 2671ac_fn_c_check_func () 2672{ 2673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2675printf %s "checking for $2... " >&6; } 2676if eval test \${$3+y} 2677then : 2678 printf %s "(cached) " >&6 2679else $as_nop 2680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2681/* end confdefs.h. */ 2682/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2683 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2684#define $2 innocuous_$2 2685 2686/* System header to define __stub macros and hopefully few prototypes, 2687 which can conflict with char $2 (void); below. */ 2688 2689#include <limits.h> 2690#undef $2 2691 2692/* Override any GCC internal prototype to avoid an error. 2693 Use char because int might match the return type of a GCC 2694 builtin and then its argument prototype would still apply. */ 2695#ifdef __cplusplus 2696extern "C" 2697#endif 2698char $2 (void); 2699/* The GNU C library defines this for functions which it implements 2700 to always fail with ENOSYS. Some functions are actually named 2701 something starting with __ and the normal name is an alias. */ 2702#if defined __stub_$2 || defined __stub___$2 2703choke me 2704#endif 2705 2706int 2707main (void) 2708{ 2709return $2 (); 2710 ; 2711 return 0; 2712} 2713_ACEOF 2714if ac_fn_c_try_link "$LINENO" 2715then : 2716 eval "$3=yes" 2717else $as_nop 2718 eval "$3=no" 2719fi 2720rm -f core conftest.err conftest.$ac_objext conftest.beam \ 2721 conftest$ac_exeext conftest.$ac_ext 2722fi 2723eval ac_res=\$$3 2724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2725printf "%s\n" "$ac_res" >&6; } 2726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2727 2728} # ac_fn_c_check_func 2729 2730# ac_fn_c_try_cpp LINENO 2731# ---------------------- 2732# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2733ac_fn_c_try_cpp () 2734{ 2735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2736 if { { ac_try="$ac_cpp conftest.$ac_ext" 2737case "(($ac_try" in 2738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2739 *) ac_try_echo=$ac_try;; 2740esac 2741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2742printf "%s\n" "$ac_try_echo"; } >&5 2743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2744 ac_status=$? 2745 if test -s conftest.err; then 2746 grep -v '^ *+' conftest.err >conftest.er1 2747 cat conftest.er1 >&5 2748 mv -f conftest.er1 conftest.err 2749 fi 2750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2751 test $ac_status = 0; } > conftest.i && { 2752 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2753 test ! -s conftest.err 2754 } 2755then : 2756 ac_retval=0 2757else $as_nop 2758 printf "%s\n" "$as_me: failed program was:" >&5 2759sed 's/^/| /' conftest.$ac_ext >&5 2760 2761 ac_retval=1 2762fi 2763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2764 as_fn_set_status $ac_retval 2765 2766} # ac_fn_c_try_cpp 2767 2768# ac_fn_c_try_run LINENO 2769# ---------------------- 2770# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 2771# executables *can* be run. 2772ac_fn_c_try_run () 2773{ 2774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2775 if { { ac_try="$ac_link" 2776case "(($ac_try" in 2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2778 *) ac_try_echo=$ac_try;; 2779esac 2780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2781printf "%s\n" "$ac_try_echo"; } >&5 2782 (eval "$ac_link") 2>&5 2783 ac_status=$? 2784 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2785 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2786 { { case "(($ac_try" in 2787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2788 *) ac_try_echo=$ac_try;; 2789esac 2790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2791printf "%s\n" "$ac_try_echo"; } >&5 2792 (eval "$ac_try") 2>&5 2793 ac_status=$? 2794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2795 test $ac_status = 0; }; } 2796then : 2797 ac_retval=0 2798else $as_nop 2799 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 2800 printf "%s\n" "$as_me: failed program was:" >&5 2801sed 's/^/| /' conftest.$ac_ext >&5 2802 2803 ac_retval=$ac_status 2804fi 2805 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2807 as_fn_set_status $ac_retval 2808 2809} # ac_fn_c_try_run 2810 2811# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2812# -------------------------------------------- 2813# Tries to find the compile-time value of EXPR in a program that includes 2814# INCLUDES, setting VAR accordingly. Returns whether the value could be 2815# computed 2816ac_fn_c_compute_int () 2817{ 2818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2819 if test "$cross_compiling" = yes; then 2820 # Depending upon the size, compute the lo and hi bounds. 2821cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2822/* end confdefs.h. */ 2823$4 2824int 2825main (void) 2826{ 2827static int test_array [1 - 2 * !(($2) >= 0)]; 2828test_array [0] = 0; 2829return test_array [0]; 2830 2831 ; 2832 return 0; 2833} 2834_ACEOF 2835if ac_fn_c_try_compile "$LINENO" 2836then : 2837 ac_lo=0 ac_mid=0 2838 while :; do 2839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2840/* end confdefs.h. */ 2841$4 2842int 2843main (void) 2844{ 2845static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2846test_array [0] = 0; 2847return test_array [0]; 2848 2849 ; 2850 return 0; 2851} 2852_ACEOF 2853if ac_fn_c_try_compile "$LINENO" 2854then : 2855 ac_hi=$ac_mid; break 2856else $as_nop 2857 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2858 if test $ac_lo -le $ac_mid; then 2859 ac_lo= ac_hi= 2860 break 2861 fi 2862 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2863fi 2864rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2865 done 2866else $as_nop 2867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2868/* end confdefs.h. */ 2869$4 2870int 2871main (void) 2872{ 2873static int test_array [1 - 2 * !(($2) < 0)]; 2874test_array [0] = 0; 2875return test_array [0]; 2876 2877 ; 2878 return 0; 2879} 2880_ACEOF 2881if ac_fn_c_try_compile "$LINENO" 2882then : 2883 ac_hi=-1 ac_mid=-1 2884 while :; do 2885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2886/* end confdefs.h. */ 2887$4 2888int 2889main (void) 2890{ 2891static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2892test_array [0] = 0; 2893return test_array [0]; 2894 2895 ; 2896 return 0; 2897} 2898_ACEOF 2899if ac_fn_c_try_compile "$LINENO" 2900then : 2901 ac_lo=$ac_mid; break 2902else $as_nop 2903 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2904 if test $ac_mid -le $ac_hi; then 2905 ac_lo= ac_hi= 2906 break 2907 fi 2908 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2909fi 2910rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2911 done 2912else $as_nop 2913 ac_lo= ac_hi= 2914fi 2915rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2916fi 2917rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2918# Binary search between lo and hi bounds. 2919while test "x$ac_lo" != "x$ac_hi"; do 2920 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2922/* end confdefs.h. */ 2923$4 2924int 2925main (void) 2926{ 2927static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2928test_array [0] = 0; 2929return test_array [0]; 2930 2931 ; 2932 return 0; 2933} 2934_ACEOF 2935if ac_fn_c_try_compile "$LINENO" 2936then : 2937 ac_hi=$ac_mid 2938else $as_nop 2939 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2940fi 2941rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2942done 2943case $ac_lo in #(( 2944?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2945'') ac_retval=1 ;; 2946esac 2947 else 2948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2949/* end confdefs.h. */ 2950$4 2951static long int longval (void) { return $2; } 2952static unsigned long int ulongval (void) { return $2; } 2953#include <stdio.h> 2954#include <stdlib.h> 2955int 2956main (void) 2957{ 2958 2959 FILE *f = fopen ("conftest.val", "w"); 2960 if (! f) 2961 return 1; 2962 if (($2) < 0) 2963 { 2964 long int i = longval (); 2965 if (i != ($2)) 2966 return 1; 2967 fprintf (f, "%ld", i); 2968 } 2969 else 2970 { 2971 unsigned long int i = ulongval (); 2972 if (i != ($2)) 2973 return 1; 2974 fprintf (f, "%lu", i); 2975 } 2976 /* Do not output a trailing newline, as this causes \r\n confusion 2977 on some platforms. */ 2978 return ferror (f) || fclose (f) != 0; 2979 2980 ; 2981 return 0; 2982} 2983_ACEOF 2984if ac_fn_c_try_run "$LINENO" 2985then : 2986 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2987else $as_nop 2988 ac_retval=1 2989fi 2990rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2991 conftest.$ac_objext conftest.beam conftest.$ac_ext 2992rm -f conftest.val 2993 2994 fi 2995 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2996 as_fn_set_status $ac_retval 2997 2998} # ac_fn_c_compute_int 2999 3000# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 3001# ------------------------------------------- 3002# Tests whether TYPE exists after having included INCLUDES, setting cache 3003# variable VAR accordingly. 3004ac_fn_c_check_type () 3005{ 3006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3008printf %s "checking for $2... " >&6; } 3009if eval test \${$3+y} 3010then : 3011 printf %s "(cached) " >&6 3012else $as_nop 3013 eval "$3=no" 3014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3015/* end confdefs.h. */ 3016$4 3017int 3018main (void) 3019{ 3020if (sizeof ($2)) 3021 return 0; 3022 ; 3023 return 0; 3024} 3025_ACEOF 3026if ac_fn_c_try_compile "$LINENO" 3027then : 3028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3029/* end confdefs.h. */ 3030$4 3031int 3032main (void) 3033{ 3034if (sizeof (($2))) 3035 return 0; 3036 ; 3037 return 0; 3038} 3039_ACEOF 3040if ac_fn_c_try_compile "$LINENO" 3041then : 3042 3043else $as_nop 3044 eval "$3=yes" 3045fi 3046rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3047fi 3048rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3049fi 3050eval ac_res=\$$3 3051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3052printf "%s\n" "$ac_res" >&6; } 3053 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3054 3055} # ac_fn_c_check_type 3056 3057# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 3058# ---------------------------------------------------- 3059# Tries to find if the field MEMBER exists in type AGGR, after including 3060# INCLUDES, setting cache variable VAR accordingly. 3061ac_fn_c_check_member () 3062{ 3063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 3065printf %s "checking for $2.$3... " >&6; } 3066if eval test \${$4+y} 3067then : 3068 printf %s "(cached) " >&6 3069else $as_nop 3070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3071/* end confdefs.h. */ 3072$5 3073int 3074main (void) 3075{ 3076static $2 ac_aggr; 3077if (ac_aggr.$3) 3078return 0; 3079 ; 3080 return 0; 3081} 3082_ACEOF 3083if ac_fn_c_try_compile "$LINENO" 3084then : 3085 eval "$4=yes" 3086else $as_nop 3087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3088/* end confdefs.h. */ 3089$5 3090int 3091main (void) 3092{ 3093static $2 ac_aggr; 3094if (sizeof ac_aggr.$3) 3095return 0; 3096 ; 3097 return 0; 3098} 3099_ACEOF 3100if ac_fn_c_try_compile "$LINENO" 3101then : 3102 eval "$4=yes" 3103else $as_nop 3104 eval "$4=no" 3105fi 3106rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3107fi 3108rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3109fi 3110eval ac_res=\$$4 3111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3112printf "%s\n" "$ac_res" >&6; } 3113 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3114 3115} # ac_fn_c_check_member 3116ac_configure_args_raw= 3117for ac_arg 3118do 3119 case $ac_arg in 3120 *\'*) 3121 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3122 esac 3123 as_fn_append ac_configure_args_raw " '$ac_arg'" 3124done 3125 3126case $ac_configure_args_raw in 3127 *$as_nl*) 3128 ac_safe_unquote= ;; 3129 *) 3130 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 3131 ac_unsafe_a="$ac_unsafe_z#~" 3132 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 3133 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 3134esac 3135 3136cat >config.log <<_ACEOF 3137This file contains any messages produced by compilers while 3138running configure, to aid debugging if configure makes a mistake. 3139 3140It was created by xorg-server $as_me 21.1.13, which was 3141generated by GNU Autoconf 2.71. Invocation command line was 3142 3143 $ $0$ac_configure_args_raw 3144 3145_ACEOF 3146exec 5>>config.log 3147{ 3148cat <<_ASUNAME 3149## --------- ## 3150## Platform. ## 3151## --------- ## 3152 3153hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 3154uname -m = `(uname -m) 2>/dev/null || echo unknown` 3155uname -r = `(uname -r) 2>/dev/null || echo unknown` 3156uname -s = `(uname -s) 2>/dev/null || echo unknown` 3157uname -v = `(uname -v) 2>/dev/null || echo unknown` 3158 3159/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 3160/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 3161 3162/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 3163/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 3164/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 3165/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 3166/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 3167/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 3168/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 3169 3170_ASUNAME 3171 3172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3173for as_dir in $PATH 3174do 3175 IFS=$as_save_IFS 3176 case $as_dir in #((( 3177 '') as_dir=./ ;; 3178 */) ;; 3179 *) as_dir=$as_dir/ ;; 3180 esac 3181 printf "%s\n" "PATH: $as_dir" 3182 done 3183IFS=$as_save_IFS 3184 3185} >&5 3186 3187cat >&5 <<_ACEOF 3188 3189 3190## ----------- ## 3191## Core tests. ## 3192## ----------- ## 3193 3194_ACEOF 3195 3196 3197# Keep a trace of the command line. 3198# Strip out --no-create and --no-recursion so they do not pile up. 3199# Strip out --silent because we don't want to record it for future runs. 3200# Also quote any args containing shell meta-characters. 3201# Make two passes to allow for proper duplicate-argument suppression. 3202ac_configure_args= 3203ac_configure_args0= 3204ac_configure_args1= 3205ac_must_keep_next=false 3206for ac_pass in 1 2 3207do 3208 for ac_arg 3209 do 3210 case $ac_arg in 3211 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 3212 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3213 | -silent | --silent | --silen | --sile | --sil) 3214 continue ;; 3215 *\'*) 3216 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3217 esac 3218 case $ac_pass in 3219 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 3220 2) 3221 as_fn_append ac_configure_args1 " '$ac_arg'" 3222 if test $ac_must_keep_next = true; then 3223 ac_must_keep_next=false # Got value, back to normal. 3224 else 3225 case $ac_arg in 3226 *=* | --config-cache | -C | -disable-* | --disable-* \ 3227 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 3228 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 3229 | -with-* | --with-* | -without-* | --without-* | --x) 3230 case "$ac_configure_args0 " in 3231 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 3232 esac 3233 ;; 3234 -* ) ac_must_keep_next=true ;; 3235 esac 3236 fi 3237 as_fn_append ac_configure_args " '$ac_arg'" 3238 ;; 3239 esac 3240 done 3241done 3242{ ac_configure_args0=; unset ac_configure_args0;} 3243{ ac_configure_args1=; unset ac_configure_args1;} 3244 3245# When interrupted or exit'd, cleanup temporary files, and complete 3246# config.log. We remove comments because anyway the quotes in there 3247# would cause problems or look ugly. 3248# WARNING: Use '\'' to represent an apostrophe within the trap. 3249# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3250trap 'exit_status=$? 3251 # Sanitize IFS. 3252 IFS=" "" $as_nl" 3253 # Save into config.log some information that might help in debugging. 3254 { 3255 echo 3256 3257 printf "%s\n" "## ---------------- ## 3258## Cache variables. ## 3259## ---------------- ##" 3260 echo 3261 # The following way of writing the cache mishandles newlines in values, 3262( 3263 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3264 eval ac_val=\$$ac_var 3265 case $ac_val in #( 3266 *${as_nl}*) 3267 case $ac_var in #( 3268 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3269printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3270 esac 3271 case $ac_var in #( 3272 _ | IFS | as_nl) ;; #( 3273 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3274 *) { eval $ac_var=; unset $ac_var;} ;; 3275 esac ;; 3276 esac 3277 done 3278 (set) 2>&1 | 3279 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3280 *${as_nl}ac_space=\ *) 3281 sed -n \ 3282 "s/'\''/'\''\\\\'\'''\''/g; 3283 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3284 ;; #( 3285 *) 3286 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3287 ;; 3288 esac | 3289 sort 3290) 3291 echo 3292 3293 printf "%s\n" "## ----------------- ## 3294## Output variables. ## 3295## ----------------- ##" 3296 echo 3297 for ac_var in $ac_subst_vars 3298 do 3299 eval ac_val=\$$ac_var 3300 case $ac_val in 3301 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3302 esac 3303 printf "%s\n" "$ac_var='\''$ac_val'\''" 3304 done | sort 3305 echo 3306 3307 if test -n "$ac_subst_files"; then 3308 printf "%s\n" "## ------------------- ## 3309## File substitutions. ## 3310## ------------------- ##" 3311 echo 3312 for ac_var in $ac_subst_files 3313 do 3314 eval ac_val=\$$ac_var 3315 case $ac_val in 3316 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3317 esac 3318 printf "%s\n" "$ac_var='\''$ac_val'\''" 3319 done | sort 3320 echo 3321 fi 3322 3323 if test -s confdefs.h; then 3324 printf "%s\n" "## ----------- ## 3325## confdefs.h. ## 3326## ----------- ##" 3327 echo 3328 cat confdefs.h 3329 echo 3330 fi 3331 test "$ac_signal" != 0 && 3332 printf "%s\n" "$as_me: caught signal $ac_signal" 3333 printf "%s\n" "$as_me: exit $exit_status" 3334 } >&5 3335 rm -f core *.core core.conftest.* && 3336 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3337 exit $exit_status 3338' 0 3339for ac_signal in 1 2 13 15; do 3340 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3341done 3342ac_signal=0 3343 3344# confdefs.h avoids OS command line length limits that DEFS can exceed. 3345rm -f -r conftest* confdefs.h 3346 3347printf "%s\n" "/* confdefs.h */" > confdefs.h 3348 3349# Predefined preprocessor variables. 3350 3351printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 3352 3353printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 3354 3355printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 3356 3357printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 3358 3359printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 3360 3361printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 3362 3363 3364# Let the site file select an alternate cache file if it wants to. 3365# Prefer an explicitly selected file to automatically selected ones. 3366if test -n "$CONFIG_SITE"; then 3367 ac_site_files="$CONFIG_SITE" 3368elif test "x$prefix" != xNONE; then 3369 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 3370else 3371 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 3372fi 3373 3374for ac_site_file in $ac_site_files 3375do 3376 case $ac_site_file in #( 3377 */*) : 3378 ;; #( 3379 *) : 3380 ac_site_file=./$ac_site_file ;; 3381esac 3382 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 3383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3384printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 3385 sed 's/^/| /' "$ac_site_file" >&5 3386 . "$ac_site_file" \ 3387 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3388printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3389as_fn_error $? "failed to load site script $ac_site_file 3390See \`config.log' for more details" "$LINENO" 5; } 3391 fi 3392done 3393 3394if test -r "$cache_file"; then 3395 # Some versions of bash will fail to source /dev/null (special files 3396 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3397 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3399printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 3400 case $cache_file in 3401 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3402 *) . "./$cache_file";; 3403 esac 3404 fi 3405else 3406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3407printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 3408 >$cache_file 3409fi 3410 3411as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 3412# Test code for whether the C compiler supports C89 (global declarations) 3413ac_c_conftest_c89_globals=' 3414/* Does the compiler advertise C89 conformance? 3415 Do not test the value of __STDC__, because some compilers set it to 0 3416 while being otherwise adequately conformant. */ 3417#if !defined __STDC__ 3418# error "Compiler does not advertise C89 conformance" 3419#endif 3420 3421#include <stddef.h> 3422#include <stdarg.h> 3423struct stat; 3424/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 3425struct buf { int x; }; 3426struct buf * (*rcsopen) (struct buf *, struct stat *, int); 3427static char *e (char **p, int i) 3428{ 3429 return p[i]; 3430} 3431static char *f (char * (*g) (char **, int), char **p, ...) 3432{ 3433 char *s; 3434 va_list v; 3435 va_start (v,p); 3436 s = g (p, va_arg (v,int)); 3437 va_end (v); 3438 return s; 3439} 3440 3441/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3442 function prototypes and stuff, but not \xHH hex character constants. 3443 These do not provoke an error unfortunately, instead are silently treated 3444 as an "x". The following induces an error, until -std is added to get 3445 proper ANSI mode. Curiously \x00 != x always comes out true, for an 3446 array size at least. It is necessary to write \x00 == 0 to get something 3447 that is true only with -std. */ 3448int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 3449 3450/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3451 inside strings and character constants. */ 3452#define FOO(x) '\''x'\'' 3453int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 3454 3455int test (int i, double x); 3456struct s1 {int (*f) (int a);}; 3457struct s2 {int (*f) (double a);}; 3458int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 3459 int, int);' 3460 3461# Test code for whether the C compiler supports C89 (body of main). 3462ac_c_conftest_c89_main=' 3463ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 3464' 3465 3466# Test code for whether the C compiler supports C99 (global declarations) 3467ac_c_conftest_c99_globals=' 3468// Does the compiler advertise C99 conformance? 3469#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 3470# error "Compiler does not advertise C99 conformance" 3471#endif 3472 3473#include <stdbool.h> 3474extern int puts (const char *); 3475extern int printf (const char *, ...); 3476extern int dprintf (int, const char *, ...); 3477extern void *malloc (size_t); 3478extern void free (void *); 3479 3480// Check varargs macros. These examples are taken from C99 6.10.3.5. 3481// dprintf is used instead of fprintf to avoid needing to declare 3482// FILE and stderr. 3483#define debug(...) dprintf (2, __VA_ARGS__) 3484#define showlist(...) puts (#__VA_ARGS__) 3485#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3486static void 3487test_varargs_macros (void) 3488{ 3489 int x = 1234; 3490 int y = 5678; 3491 debug ("Flag"); 3492 debug ("X = %d\n", x); 3493 showlist (The first, second, and third items.); 3494 report (x>y, "x is %d but y is %d", x, y); 3495} 3496 3497// Check long long types. 3498#define BIG64 18446744073709551615ull 3499#define BIG32 4294967295ul 3500#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3501#if !BIG_OK 3502 #error "your preprocessor is broken" 3503#endif 3504#if BIG_OK 3505#else 3506 #error "your preprocessor is broken" 3507#endif 3508static long long int bignum = -9223372036854775807LL; 3509static unsigned long long int ubignum = BIG64; 3510 3511struct incomplete_array 3512{ 3513 int datasize; 3514 double data[]; 3515}; 3516 3517struct named_init { 3518 int number; 3519 const wchar_t *name; 3520 double average; 3521}; 3522 3523typedef const char *ccp; 3524 3525static inline int 3526test_restrict (ccp restrict text) 3527{ 3528 // See if C++-style comments work. 3529 // Iterate through items via the restricted pointer. 3530 // Also check for declarations in for loops. 3531 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 3532 continue; 3533 return 0; 3534} 3535 3536// Check varargs and va_copy. 3537static bool 3538test_varargs (const char *format, ...) 3539{ 3540 va_list args; 3541 va_start (args, format); 3542 va_list args_copy; 3543 va_copy (args_copy, args); 3544 3545 const char *str = ""; 3546 int number = 0; 3547 float fnumber = 0; 3548 3549 while (*format) 3550 { 3551 switch (*format++) 3552 { 3553 case '\''s'\'': // string 3554 str = va_arg (args_copy, const char *); 3555 break; 3556 case '\''d'\'': // int 3557 number = va_arg (args_copy, int); 3558 break; 3559 case '\''f'\'': // float 3560 fnumber = va_arg (args_copy, double); 3561 break; 3562 default: 3563 break; 3564 } 3565 } 3566 va_end (args_copy); 3567 va_end (args); 3568 3569 return *str && number && fnumber; 3570} 3571' 3572 3573# Test code for whether the C compiler supports C99 (body of main). 3574ac_c_conftest_c99_main=' 3575 // Check bool. 3576 _Bool success = false; 3577 success |= (argc != 0); 3578 3579 // Check restrict. 3580 if (test_restrict ("String literal") == 0) 3581 success = true; 3582 char *restrict newvar = "Another string"; 3583 3584 // Check varargs. 3585 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 3586 test_varargs_macros (); 3587 3588 // Check flexible array members. 3589 struct incomplete_array *ia = 3590 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3591 ia->datasize = 10; 3592 for (int i = 0; i < ia->datasize; ++i) 3593 ia->data[i] = i * 1.234; 3594 3595 // Check named initializers. 3596 struct named_init ni = { 3597 .number = 34, 3598 .name = L"Test wide string", 3599 .average = 543.34343, 3600 }; 3601 3602 ni.number = 58; 3603 3604 int dynamic_array[ni.number]; 3605 dynamic_array[0] = argv[0][0]; 3606 dynamic_array[ni.number - 1] = 543; 3607 3608 // work around unused variable warnings 3609 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 3610 || dynamic_array[ni.number - 1] != 543); 3611' 3612 3613# Test code for whether the C compiler supports C11 (global declarations) 3614ac_c_conftest_c11_globals=' 3615// Does the compiler advertise C11 conformance? 3616#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 3617# error "Compiler does not advertise C11 conformance" 3618#endif 3619 3620// Check _Alignas. 3621char _Alignas (double) aligned_as_double; 3622char _Alignas (0) no_special_alignment; 3623extern char aligned_as_int; 3624char _Alignas (0) _Alignas (int) aligned_as_int; 3625 3626// Check _Alignof. 3627enum 3628{ 3629 int_alignment = _Alignof (int), 3630 int_array_alignment = _Alignof (int[100]), 3631 char_alignment = _Alignof (char) 3632}; 3633_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 3634 3635// Check _Noreturn. 3636int _Noreturn does_not_return (void) { for (;;) continue; } 3637 3638// Check _Static_assert. 3639struct test_static_assert 3640{ 3641 int x; 3642 _Static_assert (sizeof (int) <= sizeof (long int), 3643 "_Static_assert does not work in struct"); 3644 long int y; 3645}; 3646 3647// Check UTF-8 literals. 3648#define u8 syntax error! 3649char const utf8_literal[] = u8"happens to be ASCII" "another string"; 3650 3651// Check duplicate typedefs. 3652typedef long *long_ptr; 3653typedef long int *long_ptr; 3654typedef long_ptr long_ptr; 3655 3656// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 3657struct anonymous 3658{ 3659 union { 3660 struct { int i; int j; }; 3661 struct { int k; long int l; } w; 3662 }; 3663 int m; 3664} v1; 3665' 3666 3667# Test code for whether the C compiler supports C11 (body of main). 3668ac_c_conftest_c11_main=' 3669 _Static_assert ((offsetof (struct anonymous, i) 3670 == offsetof (struct anonymous, w.k)), 3671 "Anonymous union alignment botch"); 3672 v1.i = 2; 3673 v1.w.k = 5; 3674 ok |= v1.i != 5; 3675' 3676 3677# Test code for whether the C compiler supports C11 (complete). 3678ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 3679${ac_c_conftest_c99_globals} 3680${ac_c_conftest_c11_globals} 3681 3682int 3683main (int argc, char **argv) 3684{ 3685 int ok = 0; 3686 ${ac_c_conftest_c89_main} 3687 ${ac_c_conftest_c99_main} 3688 ${ac_c_conftest_c11_main} 3689 return ok; 3690} 3691" 3692 3693# Test code for whether the C compiler supports C99 (complete). 3694ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 3695${ac_c_conftest_c99_globals} 3696 3697int 3698main (int argc, char **argv) 3699{ 3700 int ok = 0; 3701 ${ac_c_conftest_c89_main} 3702 ${ac_c_conftest_c99_main} 3703 return ok; 3704} 3705" 3706 3707# Test code for whether the C compiler supports C89 (complete). 3708ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 3709 3710int 3711main (int argc, char **argv) 3712{ 3713 int ok = 0; 3714 ${ac_c_conftest_c89_main} 3715 return ok; 3716} 3717" 3718 3719as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 3720as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 3721as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 3722as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 3723as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 3724as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 3725as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 3726as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 3727as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 3728as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 3729 3730# Auxiliary files required by this configure script. 3731ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh" 3732 3733# Locations in which to look for auxiliary files. 3734ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 3735 3736# Search for a directory containing all of the required auxiliary files, 3737# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 3738# If we don't find one directory that contains all the files we need, 3739# we report the set of missing files from the *first* directory in 3740# $ac_aux_dir_candidates and give up. 3741ac_missing_aux_files="" 3742ac_first_candidate=: 3743printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 3744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3745as_found=false 3746for as_dir in $ac_aux_dir_candidates 3747do 3748 IFS=$as_save_IFS 3749 case $as_dir in #((( 3750 '') as_dir=./ ;; 3751 */) ;; 3752 *) as_dir=$as_dir/ ;; 3753 esac 3754 as_found=: 3755 3756 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 3757 ac_aux_dir_found=yes 3758 ac_install_sh= 3759 for ac_aux in $ac_aux_files 3760 do 3761 # As a special case, if "install-sh" is required, that requirement 3762 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 3763 # and $ac_install_sh is set appropriately for whichever one is found. 3764 if test x"$ac_aux" = x"install-sh" 3765 then 3766 if test -f "${as_dir}install-sh"; then 3767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 3768 ac_install_sh="${as_dir}install-sh -c" 3769 elif test -f "${as_dir}install.sh"; then 3770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 3771 ac_install_sh="${as_dir}install.sh -c" 3772 elif test -f "${as_dir}shtool"; then 3773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 3774 ac_install_sh="${as_dir}shtool install -c" 3775 else 3776 ac_aux_dir_found=no 3777 if $ac_first_candidate; then 3778 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 3779 else 3780 break 3781 fi 3782 fi 3783 else 3784 if test -f "${as_dir}${ac_aux}"; then 3785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 3786 else 3787 ac_aux_dir_found=no 3788 if $ac_first_candidate; then 3789 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 3790 else 3791 break 3792 fi 3793 fi 3794 fi 3795 done 3796 if test "$ac_aux_dir_found" = yes; then 3797 ac_aux_dir="$as_dir" 3798 break 3799 fi 3800 ac_first_candidate=false 3801 3802 as_found=false 3803done 3804IFS=$as_save_IFS 3805if $as_found 3806then : 3807 3808else $as_nop 3809 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 3810fi 3811 3812 3813# These three variables are undocumented and unsupported, 3814# and are intended to be withdrawn in a future Autoconf release. 3815# They can cause serious problems if a builder's source tree is in a directory 3816# whose full name contains unusual characters. 3817if test -f "${ac_aux_dir}config.guess"; then 3818 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 3819fi 3820if test -f "${ac_aux_dir}config.sub"; then 3821 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 3822fi 3823if test -f "$ac_aux_dir/configure"; then 3824 ac_configure="$SHELL ${ac_aux_dir}configure" 3825fi 3826 3827# Check that the precious variables saved in the cache have kept the same 3828# value. 3829ac_cache_corrupted=false 3830for ac_var in $ac_precious_vars; do 3831 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3832 eval ac_new_set=\$ac_env_${ac_var}_set 3833 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3834 eval ac_new_val=\$ac_env_${ac_var}_value 3835 case $ac_old_set,$ac_new_set in 3836 set,) 3837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3838printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3839 ac_cache_corrupted=: ;; 3840 ,set) 3841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3842printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3843 ac_cache_corrupted=: ;; 3844 ,);; 3845 *) 3846 if test "x$ac_old_val" != "x$ac_new_val"; then 3847 # differences in whitespace do not lead to failure. 3848 ac_old_val_w=`echo x $ac_old_val` 3849 ac_new_val_w=`echo x $ac_new_val` 3850 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3852printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3853 ac_cache_corrupted=: 3854 else 3855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3856printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3857 eval $ac_var=\$ac_old_val 3858 fi 3859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3860printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 3861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3862printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 3863 fi;; 3864 esac 3865 # Pass precious variables to config.status. 3866 if test "$ac_new_set" = set; then 3867 case $ac_new_val in 3868 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3869 *) ac_arg=$ac_var=$ac_new_val ;; 3870 esac 3871 case " $ac_configure_args " in 3872 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3873 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3874 esac 3875 fi 3876done 3877if $ac_cache_corrupted; then 3878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3879printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3881printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 3882 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 3883 and start over" "$LINENO" 5 3884fi 3885## -------------------- ## 3886## Main body of script. ## 3887## -------------------- ## 3888 3889ac_ext=c 3890ac_cpp='$CPP $CPPFLAGS' 3891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3893ac_compiler_gnu=$ac_cv_c_compiler_gnu 3894 3895 3896RELEASE_DATE="2024-04-12" 3897RELEASE_NAME="Caramel Ice Cream" 3898 3899 3900am__api_version='1.16' 3901 3902 3903 3904 # Find a good install program. We prefer a C program (faster), 3905# so one script is as good as another. But avoid the broken or 3906# incompatible versions: 3907# SysV /etc/install, /usr/sbin/install 3908# SunOS /usr/etc/install 3909# IRIX /sbin/install 3910# AIX /bin/install 3911# AmigaOS /C/install, which installs bootblocks on floppy discs 3912# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3913# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3914# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3915# OS/2's system install, which has a completely different semantic 3916# ./install, which can be erroneously created by make from ./install.sh. 3917# Reject install programs that cannot install multiple files. 3918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3919printf %s "checking for a BSD-compatible install... " >&6; } 3920if test -z "$INSTALL"; then 3921if test ${ac_cv_path_install+y} 3922then : 3923 printf %s "(cached) " >&6 3924else $as_nop 3925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3926for as_dir in $PATH 3927do 3928 IFS=$as_save_IFS 3929 case $as_dir in #((( 3930 '') as_dir=./ ;; 3931 */) ;; 3932 *) as_dir=$as_dir/ ;; 3933 esac 3934 # Account for fact that we put trailing slashes in our PATH walk. 3935case $as_dir in #(( 3936 ./ | /[cC]/* | \ 3937 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3938 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3939 /usr/ucb/* ) ;; 3940 *) 3941 # OSF1 and SCO ODT 3.0 have their own names for install. 3942 # Don't use installbsd from OSF since it installs stuff as root 3943 # by default. 3944 for ac_prog in ginstall scoinst install; do 3945 for ac_exec_ext in '' $ac_executable_extensions; do 3946 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3947 if test $ac_prog = install && 3948 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3949 # AIX install. It has an incompatible calling convention. 3950 : 3951 elif test $ac_prog = install && 3952 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3953 # program-specific install script used by HP pwplus--don't use. 3954 : 3955 else 3956 rm -rf conftest.one conftest.two conftest.dir 3957 echo one > conftest.one 3958 echo two > conftest.two 3959 mkdir conftest.dir 3960 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3961 test -s conftest.one && test -s conftest.two && 3962 test -s conftest.dir/conftest.one && 3963 test -s conftest.dir/conftest.two 3964 then 3965 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3966 break 3 3967 fi 3968 fi 3969 fi 3970 done 3971 done 3972 ;; 3973esac 3974 3975 done 3976IFS=$as_save_IFS 3977 3978rm -rf conftest.one conftest.two conftest.dir 3979 3980fi 3981 if test ${ac_cv_path_install+y}; then 3982 INSTALL=$ac_cv_path_install 3983 else 3984 # As a last resort, use the slow shell script. Don't cache a 3985 # value for INSTALL within a source directory, because that will 3986 # break other packages using the cache if that directory is 3987 # removed, or if the value is a relative name. 3988 INSTALL=$ac_install_sh 3989 fi 3990fi 3991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3992printf "%s\n" "$INSTALL" >&6; } 3993 3994# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3995# It thinks the first close brace ends the variable substitution. 3996test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3997 3998test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3999 4000test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4001 4002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4003printf %s "checking whether build environment is sane... " >&6; } 4004# Reject unsafe characters in $srcdir or the absolute working directory 4005# name. Accept space and tab only in the latter. 4006am_lf=' 4007' 4008case `pwd` in 4009 *[\\\"\#\$\&\'\`$am_lf]*) 4010 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4011esac 4012case $srcdir in 4013 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4014 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4015esac 4016 4017# Do 'set' in a subshell so we don't clobber the current shell's 4018# arguments. Must try -L first in case configure is actually a 4019# symlink; some systems play weird games with the mod time of symlinks 4020# (eg FreeBSD returns the mod time of the symlink's containing 4021# directory). 4022if ( 4023 am_has_slept=no 4024 for am_try in 1 2; do 4025 echo "timestamp, slept: $am_has_slept" > conftest.file 4026 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4027 if test "$*" = "X"; then 4028 # -L didn't work. 4029 set X `ls -t "$srcdir/configure" conftest.file` 4030 fi 4031 if test "$*" != "X $srcdir/configure conftest.file" \ 4032 && test "$*" != "X conftest.file $srcdir/configure"; then 4033 4034 # If neither matched, then we have a broken ls. This can happen 4035 # if, for instance, CONFIG_SHELL is bash and it inherits a 4036 # broken ls alias from the environment. This has actually 4037 # happened. Such a system could not be considered "sane". 4038 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 4039 alias in your environment" "$LINENO" 5 4040 fi 4041 if test "$2" = conftest.file || test $am_try -eq 2; then 4042 break 4043 fi 4044 # Just in case. 4045 sleep 1 4046 am_has_slept=yes 4047 done 4048 test "$2" = conftest.file 4049 ) 4050then 4051 # Ok. 4052 : 4053else 4054 as_fn_error $? "newly created file is older than distributed files! 4055Check your system clock" "$LINENO" 5 4056fi 4057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4058printf "%s\n" "yes" >&6; } 4059# If we didn't sleep, we still need to ensure time stamps of config.status and 4060# generated files are strictly newer. 4061am_sleep_pid= 4062if grep 'slept: no' conftest.file >/dev/null 2>&1; then 4063 ( sleep 1 ) & 4064 am_sleep_pid=$! 4065fi 4066 4067rm -f conftest.file 4068 4069test "$program_prefix" != NONE && 4070 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4071# Use a double $ so make ignores it. 4072test "$program_suffix" != NONE && 4073 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4074# Double any \ or $. 4075# By default was `s,x,x', remove it if useless. 4076ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4077program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 4078 4079 4080# Expand $ac_aux_dir to an absolute path. 4081am_aux_dir=`cd "$ac_aux_dir" && pwd` 4082 4083 4084 if test x"${MISSING+set}" != xset; then 4085 MISSING="\${SHELL} '$am_aux_dir/missing'" 4086fi 4087# Use eval to expand $SHELL 4088if eval "$MISSING --is-lightweight"; then 4089 am_missing_run="$MISSING " 4090else 4091 am_missing_run= 4092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4093printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4094fi 4095 4096if test x"${install_sh+set}" != xset; then 4097 case $am_aux_dir in 4098 *\ * | *\ *) 4099 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4100 *) 4101 install_sh="\${SHELL} $am_aux_dir/install-sh" 4102 esac 4103fi 4104 4105# Installed binaries are usually stripped using 'strip' when the user 4106# run "make install-strip". However 'strip' might not be the right 4107# tool to use in cross-compilation environments, therefore Automake 4108# will honor the 'STRIP' environment variable to overrule this program. 4109if test "$cross_compiling" != no; then 4110 if test -n "$ac_tool_prefix"; then 4111 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4112set dummy ${ac_tool_prefix}strip; ac_word=$2 4113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4114printf %s "checking for $ac_word... " >&6; } 4115if test ${ac_cv_prog_STRIP+y} 4116then : 4117 printf %s "(cached) " >&6 4118else $as_nop 4119 if test -n "$STRIP"; then 4120 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4121else 4122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4123for as_dir in $PATH 4124do 4125 IFS=$as_save_IFS 4126 case $as_dir in #((( 4127 '') as_dir=./ ;; 4128 */) ;; 4129 *) as_dir=$as_dir/ ;; 4130 esac 4131 for ac_exec_ext in '' $ac_executable_extensions; do 4132 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4133 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4135 break 2 4136 fi 4137done 4138 done 4139IFS=$as_save_IFS 4140 4141fi 4142fi 4143STRIP=$ac_cv_prog_STRIP 4144if test -n "$STRIP"; then 4145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4146printf "%s\n" "$STRIP" >&6; } 4147else 4148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4149printf "%s\n" "no" >&6; } 4150fi 4151 4152 4153fi 4154if test -z "$ac_cv_prog_STRIP"; then 4155 ac_ct_STRIP=$STRIP 4156 # Extract the first word of "strip", so it can be a program name with args. 4157set dummy strip; ac_word=$2 4158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4159printf %s "checking for $ac_word... " >&6; } 4160if test ${ac_cv_prog_ac_ct_STRIP+y} 4161then : 4162 printf %s "(cached) " >&6 4163else $as_nop 4164 if test -n "$ac_ct_STRIP"; then 4165 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4166else 4167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4168for as_dir in $PATH 4169do 4170 IFS=$as_save_IFS 4171 case $as_dir in #((( 4172 '') as_dir=./ ;; 4173 */) ;; 4174 *) as_dir=$as_dir/ ;; 4175 esac 4176 for ac_exec_ext in '' $ac_executable_extensions; do 4177 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4178 ac_cv_prog_ac_ct_STRIP="strip" 4179 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4180 break 2 4181 fi 4182done 4183 done 4184IFS=$as_save_IFS 4185 4186fi 4187fi 4188ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4189if test -n "$ac_ct_STRIP"; then 4190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4191printf "%s\n" "$ac_ct_STRIP" >&6; } 4192else 4193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4194printf "%s\n" "no" >&6; } 4195fi 4196 4197 if test "x$ac_ct_STRIP" = x; then 4198 STRIP=":" 4199 else 4200 case $cross_compiling:$ac_tool_warned in 4201yes:) 4202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4203printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4204ac_tool_warned=yes ;; 4205esac 4206 STRIP=$ac_ct_STRIP 4207 fi 4208else 4209 STRIP="$ac_cv_prog_STRIP" 4210fi 4211 4212fi 4213INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4214 4215 4216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4217printf %s "checking for a race-free mkdir -p... " >&6; } 4218if test -z "$MKDIR_P"; then 4219 if test ${ac_cv_path_mkdir+y} 4220then : 4221 printf %s "(cached) " >&6 4222else $as_nop 4223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4224for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4225do 4226 IFS=$as_save_IFS 4227 case $as_dir in #((( 4228 '') as_dir=./ ;; 4229 */) ;; 4230 *) as_dir=$as_dir/ ;; 4231 esac 4232 for ac_prog in mkdir gmkdir; do 4233 for ac_exec_ext in '' $ac_executable_extensions; do 4234 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4235 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4236 'mkdir ('*'coreutils) '* | \ 4237 'BusyBox '* | \ 4238 'mkdir (fileutils) '4.1*) 4239 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4240 break 3;; 4241 esac 4242 done 4243 done 4244 done 4245IFS=$as_save_IFS 4246 4247fi 4248 4249 test -d ./--version && rmdir ./--version 4250 if test ${ac_cv_path_mkdir+y}; then 4251 MKDIR_P="$ac_cv_path_mkdir -p" 4252 else 4253 # As a last resort, use the slow shell script. Don't cache a 4254 # value for MKDIR_P within a source directory, because that will 4255 # break other packages using the cache if that directory is 4256 # removed, or if the value is a relative name. 4257 MKDIR_P="$ac_install_sh -d" 4258 fi 4259fi 4260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4261printf "%s\n" "$MKDIR_P" >&6; } 4262 4263for ac_prog in gawk mawk nawk awk 4264do 4265 # Extract the first word of "$ac_prog", so it can be a program name with args. 4266set dummy $ac_prog; ac_word=$2 4267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4268printf %s "checking for $ac_word... " >&6; } 4269if test ${ac_cv_prog_AWK+y} 4270then : 4271 printf %s "(cached) " >&6 4272else $as_nop 4273 if test -n "$AWK"; then 4274 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4275else 4276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4277for as_dir in $PATH 4278do 4279 IFS=$as_save_IFS 4280 case $as_dir in #((( 4281 '') as_dir=./ ;; 4282 */) ;; 4283 *) as_dir=$as_dir/ ;; 4284 esac 4285 for ac_exec_ext in '' $ac_executable_extensions; do 4286 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4287 ac_cv_prog_AWK="$ac_prog" 4288 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4289 break 2 4290 fi 4291done 4292 done 4293IFS=$as_save_IFS 4294 4295fi 4296fi 4297AWK=$ac_cv_prog_AWK 4298if test -n "$AWK"; then 4299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4300printf "%s\n" "$AWK" >&6; } 4301else 4302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4303printf "%s\n" "no" >&6; } 4304fi 4305 4306 4307 test -n "$AWK" && break 4308done 4309 4310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4311printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4312set x ${MAKE-make} 4313ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4314if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4315then : 4316 printf %s "(cached) " >&6 4317else $as_nop 4318 cat >conftest.make <<\_ACEOF 4319SHELL = /bin/sh 4320all: 4321 @echo '@@@%%%=$(MAKE)=@@@%%%' 4322_ACEOF 4323# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4324case `${MAKE-make} -f conftest.make 2>/dev/null` in 4325 *@@@%%%=?*=@@@%%%*) 4326 eval ac_cv_prog_make_${ac_make}_set=yes;; 4327 *) 4328 eval ac_cv_prog_make_${ac_make}_set=no;; 4329esac 4330rm -f conftest.make 4331fi 4332if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4334printf "%s\n" "yes" >&6; } 4335 SET_MAKE= 4336else 4337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4338printf "%s\n" "no" >&6; } 4339 SET_MAKE="MAKE=${MAKE-make}" 4340fi 4341 4342rm -rf .tst 2>/dev/null 4343mkdir .tst 2>/dev/null 4344if test -d .tst; then 4345 am__leading_dot=. 4346else 4347 am__leading_dot=_ 4348fi 4349rmdir .tst 2>/dev/null 4350 4351# Check whether --enable-silent-rules was given. 4352if test ${enable_silent_rules+y} 4353then : 4354 enableval=$enable_silent_rules; 4355fi 4356 4357case $enable_silent_rules in # ((( 4358 yes) AM_DEFAULT_VERBOSITY=0;; 4359 no) AM_DEFAULT_VERBOSITY=1;; 4360 *) AM_DEFAULT_VERBOSITY=1;; 4361esac 4362am_make=${MAKE-make} 4363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4364printf %s "checking whether $am_make supports nested variables... " >&6; } 4365if test ${am_cv_make_support_nested_variables+y} 4366then : 4367 printf %s "(cached) " >&6 4368else $as_nop 4369 if printf "%s\n" 'TRUE=$(BAR$(V)) 4370BAR0=false 4371BAR1=true 4372V=1 4373am__doit: 4374 @$(TRUE) 4375.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4376 am_cv_make_support_nested_variables=yes 4377else 4378 am_cv_make_support_nested_variables=no 4379fi 4380fi 4381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4382printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4383if test $am_cv_make_support_nested_variables = yes; then 4384 AM_V='$(V)' 4385 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4386else 4387 AM_V=$AM_DEFAULT_VERBOSITY 4388 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4389fi 4390AM_BACKSLASH='\' 4391 4392if test "`cd $srcdir && pwd`" != "`pwd`"; then 4393 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4394 # is not polluted with repeated "-I." 4395 am__isrc=' -I$(srcdir)' 4396 # test to see if srcdir already configured 4397 if test -f $srcdir/config.status; then 4398 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4399 fi 4400fi 4401 4402# test whether we have cygpath 4403if test -z "$CYGPATH_W"; then 4404 if (cygpath --version) >/dev/null 2>/dev/null; then 4405 CYGPATH_W='cygpath -w' 4406 else 4407 CYGPATH_W=echo 4408 fi 4409fi 4410 4411 4412# Define the identity of the package. 4413 PACKAGE='xorg-server' 4414 VERSION='21.1.13' 4415 4416 4417printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4418 4419 4420printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4421 4422# Some tools Automake needs. 4423 4424ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4425 4426 4427AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4428 4429 4430AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4431 4432 4433AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4434 4435 4436MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4437 4438# For better backward compatibility. To be removed once Automake 1.9.x 4439# dies out for good. For more background, see: 4440# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4441# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4442mkdir_p='$(MKDIR_P)' 4443 4444# We need awk for the "check" target (and possibly the TAP driver). The 4445# system "awk" is bad on some platforms. 4446# Always define AMTAR for backward compatibility. Yes, it's still used 4447# in the wild :-( We should find a proper way to deprecate it ... 4448AMTAR='$${TAR-tar}' 4449 4450 4451# We'll loop over all known methods to create a tar archive until one works. 4452_am_tools='gnutar pax cpio none' 4453 4454am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4455 4456 4457 4458 4459 4460# Variables for tags utilities; see am/tags.am 4461if test -z "$CTAGS"; then 4462 CTAGS=ctags 4463fi 4464 4465if test -z "$ETAGS"; then 4466 ETAGS=etags 4467fi 4468 4469if test -z "$CSCOPE"; then 4470 CSCOPE=cscope 4471fi 4472 4473 4474 4475# POSIX will say in a future version that running "rm -f" with no argument 4476# is OK; and we want to be able to make that assumption in our Makefile 4477# recipes. So use an aggressive probe to check that the usage we want is 4478# actually supported "in the wild" to an acceptable degree. 4479# See automake bug#10828. 4480# To make any issue more visible, cause the running configure to be aborted 4481# by default if the 'rm' program in use doesn't match our expectations; the 4482# user can still override this though. 4483if rm -f && rm -fr && rm -rf; then : OK; else 4484 cat >&2 <<'END' 4485Oops! 4486 4487Your 'rm' program seems unable to run without file operands specified 4488on the command line, even when the '-f' option is present. This is contrary 4489to the behaviour of most rm programs out there, and not conforming with 4490the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4491 4492Please tell bug-automake@gnu.org about your system, including the value 4493of your $PATH and any error possibly output before this message. This 4494can help us improve future automake versions. 4495 4496END 4497 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4498 echo 'Configuration will proceed anyway, since you have set the' >&2 4499 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4500 echo >&2 4501 else 4502 cat >&2 <<'END' 4503Aborting the configuration process, to ensure you take notice of the issue. 4504 4505You can download and install GNU coreutils to get an 'rm' implementation 4506that behaves properly: <https://www.gnu.org/software/coreutils/>. 4507 4508If you want to complete the configuration process using your problematic 4509'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4510to "yes", and re-run configure. 4511 4512END 4513 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4514 fi 4515fi 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526DEPDIR="${am__leading_dot}deps" 4527 4528ac_config_commands="$ac_config_commands depfiles" 4529 4530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4531printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4532cat > confinc.mk << 'END' 4533am__doit: 4534 @echo this is the am__doit target >confinc.out 4535.PHONY: am__doit 4536END 4537am__include="#" 4538am__quote= 4539# BSD make does it like this. 4540echo '.include "confinc.mk" # ignored' > confmf.BSD 4541# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4542echo 'include confinc.mk # ignored' > confmf.GNU 4543_am_result=no 4544for s in GNU BSD; do 4545 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4546 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4547 ac_status=$? 4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4549 (exit $ac_status); } 4550 case $?:`cat confinc.out 2>/dev/null` in #( 4551 '0:this is the am__doit target') : 4552 case $s in #( 4553 BSD) : 4554 am__include='.include' am__quote='"' ;; #( 4555 *) : 4556 am__include='include' am__quote='' ;; 4557esac ;; #( 4558 *) : 4559 ;; 4560esac 4561 if test "$am__include" != "#"; then 4562 _am_result="yes ($s style)" 4563 break 4564 fi 4565done 4566rm -f confinc.* confmf.* 4567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4568printf "%s\n" "${_am_result}" >&6; } 4569 4570# Check whether --enable-dependency-tracking was given. 4571if test ${enable_dependency_tracking+y} 4572then : 4573 enableval=$enable_dependency_tracking; 4574fi 4575 4576if test "x$enable_dependency_tracking" != xno; then 4577 am_depcomp="$ac_aux_dir/depcomp" 4578 AMDEPBACKSLASH='\' 4579 am__nodep='_no' 4580fi 4581 if test "x$enable_dependency_tracking" != xno; then 4582 AMDEP_TRUE= 4583 AMDEP_FALSE='#' 4584else 4585 AMDEP_TRUE='#' 4586 AMDEP_FALSE= 4587fi 4588 4589 4590ac_ext=c 4591ac_cpp='$CPP $CPPFLAGS' 4592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4594ac_compiler_gnu=$ac_cv_c_compiler_gnu 4595if test -n "$ac_tool_prefix"; then 4596 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4597set dummy ${ac_tool_prefix}gcc; ac_word=$2 4598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4599printf %s "checking for $ac_word... " >&6; } 4600if test ${ac_cv_prog_CC+y} 4601then : 4602 printf %s "(cached) " >&6 4603else $as_nop 4604 if test -n "$CC"; then 4605 ac_cv_prog_CC="$CC" # Let the user override the test. 4606else 4607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4608for as_dir in $PATH 4609do 4610 IFS=$as_save_IFS 4611 case $as_dir in #((( 4612 '') as_dir=./ ;; 4613 */) ;; 4614 *) as_dir=$as_dir/ ;; 4615 esac 4616 for ac_exec_ext in '' $ac_executable_extensions; do 4617 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4618 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4620 break 2 4621 fi 4622done 4623 done 4624IFS=$as_save_IFS 4625 4626fi 4627fi 4628CC=$ac_cv_prog_CC 4629if test -n "$CC"; then 4630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4631printf "%s\n" "$CC" >&6; } 4632else 4633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4634printf "%s\n" "no" >&6; } 4635fi 4636 4637 4638fi 4639if test -z "$ac_cv_prog_CC"; then 4640 ac_ct_CC=$CC 4641 # Extract the first word of "gcc", so it can be a program name with args. 4642set dummy gcc; ac_word=$2 4643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4644printf %s "checking for $ac_word... " >&6; } 4645if test ${ac_cv_prog_ac_ct_CC+y} 4646then : 4647 printf %s "(cached) " >&6 4648else $as_nop 4649 if test -n "$ac_ct_CC"; then 4650 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4651else 4652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4653for as_dir in $PATH 4654do 4655 IFS=$as_save_IFS 4656 case $as_dir in #((( 4657 '') as_dir=./ ;; 4658 */) ;; 4659 *) as_dir=$as_dir/ ;; 4660 esac 4661 for ac_exec_ext in '' $ac_executable_extensions; do 4662 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4663 ac_cv_prog_ac_ct_CC="gcc" 4664 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4665 break 2 4666 fi 4667done 4668 done 4669IFS=$as_save_IFS 4670 4671fi 4672fi 4673ac_ct_CC=$ac_cv_prog_ac_ct_CC 4674if test -n "$ac_ct_CC"; then 4675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4676printf "%s\n" "$ac_ct_CC" >&6; } 4677else 4678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4679printf "%s\n" "no" >&6; } 4680fi 4681 4682 if test "x$ac_ct_CC" = x; then 4683 CC="" 4684 else 4685 case $cross_compiling:$ac_tool_warned in 4686yes:) 4687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4688printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4689ac_tool_warned=yes ;; 4690esac 4691 CC=$ac_ct_CC 4692 fi 4693else 4694 CC="$ac_cv_prog_CC" 4695fi 4696 4697if test -z "$CC"; then 4698 if test -n "$ac_tool_prefix"; then 4699 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4700set dummy ${ac_tool_prefix}cc; ac_word=$2 4701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4702printf %s "checking for $ac_word... " >&6; } 4703if test ${ac_cv_prog_CC+y} 4704then : 4705 printf %s "(cached) " >&6 4706else $as_nop 4707 if test -n "$CC"; then 4708 ac_cv_prog_CC="$CC" # Let the user override the test. 4709else 4710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4711for as_dir in $PATH 4712do 4713 IFS=$as_save_IFS 4714 case $as_dir in #((( 4715 '') as_dir=./ ;; 4716 */) ;; 4717 *) as_dir=$as_dir/ ;; 4718 esac 4719 for ac_exec_ext in '' $ac_executable_extensions; do 4720 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4721 ac_cv_prog_CC="${ac_tool_prefix}cc" 4722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4723 break 2 4724 fi 4725done 4726 done 4727IFS=$as_save_IFS 4728 4729fi 4730fi 4731CC=$ac_cv_prog_CC 4732if test -n "$CC"; then 4733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4734printf "%s\n" "$CC" >&6; } 4735else 4736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4737printf "%s\n" "no" >&6; } 4738fi 4739 4740 4741 fi 4742fi 4743if test -z "$CC"; then 4744 # Extract the first word of "cc", so it can be a program name with args. 4745set dummy cc; ac_word=$2 4746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4747printf %s "checking for $ac_word... " >&6; } 4748if test ${ac_cv_prog_CC+y} 4749then : 4750 printf %s "(cached) " >&6 4751else $as_nop 4752 if test -n "$CC"; then 4753 ac_cv_prog_CC="$CC" # Let the user override the test. 4754else 4755 ac_prog_rejected=no 4756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4757for as_dir in $PATH 4758do 4759 IFS=$as_save_IFS 4760 case $as_dir in #((( 4761 '') as_dir=./ ;; 4762 */) ;; 4763 *) as_dir=$as_dir/ ;; 4764 esac 4765 for ac_exec_ext in '' $ac_executable_extensions; do 4766 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4767 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4768 ac_prog_rejected=yes 4769 continue 4770 fi 4771 ac_cv_prog_CC="cc" 4772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4773 break 2 4774 fi 4775done 4776 done 4777IFS=$as_save_IFS 4778 4779if test $ac_prog_rejected = yes; then 4780 # We found a bogon in the path, so make sure we never use it. 4781 set dummy $ac_cv_prog_CC 4782 shift 4783 if test $# != 0; then 4784 # We chose a different compiler from the bogus one. 4785 # However, it has the same basename, so the bogon will be chosen 4786 # first if we set CC to just the basename; use the full file name. 4787 shift 4788 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 4789 fi 4790fi 4791fi 4792fi 4793CC=$ac_cv_prog_CC 4794if test -n "$CC"; then 4795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4796printf "%s\n" "$CC" >&6; } 4797else 4798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4799printf "%s\n" "no" >&6; } 4800fi 4801 4802 4803fi 4804if test -z "$CC"; then 4805 if test -n "$ac_tool_prefix"; then 4806 for ac_prog in cl.exe 4807 do 4808 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4809set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4811printf %s "checking for $ac_word... " >&6; } 4812if test ${ac_cv_prog_CC+y} 4813then : 4814 printf %s "(cached) " >&6 4815else $as_nop 4816 if test -n "$CC"; then 4817 ac_cv_prog_CC="$CC" # Let the user override the test. 4818else 4819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4820for as_dir in $PATH 4821do 4822 IFS=$as_save_IFS 4823 case $as_dir in #((( 4824 '') as_dir=./ ;; 4825 */) ;; 4826 *) as_dir=$as_dir/ ;; 4827 esac 4828 for ac_exec_ext in '' $ac_executable_extensions; do 4829 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4830 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4832 break 2 4833 fi 4834done 4835 done 4836IFS=$as_save_IFS 4837 4838fi 4839fi 4840CC=$ac_cv_prog_CC 4841if test -n "$CC"; then 4842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4843printf "%s\n" "$CC" >&6; } 4844else 4845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4846printf "%s\n" "no" >&6; } 4847fi 4848 4849 4850 test -n "$CC" && break 4851 done 4852fi 4853if test -z "$CC"; then 4854 ac_ct_CC=$CC 4855 for ac_prog in cl.exe 4856do 4857 # Extract the first word of "$ac_prog", so it can be a program name with args. 4858set dummy $ac_prog; ac_word=$2 4859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4860printf %s "checking for $ac_word... " >&6; } 4861if test ${ac_cv_prog_ac_ct_CC+y} 4862then : 4863 printf %s "(cached) " >&6 4864else $as_nop 4865 if test -n "$ac_ct_CC"; then 4866 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4867else 4868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4869for as_dir in $PATH 4870do 4871 IFS=$as_save_IFS 4872 case $as_dir in #((( 4873 '') as_dir=./ ;; 4874 */) ;; 4875 *) as_dir=$as_dir/ ;; 4876 esac 4877 for ac_exec_ext in '' $ac_executable_extensions; do 4878 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4879 ac_cv_prog_ac_ct_CC="$ac_prog" 4880 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4881 break 2 4882 fi 4883done 4884 done 4885IFS=$as_save_IFS 4886 4887fi 4888fi 4889ac_ct_CC=$ac_cv_prog_ac_ct_CC 4890if test -n "$ac_ct_CC"; then 4891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4892printf "%s\n" "$ac_ct_CC" >&6; } 4893else 4894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4895printf "%s\n" "no" >&6; } 4896fi 4897 4898 4899 test -n "$ac_ct_CC" && break 4900done 4901 4902 if test "x$ac_ct_CC" = x; then 4903 CC="" 4904 else 4905 case $cross_compiling:$ac_tool_warned in 4906yes:) 4907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4908printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4909ac_tool_warned=yes ;; 4910esac 4911 CC=$ac_ct_CC 4912 fi 4913fi 4914 4915fi 4916if test -z "$CC"; then 4917 if test -n "$ac_tool_prefix"; then 4918 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 4919set dummy ${ac_tool_prefix}clang; ac_word=$2 4920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4921printf %s "checking for $ac_word... " >&6; } 4922if test ${ac_cv_prog_CC+y} 4923then : 4924 printf %s "(cached) " >&6 4925else $as_nop 4926 if test -n "$CC"; then 4927 ac_cv_prog_CC="$CC" # Let the user override the test. 4928else 4929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4930for as_dir in $PATH 4931do 4932 IFS=$as_save_IFS 4933 case $as_dir in #((( 4934 '') as_dir=./ ;; 4935 */) ;; 4936 *) as_dir=$as_dir/ ;; 4937 esac 4938 for ac_exec_ext in '' $ac_executable_extensions; do 4939 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4940 ac_cv_prog_CC="${ac_tool_prefix}clang" 4941 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4942 break 2 4943 fi 4944done 4945 done 4946IFS=$as_save_IFS 4947 4948fi 4949fi 4950CC=$ac_cv_prog_CC 4951if test -n "$CC"; then 4952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4953printf "%s\n" "$CC" >&6; } 4954else 4955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4956printf "%s\n" "no" >&6; } 4957fi 4958 4959 4960fi 4961if test -z "$ac_cv_prog_CC"; then 4962 ac_ct_CC=$CC 4963 # Extract the first word of "clang", so it can be a program name with args. 4964set dummy clang; ac_word=$2 4965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4966printf %s "checking for $ac_word... " >&6; } 4967if test ${ac_cv_prog_ac_ct_CC+y} 4968then : 4969 printf %s "(cached) " >&6 4970else $as_nop 4971 if test -n "$ac_ct_CC"; then 4972 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4973else 4974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4975for as_dir in $PATH 4976do 4977 IFS=$as_save_IFS 4978 case $as_dir in #((( 4979 '') as_dir=./ ;; 4980 */) ;; 4981 *) as_dir=$as_dir/ ;; 4982 esac 4983 for ac_exec_ext in '' $ac_executable_extensions; do 4984 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4985 ac_cv_prog_ac_ct_CC="clang" 4986 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4987 break 2 4988 fi 4989done 4990 done 4991IFS=$as_save_IFS 4992 4993fi 4994fi 4995ac_ct_CC=$ac_cv_prog_ac_ct_CC 4996if test -n "$ac_ct_CC"; then 4997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4998printf "%s\n" "$ac_ct_CC" >&6; } 4999else 5000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5001printf "%s\n" "no" >&6; } 5002fi 5003 5004 if test "x$ac_ct_CC" = x; then 5005 CC="" 5006 else 5007 case $cross_compiling:$ac_tool_warned in 5008yes:) 5009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5010printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5011ac_tool_warned=yes ;; 5012esac 5013 CC=$ac_ct_CC 5014 fi 5015else 5016 CC="$ac_cv_prog_CC" 5017fi 5018 5019fi 5020 5021 5022test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5023printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5024as_fn_error $? "no acceptable C compiler found in \$PATH 5025See \`config.log' for more details" "$LINENO" 5; } 5026 5027# Provide some information about the compiler. 5028printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5029set X $ac_compile 5030ac_compiler=$2 5031for ac_option in --version -v -V -qversion -version; do 5032 { { ac_try="$ac_compiler $ac_option >&5" 5033case "(($ac_try" in 5034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5035 *) ac_try_echo=$ac_try;; 5036esac 5037eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5038printf "%s\n" "$ac_try_echo"; } >&5 5039 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5040 ac_status=$? 5041 if test -s conftest.err; then 5042 sed '10a\ 5043... rest of stderr output deleted ... 5044 10q' conftest.err >conftest.er1 5045 cat conftest.er1 >&5 5046 fi 5047 rm -f conftest.er1 conftest.err 5048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5049 test $ac_status = 0; } 5050done 5051 5052cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5053/* end confdefs.h. */ 5054 5055int 5056main (void) 5057{ 5058 5059 ; 5060 return 0; 5061} 5062_ACEOF 5063ac_clean_files_save=$ac_clean_files 5064ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 5065# Try to create an executable without -o first, disregard a.out. 5066# It will help us diagnose broken compilers, and finding out an intuition 5067# of exeext. 5068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 5069printf %s "checking whether the C compiler works... " >&6; } 5070ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 5071 5072# The possible output files: 5073ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 5074 5075ac_rmfiles= 5076for ac_file in $ac_files 5077do 5078 case $ac_file in 5079 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 5080 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 5081 esac 5082done 5083rm -f $ac_rmfiles 5084 5085if { { ac_try="$ac_link_default" 5086case "(($ac_try" in 5087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5088 *) ac_try_echo=$ac_try;; 5089esac 5090eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5091printf "%s\n" "$ac_try_echo"; } >&5 5092 (eval "$ac_link_default") 2>&5 5093 ac_status=$? 5094 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5095 test $ac_status = 0; } 5096then : 5097 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 5098# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 5099# in a Makefile. We should not override ac_cv_exeext if it was cached, 5100# so that the user can short-circuit this test for compilers unknown to 5101# Autoconf. 5102for ac_file in $ac_files '' 5103do 5104 test -f "$ac_file" || continue 5105 case $ac_file in 5106 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 5107 ;; 5108 [ab].out ) 5109 # We found the default executable, but exeext='' is most 5110 # certainly right. 5111 break;; 5112 *.* ) 5113 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 5114 then :; else 5115 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5116 fi 5117 # We set ac_cv_exeext here because the later test for it is not 5118 # safe: cross compilers may not add the suffix if given an `-o' 5119 # argument, so we may need to know it at that point already. 5120 # Even if this section looks crufty: it has the advantage of 5121 # actually working. 5122 break;; 5123 * ) 5124 break;; 5125 esac 5126done 5127test "$ac_cv_exeext" = no && ac_cv_exeext= 5128 5129else $as_nop 5130 ac_file='' 5131fi 5132if test -z "$ac_file" 5133then : 5134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5135printf "%s\n" "no" >&6; } 5136printf "%s\n" "$as_me: failed program was:" >&5 5137sed 's/^/| /' conftest.$ac_ext >&5 5138 5139{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5140printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5141as_fn_error 77 "C compiler cannot create executables 5142See \`config.log' for more details" "$LINENO" 5; } 5143else $as_nop 5144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5145printf "%s\n" "yes" >&6; } 5146fi 5147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 5148printf %s "checking for C compiler default output file name... " >&6; } 5149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 5150printf "%s\n" "$ac_file" >&6; } 5151ac_exeext=$ac_cv_exeext 5152 5153rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 5154ac_clean_files=$ac_clean_files_save 5155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 5156printf %s "checking for suffix of executables... " >&6; } 5157if { { ac_try="$ac_link" 5158case "(($ac_try" in 5159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5160 *) ac_try_echo=$ac_try;; 5161esac 5162eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5163printf "%s\n" "$ac_try_echo"; } >&5 5164 (eval "$ac_link") 2>&5 5165 ac_status=$? 5166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5167 test $ac_status = 0; } 5168then : 5169 # If both `conftest.exe' and `conftest' are `present' (well, observable) 5170# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 5171# work properly (i.e., refer to `conftest.exe'), while it won't with 5172# `rm'. 5173for ac_file in conftest.exe conftest conftest.*; do 5174 test -f "$ac_file" || continue 5175 case $ac_file in 5176 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 5177 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5178 break;; 5179 * ) break;; 5180 esac 5181done 5182else $as_nop 5183 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5184printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5185as_fn_error $? "cannot compute suffix of executables: cannot compile and link 5186See \`config.log' for more details" "$LINENO" 5; } 5187fi 5188rm -f conftest conftest$ac_cv_exeext 5189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 5190printf "%s\n" "$ac_cv_exeext" >&6; } 5191 5192rm -f conftest.$ac_ext 5193EXEEXT=$ac_cv_exeext 5194ac_exeext=$EXEEXT 5195cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5196/* end confdefs.h. */ 5197#include <stdio.h> 5198int 5199main (void) 5200{ 5201FILE *f = fopen ("conftest.out", "w"); 5202 return ferror (f) || fclose (f) != 0; 5203 5204 ; 5205 return 0; 5206} 5207_ACEOF 5208ac_clean_files="$ac_clean_files conftest.out" 5209# Check that the compiler produces executables we can run. If not, either 5210# the compiler is broken, or we cross compile. 5211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 5212printf %s "checking whether we are cross compiling... " >&6; } 5213if test "$cross_compiling" != yes; then 5214 { { ac_try="$ac_link" 5215case "(($ac_try" in 5216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5217 *) ac_try_echo=$ac_try;; 5218esac 5219eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5220printf "%s\n" "$ac_try_echo"; } >&5 5221 (eval "$ac_link") 2>&5 5222 ac_status=$? 5223 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5224 test $ac_status = 0; } 5225 if { ac_try='./conftest$ac_cv_exeext' 5226 { { case "(($ac_try" in 5227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5228 *) ac_try_echo=$ac_try;; 5229esac 5230eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5231printf "%s\n" "$ac_try_echo"; } >&5 5232 (eval "$ac_try") 2>&5 5233 ac_status=$? 5234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5235 test $ac_status = 0; }; }; then 5236 cross_compiling=no 5237 else 5238 if test "$cross_compiling" = maybe; then 5239 cross_compiling=yes 5240 else 5241 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5242printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5243as_fn_error 77 "cannot run C compiled programs. 5244If you meant to cross compile, use \`--host'. 5245See \`config.log' for more details" "$LINENO" 5; } 5246 fi 5247 fi 5248fi 5249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 5250printf "%s\n" "$cross_compiling" >&6; } 5251 5252rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 5253ac_clean_files=$ac_clean_files_save 5254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 5255printf %s "checking for suffix of object files... " >&6; } 5256if test ${ac_cv_objext+y} 5257then : 5258 printf %s "(cached) " >&6 5259else $as_nop 5260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5261/* end confdefs.h. */ 5262 5263int 5264main (void) 5265{ 5266 5267 ; 5268 return 0; 5269} 5270_ACEOF 5271rm -f conftest.o conftest.obj 5272if { { ac_try="$ac_compile" 5273case "(($ac_try" in 5274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5275 *) ac_try_echo=$ac_try;; 5276esac 5277eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5278printf "%s\n" "$ac_try_echo"; } >&5 5279 (eval "$ac_compile") 2>&5 5280 ac_status=$? 5281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5282 test $ac_status = 0; } 5283then : 5284 for ac_file in conftest.o conftest.obj conftest.*; do 5285 test -f "$ac_file" || continue; 5286 case $ac_file in 5287 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 5288 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 5289 break;; 5290 esac 5291done 5292else $as_nop 5293 printf "%s\n" "$as_me: failed program was:" >&5 5294sed 's/^/| /' conftest.$ac_ext >&5 5295 5296{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5297printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5298as_fn_error $? "cannot compute suffix of object files: cannot compile 5299See \`config.log' for more details" "$LINENO" 5; } 5300fi 5301rm -f conftest.$ac_cv_objext conftest.$ac_ext 5302fi 5303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 5304printf "%s\n" "$ac_cv_objext" >&6; } 5305OBJEXT=$ac_cv_objext 5306ac_objext=$OBJEXT 5307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 5308printf %s "checking whether the compiler supports GNU C... " >&6; } 5309if test ${ac_cv_c_compiler_gnu+y} 5310then : 5311 printf %s "(cached) " >&6 5312else $as_nop 5313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5314/* end confdefs.h. */ 5315 5316int 5317main (void) 5318{ 5319#ifndef __GNUC__ 5320 choke me 5321#endif 5322 5323 ; 5324 return 0; 5325} 5326_ACEOF 5327if ac_fn_c_try_compile "$LINENO" 5328then : 5329 ac_compiler_gnu=yes 5330else $as_nop 5331 ac_compiler_gnu=no 5332fi 5333rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5334ac_cv_c_compiler_gnu=$ac_compiler_gnu 5335 5336fi 5337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5338printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 5339ac_compiler_gnu=$ac_cv_c_compiler_gnu 5340 5341if test $ac_compiler_gnu = yes; then 5342 GCC=yes 5343else 5344 GCC= 5345fi 5346ac_test_CFLAGS=${CFLAGS+y} 5347ac_save_CFLAGS=$CFLAGS 5348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5349printf %s "checking whether $CC accepts -g... " >&6; } 5350if test ${ac_cv_prog_cc_g+y} 5351then : 5352 printf %s "(cached) " >&6 5353else $as_nop 5354 ac_save_c_werror_flag=$ac_c_werror_flag 5355 ac_c_werror_flag=yes 5356 ac_cv_prog_cc_g=no 5357 CFLAGS="-g" 5358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5359/* end confdefs.h. */ 5360 5361int 5362main (void) 5363{ 5364 5365 ; 5366 return 0; 5367} 5368_ACEOF 5369if ac_fn_c_try_compile "$LINENO" 5370then : 5371 ac_cv_prog_cc_g=yes 5372else $as_nop 5373 CFLAGS="" 5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5375/* end confdefs.h. */ 5376 5377int 5378main (void) 5379{ 5380 5381 ; 5382 return 0; 5383} 5384_ACEOF 5385if ac_fn_c_try_compile "$LINENO" 5386then : 5387 5388else $as_nop 5389 ac_c_werror_flag=$ac_save_c_werror_flag 5390 CFLAGS="-g" 5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5392/* end confdefs.h. */ 5393 5394int 5395main (void) 5396{ 5397 5398 ; 5399 return 0; 5400} 5401_ACEOF 5402if ac_fn_c_try_compile "$LINENO" 5403then : 5404 ac_cv_prog_cc_g=yes 5405fi 5406rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5407fi 5408rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5409fi 5410rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5411 ac_c_werror_flag=$ac_save_c_werror_flag 5412fi 5413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5414printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 5415if test $ac_test_CFLAGS; then 5416 CFLAGS=$ac_save_CFLAGS 5417elif test $ac_cv_prog_cc_g = yes; then 5418 if test "$GCC" = yes; then 5419 CFLAGS="-g -O2" 5420 else 5421 CFLAGS="-g" 5422 fi 5423else 5424 if test "$GCC" = yes; then 5425 CFLAGS="-O2" 5426 else 5427 CFLAGS= 5428 fi 5429fi 5430ac_prog_cc_stdc=no 5431if test x$ac_prog_cc_stdc = xno 5432then : 5433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 5434printf %s "checking for $CC option to enable C11 features... " >&6; } 5435if test ${ac_cv_prog_cc_c11+y} 5436then : 5437 printf %s "(cached) " >&6 5438else $as_nop 5439 ac_cv_prog_cc_c11=no 5440ac_save_CC=$CC 5441cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5442/* end confdefs.h. */ 5443$ac_c_conftest_c11_program 5444_ACEOF 5445for ac_arg in '' -std=gnu11 5446do 5447 CC="$ac_save_CC $ac_arg" 5448 if ac_fn_c_try_compile "$LINENO" 5449then : 5450 ac_cv_prog_cc_c11=$ac_arg 5451fi 5452rm -f core conftest.err conftest.$ac_objext conftest.beam 5453 test "x$ac_cv_prog_cc_c11" != "xno" && break 5454done 5455rm -f conftest.$ac_ext 5456CC=$ac_save_CC 5457fi 5458 5459if test "x$ac_cv_prog_cc_c11" = xno 5460then : 5461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5462printf "%s\n" "unsupported" >&6; } 5463else $as_nop 5464 if test "x$ac_cv_prog_cc_c11" = x 5465then : 5466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5467printf "%s\n" "none needed" >&6; } 5468else $as_nop 5469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 5470printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 5471 CC="$CC $ac_cv_prog_cc_c11" 5472fi 5473 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 5474 ac_prog_cc_stdc=c11 5475fi 5476fi 5477if test x$ac_prog_cc_stdc = xno 5478then : 5479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 5480printf %s "checking for $CC option to enable C99 features... " >&6; } 5481if test ${ac_cv_prog_cc_c99+y} 5482then : 5483 printf %s "(cached) " >&6 5484else $as_nop 5485 ac_cv_prog_cc_c99=no 5486ac_save_CC=$CC 5487cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5488/* end confdefs.h. */ 5489$ac_c_conftest_c99_program 5490_ACEOF 5491for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 5492do 5493 CC="$ac_save_CC $ac_arg" 5494 if ac_fn_c_try_compile "$LINENO" 5495then : 5496 ac_cv_prog_cc_c99=$ac_arg 5497fi 5498rm -f core conftest.err conftest.$ac_objext conftest.beam 5499 test "x$ac_cv_prog_cc_c99" != "xno" && break 5500done 5501rm -f conftest.$ac_ext 5502CC=$ac_save_CC 5503fi 5504 5505if test "x$ac_cv_prog_cc_c99" = xno 5506then : 5507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5508printf "%s\n" "unsupported" >&6; } 5509else $as_nop 5510 if test "x$ac_cv_prog_cc_c99" = x 5511then : 5512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5513printf "%s\n" "none needed" >&6; } 5514else $as_nop 5515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5516printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 5517 CC="$CC $ac_cv_prog_cc_c99" 5518fi 5519 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 5520 ac_prog_cc_stdc=c99 5521fi 5522fi 5523if test x$ac_prog_cc_stdc = xno 5524then : 5525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 5526printf %s "checking for $CC option to enable C89 features... " >&6; } 5527if test ${ac_cv_prog_cc_c89+y} 5528then : 5529 printf %s "(cached) " >&6 5530else $as_nop 5531 ac_cv_prog_cc_c89=no 5532ac_save_CC=$CC 5533cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5534/* end confdefs.h. */ 5535$ac_c_conftest_c89_program 5536_ACEOF 5537for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5538do 5539 CC="$ac_save_CC $ac_arg" 5540 if ac_fn_c_try_compile "$LINENO" 5541then : 5542 ac_cv_prog_cc_c89=$ac_arg 5543fi 5544rm -f core conftest.err conftest.$ac_objext conftest.beam 5545 test "x$ac_cv_prog_cc_c89" != "xno" && break 5546done 5547rm -f conftest.$ac_ext 5548CC=$ac_save_CC 5549fi 5550 5551if test "x$ac_cv_prog_cc_c89" = xno 5552then : 5553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5554printf "%s\n" "unsupported" >&6; } 5555else $as_nop 5556 if test "x$ac_cv_prog_cc_c89" = x 5557then : 5558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5559printf "%s\n" "none needed" >&6; } 5560else $as_nop 5561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5562printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 5563 CC="$CC $ac_cv_prog_cc_c89" 5564fi 5565 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 5566 ac_prog_cc_stdc=c89 5567fi 5568fi 5569 5570ac_ext=c 5571ac_cpp='$CPP $CPPFLAGS' 5572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5574ac_compiler_gnu=$ac_cv_c_compiler_gnu 5575 5576 5577 ac_ext=c 5578ac_cpp='$CPP $CPPFLAGS' 5579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5581ac_compiler_gnu=$ac_cv_c_compiler_gnu 5582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5583printf %s "checking whether $CC understands -c and -o together... " >&6; } 5584if test ${am_cv_prog_cc_c_o+y} 5585then : 5586 printf %s "(cached) " >&6 5587else $as_nop 5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5589/* end confdefs.h. */ 5590 5591int 5592main (void) 5593{ 5594 5595 ; 5596 return 0; 5597} 5598_ACEOF 5599 # Make sure it works both with $CC and with simple cc. 5600 # Following AC_PROG_CC_C_O, we do the test twice because some 5601 # compilers refuse to overwrite an existing .o file with -o, 5602 # though they will create one. 5603 am_cv_prog_cc_c_o=yes 5604 for am_i in 1 2; do 5605 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5606 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5607 ac_status=$? 5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5609 (exit $ac_status); } \ 5610 && test -f conftest2.$ac_objext; then 5611 : OK 5612 else 5613 am_cv_prog_cc_c_o=no 5614 break 5615 fi 5616 done 5617 rm -f core conftest* 5618 unset am_i 5619fi 5620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5621printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 5622if test "$am_cv_prog_cc_c_o" != yes; then 5623 # Losing compiler, so override with the script. 5624 # FIXME: It is wrong to rewrite CC. 5625 # But if we don't then we get into trouble of one sort or another. 5626 # A longer-term fix would be to have automake use am__CC in this case, 5627 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5628 CC="$am_aux_dir/compile $CC" 5629fi 5630ac_ext=c 5631ac_cpp='$CPP $CPPFLAGS' 5632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5634ac_compiler_gnu=$ac_cv_c_compiler_gnu 5635 5636 5637depcc="$CC" am_compiler_list= 5638 5639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5640printf %s "checking dependency style of $depcc... " >&6; } 5641if test ${am_cv_CC_dependencies_compiler_type+y} 5642then : 5643 printf %s "(cached) " >&6 5644else $as_nop 5645 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5646 # We make a subdir and do the tests there. Otherwise we can end up 5647 # making bogus files that we don't know about and never remove. For 5648 # instance it was reported that on HP-UX the gcc test will end up 5649 # making a dummy file named 'D' -- because '-MD' means "put the output 5650 # in D". 5651 rm -rf conftest.dir 5652 mkdir conftest.dir 5653 # Copy depcomp to subdir because otherwise we won't find it if we're 5654 # using a relative directory. 5655 cp "$am_depcomp" conftest.dir 5656 cd conftest.dir 5657 # We will build objects and dependencies in a subdirectory because 5658 # it helps to detect inapplicable dependency modes. For instance 5659 # both Tru64's cc and ICC support -MD to output dependencies as a 5660 # side effect of compilation, but ICC will put the dependencies in 5661 # the current directory while Tru64 will put them in the object 5662 # directory. 5663 mkdir sub 5664 5665 am_cv_CC_dependencies_compiler_type=none 5666 if test "$am_compiler_list" = ""; then 5667 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5668 fi 5669 am__universal=false 5670 case " $depcc " in #( 5671 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5672 esac 5673 5674 for depmode in $am_compiler_list; do 5675 # Setup a source with many dependencies, because some compilers 5676 # like to wrap large dependency lists on column 80 (with \), and 5677 # we should not choose a depcomp mode which is confused by this. 5678 # 5679 # We need to recreate these files for each test, as the compiler may 5680 # overwrite some of them when testing with obscure command lines. 5681 # This happens at least with the AIX C compiler. 5682 : > sub/conftest.c 5683 for i in 1 2 3 4 5 6; do 5684 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5685 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5686 # Solaris 10 /bin/sh. 5687 echo '/* dummy */' > sub/conftst$i.h 5688 done 5689 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5690 5691 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5692 # mode. It turns out that the SunPro C++ compiler does not properly 5693 # handle '-M -o', and we need to detect this. Also, some Intel 5694 # versions had trouble with output in subdirs. 5695 am__obj=sub/conftest.${OBJEXT-o} 5696 am__minus_obj="-o $am__obj" 5697 case $depmode in 5698 gcc) 5699 # This depmode causes a compiler race in universal mode. 5700 test "$am__universal" = false || continue 5701 ;; 5702 nosideeffect) 5703 # After this tag, mechanisms are not by side-effect, so they'll 5704 # only be used when explicitly requested. 5705 if test "x$enable_dependency_tracking" = xyes; then 5706 continue 5707 else 5708 break 5709 fi 5710 ;; 5711 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5712 # This compiler won't grok '-c -o', but also, the minuso test has 5713 # not run yet. These depmodes are late enough in the game, and 5714 # so weak that their functioning should not be impacted. 5715 am__obj=conftest.${OBJEXT-o} 5716 am__minus_obj= 5717 ;; 5718 none) break ;; 5719 esac 5720 if depmode=$depmode \ 5721 source=sub/conftest.c object=$am__obj \ 5722 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5723 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5724 >/dev/null 2>conftest.err && 5725 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5726 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5727 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5728 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5729 # icc doesn't choke on unknown options, it will just issue warnings 5730 # or remarks (even with -Werror). So we grep stderr for any message 5731 # that says an option was ignored or not supported. 5732 # When given -MP, icc 7.0 and 7.1 complain thusly: 5733 # icc: Command line warning: ignoring option '-M'; no argument required 5734 # The diagnosis changed in icc 8.0: 5735 # icc: Command line remark: option '-MP' not supported 5736 if (grep 'ignoring option' conftest.err || 5737 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5738 am_cv_CC_dependencies_compiler_type=$depmode 5739 break 5740 fi 5741 fi 5742 done 5743 5744 cd .. 5745 rm -rf conftest.dir 5746else 5747 am_cv_CC_dependencies_compiler_type=none 5748fi 5749 5750fi 5751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5752printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 5753CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5754 5755 if 5756 test "x$enable_dependency_tracking" != xno \ 5757 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5758 am__fastdepCC_TRUE= 5759 am__fastdepCC_FALSE='#' 5760else 5761 am__fastdepCC_TRUE='#' 5762 am__fastdepCC_FALSE= 5763fi 5764 5765 5766 5767ac_header= ac_cache= 5768for ac_item in $ac_header_c_list 5769do 5770 if test $ac_cache; then 5771 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 5772 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 5773 printf "%s\n" "#define $ac_item 1" >> confdefs.h 5774 fi 5775 ac_header= ac_cache= 5776 elif test $ac_header; then 5777 ac_cache=$ac_item 5778 else 5779 ac_header=$ac_item 5780 fi 5781done 5782 5783 5784 5785 5786 5787 5788 5789 5790if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 5791then : 5792 5793printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 5794 5795fi 5796 5797 5798 5799 5800 5801 5802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5803printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5804if test ${ac_cv_safe_to_define___extensions__+y} 5805then : 5806 printf %s "(cached) " >&6 5807else $as_nop 5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5809/* end confdefs.h. */ 5810 5811# define __EXTENSIONS__ 1 5812 $ac_includes_default 5813int 5814main (void) 5815{ 5816 5817 ; 5818 return 0; 5819} 5820_ACEOF 5821if ac_fn_c_try_compile "$LINENO" 5822then : 5823 ac_cv_safe_to_define___extensions__=yes 5824else $as_nop 5825 ac_cv_safe_to_define___extensions__=no 5826fi 5827rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5828fi 5829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5830printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 5831 5832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 5833printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 5834if test ${ac_cv_should_define__xopen_source+y} 5835then : 5836 printf %s "(cached) " >&6 5837else $as_nop 5838 ac_cv_should_define__xopen_source=no 5839 if test $ac_cv_header_wchar_h = yes 5840then : 5841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5842/* end confdefs.h. */ 5843 5844 #include <wchar.h> 5845 mbstate_t x; 5846int 5847main (void) 5848{ 5849 5850 ; 5851 return 0; 5852} 5853_ACEOF 5854if ac_fn_c_try_compile "$LINENO" 5855then : 5856 5857else $as_nop 5858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5859/* end confdefs.h. */ 5860 5861 #define _XOPEN_SOURCE 500 5862 #include <wchar.h> 5863 mbstate_t x; 5864int 5865main (void) 5866{ 5867 5868 ; 5869 return 0; 5870} 5871_ACEOF 5872if ac_fn_c_try_compile "$LINENO" 5873then : 5874 ac_cv_should_define__xopen_source=yes 5875fi 5876rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5877fi 5878rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5879fi 5880fi 5881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 5882printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 5883 5884 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 5885 5886 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 5887 5888 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 5889 5890 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 5891 5892 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 5893 5894 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 5895 5896 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5897 5898 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 5899 5900 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 5901 5902 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 5903 5904 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 5905 5906 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 5907 5908 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 5909 5910 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 5911 5912 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 5913 5914 if test $ac_cv_header_minix_config_h = yes 5915then : 5916 MINIX=yes 5917 printf "%s\n" "#define _MINIX 1" >>confdefs.h 5918 5919 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 5920 5921 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 5922 5923else $as_nop 5924 MINIX= 5925fi 5926 if test $ac_cv_safe_to_define___extensions__ = yes 5927then : 5928 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 5929 5930fi 5931 if test $ac_cv_should_define__xopen_source = yes 5932then : 5933 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 5934 5935fi 5936 5937 5938# Require xorg-macros minimum of 1.14 for XORG_COMPILER_BRAND in XORG_DEFAULT_OPTIONS 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 5951printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 5952if test ${ac_cv_c_undeclared_builtin_options+y} 5953then : 5954 printf %s "(cached) " >&6 5955else $as_nop 5956 ac_save_CFLAGS=$CFLAGS 5957 ac_cv_c_undeclared_builtin_options='cannot detect' 5958 for ac_arg in '' -fno-builtin; do 5959 CFLAGS="$ac_save_CFLAGS $ac_arg" 5960 # This test program should *not* compile successfully. 5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5962/* end confdefs.h. */ 5963 5964int 5965main (void) 5966{ 5967(void) strchr; 5968 ; 5969 return 0; 5970} 5971_ACEOF 5972if ac_fn_c_try_compile "$LINENO" 5973then : 5974 5975else $as_nop 5976 # This test program should compile successfully. 5977 # No library function is consistently available on 5978 # freestanding implementations, so test against a dummy 5979 # declaration. Include always-available headers on the 5980 # off chance that they somehow elicit warnings. 5981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5982/* end confdefs.h. */ 5983#include <float.h> 5984#include <limits.h> 5985#include <stdarg.h> 5986#include <stddef.h> 5987extern void ac_decl (int, char *); 5988 5989int 5990main (void) 5991{ 5992(void) ac_decl (0, (char *) 0); 5993 (void) ac_decl; 5994 5995 ; 5996 return 0; 5997} 5998_ACEOF 5999if ac_fn_c_try_compile "$LINENO" 6000then : 6001 if test x"$ac_arg" = x 6002then : 6003 ac_cv_c_undeclared_builtin_options='none needed' 6004else $as_nop 6005 ac_cv_c_undeclared_builtin_options=$ac_arg 6006fi 6007 break 6008fi 6009rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6010fi 6011rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6012 done 6013 CFLAGS=$ac_save_CFLAGS 6014 6015fi 6016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 6017printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 6018 case $ac_cv_c_undeclared_builtin_options in #( 6019 'cannot detect') : 6020 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6021printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 6022as_fn_error $? "cannot make $CC report undeclared builtins 6023See \`config.log' for more details" "$LINENO" 5; } ;; #( 6024 'none needed') : 6025 ac_c_undeclared_builtin_options='' ;; #( 6026 *) : 6027 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 6028esac 6029 6030 6031 6032 6033 6034ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 6035if test "x$ac_cv_have_decl___clang__" = xyes 6036then : 6037 CLANGCC="yes" 6038else $as_nop 6039 CLANGCC="no" 6040fi 6041ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 6042if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 6043then : 6044 INTELCC="yes" 6045else $as_nop 6046 INTELCC="no" 6047fi 6048ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 6049if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 6050then : 6051 SUNCC="yes" 6052else $as_nop 6053 SUNCC="no" 6054fi 6055 6056 6057 6058 6059 6060 6061 6062 6063if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 6064 if test -n "$ac_tool_prefix"; then 6065 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 6066set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 6067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6068printf %s "checking for $ac_word... " >&6; } 6069if test ${ac_cv_path_PKG_CONFIG+y} 6070then : 6071 printf %s "(cached) " >&6 6072else $as_nop 6073 case $PKG_CONFIG in 6074 [\\/]* | ?:[\\/]*) 6075 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 6076 ;; 6077 *) 6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6079for as_dir in $PATH 6080do 6081 IFS=$as_save_IFS 6082 case $as_dir in #((( 6083 '') as_dir=./ ;; 6084 */) ;; 6085 *) as_dir=$as_dir/ ;; 6086 esac 6087 for ac_exec_ext in '' $ac_executable_extensions; do 6088 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6089 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 6090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6091 break 2 6092 fi 6093done 6094 done 6095IFS=$as_save_IFS 6096 6097 ;; 6098esac 6099fi 6100PKG_CONFIG=$ac_cv_path_PKG_CONFIG 6101if test -n "$PKG_CONFIG"; then 6102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 6103printf "%s\n" "$PKG_CONFIG" >&6; } 6104else 6105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6106printf "%s\n" "no" >&6; } 6107fi 6108 6109 6110fi 6111if test -z "$ac_cv_path_PKG_CONFIG"; then 6112 ac_pt_PKG_CONFIG=$PKG_CONFIG 6113 # Extract the first word of "pkg-config", so it can be a program name with args. 6114set dummy pkg-config; ac_word=$2 6115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6116printf %s "checking for $ac_word... " >&6; } 6117if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 6118then : 6119 printf %s "(cached) " >&6 6120else $as_nop 6121 case $ac_pt_PKG_CONFIG in 6122 [\\/]* | ?:[\\/]*) 6123 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 6124 ;; 6125 *) 6126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6127for as_dir in $PATH 6128do 6129 IFS=$as_save_IFS 6130 case $as_dir in #((( 6131 '') as_dir=./ ;; 6132 */) ;; 6133 *) as_dir=$as_dir/ ;; 6134 esac 6135 for ac_exec_ext in '' $ac_executable_extensions; do 6136 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6137 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 6138 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6139 break 2 6140 fi 6141done 6142 done 6143IFS=$as_save_IFS 6144 6145 ;; 6146esac 6147fi 6148ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 6149if test -n "$ac_pt_PKG_CONFIG"; then 6150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 6151printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 6152else 6153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6154printf "%s\n" "no" >&6; } 6155fi 6156 6157 if test "x$ac_pt_PKG_CONFIG" = x; then 6158 PKG_CONFIG="" 6159 else 6160 case $cross_compiling:$ac_tool_warned in 6161yes:) 6162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6163printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6164ac_tool_warned=yes ;; 6165esac 6166 PKG_CONFIG=$ac_pt_PKG_CONFIG 6167 fi 6168else 6169 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 6170fi 6171 6172fi 6173if test -n "$PKG_CONFIG"; then 6174 _pkg_min_version=0.9.0 6175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 6176printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 6177 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 6178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6179printf "%s\n" "yes" >&6; } 6180 else 6181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6182printf "%s\n" "no" >&6; } 6183 PKG_CONFIG="" 6184 fi 6185fi 6186 6187 6188 # Make sure we can run config.sub. 6189$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 6190 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 6191 6192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 6193printf %s "checking build system type... " >&6; } 6194if test ${ac_cv_build+y} 6195then : 6196 printf %s "(cached) " >&6 6197else $as_nop 6198 ac_build_alias=$build_alias 6199test "x$ac_build_alias" = x && 6200 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 6201test "x$ac_build_alias" = x && 6202 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 6203ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 6204 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 6205 6206fi 6207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 6208printf "%s\n" "$ac_cv_build" >&6; } 6209case $ac_cv_build in 6210*-*-*) ;; 6211*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 6212esac 6213build=$ac_cv_build 6214ac_save_IFS=$IFS; IFS='-' 6215set x $ac_cv_build 6216shift 6217build_cpu=$1 6218build_vendor=$2 6219shift; shift 6220# Remember, the first character of IFS is used to create $*, 6221# except with old shells: 6222build_os=$* 6223IFS=$ac_save_IFS 6224case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 6225 6226 6227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 6228printf %s "checking host system type... " >&6; } 6229if test ${ac_cv_host+y} 6230then : 6231 printf %s "(cached) " >&6 6232else $as_nop 6233 if test "x$host_alias" = x; then 6234 ac_cv_host=$ac_cv_build 6235else 6236 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 6237 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 6238fi 6239 6240fi 6241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 6242printf "%s\n" "$ac_cv_host" >&6; } 6243case $ac_cv_host in 6244*-*-*) ;; 6245*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 6246esac 6247host=$ac_cv_host 6248ac_save_IFS=$IFS; IFS='-' 6249set x $ac_cv_host 6250shift 6251host_cpu=$1 6252host_vendor=$2 6253shift; shift 6254# Remember, the first character of IFS is used to create $*, 6255# except with old shells: 6256host_os=$* 6257IFS=$ac_save_IFS 6258case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 6259 6260 6261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6262printf %s "checking for a sed that does not truncate output... " >&6; } 6263if test ${ac_cv_path_SED+y} 6264then : 6265 printf %s "(cached) " >&6 6266else $as_nop 6267 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6268 for ac_i in 1 2 3 4 5 6 7; do 6269 ac_script="$ac_script$as_nl$ac_script" 6270 done 6271 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6272 { ac_script=; unset ac_script;} 6273 if test -z "$SED"; then 6274 ac_path_SED_found=false 6275 # Loop through the user's path and test for each of PROGNAME-LIST 6276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6277for as_dir in $PATH 6278do 6279 IFS=$as_save_IFS 6280 case $as_dir in #((( 6281 '') as_dir=./ ;; 6282 */) ;; 6283 *) as_dir=$as_dir/ ;; 6284 esac 6285 for ac_prog in sed gsed 6286 do 6287 for ac_exec_ext in '' $ac_executable_extensions; do 6288 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 6289 as_fn_executable_p "$ac_path_SED" || continue 6290# Check for GNU ac_path_SED and select it if it is found. 6291 # Check for GNU $ac_path_SED 6292case `"$ac_path_SED" --version 2>&1` in 6293*GNU*) 6294 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6295*) 6296 ac_count=0 6297 printf %s 0123456789 >"conftest.in" 6298 while : 6299 do 6300 cat "conftest.in" "conftest.in" >"conftest.tmp" 6301 mv "conftest.tmp" "conftest.in" 6302 cp "conftest.in" "conftest.nl" 6303 printf "%s\n" '' >> "conftest.nl" 6304 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6305 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6306 as_fn_arith $ac_count + 1 && ac_count=$as_val 6307 if test $ac_count -gt ${ac_path_SED_max-0}; then 6308 # Best one so far, save it but keep looking for a better one 6309 ac_cv_path_SED="$ac_path_SED" 6310 ac_path_SED_max=$ac_count 6311 fi 6312 # 10*(2^10) chars as input seems more than enough 6313 test $ac_count -gt 10 && break 6314 done 6315 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6316esac 6317 6318 $ac_path_SED_found && break 3 6319 done 6320 done 6321 done 6322IFS=$as_save_IFS 6323 if test -z "$ac_cv_path_SED"; then 6324 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6325 fi 6326else 6327 ac_cv_path_SED=$SED 6328fi 6329 6330fi 6331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6332printf "%s\n" "$ac_cv_path_SED" >&6; } 6333 SED="$ac_cv_path_SED" 6334 rm -f conftest.sed 6335 6336 6337 6338 6339 6340 6341# Check whether --enable-selective-werror was given. 6342if test ${enable_selective_werror+y} 6343then : 6344 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 6345else $as_nop 6346 SELECTIVE_WERROR=yes 6347fi 6348 6349 6350 6351 6352 6353# -v is too short to test reliably with XORG_TESTSET_CFLAG 6354if test "x$SUNCC" = "xyes"; then 6355 BASE_CFLAGS="-v" 6356else 6357 BASE_CFLAGS="" 6358fi 6359 6360# This chunk of warnings were those that existed in the legacy CWARNFLAGS 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374xorg_testset_save_CFLAGS="$CFLAGS" 6375 6376if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6377 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6379printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6380if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6381then : 6382 printf %s "(cached) " >&6 6383else $as_nop 6384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6385/* end confdefs.h. */ 6386int i; 6387_ACEOF 6388if ac_fn_c_try_compile "$LINENO" 6389then : 6390 xorg_cv_cc_flag_unknown_warning_option=yes 6391else $as_nop 6392 xorg_cv_cc_flag_unknown_warning_option=no 6393fi 6394rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6395fi 6396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6397printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6398 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6399 CFLAGS="$xorg_testset_save_CFLAGS" 6400fi 6401 6402if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6403 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6404 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6405 fi 6406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6408printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6409if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6410then : 6411 printf %s "(cached) " >&6 6412else $as_nop 6413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6414/* end confdefs.h. */ 6415int i; 6416_ACEOF 6417if ac_fn_c_try_compile "$LINENO" 6418then : 6419 xorg_cv_cc_flag_unused_command_line_argument=yes 6420else $as_nop 6421 xorg_cv_cc_flag_unused_command_line_argument=no 6422fi 6423rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6424fi 6425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6426printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6427 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6428 CFLAGS="$xorg_testset_save_CFLAGS" 6429fi 6430 6431found="no" 6432 6433 if test $found = "no" ; then 6434 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6435 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6436 fi 6437 6438 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6440 fi 6441 6442 CFLAGS="$CFLAGS -Wall" 6443 6444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 6445printf %s "checking if $CC supports -Wall... " >&6; } 6446 cacheid=xorg_cv_cc_flag__Wall 6447 if eval test \${$cacheid+y} 6448then : 6449 printf %s "(cached) " >&6 6450else $as_nop 6451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6452/* end confdefs.h. */ 6453int i; 6454int 6455main (void) 6456{ 6457 6458 ; 6459 return 0; 6460} 6461_ACEOF 6462if ac_fn_c_try_link "$LINENO" 6463then : 6464 eval $cacheid=yes 6465else $as_nop 6466 eval $cacheid=no 6467fi 6468rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6469 conftest$ac_exeext conftest.$ac_ext 6470fi 6471 6472 6473 CFLAGS="$xorg_testset_save_CFLAGS" 6474 6475 eval supported=\$$cacheid 6476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6477printf "%s\n" "$supported" >&6; } 6478 if test "$supported" = "yes" ; then 6479 BASE_CFLAGS="$BASE_CFLAGS -Wall" 6480 found="yes" 6481 fi 6482 fi 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498xorg_testset_save_CFLAGS="$CFLAGS" 6499 6500if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6503printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6504if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6505then : 6506 printf %s "(cached) " >&6 6507else $as_nop 6508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6509/* end confdefs.h. */ 6510int i; 6511_ACEOF 6512if ac_fn_c_try_compile "$LINENO" 6513then : 6514 xorg_cv_cc_flag_unknown_warning_option=yes 6515else $as_nop 6516 xorg_cv_cc_flag_unknown_warning_option=no 6517fi 6518rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6519fi 6520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6521printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6522 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6523 CFLAGS="$xorg_testset_save_CFLAGS" 6524fi 6525 6526if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6527 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6528 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6529 fi 6530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6532printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6533if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6534then : 6535 printf %s "(cached) " >&6 6536else $as_nop 6537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6538/* end confdefs.h. */ 6539int i; 6540_ACEOF 6541if ac_fn_c_try_compile "$LINENO" 6542then : 6543 xorg_cv_cc_flag_unused_command_line_argument=yes 6544else $as_nop 6545 xorg_cv_cc_flag_unused_command_line_argument=no 6546fi 6547rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6548fi 6549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6550printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6551 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6552 CFLAGS="$xorg_testset_save_CFLAGS" 6553fi 6554 6555found="no" 6556 6557 if test $found = "no" ; then 6558 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6559 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6560 fi 6561 6562 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6564 fi 6565 6566 CFLAGS="$CFLAGS -Wpointer-arith" 6567 6568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 6569printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 6570 cacheid=xorg_cv_cc_flag__Wpointer_arith 6571 if eval test \${$cacheid+y} 6572then : 6573 printf %s "(cached) " >&6 6574else $as_nop 6575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6576/* end confdefs.h. */ 6577int i; 6578int 6579main (void) 6580{ 6581 6582 ; 6583 return 0; 6584} 6585_ACEOF 6586if ac_fn_c_try_link "$LINENO" 6587then : 6588 eval $cacheid=yes 6589else $as_nop 6590 eval $cacheid=no 6591fi 6592rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6593 conftest$ac_exeext conftest.$ac_ext 6594fi 6595 6596 6597 CFLAGS="$xorg_testset_save_CFLAGS" 6598 6599 eval supported=\$$cacheid 6600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6601printf "%s\n" "$supported" >&6; } 6602 if test "$supported" = "yes" ; then 6603 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 6604 found="yes" 6605 fi 6606 fi 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622xorg_testset_save_CFLAGS="$CFLAGS" 6623 6624if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6627printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6628if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6629then : 6630 printf %s "(cached) " >&6 6631else $as_nop 6632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6633/* end confdefs.h. */ 6634int i; 6635_ACEOF 6636if ac_fn_c_try_compile "$LINENO" 6637then : 6638 xorg_cv_cc_flag_unknown_warning_option=yes 6639else $as_nop 6640 xorg_cv_cc_flag_unknown_warning_option=no 6641fi 6642rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6643fi 6644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6645printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6646 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6647 CFLAGS="$xorg_testset_save_CFLAGS" 6648fi 6649 6650if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6653 fi 6654 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6656printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6657if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6658then : 6659 printf %s "(cached) " >&6 6660else $as_nop 6661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6662/* end confdefs.h. */ 6663int i; 6664_ACEOF 6665if ac_fn_c_try_compile "$LINENO" 6666then : 6667 xorg_cv_cc_flag_unused_command_line_argument=yes 6668else $as_nop 6669 xorg_cv_cc_flag_unused_command_line_argument=no 6670fi 6671rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6672fi 6673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6674printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6675 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6676 CFLAGS="$xorg_testset_save_CFLAGS" 6677fi 6678 6679found="no" 6680 6681 if test $found = "no" ; then 6682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6684 fi 6685 6686 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6688 fi 6689 6690 CFLAGS="$CFLAGS -Wmissing-declarations" 6691 6692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 6693printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 6694 cacheid=xorg_cv_cc_flag__Wmissing_declarations 6695 if eval test \${$cacheid+y} 6696then : 6697 printf %s "(cached) " >&6 6698else $as_nop 6699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6700/* end confdefs.h. */ 6701int i; 6702int 6703main (void) 6704{ 6705 6706 ; 6707 return 0; 6708} 6709_ACEOF 6710if ac_fn_c_try_link "$LINENO" 6711then : 6712 eval $cacheid=yes 6713else $as_nop 6714 eval $cacheid=no 6715fi 6716rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6717 conftest$ac_exeext conftest.$ac_ext 6718fi 6719 6720 6721 CFLAGS="$xorg_testset_save_CFLAGS" 6722 6723 eval supported=\$$cacheid 6724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6725printf "%s\n" "$supported" >&6; } 6726 if test "$supported" = "yes" ; then 6727 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 6728 found="yes" 6729 fi 6730 fi 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746xorg_testset_save_CFLAGS="$CFLAGS" 6747 6748if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6749 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6751printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6752if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6753then : 6754 printf %s "(cached) " >&6 6755else $as_nop 6756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6757/* end confdefs.h. */ 6758int i; 6759_ACEOF 6760if ac_fn_c_try_compile "$LINENO" 6761then : 6762 xorg_cv_cc_flag_unknown_warning_option=yes 6763else $as_nop 6764 xorg_cv_cc_flag_unknown_warning_option=no 6765fi 6766rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6767fi 6768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6769printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6770 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6771 CFLAGS="$xorg_testset_save_CFLAGS" 6772fi 6773 6774if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6775 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6777 fi 6778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6780printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6781if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6782then : 6783 printf %s "(cached) " >&6 6784else $as_nop 6785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6786/* end confdefs.h. */ 6787int i; 6788_ACEOF 6789if ac_fn_c_try_compile "$LINENO" 6790then : 6791 xorg_cv_cc_flag_unused_command_line_argument=yes 6792else $as_nop 6793 xorg_cv_cc_flag_unused_command_line_argument=no 6794fi 6795rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6796fi 6797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6798printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6799 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6800 CFLAGS="$xorg_testset_save_CFLAGS" 6801fi 6802 6803found="no" 6804 6805 if test $found = "no" ; then 6806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6808 fi 6809 6810 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6812 fi 6813 6814 CFLAGS="$CFLAGS -Wformat=2" 6815 6816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 6817printf %s "checking if $CC supports -Wformat=2... " >&6; } 6818 cacheid=xorg_cv_cc_flag__Wformat_2 6819 if eval test \${$cacheid+y} 6820then : 6821 printf %s "(cached) " >&6 6822else $as_nop 6823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6824/* end confdefs.h. */ 6825int i; 6826int 6827main (void) 6828{ 6829 6830 ; 6831 return 0; 6832} 6833_ACEOF 6834if ac_fn_c_try_link "$LINENO" 6835then : 6836 eval $cacheid=yes 6837else $as_nop 6838 eval $cacheid=no 6839fi 6840rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6841 conftest$ac_exeext conftest.$ac_ext 6842fi 6843 6844 6845 CFLAGS="$xorg_testset_save_CFLAGS" 6846 6847 eval supported=\$$cacheid 6848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6849printf "%s\n" "$supported" >&6; } 6850 if test "$supported" = "yes" ; then 6851 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 6852 found="yes" 6853 fi 6854 fi 6855 6856 if test $found = "no" ; then 6857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6859 fi 6860 6861 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6863 fi 6864 6865 CFLAGS="$CFLAGS -Wformat" 6866 6867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 6868printf %s "checking if $CC supports -Wformat... " >&6; } 6869 cacheid=xorg_cv_cc_flag__Wformat 6870 if eval test \${$cacheid+y} 6871then : 6872 printf %s "(cached) " >&6 6873else $as_nop 6874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6875/* end confdefs.h. */ 6876int i; 6877int 6878main (void) 6879{ 6880 6881 ; 6882 return 0; 6883} 6884_ACEOF 6885if ac_fn_c_try_link "$LINENO" 6886then : 6887 eval $cacheid=yes 6888else $as_nop 6889 eval $cacheid=no 6890fi 6891rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6892 conftest$ac_exeext conftest.$ac_ext 6893fi 6894 6895 6896 CFLAGS="$xorg_testset_save_CFLAGS" 6897 6898 eval supported=\$$cacheid 6899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6900printf "%s\n" "$supported" >&6; } 6901 if test "$supported" = "yes" ; then 6902 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 6903 found="yes" 6904 fi 6905 fi 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923xorg_testset_save_CFLAGS="$CFLAGS" 6924 6925if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6926 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6928printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6929if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6930then : 6931 printf %s "(cached) " >&6 6932else $as_nop 6933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6934/* end confdefs.h. */ 6935int i; 6936_ACEOF 6937if ac_fn_c_try_compile "$LINENO" 6938then : 6939 xorg_cv_cc_flag_unknown_warning_option=yes 6940else $as_nop 6941 xorg_cv_cc_flag_unknown_warning_option=no 6942fi 6943rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6944fi 6945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6946printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6947 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6948 CFLAGS="$xorg_testset_save_CFLAGS" 6949fi 6950 6951if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6954 fi 6955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6957printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6958if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6959then : 6960 printf %s "(cached) " >&6 6961else $as_nop 6962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6963/* end confdefs.h. */ 6964int i; 6965_ACEOF 6966if ac_fn_c_try_compile "$LINENO" 6967then : 6968 xorg_cv_cc_flag_unused_command_line_argument=yes 6969else $as_nop 6970 xorg_cv_cc_flag_unused_command_line_argument=no 6971fi 6972rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6973fi 6974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6975printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6976 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6977 CFLAGS="$xorg_testset_save_CFLAGS" 6978fi 6979 6980found="no" 6981 6982 if test $found = "no" ; then 6983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6984 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6985 fi 6986 6987 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6989 fi 6990 6991 CFLAGS="$CFLAGS -Wstrict-prototypes" 6992 6993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 6994printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 6995 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 6996 if eval test \${$cacheid+y} 6997then : 6998 printf %s "(cached) " >&6 6999else $as_nop 7000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7001/* end confdefs.h. */ 7002int i; 7003int 7004main (void) 7005{ 7006 7007 ; 7008 return 0; 7009} 7010_ACEOF 7011if ac_fn_c_try_link "$LINENO" 7012then : 7013 eval $cacheid=yes 7014else $as_nop 7015 eval $cacheid=no 7016fi 7017rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7018 conftest$ac_exeext conftest.$ac_ext 7019fi 7020 7021 7022 CFLAGS="$xorg_testset_save_CFLAGS" 7023 7024 eval supported=\$$cacheid 7025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7026printf "%s\n" "$supported" >&6; } 7027 if test "$supported" = "yes" ; then 7028 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 7029 found="yes" 7030 fi 7031 fi 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047xorg_testset_save_CFLAGS="$CFLAGS" 7048 7049if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7050 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7052printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7053if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7054then : 7055 printf %s "(cached) " >&6 7056else $as_nop 7057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7058/* end confdefs.h. */ 7059int i; 7060_ACEOF 7061if ac_fn_c_try_compile "$LINENO" 7062then : 7063 xorg_cv_cc_flag_unknown_warning_option=yes 7064else $as_nop 7065 xorg_cv_cc_flag_unknown_warning_option=no 7066fi 7067rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7068fi 7069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7070printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7071 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7072 CFLAGS="$xorg_testset_save_CFLAGS" 7073fi 7074 7075if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7078 fi 7079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7081printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7082if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7083then : 7084 printf %s "(cached) " >&6 7085else $as_nop 7086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7087/* end confdefs.h. */ 7088int i; 7089_ACEOF 7090if ac_fn_c_try_compile "$LINENO" 7091then : 7092 xorg_cv_cc_flag_unused_command_line_argument=yes 7093else $as_nop 7094 xorg_cv_cc_flag_unused_command_line_argument=no 7095fi 7096rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7097fi 7098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7099printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7100 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7101 CFLAGS="$xorg_testset_save_CFLAGS" 7102fi 7103 7104found="no" 7105 7106 if test $found = "no" ; then 7107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7108 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7109 fi 7110 7111 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7113 fi 7114 7115 CFLAGS="$CFLAGS -Wmissing-prototypes" 7116 7117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 7118printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 7119 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 7120 if eval test \${$cacheid+y} 7121then : 7122 printf %s "(cached) " >&6 7123else $as_nop 7124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7125/* end confdefs.h. */ 7126int i; 7127int 7128main (void) 7129{ 7130 7131 ; 7132 return 0; 7133} 7134_ACEOF 7135if ac_fn_c_try_link "$LINENO" 7136then : 7137 eval $cacheid=yes 7138else $as_nop 7139 eval $cacheid=no 7140fi 7141rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7142 conftest$ac_exeext conftest.$ac_ext 7143fi 7144 7145 7146 CFLAGS="$xorg_testset_save_CFLAGS" 7147 7148 eval supported=\$$cacheid 7149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7150printf "%s\n" "$supported" >&6; } 7151 if test "$supported" = "yes" ; then 7152 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 7153 found="yes" 7154 fi 7155 fi 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171xorg_testset_save_CFLAGS="$CFLAGS" 7172 7173if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7176printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7177if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7178then : 7179 printf %s "(cached) " >&6 7180else $as_nop 7181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7182/* end confdefs.h. */ 7183int i; 7184_ACEOF 7185if ac_fn_c_try_compile "$LINENO" 7186then : 7187 xorg_cv_cc_flag_unknown_warning_option=yes 7188else $as_nop 7189 xorg_cv_cc_flag_unknown_warning_option=no 7190fi 7191rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7192fi 7193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7194printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7195 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7196 CFLAGS="$xorg_testset_save_CFLAGS" 7197fi 7198 7199if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7202 fi 7203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7205printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7206if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7207then : 7208 printf %s "(cached) " >&6 7209else $as_nop 7210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7211/* end confdefs.h. */ 7212int i; 7213_ACEOF 7214if ac_fn_c_try_compile "$LINENO" 7215then : 7216 xorg_cv_cc_flag_unused_command_line_argument=yes 7217else $as_nop 7218 xorg_cv_cc_flag_unused_command_line_argument=no 7219fi 7220rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7221fi 7222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7223printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7224 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7225 CFLAGS="$xorg_testset_save_CFLAGS" 7226fi 7227 7228found="no" 7229 7230 if test $found = "no" ; then 7231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7232 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7233 fi 7234 7235 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7237 fi 7238 7239 CFLAGS="$CFLAGS -Wnested-externs" 7240 7241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 7242printf %s "checking if $CC supports -Wnested-externs... " >&6; } 7243 cacheid=xorg_cv_cc_flag__Wnested_externs 7244 if eval test \${$cacheid+y} 7245then : 7246 printf %s "(cached) " >&6 7247else $as_nop 7248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7249/* end confdefs.h. */ 7250int i; 7251int 7252main (void) 7253{ 7254 7255 ; 7256 return 0; 7257} 7258_ACEOF 7259if ac_fn_c_try_link "$LINENO" 7260then : 7261 eval $cacheid=yes 7262else $as_nop 7263 eval $cacheid=no 7264fi 7265rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7266 conftest$ac_exeext conftest.$ac_ext 7267fi 7268 7269 7270 CFLAGS="$xorg_testset_save_CFLAGS" 7271 7272 eval supported=\$$cacheid 7273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7274printf "%s\n" "$supported" >&6; } 7275 if test "$supported" = "yes" ; then 7276 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 7277 found="yes" 7278 fi 7279 fi 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295xorg_testset_save_CFLAGS="$CFLAGS" 7296 7297if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7300printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7301if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7302then : 7303 printf %s "(cached) " >&6 7304else $as_nop 7305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7306/* end confdefs.h. */ 7307int i; 7308_ACEOF 7309if ac_fn_c_try_compile "$LINENO" 7310then : 7311 xorg_cv_cc_flag_unknown_warning_option=yes 7312else $as_nop 7313 xorg_cv_cc_flag_unknown_warning_option=no 7314fi 7315rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7316fi 7317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7318printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7319 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7320 CFLAGS="$xorg_testset_save_CFLAGS" 7321fi 7322 7323if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7324 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7326 fi 7327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7329printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7330if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7331then : 7332 printf %s "(cached) " >&6 7333else $as_nop 7334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7335/* end confdefs.h. */ 7336int i; 7337_ACEOF 7338if ac_fn_c_try_compile "$LINENO" 7339then : 7340 xorg_cv_cc_flag_unused_command_line_argument=yes 7341else $as_nop 7342 xorg_cv_cc_flag_unused_command_line_argument=no 7343fi 7344rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7345fi 7346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7347printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7348 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7349 CFLAGS="$xorg_testset_save_CFLAGS" 7350fi 7351 7352found="no" 7353 7354 if test $found = "no" ; then 7355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7356 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7357 fi 7358 7359 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7361 fi 7362 7363 CFLAGS="$CFLAGS -Wbad-function-cast" 7364 7365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 7366printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 7367 cacheid=xorg_cv_cc_flag__Wbad_function_cast 7368 if eval test \${$cacheid+y} 7369then : 7370 printf %s "(cached) " >&6 7371else $as_nop 7372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7373/* end confdefs.h. */ 7374int i; 7375int 7376main (void) 7377{ 7378 7379 ; 7380 return 0; 7381} 7382_ACEOF 7383if ac_fn_c_try_link "$LINENO" 7384then : 7385 eval $cacheid=yes 7386else $as_nop 7387 eval $cacheid=no 7388fi 7389rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7390 conftest$ac_exeext conftest.$ac_ext 7391fi 7392 7393 7394 CFLAGS="$xorg_testset_save_CFLAGS" 7395 7396 eval supported=\$$cacheid 7397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7398printf "%s\n" "$supported" >&6; } 7399 if test "$supported" = "yes" ; then 7400 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 7401 found="yes" 7402 fi 7403 fi 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419xorg_testset_save_CFLAGS="$CFLAGS" 7420 7421if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7422 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7424printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7425if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7426then : 7427 printf %s "(cached) " >&6 7428else $as_nop 7429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7430/* end confdefs.h. */ 7431int i; 7432_ACEOF 7433if ac_fn_c_try_compile "$LINENO" 7434then : 7435 xorg_cv_cc_flag_unknown_warning_option=yes 7436else $as_nop 7437 xorg_cv_cc_flag_unknown_warning_option=no 7438fi 7439rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7440fi 7441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7442printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7443 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7444 CFLAGS="$xorg_testset_save_CFLAGS" 7445fi 7446 7447if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7450 fi 7451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7453printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7454if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7455then : 7456 printf %s "(cached) " >&6 7457else $as_nop 7458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7459/* end confdefs.h. */ 7460int i; 7461_ACEOF 7462if ac_fn_c_try_compile "$LINENO" 7463then : 7464 xorg_cv_cc_flag_unused_command_line_argument=yes 7465else $as_nop 7466 xorg_cv_cc_flag_unused_command_line_argument=no 7467fi 7468rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7469fi 7470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7471printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7472 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7473 CFLAGS="$xorg_testset_save_CFLAGS" 7474fi 7475 7476found="no" 7477 7478 if test $found = "no" ; then 7479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7481 fi 7482 7483 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7485 fi 7486 7487 CFLAGS="$CFLAGS -Wold-style-definition" 7488 7489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 7490printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 7491 cacheid=xorg_cv_cc_flag__Wold_style_definition 7492 if eval test \${$cacheid+y} 7493then : 7494 printf %s "(cached) " >&6 7495else $as_nop 7496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7497/* end confdefs.h. */ 7498int i; 7499int 7500main (void) 7501{ 7502 7503 ; 7504 return 0; 7505} 7506_ACEOF 7507if ac_fn_c_try_link "$LINENO" 7508then : 7509 eval $cacheid=yes 7510else $as_nop 7511 eval $cacheid=no 7512fi 7513rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7514 conftest$ac_exeext conftest.$ac_ext 7515fi 7516 7517 7518 CFLAGS="$xorg_testset_save_CFLAGS" 7519 7520 eval supported=\$$cacheid 7521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7522printf "%s\n" "$supported" >&6; } 7523 if test "$supported" = "yes" ; then 7524 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 7525 found="yes" 7526 fi 7527 fi 7528 7529 if test $found = "no" ; then 7530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7532 fi 7533 7534 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7536 fi 7537 7538 CFLAGS="$CFLAGS -fd" 7539 7540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 7541printf %s "checking if $CC supports -fd... " >&6; } 7542 cacheid=xorg_cv_cc_flag__fd 7543 if eval test \${$cacheid+y} 7544then : 7545 printf %s "(cached) " >&6 7546else $as_nop 7547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7548/* end confdefs.h. */ 7549int i; 7550int 7551main (void) 7552{ 7553 7554 ; 7555 return 0; 7556} 7557_ACEOF 7558if ac_fn_c_try_link "$LINENO" 7559then : 7560 eval $cacheid=yes 7561else $as_nop 7562 eval $cacheid=no 7563fi 7564rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7565 conftest$ac_exeext conftest.$ac_ext 7566fi 7567 7568 7569 CFLAGS="$xorg_testset_save_CFLAGS" 7570 7571 eval supported=\$$cacheid 7572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7573printf "%s\n" "$supported" >&6; } 7574 if test "$supported" = "yes" ; then 7575 BASE_CFLAGS="$BASE_CFLAGS -fd" 7576 found="yes" 7577 fi 7578 fi 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594xorg_testset_save_CFLAGS="$CFLAGS" 7595 7596if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7597 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7599printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7600if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7601then : 7602 printf %s "(cached) " >&6 7603else $as_nop 7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7605/* end confdefs.h. */ 7606int i; 7607_ACEOF 7608if ac_fn_c_try_compile "$LINENO" 7609then : 7610 xorg_cv_cc_flag_unknown_warning_option=yes 7611else $as_nop 7612 xorg_cv_cc_flag_unknown_warning_option=no 7613fi 7614rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7615fi 7616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7617printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7618 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7619 CFLAGS="$xorg_testset_save_CFLAGS" 7620fi 7621 7622if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7625 fi 7626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7628printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7629if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7630then : 7631 printf %s "(cached) " >&6 7632else $as_nop 7633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7634/* end confdefs.h. */ 7635int i; 7636_ACEOF 7637if ac_fn_c_try_compile "$LINENO" 7638then : 7639 xorg_cv_cc_flag_unused_command_line_argument=yes 7640else $as_nop 7641 xorg_cv_cc_flag_unused_command_line_argument=no 7642fi 7643rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7644fi 7645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7646printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7647 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7648 CFLAGS="$xorg_testset_save_CFLAGS" 7649fi 7650 7651found="no" 7652 7653 if test $found = "no" ; then 7654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7656 fi 7657 7658 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7660 fi 7661 7662 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 7663 7664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 7665printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 7666 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 7667 if eval test \${$cacheid+y} 7668then : 7669 printf %s "(cached) " >&6 7670else $as_nop 7671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7672/* end confdefs.h. */ 7673int i; 7674int 7675main (void) 7676{ 7677 7678 ; 7679 return 0; 7680} 7681_ACEOF 7682if ac_fn_c_try_link "$LINENO" 7683then : 7684 eval $cacheid=yes 7685else $as_nop 7686 eval $cacheid=no 7687fi 7688rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7689 conftest$ac_exeext conftest.$ac_ext 7690fi 7691 7692 7693 CFLAGS="$xorg_testset_save_CFLAGS" 7694 7695 eval supported=\$$cacheid 7696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7697printf "%s\n" "$supported" >&6; } 7698 if test "$supported" = "yes" ; then 7699 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 7700 found="yes" 7701 fi 7702 fi 7703 7704 7705 7706 7707 7708# This chunk adds additional warnings that could catch undesired effects. 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722xorg_testset_save_CFLAGS="$CFLAGS" 7723 7724if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7727printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7728if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7729then : 7730 printf %s "(cached) " >&6 7731else $as_nop 7732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7733/* end confdefs.h. */ 7734int i; 7735_ACEOF 7736if ac_fn_c_try_compile "$LINENO" 7737then : 7738 xorg_cv_cc_flag_unknown_warning_option=yes 7739else $as_nop 7740 xorg_cv_cc_flag_unknown_warning_option=no 7741fi 7742rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7743fi 7744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7745printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7746 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7747 CFLAGS="$xorg_testset_save_CFLAGS" 7748fi 7749 7750if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7753 fi 7754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7756printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7757if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7758then : 7759 printf %s "(cached) " >&6 7760else $as_nop 7761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7762/* end confdefs.h. */ 7763int i; 7764_ACEOF 7765if ac_fn_c_try_compile "$LINENO" 7766then : 7767 xorg_cv_cc_flag_unused_command_line_argument=yes 7768else $as_nop 7769 xorg_cv_cc_flag_unused_command_line_argument=no 7770fi 7771rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7772fi 7773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7774printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7775 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7776 CFLAGS="$xorg_testset_save_CFLAGS" 7777fi 7778 7779found="no" 7780 7781 if test $found = "no" ; then 7782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7784 fi 7785 7786 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7788 fi 7789 7790 CFLAGS="$CFLAGS -Wunused" 7791 7792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 7793printf %s "checking if $CC supports -Wunused... " >&6; } 7794 cacheid=xorg_cv_cc_flag__Wunused 7795 if eval test \${$cacheid+y} 7796then : 7797 printf %s "(cached) " >&6 7798else $as_nop 7799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7800/* end confdefs.h. */ 7801int i; 7802int 7803main (void) 7804{ 7805 7806 ; 7807 return 0; 7808} 7809_ACEOF 7810if ac_fn_c_try_link "$LINENO" 7811then : 7812 eval $cacheid=yes 7813else $as_nop 7814 eval $cacheid=no 7815fi 7816rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7817 conftest$ac_exeext conftest.$ac_ext 7818fi 7819 7820 7821 CFLAGS="$xorg_testset_save_CFLAGS" 7822 7823 eval supported=\$$cacheid 7824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7825printf "%s\n" "$supported" >&6; } 7826 if test "$supported" = "yes" ; then 7827 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 7828 found="yes" 7829 fi 7830 fi 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846xorg_testset_save_CFLAGS="$CFLAGS" 7847 7848if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7851printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7852if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7853then : 7854 printf %s "(cached) " >&6 7855else $as_nop 7856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7857/* end confdefs.h. */ 7858int i; 7859_ACEOF 7860if ac_fn_c_try_compile "$LINENO" 7861then : 7862 xorg_cv_cc_flag_unknown_warning_option=yes 7863else $as_nop 7864 xorg_cv_cc_flag_unknown_warning_option=no 7865fi 7866rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7867fi 7868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7869printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7870 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7871 CFLAGS="$xorg_testset_save_CFLAGS" 7872fi 7873 7874if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7877 fi 7878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7880printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7881if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7882then : 7883 printf %s "(cached) " >&6 7884else $as_nop 7885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7886/* end confdefs.h. */ 7887int i; 7888_ACEOF 7889if ac_fn_c_try_compile "$LINENO" 7890then : 7891 xorg_cv_cc_flag_unused_command_line_argument=yes 7892else $as_nop 7893 xorg_cv_cc_flag_unused_command_line_argument=no 7894fi 7895rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7896fi 7897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7898printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7899 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7900 CFLAGS="$xorg_testset_save_CFLAGS" 7901fi 7902 7903found="no" 7904 7905 if test $found = "no" ; then 7906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7908 fi 7909 7910 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7912 fi 7913 7914 CFLAGS="$CFLAGS -Wuninitialized" 7915 7916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 7917printf %s "checking if $CC supports -Wuninitialized... " >&6; } 7918 cacheid=xorg_cv_cc_flag__Wuninitialized 7919 if eval test \${$cacheid+y} 7920then : 7921 printf %s "(cached) " >&6 7922else $as_nop 7923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7924/* end confdefs.h. */ 7925int i; 7926int 7927main (void) 7928{ 7929 7930 ; 7931 return 0; 7932} 7933_ACEOF 7934if ac_fn_c_try_link "$LINENO" 7935then : 7936 eval $cacheid=yes 7937else $as_nop 7938 eval $cacheid=no 7939fi 7940rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7941 conftest$ac_exeext conftest.$ac_ext 7942fi 7943 7944 7945 CFLAGS="$xorg_testset_save_CFLAGS" 7946 7947 eval supported=\$$cacheid 7948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7949printf "%s\n" "$supported" >&6; } 7950 if test "$supported" = "yes" ; then 7951 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 7952 found="yes" 7953 fi 7954 fi 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970xorg_testset_save_CFLAGS="$CFLAGS" 7971 7972if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7975printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7976if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7977then : 7978 printf %s "(cached) " >&6 7979else $as_nop 7980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7981/* end confdefs.h. */ 7982int i; 7983_ACEOF 7984if ac_fn_c_try_compile "$LINENO" 7985then : 7986 xorg_cv_cc_flag_unknown_warning_option=yes 7987else $as_nop 7988 xorg_cv_cc_flag_unknown_warning_option=no 7989fi 7990rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7991fi 7992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7993printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7994 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7995 CFLAGS="$xorg_testset_save_CFLAGS" 7996fi 7997 7998if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8001 fi 8002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8004printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8005if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8006then : 8007 printf %s "(cached) " >&6 8008else $as_nop 8009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8010/* end confdefs.h. */ 8011int i; 8012_ACEOF 8013if ac_fn_c_try_compile "$LINENO" 8014then : 8015 xorg_cv_cc_flag_unused_command_line_argument=yes 8016else $as_nop 8017 xorg_cv_cc_flag_unused_command_line_argument=no 8018fi 8019rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8020fi 8021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8022printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8023 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8024 CFLAGS="$xorg_testset_save_CFLAGS" 8025fi 8026 8027found="no" 8028 8029 if test $found = "no" ; then 8030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8032 fi 8033 8034 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8036 fi 8037 8038 CFLAGS="$CFLAGS -Wshadow" 8039 8040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 8041printf %s "checking if $CC supports -Wshadow... " >&6; } 8042 cacheid=xorg_cv_cc_flag__Wshadow 8043 if eval test \${$cacheid+y} 8044then : 8045 printf %s "(cached) " >&6 8046else $as_nop 8047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8048/* end confdefs.h. */ 8049int i; 8050int 8051main (void) 8052{ 8053 8054 ; 8055 return 0; 8056} 8057_ACEOF 8058if ac_fn_c_try_link "$LINENO" 8059then : 8060 eval $cacheid=yes 8061else $as_nop 8062 eval $cacheid=no 8063fi 8064rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8065 conftest$ac_exeext conftest.$ac_ext 8066fi 8067 8068 8069 CFLAGS="$xorg_testset_save_CFLAGS" 8070 8071 eval supported=\$$cacheid 8072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8073printf "%s\n" "$supported" >&6; } 8074 if test "$supported" = "yes" ; then 8075 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 8076 found="yes" 8077 fi 8078 fi 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094xorg_testset_save_CFLAGS="$CFLAGS" 8095 8096if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8099printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8100if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8101then : 8102 printf %s "(cached) " >&6 8103else $as_nop 8104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8105/* end confdefs.h. */ 8106int i; 8107_ACEOF 8108if ac_fn_c_try_compile "$LINENO" 8109then : 8110 xorg_cv_cc_flag_unknown_warning_option=yes 8111else $as_nop 8112 xorg_cv_cc_flag_unknown_warning_option=no 8113fi 8114rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8115fi 8116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8117printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8118 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8119 CFLAGS="$xorg_testset_save_CFLAGS" 8120fi 8121 8122if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8125 fi 8126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8128printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8129if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8130then : 8131 printf %s "(cached) " >&6 8132else $as_nop 8133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8134/* end confdefs.h. */ 8135int i; 8136_ACEOF 8137if ac_fn_c_try_compile "$LINENO" 8138then : 8139 xorg_cv_cc_flag_unused_command_line_argument=yes 8140else $as_nop 8141 xorg_cv_cc_flag_unused_command_line_argument=no 8142fi 8143rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8144fi 8145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8146printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8147 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8148 CFLAGS="$xorg_testset_save_CFLAGS" 8149fi 8150 8151found="no" 8152 8153 if test $found = "no" ; then 8154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8156 fi 8157 8158 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8160 fi 8161 8162 CFLAGS="$CFLAGS -Wmissing-noreturn" 8163 8164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 8165printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 8166 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 8167 if eval test \${$cacheid+y} 8168then : 8169 printf %s "(cached) " >&6 8170else $as_nop 8171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8172/* end confdefs.h. */ 8173int i; 8174int 8175main (void) 8176{ 8177 8178 ; 8179 return 0; 8180} 8181_ACEOF 8182if ac_fn_c_try_link "$LINENO" 8183then : 8184 eval $cacheid=yes 8185else $as_nop 8186 eval $cacheid=no 8187fi 8188rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8189 conftest$ac_exeext conftest.$ac_ext 8190fi 8191 8192 8193 CFLAGS="$xorg_testset_save_CFLAGS" 8194 8195 eval supported=\$$cacheid 8196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8197printf "%s\n" "$supported" >&6; } 8198 if test "$supported" = "yes" ; then 8199 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 8200 found="yes" 8201 fi 8202 fi 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218xorg_testset_save_CFLAGS="$CFLAGS" 8219 8220if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8221 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8223printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8224if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8225then : 8226 printf %s "(cached) " >&6 8227else $as_nop 8228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8229/* end confdefs.h. */ 8230int i; 8231_ACEOF 8232if ac_fn_c_try_compile "$LINENO" 8233then : 8234 xorg_cv_cc_flag_unknown_warning_option=yes 8235else $as_nop 8236 xorg_cv_cc_flag_unknown_warning_option=no 8237fi 8238rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8239fi 8240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8241printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8242 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8243 CFLAGS="$xorg_testset_save_CFLAGS" 8244fi 8245 8246if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8249 fi 8250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8252printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8253if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8254then : 8255 printf %s "(cached) " >&6 8256else $as_nop 8257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8258/* end confdefs.h. */ 8259int i; 8260_ACEOF 8261if ac_fn_c_try_compile "$LINENO" 8262then : 8263 xorg_cv_cc_flag_unused_command_line_argument=yes 8264else $as_nop 8265 xorg_cv_cc_flag_unused_command_line_argument=no 8266fi 8267rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8268fi 8269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8270printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8271 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8272 CFLAGS="$xorg_testset_save_CFLAGS" 8273fi 8274 8275found="no" 8276 8277 if test $found = "no" ; then 8278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8279 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8280 fi 8281 8282 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8284 fi 8285 8286 CFLAGS="$CFLAGS -Wmissing-format-attribute" 8287 8288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 8289printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 8290 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 8291 if eval test \${$cacheid+y} 8292then : 8293 printf %s "(cached) " >&6 8294else $as_nop 8295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8296/* end confdefs.h. */ 8297int i; 8298int 8299main (void) 8300{ 8301 8302 ; 8303 return 0; 8304} 8305_ACEOF 8306if ac_fn_c_try_link "$LINENO" 8307then : 8308 eval $cacheid=yes 8309else $as_nop 8310 eval $cacheid=no 8311fi 8312rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8313 conftest$ac_exeext conftest.$ac_ext 8314fi 8315 8316 8317 CFLAGS="$xorg_testset_save_CFLAGS" 8318 8319 eval supported=\$$cacheid 8320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8321printf "%s\n" "$supported" >&6; } 8322 if test "$supported" = "yes" ; then 8323 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 8324 found="yes" 8325 fi 8326 fi 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342xorg_testset_save_CFLAGS="$CFLAGS" 8343 8344if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8347printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8348if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8349then : 8350 printf %s "(cached) " >&6 8351else $as_nop 8352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8353/* end confdefs.h. */ 8354int i; 8355_ACEOF 8356if ac_fn_c_try_compile "$LINENO" 8357then : 8358 xorg_cv_cc_flag_unknown_warning_option=yes 8359else $as_nop 8360 xorg_cv_cc_flag_unknown_warning_option=no 8361fi 8362rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8363fi 8364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8365printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8366 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8367 CFLAGS="$xorg_testset_save_CFLAGS" 8368fi 8369 8370if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8373 fi 8374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8376printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8377if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8378then : 8379 printf %s "(cached) " >&6 8380else $as_nop 8381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8382/* end confdefs.h. */ 8383int i; 8384_ACEOF 8385if ac_fn_c_try_compile "$LINENO" 8386then : 8387 xorg_cv_cc_flag_unused_command_line_argument=yes 8388else $as_nop 8389 xorg_cv_cc_flag_unused_command_line_argument=no 8390fi 8391rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8392fi 8393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8394printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8395 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8396 CFLAGS="$xorg_testset_save_CFLAGS" 8397fi 8398 8399found="no" 8400 8401 if test $found = "no" ; then 8402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8404 fi 8405 8406 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8408 fi 8409 8410 CFLAGS="$CFLAGS -Wredundant-decls" 8411 8412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 8413printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 8414 cacheid=xorg_cv_cc_flag__Wredundant_decls 8415 if eval test \${$cacheid+y} 8416then : 8417 printf %s "(cached) " >&6 8418else $as_nop 8419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8420/* end confdefs.h. */ 8421int i; 8422int 8423main (void) 8424{ 8425 8426 ; 8427 return 0; 8428} 8429_ACEOF 8430if ac_fn_c_try_link "$LINENO" 8431then : 8432 eval $cacheid=yes 8433else $as_nop 8434 eval $cacheid=no 8435fi 8436rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8437 conftest$ac_exeext conftest.$ac_ext 8438fi 8439 8440 8441 CFLAGS="$xorg_testset_save_CFLAGS" 8442 8443 eval supported=\$$cacheid 8444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8445printf "%s\n" "$supported" >&6; } 8446 if test "$supported" = "yes" ; then 8447 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 8448 found="yes" 8449 fi 8450 fi 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466xorg_testset_save_CFLAGS="$CFLAGS" 8467 8468if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8471printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8472if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8473then : 8474 printf %s "(cached) " >&6 8475else $as_nop 8476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8477/* end confdefs.h. */ 8478int i; 8479_ACEOF 8480if ac_fn_c_try_compile "$LINENO" 8481then : 8482 xorg_cv_cc_flag_unknown_warning_option=yes 8483else $as_nop 8484 xorg_cv_cc_flag_unknown_warning_option=no 8485fi 8486rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8487fi 8488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8489printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8490 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8491 CFLAGS="$xorg_testset_save_CFLAGS" 8492fi 8493 8494if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8497 fi 8498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8500printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8501if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8502then : 8503 printf %s "(cached) " >&6 8504else $as_nop 8505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8506/* end confdefs.h. */ 8507int i; 8508_ACEOF 8509if ac_fn_c_try_compile "$LINENO" 8510then : 8511 xorg_cv_cc_flag_unused_command_line_argument=yes 8512else $as_nop 8513 xorg_cv_cc_flag_unused_command_line_argument=no 8514fi 8515rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8516fi 8517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8518printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8519 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8520 CFLAGS="$xorg_testset_save_CFLAGS" 8521fi 8522 8523found="no" 8524 8525 if test $found = "no" ; then 8526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8528 fi 8529 8530 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8532 fi 8533 8534 CFLAGS="$CFLAGS -Wlogical-op" 8535 8536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 8537printf %s "checking if $CC supports -Wlogical-op... " >&6; } 8538 cacheid=xorg_cv_cc_flag__Wlogical_op 8539 if eval test \${$cacheid+y} 8540then : 8541 printf %s "(cached) " >&6 8542else $as_nop 8543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8544/* end confdefs.h. */ 8545int i; 8546int 8547main (void) 8548{ 8549 8550 ; 8551 return 0; 8552} 8553_ACEOF 8554if ac_fn_c_try_link "$LINENO" 8555then : 8556 eval $cacheid=yes 8557else $as_nop 8558 eval $cacheid=no 8559fi 8560rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8561 conftest$ac_exeext conftest.$ac_ext 8562fi 8563 8564 8565 CFLAGS="$xorg_testset_save_CFLAGS" 8566 8567 eval supported=\$$cacheid 8568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8569printf "%s\n" "$supported" >&6; } 8570 if test "$supported" = "yes" ; then 8571 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 8572 found="yes" 8573 fi 8574 fi 8575 8576 8577 8578# These are currently disabled because they are noisy. They will be enabled 8579# in the future once the codebase is sufficiently modernized to silence 8580# them. For now, I don't want them to drown out the other warnings. 8581# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 8582# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 8583# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 8584 8585# Turn some warnings into errors, so we don't accidentally get successful builds 8586# when there are problems that should be fixed. 8587 8588if test "x$SELECTIVE_WERROR" = "xyes" ; then 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602xorg_testset_save_CFLAGS="$CFLAGS" 8603 8604if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8607printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8608if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8609then : 8610 printf %s "(cached) " >&6 8611else $as_nop 8612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8613/* end confdefs.h. */ 8614int i; 8615_ACEOF 8616if ac_fn_c_try_compile "$LINENO" 8617then : 8618 xorg_cv_cc_flag_unknown_warning_option=yes 8619else $as_nop 8620 xorg_cv_cc_flag_unknown_warning_option=no 8621fi 8622rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8623fi 8624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8625printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8626 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8627 CFLAGS="$xorg_testset_save_CFLAGS" 8628fi 8629 8630if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8633 fi 8634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8636printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8637if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8638then : 8639 printf %s "(cached) " >&6 8640else $as_nop 8641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8642/* end confdefs.h. */ 8643int i; 8644_ACEOF 8645if ac_fn_c_try_compile "$LINENO" 8646then : 8647 xorg_cv_cc_flag_unused_command_line_argument=yes 8648else $as_nop 8649 xorg_cv_cc_flag_unused_command_line_argument=no 8650fi 8651rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8652fi 8653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8654printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8655 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8656 CFLAGS="$xorg_testset_save_CFLAGS" 8657fi 8658 8659found="no" 8660 8661 if test $found = "no" ; then 8662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8664 fi 8665 8666 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8668 fi 8669 8670 CFLAGS="$CFLAGS -Werror=implicit" 8671 8672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 8673printf %s "checking if $CC supports -Werror=implicit... " >&6; } 8674 cacheid=xorg_cv_cc_flag__Werror_implicit 8675 if eval test \${$cacheid+y} 8676then : 8677 printf %s "(cached) " >&6 8678else $as_nop 8679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8680/* end confdefs.h. */ 8681int i; 8682int 8683main (void) 8684{ 8685 8686 ; 8687 return 0; 8688} 8689_ACEOF 8690if ac_fn_c_try_link "$LINENO" 8691then : 8692 eval $cacheid=yes 8693else $as_nop 8694 eval $cacheid=no 8695fi 8696rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8697 conftest$ac_exeext conftest.$ac_ext 8698fi 8699 8700 8701 CFLAGS="$xorg_testset_save_CFLAGS" 8702 8703 eval supported=\$$cacheid 8704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8705printf "%s\n" "$supported" >&6; } 8706 if test "$supported" = "yes" ; then 8707 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 8708 found="yes" 8709 fi 8710 fi 8711 8712 if test $found = "no" ; then 8713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8715 fi 8716 8717 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8719 fi 8720 8721 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 8722 8723 { 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 8724printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 8725 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 8726 if eval test \${$cacheid+y} 8727then : 8728 printf %s "(cached) " >&6 8729else $as_nop 8730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8731/* end confdefs.h. */ 8732int i; 8733int 8734main (void) 8735{ 8736 8737 ; 8738 return 0; 8739} 8740_ACEOF 8741if ac_fn_c_try_link "$LINENO" 8742then : 8743 eval $cacheid=yes 8744else $as_nop 8745 eval $cacheid=no 8746fi 8747rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8748 conftest$ac_exeext conftest.$ac_ext 8749fi 8750 8751 8752 CFLAGS="$xorg_testset_save_CFLAGS" 8753 8754 eval supported=\$$cacheid 8755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8756printf "%s\n" "$supported" >&6; } 8757 if test "$supported" = "yes" ; then 8758 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 8759 found="yes" 8760 fi 8761 fi 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777xorg_testset_save_CFLAGS="$CFLAGS" 8778 8779if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8780 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8782printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8783if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8784then : 8785 printf %s "(cached) " >&6 8786else $as_nop 8787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8788/* end confdefs.h. */ 8789int i; 8790_ACEOF 8791if ac_fn_c_try_compile "$LINENO" 8792then : 8793 xorg_cv_cc_flag_unknown_warning_option=yes 8794else $as_nop 8795 xorg_cv_cc_flag_unknown_warning_option=no 8796fi 8797rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8798fi 8799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8800printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8801 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8802 CFLAGS="$xorg_testset_save_CFLAGS" 8803fi 8804 8805if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8808 fi 8809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8811printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8812if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8813then : 8814 printf %s "(cached) " >&6 8815else $as_nop 8816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8817/* end confdefs.h. */ 8818int i; 8819_ACEOF 8820if ac_fn_c_try_compile "$LINENO" 8821then : 8822 xorg_cv_cc_flag_unused_command_line_argument=yes 8823else $as_nop 8824 xorg_cv_cc_flag_unused_command_line_argument=no 8825fi 8826rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8827fi 8828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8829printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8830 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8831 CFLAGS="$xorg_testset_save_CFLAGS" 8832fi 8833 8834found="no" 8835 8836 if test $found = "no" ; then 8837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8839 fi 8840 8841 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8842 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8843 fi 8844 8845 CFLAGS="$CFLAGS -Werror=nonnull" 8846 8847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 8848printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 8849 cacheid=xorg_cv_cc_flag__Werror_nonnull 8850 if eval test \${$cacheid+y} 8851then : 8852 printf %s "(cached) " >&6 8853else $as_nop 8854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8855/* end confdefs.h. */ 8856int i; 8857int 8858main (void) 8859{ 8860 8861 ; 8862 return 0; 8863} 8864_ACEOF 8865if ac_fn_c_try_link "$LINENO" 8866then : 8867 eval $cacheid=yes 8868else $as_nop 8869 eval $cacheid=no 8870fi 8871rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8872 conftest$ac_exeext conftest.$ac_ext 8873fi 8874 8875 8876 CFLAGS="$xorg_testset_save_CFLAGS" 8877 8878 eval supported=\$$cacheid 8879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8880printf "%s\n" "$supported" >&6; } 8881 if test "$supported" = "yes" ; then 8882 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 8883 found="yes" 8884 fi 8885 fi 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901xorg_testset_save_CFLAGS="$CFLAGS" 8902 8903if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8906printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8907if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8908then : 8909 printf %s "(cached) " >&6 8910else $as_nop 8911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8912/* end confdefs.h. */ 8913int i; 8914_ACEOF 8915if ac_fn_c_try_compile "$LINENO" 8916then : 8917 xorg_cv_cc_flag_unknown_warning_option=yes 8918else $as_nop 8919 xorg_cv_cc_flag_unknown_warning_option=no 8920fi 8921rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8922fi 8923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8924printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8925 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8926 CFLAGS="$xorg_testset_save_CFLAGS" 8927fi 8928 8929if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8930 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8932 fi 8933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8935printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8936if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8937then : 8938 printf %s "(cached) " >&6 8939else $as_nop 8940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8941/* end confdefs.h. */ 8942int i; 8943_ACEOF 8944if ac_fn_c_try_compile "$LINENO" 8945then : 8946 xorg_cv_cc_flag_unused_command_line_argument=yes 8947else $as_nop 8948 xorg_cv_cc_flag_unused_command_line_argument=no 8949fi 8950rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8951fi 8952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8953printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8954 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8955 CFLAGS="$xorg_testset_save_CFLAGS" 8956fi 8957 8958found="no" 8959 8960 if test $found = "no" ; then 8961 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8963 fi 8964 8965 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8967 fi 8968 8969 CFLAGS="$CFLAGS -Werror=init-self" 8970 8971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 8972printf %s "checking if $CC supports -Werror=init-self... " >&6; } 8973 cacheid=xorg_cv_cc_flag__Werror_init_self 8974 if eval test \${$cacheid+y} 8975then : 8976 printf %s "(cached) " >&6 8977else $as_nop 8978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8979/* end confdefs.h. */ 8980int i; 8981int 8982main (void) 8983{ 8984 8985 ; 8986 return 0; 8987} 8988_ACEOF 8989if ac_fn_c_try_link "$LINENO" 8990then : 8991 eval $cacheid=yes 8992else $as_nop 8993 eval $cacheid=no 8994fi 8995rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8996 conftest$ac_exeext conftest.$ac_ext 8997fi 8998 8999 9000 CFLAGS="$xorg_testset_save_CFLAGS" 9001 9002 eval supported=\$$cacheid 9003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9004printf "%s\n" "$supported" >&6; } 9005 if test "$supported" = "yes" ; then 9006 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 9007 found="yes" 9008 fi 9009 fi 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025xorg_testset_save_CFLAGS="$CFLAGS" 9026 9027if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9030printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9031if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9032then : 9033 printf %s "(cached) " >&6 9034else $as_nop 9035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9036/* end confdefs.h. */ 9037int i; 9038_ACEOF 9039if ac_fn_c_try_compile "$LINENO" 9040then : 9041 xorg_cv_cc_flag_unknown_warning_option=yes 9042else $as_nop 9043 xorg_cv_cc_flag_unknown_warning_option=no 9044fi 9045rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9046fi 9047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9048printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9049 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9050 CFLAGS="$xorg_testset_save_CFLAGS" 9051fi 9052 9053if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9054 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9055 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9056 fi 9057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9059printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9060if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9061then : 9062 printf %s "(cached) " >&6 9063else $as_nop 9064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9065/* end confdefs.h. */ 9066int i; 9067_ACEOF 9068if ac_fn_c_try_compile "$LINENO" 9069then : 9070 xorg_cv_cc_flag_unused_command_line_argument=yes 9071else $as_nop 9072 xorg_cv_cc_flag_unused_command_line_argument=no 9073fi 9074rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9075fi 9076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9077printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9078 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9079 CFLAGS="$xorg_testset_save_CFLAGS" 9080fi 9081 9082found="no" 9083 9084 if test $found = "no" ; then 9085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9087 fi 9088 9089 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9091 fi 9092 9093 CFLAGS="$CFLAGS -Werror=main" 9094 9095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 9096printf %s "checking if $CC supports -Werror=main... " >&6; } 9097 cacheid=xorg_cv_cc_flag__Werror_main 9098 if eval test \${$cacheid+y} 9099then : 9100 printf %s "(cached) " >&6 9101else $as_nop 9102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9103/* end confdefs.h. */ 9104int i; 9105int 9106main (void) 9107{ 9108 9109 ; 9110 return 0; 9111} 9112_ACEOF 9113if ac_fn_c_try_link "$LINENO" 9114then : 9115 eval $cacheid=yes 9116else $as_nop 9117 eval $cacheid=no 9118fi 9119rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9120 conftest$ac_exeext conftest.$ac_ext 9121fi 9122 9123 9124 CFLAGS="$xorg_testset_save_CFLAGS" 9125 9126 eval supported=\$$cacheid 9127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9128printf "%s\n" "$supported" >&6; } 9129 if test "$supported" = "yes" ; then 9130 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 9131 found="yes" 9132 fi 9133 fi 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149xorg_testset_save_CFLAGS="$CFLAGS" 9150 9151if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9154printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9155if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9156then : 9157 printf %s "(cached) " >&6 9158else $as_nop 9159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9160/* end confdefs.h. */ 9161int i; 9162_ACEOF 9163if ac_fn_c_try_compile "$LINENO" 9164then : 9165 xorg_cv_cc_flag_unknown_warning_option=yes 9166else $as_nop 9167 xorg_cv_cc_flag_unknown_warning_option=no 9168fi 9169rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9170fi 9171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9172printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9173 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9174 CFLAGS="$xorg_testset_save_CFLAGS" 9175fi 9176 9177if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9180 fi 9181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9183printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9184if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9185then : 9186 printf %s "(cached) " >&6 9187else $as_nop 9188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9189/* end confdefs.h. */ 9190int i; 9191_ACEOF 9192if ac_fn_c_try_compile "$LINENO" 9193then : 9194 xorg_cv_cc_flag_unused_command_line_argument=yes 9195else $as_nop 9196 xorg_cv_cc_flag_unused_command_line_argument=no 9197fi 9198rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9199fi 9200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9201printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9202 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9203 CFLAGS="$xorg_testset_save_CFLAGS" 9204fi 9205 9206found="no" 9207 9208 if test $found = "no" ; then 9209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9211 fi 9212 9213 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9215 fi 9216 9217 CFLAGS="$CFLAGS -Werror=missing-braces" 9218 9219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 9220printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 9221 cacheid=xorg_cv_cc_flag__Werror_missing_braces 9222 if eval test \${$cacheid+y} 9223then : 9224 printf %s "(cached) " >&6 9225else $as_nop 9226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9227/* end confdefs.h. */ 9228int i; 9229int 9230main (void) 9231{ 9232 9233 ; 9234 return 0; 9235} 9236_ACEOF 9237if ac_fn_c_try_link "$LINENO" 9238then : 9239 eval $cacheid=yes 9240else $as_nop 9241 eval $cacheid=no 9242fi 9243rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9244 conftest$ac_exeext conftest.$ac_ext 9245fi 9246 9247 9248 CFLAGS="$xorg_testset_save_CFLAGS" 9249 9250 eval supported=\$$cacheid 9251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9252printf "%s\n" "$supported" >&6; } 9253 if test "$supported" = "yes" ; then 9254 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 9255 found="yes" 9256 fi 9257 fi 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273xorg_testset_save_CFLAGS="$CFLAGS" 9274 9275if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9278printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9279if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9280then : 9281 printf %s "(cached) " >&6 9282else $as_nop 9283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9284/* end confdefs.h. */ 9285int i; 9286_ACEOF 9287if ac_fn_c_try_compile "$LINENO" 9288then : 9289 xorg_cv_cc_flag_unknown_warning_option=yes 9290else $as_nop 9291 xorg_cv_cc_flag_unknown_warning_option=no 9292fi 9293rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9294fi 9295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9296printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9297 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9298 CFLAGS="$xorg_testset_save_CFLAGS" 9299fi 9300 9301if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9304 fi 9305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9307printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9308if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9309then : 9310 printf %s "(cached) " >&6 9311else $as_nop 9312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9313/* end confdefs.h. */ 9314int i; 9315_ACEOF 9316if ac_fn_c_try_compile "$LINENO" 9317then : 9318 xorg_cv_cc_flag_unused_command_line_argument=yes 9319else $as_nop 9320 xorg_cv_cc_flag_unused_command_line_argument=no 9321fi 9322rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9323fi 9324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9325printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9326 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9327 CFLAGS="$xorg_testset_save_CFLAGS" 9328fi 9329 9330found="no" 9331 9332 if test $found = "no" ; then 9333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9335 fi 9336 9337 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9339 fi 9340 9341 CFLAGS="$CFLAGS -Werror=sequence-point" 9342 9343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 9344printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 9345 cacheid=xorg_cv_cc_flag__Werror_sequence_point 9346 if eval test \${$cacheid+y} 9347then : 9348 printf %s "(cached) " >&6 9349else $as_nop 9350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9351/* end confdefs.h. */ 9352int i; 9353int 9354main (void) 9355{ 9356 9357 ; 9358 return 0; 9359} 9360_ACEOF 9361if ac_fn_c_try_link "$LINENO" 9362then : 9363 eval $cacheid=yes 9364else $as_nop 9365 eval $cacheid=no 9366fi 9367rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9368 conftest$ac_exeext conftest.$ac_ext 9369fi 9370 9371 9372 CFLAGS="$xorg_testset_save_CFLAGS" 9373 9374 eval supported=\$$cacheid 9375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9376printf "%s\n" "$supported" >&6; } 9377 if test "$supported" = "yes" ; then 9378 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 9379 found="yes" 9380 fi 9381 fi 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397xorg_testset_save_CFLAGS="$CFLAGS" 9398 9399if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9402printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9403if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9404then : 9405 printf %s "(cached) " >&6 9406else $as_nop 9407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9408/* end confdefs.h. */ 9409int i; 9410_ACEOF 9411if ac_fn_c_try_compile "$LINENO" 9412then : 9413 xorg_cv_cc_flag_unknown_warning_option=yes 9414else $as_nop 9415 xorg_cv_cc_flag_unknown_warning_option=no 9416fi 9417rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9418fi 9419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9420printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9421 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9422 CFLAGS="$xorg_testset_save_CFLAGS" 9423fi 9424 9425if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9428 fi 9429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9431printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9432if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9433then : 9434 printf %s "(cached) " >&6 9435else $as_nop 9436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9437/* end confdefs.h. */ 9438int i; 9439_ACEOF 9440if ac_fn_c_try_compile "$LINENO" 9441then : 9442 xorg_cv_cc_flag_unused_command_line_argument=yes 9443else $as_nop 9444 xorg_cv_cc_flag_unused_command_line_argument=no 9445fi 9446rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9447fi 9448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9449printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9450 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9451 CFLAGS="$xorg_testset_save_CFLAGS" 9452fi 9453 9454found="no" 9455 9456 if test $found = "no" ; then 9457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9459 fi 9460 9461 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9463 fi 9464 9465 CFLAGS="$CFLAGS -Werror=return-type" 9466 9467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 9468printf %s "checking if $CC supports -Werror=return-type... " >&6; } 9469 cacheid=xorg_cv_cc_flag__Werror_return_type 9470 if eval test \${$cacheid+y} 9471then : 9472 printf %s "(cached) " >&6 9473else $as_nop 9474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9475/* end confdefs.h. */ 9476int i; 9477int 9478main (void) 9479{ 9480 9481 ; 9482 return 0; 9483} 9484_ACEOF 9485if ac_fn_c_try_link "$LINENO" 9486then : 9487 eval $cacheid=yes 9488else $as_nop 9489 eval $cacheid=no 9490fi 9491rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9492 conftest$ac_exeext conftest.$ac_ext 9493fi 9494 9495 9496 CFLAGS="$xorg_testset_save_CFLAGS" 9497 9498 eval supported=\$$cacheid 9499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9500printf "%s\n" "$supported" >&6; } 9501 if test "$supported" = "yes" ; then 9502 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 9503 found="yes" 9504 fi 9505 fi 9506 9507 if test $found = "no" ; then 9508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9509 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9510 fi 9511 9512 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9514 fi 9515 9516 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 9517 9518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 9519printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 9520 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 9521 if eval test \${$cacheid+y} 9522then : 9523 printf %s "(cached) " >&6 9524else $as_nop 9525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9526/* end confdefs.h. */ 9527int i; 9528int 9529main (void) 9530{ 9531 9532 ; 9533 return 0; 9534} 9535_ACEOF 9536if ac_fn_c_try_link "$LINENO" 9537then : 9538 eval $cacheid=yes 9539else $as_nop 9540 eval $cacheid=no 9541fi 9542rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9543 conftest$ac_exeext conftest.$ac_ext 9544fi 9545 9546 9547 CFLAGS="$xorg_testset_save_CFLAGS" 9548 9549 eval supported=\$$cacheid 9550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9551printf "%s\n" "$supported" >&6; } 9552 if test "$supported" = "yes" ; then 9553 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 9554 found="yes" 9555 fi 9556 fi 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572xorg_testset_save_CFLAGS="$CFLAGS" 9573 9574if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9575 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9577printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9578if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9579then : 9580 printf %s "(cached) " >&6 9581else $as_nop 9582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9583/* end confdefs.h. */ 9584int i; 9585_ACEOF 9586if ac_fn_c_try_compile "$LINENO" 9587then : 9588 xorg_cv_cc_flag_unknown_warning_option=yes 9589else $as_nop 9590 xorg_cv_cc_flag_unknown_warning_option=no 9591fi 9592rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9593fi 9594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9595printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9596 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9597 CFLAGS="$xorg_testset_save_CFLAGS" 9598fi 9599 9600if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9601 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9602 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9603 fi 9604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9606printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9607if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9608then : 9609 printf %s "(cached) " >&6 9610else $as_nop 9611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9612/* end confdefs.h. */ 9613int i; 9614_ACEOF 9615if ac_fn_c_try_compile "$LINENO" 9616then : 9617 xorg_cv_cc_flag_unused_command_line_argument=yes 9618else $as_nop 9619 xorg_cv_cc_flag_unused_command_line_argument=no 9620fi 9621rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9622fi 9623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9624printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9625 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9626 CFLAGS="$xorg_testset_save_CFLAGS" 9627fi 9628 9629found="no" 9630 9631 if test $found = "no" ; then 9632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9633 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9634 fi 9635 9636 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9638 fi 9639 9640 CFLAGS="$CFLAGS -Werror=trigraphs" 9641 9642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 9643printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 9644 cacheid=xorg_cv_cc_flag__Werror_trigraphs 9645 if eval test \${$cacheid+y} 9646then : 9647 printf %s "(cached) " >&6 9648else $as_nop 9649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9650/* end confdefs.h. */ 9651int i; 9652int 9653main (void) 9654{ 9655 9656 ; 9657 return 0; 9658} 9659_ACEOF 9660if ac_fn_c_try_link "$LINENO" 9661then : 9662 eval $cacheid=yes 9663else $as_nop 9664 eval $cacheid=no 9665fi 9666rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9667 conftest$ac_exeext conftest.$ac_ext 9668fi 9669 9670 9671 CFLAGS="$xorg_testset_save_CFLAGS" 9672 9673 eval supported=\$$cacheid 9674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9675printf "%s\n" "$supported" >&6; } 9676 if test "$supported" = "yes" ; then 9677 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 9678 found="yes" 9679 fi 9680 fi 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696xorg_testset_save_CFLAGS="$CFLAGS" 9697 9698if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9701printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9702if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9703then : 9704 printf %s "(cached) " >&6 9705else $as_nop 9706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9707/* end confdefs.h. */ 9708int i; 9709_ACEOF 9710if ac_fn_c_try_compile "$LINENO" 9711then : 9712 xorg_cv_cc_flag_unknown_warning_option=yes 9713else $as_nop 9714 xorg_cv_cc_flag_unknown_warning_option=no 9715fi 9716rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9717fi 9718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9719printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9720 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9721 CFLAGS="$xorg_testset_save_CFLAGS" 9722fi 9723 9724if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9726 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9727 fi 9728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9730printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9731if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9732then : 9733 printf %s "(cached) " >&6 9734else $as_nop 9735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9736/* end confdefs.h. */ 9737int i; 9738_ACEOF 9739if ac_fn_c_try_compile "$LINENO" 9740then : 9741 xorg_cv_cc_flag_unused_command_line_argument=yes 9742else $as_nop 9743 xorg_cv_cc_flag_unused_command_line_argument=no 9744fi 9745rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9746fi 9747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9748printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9749 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9750 CFLAGS="$xorg_testset_save_CFLAGS" 9751fi 9752 9753found="no" 9754 9755 if test $found = "no" ; then 9756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9757 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9758 fi 9759 9760 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9762 fi 9763 9764 CFLAGS="$CFLAGS -Werror=array-bounds" 9765 9766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 9767printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 9768 cacheid=xorg_cv_cc_flag__Werror_array_bounds 9769 if eval test \${$cacheid+y} 9770then : 9771 printf %s "(cached) " >&6 9772else $as_nop 9773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9774/* end confdefs.h. */ 9775int i; 9776int 9777main (void) 9778{ 9779 9780 ; 9781 return 0; 9782} 9783_ACEOF 9784if ac_fn_c_try_link "$LINENO" 9785then : 9786 eval $cacheid=yes 9787else $as_nop 9788 eval $cacheid=no 9789fi 9790rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9791 conftest$ac_exeext conftest.$ac_ext 9792fi 9793 9794 9795 CFLAGS="$xorg_testset_save_CFLAGS" 9796 9797 eval supported=\$$cacheid 9798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9799printf "%s\n" "$supported" >&6; } 9800 if test "$supported" = "yes" ; then 9801 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 9802 found="yes" 9803 fi 9804 fi 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820xorg_testset_save_CFLAGS="$CFLAGS" 9821 9822if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9825printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9826if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9827then : 9828 printf %s "(cached) " >&6 9829else $as_nop 9830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9831/* end confdefs.h. */ 9832int i; 9833_ACEOF 9834if ac_fn_c_try_compile "$LINENO" 9835then : 9836 xorg_cv_cc_flag_unknown_warning_option=yes 9837else $as_nop 9838 xorg_cv_cc_flag_unknown_warning_option=no 9839fi 9840rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9841fi 9842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9843printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9844 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9845 CFLAGS="$xorg_testset_save_CFLAGS" 9846fi 9847 9848if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9851 fi 9852 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9854printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9855if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9856then : 9857 printf %s "(cached) " >&6 9858else $as_nop 9859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9860/* end confdefs.h. */ 9861int i; 9862_ACEOF 9863if ac_fn_c_try_compile "$LINENO" 9864then : 9865 xorg_cv_cc_flag_unused_command_line_argument=yes 9866else $as_nop 9867 xorg_cv_cc_flag_unused_command_line_argument=no 9868fi 9869rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9870fi 9871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9872printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9873 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9874 CFLAGS="$xorg_testset_save_CFLAGS" 9875fi 9876 9877found="no" 9878 9879 if test $found = "no" ; then 9880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9882 fi 9883 9884 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9886 fi 9887 9888 CFLAGS="$CFLAGS -Werror=write-strings" 9889 9890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 9891printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 9892 cacheid=xorg_cv_cc_flag__Werror_write_strings 9893 if eval test \${$cacheid+y} 9894then : 9895 printf %s "(cached) " >&6 9896else $as_nop 9897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9898/* end confdefs.h. */ 9899int i; 9900int 9901main (void) 9902{ 9903 9904 ; 9905 return 0; 9906} 9907_ACEOF 9908if ac_fn_c_try_link "$LINENO" 9909then : 9910 eval $cacheid=yes 9911else $as_nop 9912 eval $cacheid=no 9913fi 9914rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9915 conftest$ac_exeext conftest.$ac_ext 9916fi 9917 9918 9919 CFLAGS="$xorg_testset_save_CFLAGS" 9920 9921 eval supported=\$$cacheid 9922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9923printf "%s\n" "$supported" >&6; } 9924 if test "$supported" = "yes" ; then 9925 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 9926 found="yes" 9927 fi 9928 fi 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944xorg_testset_save_CFLAGS="$CFLAGS" 9945 9946if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9947 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9949printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9950if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9951then : 9952 printf %s "(cached) " >&6 9953else $as_nop 9954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9955/* end confdefs.h. */ 9956int i; 9957_ACEOF 9958if ac_fn_c_try_compile "$LINENO" 9959then : 9960 xorg_cv_cc_flag_unknown_warning_option=yes 9961else $as_nop 9962 xorg_cv_cc_flag_unknown_warning_option=no 9963fi 9964rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9965fi 9966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9967printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9968 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9969 CFLAGS="$xorg_testset_save_CFLAGS" 9970fi 9971 9972if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9974 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9975 fi 9976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9978printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9979if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9980then : 9981 printf %s "(cached) " >&6 9982else $as_nop 9983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9984/* end confdefs.h. */ 9985int i; 9986_ACEOF 9987if ac_fn_c_try_compile "$LINENO" 9988then : 9989 xorg_cv_cc_flag_unused_command_line_argument=yes 9990else $as_nop 9991 xorg_cv_cc_flag_unused_command_line_argument=no 9992fi 9993rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9994fi 9995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9996printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9997 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9998 CFLAGS="$xorg_testset_save_CFLAGS" 9999fi 10000 10001found="no" 10002 10003 if test $found = "no" ; then 10004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10006 fi 10007 10008 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10010 fi 10011 10012 CFLAGS="$CFLAGS -Werror=address" 10013 10014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 10015printf %s "checking if $CC supports -Werror=address... " >&6; } 10016 cacheid=xorg_cv_cc_flag__Werror_address 10017 if eval test \${$cacheid+y} 10018then : 10019 printf %s "(cached) " >&6 10020else $as_nop 10021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10022/* end confdefs.h. */ 10023int i; 10024int 10025main (void) 10026{ 10027 10028 ; 10029 return 0; 10030} 10031_ACEOF 10032if ac_fn_c_try_link "$LINENO" 10033then : 10034 eval $cacheid=yes 10035else $as_nop 10036 eval $cacheid=no 10037fi 10038rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10039 conftest$ac_exeext conftest.$ac_ext 10040fi 10041 10042 10043 CFLAGS="$xorg_testset_save_CFLAGS" 10044 10045 eval supported=\$$cacheid 10046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10047printf "%s\n" "$supported" >&6; } 10048 if test "$supported" = "yes" ; then 10049 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 10050 found="yes" 10051 fi 10052 fi 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068xorg_testset_save_CFLAGS="$CFLAGS" 10069 10070if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10073printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10074if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10075then : 10076 printf %s "(cached) " >&6 10077else $as_nop 10078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10079/* end confdefs.h. */ 10080int i; 10081_ACEOF 10082if ac_fn_c_try_compile "$LINENO" 10083then : 10084 xorg_cv_cc_flag_unknown_warning_option=yes 10085else $as_nop 10086 xorg_cv_cc_flag_unknown_warning_option=no 10087fi 10088rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10089fi 10090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10091printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10092 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10093 CFLAGS="$xorg_testset_save_CFLAGS" 10094fi 10095 10096if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10098 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10099 fi 10100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10102printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10103if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10104then : 10105 printf %s "(cached) " >&6 10106else $as_nop 10107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10108/* end confdefs.h. */ 10109int i; 10110_ACEOF 10111if ac_fn_c_try_compile "$LINENO" 10112then : 10113 xorg_cv_cc_flag_unused_command_line_argument=yes 10114else $as_nop 10115 xorg_cv_cc_flag_unused_command_line_argument=no 10116fi 10117rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10118fi 10119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10120printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10121 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10122 CFLAGS="$xorg_testset_save_CFLAGS" 10123fi 10124 10125found="no" 10126 10127 if test $found = "no" ; then 10128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10129 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10130 fi 10131 10132 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10134 fi 10135 10136 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 10137 10138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 10139printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 10140 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 10141 if eval test \${$cacheid+y} 10142then : 10143 printf %s "(cached) " >&6 10144else $as_nop 10145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10146/* end confdefs.h. */ 10147int i; 10148int 10149main (void) 10150{ 10151 10152 ; 10153 return 0; 10154} 10155_ACEOF 10156if ac_fn_c_try_link "$LINENO" 10157then : 10158 eval $cacheid=yes 10159else $as_nop 10160 eval $cacheid=no 10161fi 10162rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10163 conftest$ac_exeext conftest.$ac_ext 10164fi 10165 10166 10167 CFLAGS="$xorg_testset_save_CFLAGS" 10168 10169 eval supported=\$$cacheid 10170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10171printf "%s\n" "$supported" >&6; } 10172 if test "$supported" = "yes" ; then 10173 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 10174 found="yes" 10175 fi 10176 fi 10177 10178 if test $found = "no" ; then 10179 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10180 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10181 fi 10182 10183 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10184 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10185 fi 10186 10187 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 10188 10189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 10190printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 10191 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 10192 if eval test \${$cacheid+y} 10193then : 10194 printf %s "(cached) " >&6 10195else $as_nop 10196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10197/* end confdefs.h. */ 10198int i; 10199int 10200main (void) 10201{ 10202 10203 ; 10204 return 0; 10205} 10206_ACEOF 10207if ac_fn_c_try_link "$LINENO" 10208then : 10209 eval $cacheid=yes 10210else $as_nop 10211 eval $cacheid=no 10212fi 10213rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10214 conftest$ac_exeext conftest.$ac_ext 10215fi 10216 10217 10218 CFLAGS="$xorg_testset_save_CFLAGS" 10219 10220 eval supported=\$$cacheid 10221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10222printf "%s\n" "$supported" >&6; } 10223 if test "$supported" = "yes" ; then 10224 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 10225 found="yes" 10226 fi 10227 fi 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243xorg_testset_save_CFLAGS="$CFLAGS" 10244 10245if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10248printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10249if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10250then : 10251 printf %s "(cached) " >&6 10252else $as_nop 10253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10254/* end confdefs.h. */ 10255int i; 10256_ACEOF 10257if ac_fn_c_try_compile "$LINENO" 10258then : 10259 xorg_cv_cc_flag_unknown_warning_option=yes 10260else $as_nop 10261 xorg_cv_cc_flag_unknown_warning_option=no 10262fi 10263rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10264fi 10265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10266printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10267 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10268 CFLAGS="$xorg_testset_save_CFLAGS" 10269fi 10270 10271if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10272 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10273 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10274 fi 10275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10277printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10278if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10279then : 10280 printf %s "(cached) " >&6 10281else $as_nop 10282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10283/* end confdefs.h. */ 10284int i; 10285_ACEOF 10286if ac_fn_c_try_compile "$LINENO" 10287then : 10288 xorg_cv_cc_flag_unused_command_line_argument=yes 10289else $as_nop 10290 xorg_cv_cc_flag_unused_command_line_argument=no 10291fi 10292rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10293fi 10294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10295printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10296 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10297 CFLAGS="$xorg_testset_save_CFLAGS" 10298fi 10299 10300found="no" 10301 10302 if test $found = "no" ; then 10303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10305 fi 10306 10307 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10309 fi 10310 10311 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 10312 10313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 10314printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 10315 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 10316 if eval test \${$cacheid+y} 10317then : 10318 printf %s "(cached) " >&6 10319else $as_nop 10320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10321/* end confdefs.h. */ 10322int i; 10323int 10324main (void) 10325{ 10326 10327 ; 10328 return 0; 10329} 10330_ACEOF 10331if ac_fn_c_try_link "$LINENO" 10332then : 10333 eval $cacheid=yes 10334else $as_nop 10335 eval $cacheid=no 10336fi 10337rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10338 conftest$ac_exeext conftest.$ac_ext 10339fi 10340 10341 10342 CFLAGS="$xorg_testset_save_CFLAGS" 10343 10344 eval supported=\$$cacheid 10345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10346printf "%s\n" "$supported" >&6; } 10347 if test "$supported" = "yes" ; then 10348 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 10349 found="yes" 10350 fi 10351 fi 10352 10353 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 10354else 10355{ 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 10356printf "%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;} 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370xorg_testset_save_CFLAGS="$CFLAGS" 10371 10372if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10373 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10375printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10376if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10377then : 10378 printf %s "(cached) " >&6 10379else $as_nop 10380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10381/* end confdefs.h. */ 10382int i; 10383_ACEOF 10384if ac_fn_c_try_compile "$LINENO" 10385then : 10386 xorg_cv_cc_flag_unknown_warning_option=yes 10387else $as_nop 10388 xorg_cv_cc_flag_unknown_warning_option=no 10389fi 10390rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10391fi 10392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10393printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10394 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10395 CFLAGS="$xorg_testset_save_CFLAGS" 10396fi 10397 10398if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10401 fi 10402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10404printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10405if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10406then : 10407 printf %s "(cached) " >&6 10408else $as_nop 10409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10410/* end confdefs.h. */ 10411int i; 10412_ACEOF 10413if ac_fn_c_try_compile "$LINENO" 10414then : 10415 xorg_cv_cc_flag_unused_command_line_argument=yes 10416else $as_nop 10417 xorg_cv_cc_flag_unused_command_line_argument=no 10418fi 10419rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10420fi 10421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10422printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10423 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10424 CFLAGS="$xorg_testset_save_CFLAGS" 10425fi 10426 10427found="no" 10428 10429 if test $found = "no" ; then 10430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10432 fi 10433 10434 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10436 fi 10437 10438 CFLAGS="$CFLAGS -Wimplicit" 10439 10440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 10441printf %s "checking if $CC supports -Wimplicit... " >&6; } 10442 cacheid=xorg_cv_cc_flag__Wimplicit 10443 if eval test \${$cacheid+y} 10444then : 10445 printf %s "(cached) " >&6 10446else $as_nop 10447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10448/* end confdefs.h. */ 10449int i; 10450int 10451main (void) 10452{ 10453 10454 ; 10455 return 0; 10456} 10457_ACEOF 10458if ac_fn_c_try_link "$LINENO" 10459then : 10460 eval $cacheid=yes 10461else $as_nop 10462 eval $cacheid=no 10463fi 10464rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10465 conftest$ac_exeext conftest.$ac_ext 10466fi 10467 10468 10469 CFLAGS="$xorg_testset_save_CFLAGS" 10470 10471 eval supported=\$$cacheid 10472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10473printf "%s\n" "$supported" >&6; } 10474 if test "$supported" = "yes" ; then 10475 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 10476 found="yes" 10477 fi 10478 fi 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494xorg_testset_save_CFLAGS="$CFLAGS" 10495 10496if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10497 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10499printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10500if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10501then : 10502 printf %s "(cached) " >&6 10503else $as_nop 10504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10505/* end confdefs.h. */ 10506int i; 10507_ACEOF 10508if ac_fn_c_try_compile "$LINENO" 10509then : 10510 xorg_cv_cc_flag_unknown_warning_option=yes 10511else $as_nop 10512 xorg_cv_cc_flag_unknown_warning_option=no 10513fi 10514rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10515fi 10516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10517printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10518 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10519 CFLAGS="$xorg_testset_save_CFLAGS" 10520fi 10521 10522if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10525 fi 10526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10528printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10529if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10530then : 10531 printf %s "(cached) " >&6 10532else $as_nop 10533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10534/* end confdefs.h. */ 10535int i; 10536_ACEOF 10537if ac_fn_c_try_compile "$LINENO" 10538then : 10539 xorg_cv_cc_flag_unused_command_line_argument=yes 10540else $as_nop 10541 xorg_cv_cc_flag_unused_command_line_argument=no 10542fi 10543rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10544fi 10545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10546printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10547 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10548 CFLAGS="$xorg_testset_save_CFLAGS" 10549fi 10550 10551found="no" 10552 10553 if test $found = "no" ; then 10554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10555 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10556 fi 10557 10558 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10560 fi 10561 10562 CFLAGS="$CFLAGS -Wnonnull" 10563 10564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 10565printf %s "checking if $CC supports -Wnonnull... " >&6; } 10566 cacheid=xorg_cv_cc_flag__Wnonnull 10567 if eval test \${$cacheid+y} 10568then : 10569 printf %s "(cached) " >&6 10570else $as_nop 10571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10572/* end confdefs.h. */ 10573int i; 10574int 10575main (void) 10576{ 10577 10578 ; 10579 return 0; 10580} 10581_ACEOF 10582if ac_fn_c_try_link "$LINENO" 10583then : 10584 eval $cacheid=yes 10585else $as_nop 10586 eval $cacheid=no 10587fi 10588rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10589 conftest$ac_exeext conftest.$ac_ext 10590fi 10591 10592 10593 CFLAGS="$xorg_testset_save_CFLAGS" 10594 10595 eval supported=\$$cacheid 10596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10597printf "%s\n" "$supported" >&6; } 10598 if test "$supported" = "yes" ; then 10599 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 10600 found="yes" 10601 fi 10602 fi 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618xorg_testset_save_CFLAGS="$CFLAGS" 10619 10620if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10621 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10623printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10624if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10625then : 10626 printf %s "(cached) " >&6 10627else $as_nop 10628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10629/* end confdefs.h. */ 10630int i; 10631_ACEOF 10632if ac_fn_c_try_compile "$LINENO" 10633then : 10634 xorg_cv_cc_flag_unknown_warning_option=yes 10635else $as_nop 10636 xorg_cv_cc_flag_unknown_warning_option=no 10637fi 10638rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10639fi 10640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10641printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10642 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10643 CFLAGS="$xorg_testset_save_CFLAGS" 10644fi 10645 10646if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10649 fi 10650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10652printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10653if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10654then : 10655 printf %s "(cached) " >&6 10656else $as_nop 10657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10658/* end confdefs.h. */ 10659int i; 10660_ACEOF 10661if ac_fn_c_try_compile "$LINENO" 10662then : 10663 xorg_cv_cc_flag_unused_command_line_argument=yes 10664else $as_nop 10665 xorg_cv_cc_flag_unused_command_line_argument=no 10666fi 10667rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10668fi 10669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10670printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10671 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10672 CFLAGS="$xorg_testset_save_CFLAGS" 10673fi 10674 10675found="no" 10676 10677 if test $found = "no" ; then 10678 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10679 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10680 fi 10681 10682 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10684 fi 10685 10686 CFLAGS="$CFLAGS -Winit-self" 10687 10688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 10689printf %s "checking if $CC supports -Winit-self... " >&6; } 10690 cacheid=xorg_cv_cc_flag__Winit_self 10691 if eval test \${$cacheid+y} 10692then : 10693 printf %s "(cached) " >&6 10694else $as_nop 10695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10696/* end confdefs.h. */ 10697int i; 10698int 10699main (void) 10700{ 10701 10702 ; 10703 return 0; 10704} 10705_ACEOF 10706if ac_fn_c_try_link "$LINENO" 10707then : 10708 eval $cacheid=yes 10709else $as_nop 10710 eval $cacheid=no 10711fi 10712rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10713 conftest$ac_exeext conftest.$ac_ext 10714fi 10715 10716 10717 CFLAGS="$xorg_testset_save_CFLAGS" 10718 10719 eval supported=\$$cacheid 10720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10721printf "%s\n" "$supported" >&6; } 10722 if test "$supported" = "yes" ; then 10723 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 10724 found="yes" 10725 fi 10726 fi 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742xorg_testset_save_CFLAGS="$CFLAGS" 10743 10744if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10747printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10748if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10749then : 10750 printf %s "(cached) " >&6 10751else $as_nop 10752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10753/* end confdefs.h. */ 10754int i; 10755_ACEOF 10756if ac_fn_c_try_compile "$LINENO" 10757then : 10758 xorg_cv_cc_flag_unknown_warning_option=yes 10759else $as_nop 10760 xorg_cv_cc_flag_unknown_warning_option=no 10761fi 10762rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10763fi 10764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10765printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10766 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10767 CFLAGS="$xorg_testset_save_CFLAGS" 10768fi 10769 10770if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10772 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10773 fi 10774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10776printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10777if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10778then : 10779 printf %s "(cached) " >&6 10780else $as_nop 10781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10782/* end confdefs.h. */ 10783int i; 10784_ACEOF 10785if ac_fn_c_try_compile "$LINENO" 10786then : 10787 xorg_cv_cc_flag_unused_command_line_argument=yes 10788else $as_nop 10789 xorg_cv_cc_flag_unused_command_line_argument=no 10790fi 10791rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10792fi 10793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10794printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10795 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10796 CFLAGS="$xorg_testset_save_CFLAGS" 10797fi 10798 10799found="no" 10800 10801 if test $found = "no" ; then 10802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10804 fi 10805 10806 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10808 fi 10809 10810 CFLAGS="$CFLAGS -Wmain" 10811 10812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 10813printf %s "checking if $CC supports -Wmain... " >&6; } 10814 cacheid=xorg_cv_cc_flag__Wmain 10815 if eval test \${$cacheid+y} 10816then : 10817 printf %s "(cached) " >&6 10818else $as_nop 10819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10820/* end confdefs.h. */ 10821int i; 10822int 10823main (void) 10824{ 10825 10826 ; 10827 return 0; 10828} 10829_ACEOF 10830if ac_fn_c_try_link "$LINENO" 10831then : 10832 eval $cacheid=yes 10833else $as_nop 10834 eval $cacheid=no 10835fi 10836rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10837 conftest$ac_exeext conftest.$ac_ext 10838fi 10839 10840 10841 CFLAGS="$xorg_testset_save_CFLAGS" 10842 10843 eval supported=\$$cacheid 10844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10845printf "%s\n" "$supported" >&6; } 10846 if test "$supported" = "yes" ; then 10847 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 10848 found="yes" 10849 fi 10850 fi 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866xorg_testset_save_CFLAGS="$CFLAGS" 10867 10868if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10871printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10872if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10873then : 10874 printf %s "(cached) " >&6 10875else $as_nop 10876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10877/* end confdefs.h. */ 10878int i; 10879_ACEOF 10880if ac_fn_c_try_compile "$LINENO" 10881then : 10882 xorg_cv_cc_flag_unknown_warning_option=yes 10883else $as_nop 10884 xorg_cv_cc_flag_unknown_warning_option=no 10885fi 10886rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10887fi 10888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10889printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10890 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10891 CFLAGS="$xorg_testset_save_CFLAGS" 10892fi 10893 10894if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10897 fi 10898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10900printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10901if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10902then : 10903 printf %s "(cached) " >&6 10904else $as_nop 10905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10906/* end confdefs.h. */ 10907int i; 10908_ACEOF 10909if ac_fn_c_try_compile "$LINENO" 10910then : 10911 xorg_cv_cc_flag_unused_command_line_argument=yes 10912else $as_nop 10913 xorg_cv_cc_flag_unused_command_line_argument=no 10914fi 10915rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10916fi 10917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10918printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10919 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10920 CFLAGS="$xorg_testset_save_CFLAGS" 10921fi 10922 10923found="no" 10924 10925 if test $found = "no" ; then 10926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10928 fi 10929 10930 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10932 fi 10933 10934 CFLAGS="$CFLAGS -Wmissing-braces" 10935 10936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 10937printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 10938 cacheid=xorg_cv_cc_flag__Wmissing_braces 10939 if eval test \${$cacheid+y} 10940then : 10941 printf %s "(cached) " >&6 10942else $as_nop 10943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10944/* end confdefs.h. */ 10945int i; 10946int 10947main (void) 10948{ 10949 10950 ; 10951 return 0; 10952} 10953_ACEOF 10954if ac_fn_c_try_link "$LINENO" 10955then : 10956 eval $cacheid=yes 10957else $as_nop 10958 eval $cacheid=no 10959fi 10960rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10961 conftest$ac_exeext conftest.$ac_ext 10962fi 10963 10964 10965 CFLAGS="$xorg_testset_save_CFLAGS" 10966 10967 eval supported=\$$cacheid 10968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10969printf "%s\n" "$supported" >&6; } 10970 if test "$supported" = "yes" ; then 10971 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 10972 found="yes" 10973 fi 10974 fi 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990xorg_testset_save_CFLAGS="$CFLAGS" 10991 10992if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10995printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10996if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10997then : 10998 printf %s "(cached) " >&6 10999else $as_nop 11000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11001/* end confdefs.h. */ 11002int i; 11003_ACEOF 11004if ac_fn_c_try_compile "$LINENO" 11005then : 11006 xorg_cv_cc_flag_unknown_warning_option=yes 11007else $as_nop 11008 xorg_cv_cc_flag_unknown_warning_option=no 11009fi 11010rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11011fi 11012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11013printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11014 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11015 CFLAGS="$xorg_testset_save_CFLAGS" 11016fi 11017 11018if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11021 fi 11022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11024printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11025if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11026then : 11027 printf %s "(cached) " >&6 11028else $as_nop 11029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11030/* end confdefs.h. */ 11031int i; 11032_ACEOF 11033if ac_fn_c_try_compile "$LINENO" 11034then : 11035 xorg_cv_cc_flag_unused_command_line_argument=yes 11036else $as_nop 11037 xorg_cv_cc_flag_unused_command_line_argument=no 11038fi 11039rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11040fi 11041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11042printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11043 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11044 CFLAGS="$xorg_testset_save_CFLAGS" 11045fi 11046 11047found="no" 11048 11049 if test $found = "no" ; then 11050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11052 fi 11053 11054 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11056 fi 11057 11058 CFLAGS="$CFLAGS -Wsequence-point" 11059 11060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 11061printf %s "checking if $CC supports -Wsequence-point... " >&6; } 11062 cacheid=xorg_cv_cc_flag__Wsequence_point 11063 if eval test \${$cacheid+y} 11064then : 11065 printf %s "(cached) " >&6 11066else $as_nop 11067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11068/* end confdefs.h. */ 11069int i; 11070int 11071main (void) 11072{ 11073 11074 ; 11075 return 0; 11076} 11077_ACEOF 11078if ac_fn_c_try_link "$LINENO" 11079then : 11080 eval $cacheid=yes 11081else $as_nop 11082 eval $cacheid=no 11083fi 11084rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11085 conftest$ac_exeext conftest.$ac_ext 11086fi 11087 11088 11089 CFLAGS="$xorg_testset_save_CFLAGS" 11090 11091 eval supported=\$$cacheid 11092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11093printf "%s\n" "$supported" >&6; } 11094 if test "$supported" = "yes" ; then 11095 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 11096 found="yes" 11097 fi 11098 fi 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114xorg_testset_save_CFLAGS="$CFLAGS" 11115 11116if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11119printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11120if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11121then : 11122 printf %s "(cached) " >&6 11123else $as_nop 11124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11125/* end confdefs.h. */ 11126int i; 11127_ACEOF 11128if ac_fn_c_try_compile "$LINENO" 11129then : 11130 xorg_cv_cc_flag_unknown_warning_option=yes 11131else $as_nop 11132 xorg_cv_cc_flag_unknown_warning_option=no 11133fi 11134rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11135fi 11136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11137printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11138 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11139 CFLAGS="$xorg_testset_save_CFLAGS" 11140fi 11141 11142if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11144 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11145 fi 11146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11148printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11149if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11150then : 11151 printf %s "(cached) " >&6 11152else $as_nop 11153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11154/* end confdefs.h. */ 11155int i; 11156_ACEOF 11157if ac_fn_c_try_compile "$LINENO" 11158then : 11159 xorg_cv_cc_flag_unused_command_line_argument=yes 11160else $as_nop 11161 xorg_cv_cc_flag_unused_command_line_argument=no 11162fi 11163rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11164fi 11165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11166printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11167 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11168 CFLAGS="$xorg_testset_save_CFLAGS" 11169fi 11170 11171found="no" 11172 11173 if test $found = "no" ; then 11174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11176 fi 11177 11178 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11180 fi 11181 11182 CFLAGS="$CFLAGS -Wreturn-type" 11183 11184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 11185printf %s "checking if $CC supports -Wreturn-type... " >&6; } 11186 cacheid=xorg_cv_cc_flag__Wreturn_type 11187 if eval test \${$cacheid+y} 11188then : 11189 printf %s "(cached) " >&6 11190else $as_nop 11191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11192/* end confdefs.h. */ 11193int i; 11194int 11195main (void) 11196{ 11197 11198 ; 11199 return 0; 11200} 11201_ACEOF 11202if ac_fn_c_try_link "$LINENO" 11203then : 11204 eval $cacheid=yes 11205else $as_nop 11206 eval $cacheid=no 11207fi 11208rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11209 conftest$ac_exeext conftest.$ac_ext 11210fi 11211 11212 11213 CFLAGS="$xorg_testset_save_CFLAGS" 11214 11215 eval supported=\$$cacheid 11216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11217printf "%s\n" "$supported" >&6; } 11218 if test "$supported" = "yes" ; then 11219 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 11220 found="yes" 11221 fi 11222 fi 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238xorg_testset_save_CFLAGS="$CFLAGS" 11239 11240if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11243printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11244if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11245then : 11246 printf %s "(cached) " >&6 11247else $as_nop 11248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11249/* end confdefs.h. */ 11250int i; 11251_ACEOF 11252if ac_fn_c_try_compile "$LINENO" 11253then : 11254 xorg_cv_cc_flag_unknown_warning_option=yes 11255else $as_nop 11256 xorg_cv_cc_flag_unknown_warning_option=no 11257fi 11258rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11259fi 11260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11261printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11262 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11263 CFLAGS="$xorg_testset_save_CFLAGS" 11264fi 11265 11266if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11269 fi 11270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11272printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11273if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11274then : 11275 printf %s "(cached) " >&6 11276else $as_nop 11277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11278/* end confdefs.h. */ 11279int i; 11280_ACEOF 11281if ac_fn_c_try_compile "$LINENO" 11282then : 11283 xorg_cv_cc_flag_unused_command_line_argument=yes 11284else $as_nop 11285 xorg_cv_cc_flag_unused_command_line_argument=no 11286fi 11287rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11288fi 11289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11290printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11291 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11292 CFLAGS="$xorg_testset_save_CFLAGS" 11293fi 11294 11295found="no" 11296 11297 if test $found = "no" ; then 11298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11300 fi 11301 11302 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11304 fi 11305 11306 CFLAGS="$CFLAGS -Wtrigraphs" 11307 11308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 11309printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 11310 cacheid=xorg_cv_cc_flag__Wtrigraphs 11311 if eval test \${$cacheid+y} 11312then : 11313 printf %s "(cached) " >&6 11314else $as_nop 11315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11316/* end confdefs.h. */ 11317int i; 11318int 11319main (void) 11320{ 11321 11322 ; 11323 return 0; 11324} 11325_ACEOF 11326if ac_fn_c_try_link "$LINENO" 11327then : 11328 eval $cacheid=yes 11329else $as_nop 11330 eval $cacheid=no 11331fi 11332rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11333 conftest$ac_exeext conftest.$ac_ext 11334fi 11335 11336 11337 CFLAGS="$xorg_testset_save_CFLAGS" 11338 11339 eval supported=\$$cacheid 11340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11341printf "%s\n" "$supported" >&6; } 11342 if test "$supported" = "yes" ; then 11343 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 11344 found="yes" 11345 fi 11346 fi 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362xorg_testset_save_CFLAGS="$CFLAGS" 11363 11364if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11365 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11367printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11368if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11369then : 11370 printf %s "(cached) " >&6 11371else $as_nop 11372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11373/* end confdefs.h. */ 11374int i; 11375_ACEOF 11376if ac_fn_c_try_compile "$LINENO" 11377then : 11378 xorg_cv_cc_flag_unknown_warning_option=yes 11379else $as_nop 11380 xorg_cv_cc_flag_unknown_warning_option=no 11381fi 11382rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11383fi 11384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11385printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11386 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11387 CFLAGS="$xorg_testset_save_CFLAGS" 11388fi 11389 11390if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11392 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11393 fi 11394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11396printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11397if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11398then : 11399 printf %s "(cached) " >&6 11400else $as_nop 11401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11402/* end confdefs.h. */ 11403int i; 11404_ACEOF 11405if ac_fn_c_try_compile "$LINENO" 11406then : 11407 xorg_cv_cc_flag_unused_command_line_argument=yes 11408else $as_nop 11409 xorg_cv_cc_flag_unused_command_line_argument=no 11410fi 11411rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11412fi 11413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11414printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11415 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11416 CFLAGS="$xorg_testset_save_CFLAGS" 11417fi 11418 11419found="no" 11420 11421 if test $found = "no" ; then 11422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11424 fi 11425 11426 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11428 fi 11429 11430 CFLAGS="$CFLAGS -Warray-bounds" 11431 11432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 11433printf %s "checking if $CC supports -Warray-bounds... " >&6; } 11434 cacheid=xorg_cv_cc_flag__Warray_bounds 11435 if eval test \${$cacheid+y} 11436then : 11437 printf %s "(cached) " >&6 11438else $as_nop 11439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11440/* end confdefs.h. */ 11441int i; 11442int 11443main (void) 11444{ 11445 11446 ; 11447 return 0; 11448} 11449_ACEOF 11450if ac_fn_c_try_link "$LINENO" 11451then : 11452 eval $cacheid=yes 11453else $as_nop 11454 eval $cacheid=no 11455fi 11456rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11457 conftest$ac_exeext conftest.$ac_ext 11458fi 11459 11460 11461 CFLAGS="$xorg_testset_save_CFLAGS" 11462 11463 eval supported=\$$cacheid 11464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11465printf "%s\n" "$supported" >&6; } 11466 if test "$supported" = "yes" ; then 11467 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 11468 found="yes" 11469 fi 11470 fi 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486xorg_testset_save_CFLAGS="$CFLAGS" 11487 11488if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11491printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11492if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11493then : 11494 printf %s "(cached) " >&6 11495else $as_nop 11496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11497/* end confdefs.h. */ 11498int i; 11499_ACEOF 11500if ac_fn_c_try_compile "$LINENO" 11501then : 11502 xorg_cv_cc_flag_unknown_warning_option=yes 11503else $as_nop 11504 xorg_cv_cc_flag_unknown_warning_option=no 11505fi 11506rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11507fi 11508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11509printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11510 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11511 CFLAGS="$xorg_testset_save_CFLAGS" 11512fi 11513 11514if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11517 fi 11518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11520printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11521if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11522then : 11523 printf %s "(cached) " >&6 11524else $as_nop 11525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11526/* end confdefs.h. */ 11527int i; 11528_ACEOF 11529if ac_fn_c_try_compile "$LINENO" 11530then : 11531 xorg_cv_cc_flag_unused_command_line_argument=yes 11532else $as_nop 11533 xorg_cv_cc_flag_unused_command_line_argument=no 11534fi 11535rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11536fi 11537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11538printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11539 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11540 CFLAGS="$xorg_testset_save_CFLAGS" 11541fi 11542 11543found="no" 11544 11545 if test $found = "no" ; then 11546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11548 fi 11549 11550 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11552 fi 11553 11554 CFLAGS="$CFLAGS -Wwrite-strings" 11555 11556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 11557printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 11558 cacheid=xorg_cv_cc_flag__Wwrite_strings 11559 if eval test \${$cacheid+y} 11560then : 11561 printf %s "(cached) " >&6 11562else $as_nop 11563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11564/* end confdefs.h. */ 11565int i; 11566int 11567main (void) 11568{ 11569 11570 ; 11571 return 0; 11572} 11573_ACEOF 11574if ac_fn_c_try_link "$LINENO" 11575then : 11576 eval $cacheid=yes 11577else $as_nop 11578 eval $cacheid=no 11579fi 11580rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11581 conftest$ac_exeext conftest.$ac_ext 11582fi 11583 11584 11585 CFLAGS="$xorg_testset_save_CFLAGS" 11586 11587 eval supported=\$$cacheid 11588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11589printf "%s\n" "$supported" >&6; } 11590 if test "$supported" = "yes" ; then 11591 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 11592 found="yes" 11593 fi 11594 fi 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610xorg_testset_save_CFLAGS="$CFLAGS" 11611 11612if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11613 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11615printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11616if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11617then : 11618 printf %s "(cached) " >&6 11619else $as_nop 11620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11621/* end confdefs.h. */ 11622int i; 11623_ACEOF 11624if ac_fn_c_try_compile "$LINENO" 11625then : 11626 xorg_cv_cc_flag_unknown_warning_option=yes 11627else $as_nop 11628 xorg_cv_cc_flag_unknown_warning_option=no 11629fi 11630rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11631fi 11632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11633printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11634 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11635 CFLAGS="$xorg_testset_save_CFLAGS" 11636fi 11637 11638if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11641 fi 11642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11644printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11645if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11646then : 11647 printf %s "(cached) " >&6 11648else $as_nop 11649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11650/* end confdefs.h. */ 11651int i; 11652_ACEOF 11653if ac_fn_c_try_compile "$LINENO" 11654then : 11655 xorg_cv_cc_flag_unused_command_line_argument=yes 11656else $as_nop 11657 xorg_cv_cc_flag_unused_command_line_argument=no 11658fi 11659rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11660fi 11661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11662printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11663 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11664 CFLAGS="$xorg_testset_save_CFLAGS" 11665fi 11666 11667found="no" 11668 11669 if test $found = "no" ; then 11670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11671 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11672 fi 11673 11674 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11676 fi 11677 11678 CFLAGS="$CFLAGS -Waddress" 11679 11680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 11681printf %s "checking if $CC supports -Waddress... " >&6; } 11682 cacheid=xorg_cv_cc_flag__Waddress 11683 if eval test \${$cacheid+y} 11684then : 11685 printf %s "(cached) " >&6 11686else $as_nop 11687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11688/* end confdefs.h. */ 11689int i; 11690int 11691main (void) 11692{ 11693 11694 ; 11695 return 0; 11696} 11697_ACEOF 11698if ac_fn_c_try_link "$LINENO" 11699then : 11700 eval $cacheid=yes 11701else $as_nop 11702 eval $cacheid=no 11703fi 11704rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11705 conftest$ac_exeext conftest.$ac_ext 11706fi 11707 11708 11709 CFLAGS="$xorg_testset_save_CFLAGS" 11710 11711 eval supported=\$$cacheid 11712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11713printf "%s\n" "$supported" >&6; } 11714 if test "$supported" = "yes" ; then 11715 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 11716 found="yes" 11717 fi 11718 fi 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734xorg_testset_save_CFLAGS="$CFLAGS" 11735 11736if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11739printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11740if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11741then : 11742 printf %s "(cached) " >&6 11743else $as_nop 11744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11745/* end confdefs.h. */ 11746int i; 11747_ACEOF 11748if ac_fn_c_try_compile "$LINENO" 11749then : 11750 xorg_cv_cc_flag_unknown_warning_option=yes 11751else $as_nop 11752 xorg_cv_cc_flag_unknown_warning_option=no 11753fi 11754rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11755fi 11756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11757printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11758 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11759 CFLAGS="$xorg_testset_save_CFLAGS" 11760fi 11761 11762if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11764 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11765 fi 11766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11768printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11769if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11770then : 11771 printf %s "(cached) " >&6 11772else $as_nop 11773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11774/* end confdefs.h. */ 11775int i; 11776_ACEOF 11777if ac_fn_c_try_compile "$LINENO" 11778then : 11779 xorg_cv_cc_flag_unused_command_line_argument=yes 11780else $as_nop 11781 xorg_cv_cc_flag_unused_command_line_argument=no 11782fi 11783rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11784fi 11785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11786printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11787 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11788 CFLAGS="$xorg_testset_save_CFLAGS" 11789fi 11790 11791found="no" 11792 11793 if test $found = "no" ; then 11794 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11796 fi 11797 11798 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11800 fi 11801 11802 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 11803 11804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 11805printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 11806 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 11807 if eval test \${$cacheid+y} 11808then : 11809 printf %s "(cached) " >&6 11810else $as_nop 11811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11812/* end confdefs.h. */ 11813int i; 11814int 11815main (void) 11816{ 11817 11818 ; 11819 return 0; 11820} 11821_ACEOF 11822if ac_fn_c_try_link "$LINENO" 11823then : 11824 eval $cacheid=yes 11825else $as_nop 11826 eval $cacheid=no 11827fi 11828rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11829 conftest$ac_exeext conftest.$ac_ext 11830fi 11831 11832 11833 CFLAGS="$xorg_testset_save_CFLAGS" 11834 11835 eval supported=\$$cacheid 11836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11837printf "%s\n" "$supported" >&6; } 11838 if test "$supported" = "yes" ; then 11839 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 11840 found="yes" 11841 fi 11842 fi 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858xorg_testset_save_CFLAGS="$CFLAGS" 11859 11860if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11863printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11864if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11865then : 11866 printf %s "(cached) " >&6 11867else $as_nop 11868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11869/* end confdefs.h. */ 11870int i; 11871_ACEOF 11872if ac_fn_c_try_compile "$LINENO" 11873then : 11874 xorg_cv_cc_flag_unknown_warning_option=yes 11875else $as_nop 11876 xorg_cv_cc_flag_unknown_warning_option=no 11877fi 11878rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11879fi 11880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11881printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11882 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11883 CFLAGS="$xorg_testset_save_CFLAGS" 11884fi 11885 11886if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11889 fi 11890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11892printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11893if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11894then : 11895 printf %s "(cached) " >&6 11896else $as_nop 11897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11898/* end confdefs.h. */ 11899int i; 11900_ACEOF 11901if ac_fn_c_try_compile "$LINENO" 11902then : 11903 xorg_cv_cc_flag_unused_command_line_argument=yes 11904else $as_nop 11905 xorg_cv_cc_flag_unused_command_line_argument=no 11906fi 11907rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11908fi 11909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11910printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11911 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11912 CFLAGS="$xorg_testset_save_CFLAGS" 11913fi 11914 11915found="no" 11916 11917 if test $found = "no" ; then 11918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11920 fi 11921 11922 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11924 fi 11925 11926 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 11927 11928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 11929printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 11930 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 11931 if eval test \${$cacheid+y} 11932then : 11933 printf %s "(cached) " >&6 11934else $as_nop 11935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11936/* end confdefs.h. */ 11937int i; 11938int 11939main (void) 11940{ 11941 11942 ; 11943 return 0; 11944} 11945_ACEOF 11946if ac_fn_c_try_link "$LINENO" 11947then : 11948 eval $cacheid=yes 11949else $as_nop 11950 eval $cacheid=no 11951fi 11952rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11953 conftest$ac_exeext conftest.$ac_ext 11954fi 11955 11956 11957 CFLAGS="$xorg_testset_save_CFLAGS" 11958 11959 eval supported=\$$cacheid 11960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11961printf "%s\n" "$supported" >&6; } 11962 if test "$supported" = "yes" ; then 11963 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 11964 found="yes" 11965 fi 11966 fi 11967 11968 11969fi 11970 11971 11972 11973 11974 11975 11976 11977 CWARNFLAGS="$BASE_CFLAGS" 11978 if test "x$GCC" = xyes ; then 11979 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 11980 fi 11981 11982 11983 11984 11985 11986 11987 11988 11989# Check whether --enable-strict-compilation was given. 11990if test ${enable_strict_compilation+y} 11991then : 11992 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 11993else $as_nop 11994 STRICT_COMPILE=no 11995fi 11996 11997 11998 11999 12000 12001 12002STRICT_CFLAGS="" 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016xorg_testset_save_CFLAGS="$CFLAGS" 12017 12018if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12019 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12021printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12022if test ${xorg_cv_cc_flag_unknown_warning_option+y} 12023then : 12024 printf %s "(cached) " >&6 12025else $as_nop 12026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12027/* end confdefs.h. */ 12028int i; 12029_ACEOF 12030if ac_fn_c_try_compile "$LINENO" 12031then : 12032 xorg_cv_cc_flag_unknown_warning_option=yes 12033else $as_nop 12034 xorg_cv_cc_flag_unknown_warning_option=no 12035fi 12036rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12037fi 12038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12039printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12040 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12041 CFLAGS="$xorg_testset_save_CFLAGS" 12042fi 12043 12044if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12047 fi 12048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12050printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12051if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 12052then : 12053 printf %s "(cached) " >&6 12054else $as_nop 12055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12056/* end confdefs.h. */ 12057int i; 12058_ACEOF 12059if ac_fn_c_try_compile "$LINENO" 12060then : 12061 xorg_cv_cc_flag_unused_command_line_argument=yes 12062else $as_nop 12063 xorg_cv_cc_flag_unused_command_line_argument=no 12064fi 12065rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12066fi 12067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12068printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12069 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12070 CFLAGS="$xorg_testset_save_CFLAGS" 12071fi 12072 12073found="no" 12074 12075 if test $found = "no" ; then 12076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12078 fi 12079 12080 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12082 fi 12083 12084 CFLAGS="$CFLAGS -pedantic" 12085 12086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 12087printf %s "checking if $CC supports -pedantic... " >&6; } 12088 cacheid=xorg_cv_cc_flag__pedantic 12089 if eval test \${$cacheid+y} 12090then : 12091 printf %s "(cached) " >&6 12092else $as_nop 12093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12094/* end confdefs.h. */ 12095int i; 12096int 12097main (void) 12098{ 12099 12100 ; 12101 return 0; 12102} 12103_ACEOF 12104if ac_fn_c_try_link "$LINENO" 12105then : 12106 eval $cacheid=yes 12107else $as_nop 12108 eval $cacheid=no 12109fi 12110rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12111 conftest$ac_exeext conftest.$ac_ext 12112fi 12113 12114 12115 CFLAGS="$xorg_testset_save_CFLAGS" 12116 12117 eval supported=\$$cacheid 12118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12119printf "%s\n" "$supported" >&6; } 12120 if test "$supported" = "yes" ; then 12121 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 12122 found="yes" 12123 fi 12124 fi 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140xorg_testset_save_CFLAGS="$CFLAGS" 12141 12142if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12143 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12145printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12146if test ${xorg_cv_cc_flag_unknown_warning_option+y} 12147then : 12148 printf %s "(cached) " >&6 12149else $as_nop 12150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12151/* end confdefs.h. */ 12152int i; 12153_ACEOF 12154if ac_fn_c_try_compile "$LINENO" 12155then : 12156 xorg_cv_cc_flag_unknown_warning_option=yes 12157else $as_nop 12158 xorg_cv_cc_flag_unknown_warning_option=no 12159fi 12160rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12161fi 12162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12163printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12164 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12165 CFLAGS="$xorg_testset_save_CFLAGS" 12166fi 12167 12168if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12171 fi 12172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12174printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12175if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 12176then : 12177 printf %s "(cached) " >&6 12178else $as_nop 12179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12180/* end confdefs.h. */ 12181int i; 12182_ACEOF 12183if ac_fn_c_try_compile "$LINENO" 12184then : 12185 xorg_cv_cc_flag_unused_command_line_argument=yes 12186else $as_nop 12187 xorg_cv_cc_flag_unused_command_line_argument=no 12188fi 12189rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12190fi 12191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12192printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12193 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12194 CFLAGS="$xorg_testset_save_CFLAGS" 12195fi 12196 12197found="no" 12198 12199 if test $found = "no" ; then 12200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12202 fi 12203 12204 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12206 fi 12207 12208 CFLAGS="$CFLAGS -Werror" 12209 12210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 12211printf %s "checking if $CC supports -Werror... " >&6; } 12212 cacheid=xorg_cv_cc_flag__Werror 12213 if eval test \${$cacheid+y} 12214then : 12215 printf %s "(cached) " >&6 12216else $as_nop 12217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12218/* end confdefs.h. */ 12219int i; 12220int 12221main (void) 12222{ 12223 12224 ; 12225 return 0; 12226} 12227_ACEOF 12228if ac_fn_c_try_link "$LINENO" 12229then : 12230 eval $cacheid=yes 12231else $as_nop 12232 eval $cacheid=no 12233fi 12234rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12235 conftest$ac_exeext conftest.$ac_ext 12236fi 12237 12238 12239 CFLAGS="$xorg_testset_save_CFLAGS" 12240 12241 eval supported=\$$cacheid 12242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12243printf "%s\n" "$supported" >&6; } 12244 if test "$supported" = "yes" ; then 12245 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 12246 found="yes" 12247 fi 12248 fi 12249 12250 if test $found = "no" ; then 12251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12253 fi 12254 12255 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12257 fi 12258 12259 CFLAGS="$CFLAGS -errwarn" 12260 12261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 12262printf %s "checking if $CC supports -errwarn... " >&6; } 12263 cacheid=xorg_cv_cc_flag__errwarn 12264 if eval test \${$cacheid+y} 12265then : 12266 printf %s "(cached) " >&6 12267else $as_nop 12268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12269/* end confdefs.h. */ 12270int i; 12271int 12272main (void) 12273{ 12274 12275 ; 12276 return 0; 12277} 12278_ACEOF 12279if ac_fn_c_try_link "$LINENO" 12280then : 12281 eval $cacheid=yes 12282else $as_nop 12283 eval $cacheid=no 12284fi 12285rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12286 conftest$ac_exeext conftest.$ac_ext 12287fi 12288 12289 12290 CFLAGS="$xorg_testset_save_CFLAGS" 12291 12292 eval supported=\$$cacheid 12293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12294printf "%s\n" "$supported" >&6; } 12295 if test "$supported" = "yes" ; then 12296 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 12297 found="yes" 12298 fi 12299 fi 12300 12301 12302 12303# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 12304# activate it with -Werror, so we add it here explicitly. 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318xorg_testset_save_CFLAGS="$CFLAGS" 12319 12320if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12323printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12324if test ${xorg_cv_cc_flag_unknown_warning_option+y} 12325then : 12326 printf %s "(cached) " >&6 12327else $as_nop 12328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12329/* end confdefs.h. */ 12330int i; 12331_ACEOF 12332if ac_fn_c_try_compile "$LINENO" 12333then : 12334 xorg_cv_cc_flag_unknown_warning_option=yes 12335else $as_nop 12336 xorg_cv_cc_flag_unknown_warning_option=no 12337fi 12338rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12339fi 12340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12341printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12342 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12343 CFLAGS="$xorg_testset_save_CFLAGS" 12344fi 12345 12346if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12349 fi 12350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12352printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12353if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 12354then : 12355 printf %s "(cached) " >&6 12356else $as_nop 12357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12358/* end confdefs.h. */ 12359int i; 12360_ACEOF 12361if ac_fn_c_try_compile "$LINENO" 12362then : 12363 xorg_cv_cc_flag_unused_command_line_argument=yes 12364else $as_nop 12365 xorg_cv_cc_flag_unused_command_line_argument=no 12366fi 12367rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12368fi 12369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12370printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12371 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12372 CFLAGS="$xorg_testset_save_CFLAGS" 12373fi 12374 12375found="no" 12376 12377 if test $found = "no" ; then 12378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12379 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12380 fi 12381 12382 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12384 fi 12385 12386 CFLAGS="$CFLAGS -Werror=attributes" 12387 12388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 12389printf %s "checking if $CC supports -Werror=attributes... " >&6; } 12390 cacheid=xorg_cv_cc_flag__Werror_attributes 12391 if eval test \${$cacheid+y} 12392then : 12393 printf %s "(cached) " >&6 12394else $as_nop 12395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12396/* end confdefs.h. */ 12397int i; 12398int 12399main (void) 12400{ 12401 12402 ; 12403 return 0; 12404} 12405_ACEOF 12406if ac_fn_c_try_link "$LINENO" 12407then : 12408 eval $cacheid=yes 12409else $as_nop 12410 eval $cacheid=no 12411fi 12412rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12413 conftest$ac_exeext conftest.$ac_ext 12414fi 12415 12416 12417 CFLAGS="$xorg_testset_save_CFLAGS" 12418 12419 eval supported=\$$cacheid 12420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12421printf "%s\n" "$supported" >&6; } 12422 if test "$supported" = "yes" ; then 12423 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 12424 found="yes" 12425 fi 12426 fi 12427 12428 12429 12430if test "x$STRICT_COMPILE" = "xyes"; then 12431 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 12432 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 12433fi 12434 12435 12436 12437 12438 12439 12440 12441 12442cat >>confdefs.h <<_ACEOF 12443#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 12444_ACEOF 12445 12446 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 12447 if test "x$PVM" = "x"; then 12448 PVM="0" 12449 fi 12450 12451printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 12452 12453 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 12454 if test "x$PVP" = "x"; then 12455 PVP="0" 12456 fi 12457 12458printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 12459 12460 12461 12462CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 12463mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 12464|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 12465touch \$(top_srcdir)/ChangeLog; \ 12466echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 12467 12468 12469 12470 12471macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 12472INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 12473mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 12474|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 12475touch \$(top_srcdir)/INSTALL; \ 12476echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 12477 12478 12479 12480 12481 12482 12483case $host_os in 12484 solaris*) 12485 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 12486 # check for a man page file found in later versions that use 12487 # traditional section numbers instead 12488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 12489printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 12490if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 12491then : 12492 printf %s "(cached) " >&6 12493else $as_nop 12494 test "$cross_compiling" = yes && 12495 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 12496if test -r "/usr/share/man/man7/attributes.7"; then 12497 ac_cv_file__usr_share_man_man7_attributes_7=yes 12498else 12499 ac_cv_file__usr_share_man_man7_attributes_7=no 12500fi 12501fi 12502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 12503printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 12504if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 12505then : 12506 SYSV_MAN_SECTIONS=false 12507else $as_nop 12508 SYSV_MAN_SECTIONS=true 12509fi 12510 12511 ;; 12512 *) SYSV_MAN_SECTIONS=false ;; 12513esac 12514 12515if test x$APP_MAN_SUFFIX = x ; then 12516 APP_MAN_SUFFIX=1 12517fi 12518if test x$APP_MAN_DIR = x ; then 12519 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 12520fi 12521 12522if test x$LIB_MAN_SUFFIX = x ; then 12523 LIB_MAN_SUFFIX=3 12524fi 12525if test x$LIB_MAN_DIR = x ; then 12526 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 12527fi 12528 12529if test x$FILE_MAN_SUFFIX = x ; then 12530 case $SYSV_MAN_SECTIONS in 12531 true) FILE_MAN_SUFFIX=4 ;; 12532 *) FILE_MAN_SUFFIX=5 ;; 12533 esac 12534fi 12535if test x$FILE_MAN_DIR = x ; then 12536 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 12537fi 12538 12539if test x$MISC_MAN_SUFFIX = x ; then 12540 case $SYSV_MAN_SECTIONS in 12541 true) MISC_MAN_SUFFIX=5 ;; 12542 *) MISC_MAN_SUFFIX=7 ;; 12543 esac 12544fi 12545if test x$MISC_MAN_DIR = x ; then 12546 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 12547fi 12548 12549if test x$DRIVER_MAN_SUFFIX = x ; then 12550 case $SYSV_MAN_SECTIONS in 12551 true) DRIVER_MAN_SUFFIX=7 ;; 12552 *) DRIVER_MAN_SUFFIX=4 ;; 12553 esac 12554fi 12555if test x$DRIVER_MAN_DIR = x ; then 12556 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 12557fi 12558 12559if test x$ADMIN_MAN_SUFFIX = x ; then 12560 case $SYSV_MAN_SECTIONS in 12561 true) ADMIN_MAN_SUFFIX=1m ;; 12562 *) ADMIN_MAN_SUFFIX=8 ;; 12563 esac 12564fi 12565if test x$ADMIN_MAN_DIR = x ; then 12566 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 12567fi 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583XORG_MAN_PAGE="X Version 11" 12584 12585MAN_SUBSTS="\ 12586 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 12587 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 12588 -e 's|__xservername__|Xorg|g' \ 12589 -e 's|__xconfigfile__|xorg.conf|g' \ 12590 -e 's|__projectroot__|\$(prefix)|g' \ 12591 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 12592 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 12593 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 12594 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 12595 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 12596 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 12597 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 12598 12599 12600 12601# Check whether --enable-silent-rules was given. 12602if test ${enable_silent_rules+y} 12603then : 12604 enableval=$enable_silent_rules; 12605fi 12606 12607case $enable_silent_rules in # ((( 12608 yes) AM_DEFAULT_VERBOSITY=0;; 12609 no) AM_DEFAULT_VERBOSITY=1;; 12610 *) AM_DEFAULT_VERBOSITY=0;; 12611esac 12612am_make=${MAKE-make} 12613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 12614printf %s "checking whether $am_make supports nested variables... " >&6; } 12615if test ${am_cv_make_support_nested_variables+y} 12616then : 12617 printf %s "(cached) " >&6 12618else $as_nop 12619 if printf "%s\n" 'TRUE=$(BAR$(V)) 12620BAR0=false 12621BAR1=true 12622V=1 12623am__doit: 12624 @$(TRUE) 12625.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 12626 am_cv_make_support_nested_variables=yes 12627else 12628 am_cv_make_support_nested_variables=no 12629fi 12630fi 12631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 12632printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 12633if test $am_cv_make_support_nested_variables = yes; then 12634 AM_V='$(V)' 12635 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 12636else 12637 AM_V=$AM_DEFAULT_VERBOSITY 12638 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 12639fi 12640AM_BACKSLASH='\' 12641 12642 12643 12644 12645 12646 12647 12648 12649# Check whether --with-doxygen was given. 12650if test ${with_doxygen+y} 12651then : 12652 withval=$with_doxygen; use_doxygen=$withval 12653else $as_nop 12654 use_doxygen=auto 12655fi 12656 12657 12658 12659if test "x$use_doxygen" = x"auto"; then 12660 # Extract the first word of "doxygen", so it can be a program name with args. 12661set dummy doxygen; ac_word=$2 12662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12663printf %s "checking for $ac_word... " >&6; } 12664if test ${ac_cv_path_DOXYGEN+y} 12665then : 12666 printf %s "(cached) " >&6 12667else $as_nop 12668 case $DOXYGEN in 12669 [\\/]* | ?:[\\/]*) 12670 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 12671 ;; 12672 *) 12673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12674for as_dir in $PATH 12675do 12676 IFS=$as_save_IFS 12677 case $as_dir in #((( 12678 '') as_dir=./ ;; 12679 */) ;; 12680 *) as_dir=$as_dir/ ;; 12681 esac 12682 for ac_exec_ext in '' $ac_executable_extensions; do 12683 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12684 ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext" 12685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12686 break 2 12687 fi 12688done 12689 done 12690IFS=$as_save_IFS 12691 12692 ;; 12693esac 12694fi 12695DOXYGEN=$ac_cv_path_DOXYGEN 12696if test -n "$DOXYGEN"; then 12697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 12698printf "%s\n" "$DOXYGEN" >&6; } 12699else 12700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12701printf "%s\n" "no" >&6; } 12702fi 12703 12704 12705 if test "x$DOXYGEN" = "x"; then 12706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - documentation targets will be skipped" >&5 12707printf "%s\n" "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;} 12708 have_doxygen=no 12709 else 12710 have_doxygen=yes 12711 fi 12712elif test "x$use_doxygen" = x"yes" ; then 12713 # Extract the first word of "doxygen", so it can be a program name with args. 12714set dummy doxygen; ac_word=$2 12715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12716printf %s "checking for $ac_word... " >&6; } 12717if test ${ac_cv_path_DOXYGEN+y} 12718then : 12719 printf %s "(cached) " >&6 12720else $as_nop 12721 case $DOXYGEN in 12722 [\\/]* | ?:[\\/]*) 12723 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 12724 ;; 12725 *) 12726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12727for as_dir in $PATH 12728do 12729 IFS=$as_save_IFS 12730 case $as_dir in #((( 12731 '') as_dir=./ ;; 12732 */) ;; 12733 *) as_dir=$as_dir/ ;; 12734 esac 12735 for ac_exec_ext in '' $ac_executable_extensions; do 12736 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12737 ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext" 12738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12739 break 2 12740 fi 12741done 12742 done 12743IFS=$as_save_IFS 12744 12745 ;; 12746esac 12747fi 12748DOXYGEN=$ac_cv_path_DOXYGEN 12749if test -n "$DOXYGEN"; then 12750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 12751printf "%s\n" "$DOXYGEN" >&6; } 12752else 12753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12754printf "%s\n" "no" >&6; } 12755fi 12756 12757 12758 if test "x$DOXYGEN" = "x"; then 12759 as_fn_error $? "--with-doxygen=yes specified but doxygen not found in PATH" "$LINENO" 5 12760 fi 12761 have_doxygen=yes 12762elif test "x$use_doxygen" = x"no" ; then 12763 if test "x$DOXYGEN" != "x"; then 12764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5 12765printf "%s\n" "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;} 12766 fi 12767 have_doxygen=no 12768else 12769 as_fn_error $? "--with-doxygen expects 'yes' or 'no'" "$LINENO" 5 12770fi 12771if test "$have_doxygen" = yes; then 12772 # scrape the doxygen version 12773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the doxygen version" >&5 12774printf %s "checking the doxygen version... " >&6; } 12775 doxygen_version=`$DOXYGEN --version 2>/dev/null` 12776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $doxygen_version" >&5 12777printf "%s\n" "$doxygen_version" >&6; } 12778 as_arg_v1=$doxygen_version 12779as_arg_v2=1.6.1 12780awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 12781case $? in #( 12782 1) : 12783 if test "x$use_doxygen" = xauto; then 12784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&5 12785printf "%s\n" "$as_me: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&2;} 12786 have_doxygen=no 12787 else 12788 as_fn_error $? "doxygen version $doxygen_version found, but 1.6.1 needed" "$LINENO" 5 12789 fi ;; #( 12790 0) : 12791 ;; #( 12792 2) : 12793 ;; #( 12794 *) : 12795 ;; 12796esac 12797fi 12798 12799HAVE_DOT=no 12800if test "x$have_doxygen" = "xyes"; then 12801 # Extract the first word of "dot", so it can be a program name with args. 12802set dummy dot; ac_word=$2 12803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12804printf %s "checking for $ac_word... " >&6; } 12805if test ${ac_cv_path_DOT+y} 12806then : 12807 printf %s "(cached) " >&6 12808else $as_nop 12809 case $DOT in 12810 [\\/]* | ?:[\\/]*) 12811 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 12812 ;; 12813 *) 12814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12815for as_dir in $PATH 12816do 12817 IFS=$as_save_IFS 12818 case $as_dir in #((( 12819 '') as_dir=./ ;; 12820 */) ;; 12821 *) as_dir=$as_dir/ ;; 12822 esac 12823 for ac_exec_ext in '' $ac_executable_extensions; do 12824 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12825 ac_cv_path_DOT="$as_dir$ac_word$ac_exec_ext" 12826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12827 break 2 12828 fi 12829done 12830 done 12831IFS=$as_save_IFS 12832 12833 ;; 12834esac 12835fi 12836DOT=$ac_cv_path_DOT 12837if test -n "$DOT"; then 12838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 12839printf "%s\n" "$DOT" >&6; } 12840else 12841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12842printf "%s\n" "no" >&6; } 12843fi 12844 12845 12846 if test "x$DOT" != "x"; then 12847 HAVE_DOT=yes 12848 fi 12849fi 12850 12851 12852 if test "$HAVE_DOT" = "yes"; then 12853 HAVE_DOT_TRUE= 12854 HAVE_DOT_FALSE='#' 12855else 12856 HAVE_DOT_TRUE='#' 12857 HAVE_DOT_FALSE= 12858fi 12859 12860 if test "$have_doxygen" = yes; then 12861 HAVE_DOXYGEN_TRUE= 12862 HAVE_DOXYGEN_FALSE='#' 12863else 12864 HAVE_DOXYGEN_TRUE='#' 12865 HAVE_DOXYGEN_FALSE= 12866fi 12867 12868 12869 12870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5 12871printf %s "checking for X.Org SGML entities >= 1.8... " >&6; } 12872XORG_SGML_PATH= 12873if test -n "$PKG_CONFIG" && \ 12874 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5 12875 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5 12876 ac_status=$? 12877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12878 test $ac_status = 0; }; then 12879 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 12880else 12881 : 12882 12883fi 12884 12885# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 12886# the path and the name of the doc stylesheet 12887if test "x$XORG_SGML_PATH" != "x" ; then 12888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 12889printf "%s\n" "$XORG_SGML_PATH" >&6; } 12890 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 12891 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 12892else 12893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12894printf "%s\n" "no" >&6; } 12895fi 12896 12897 12898 12899 12900 if test "x$XSL_STYLESHEET" != "x"; then 12901 HAVE_STYLESHEETS_TRUE= 12902 HAVE_STYLESHEETS_FALSE='#' 12903else 12904 HAVE_STYLESHEETS_TRUE='#' 12905 HAVE_STYLESHEETS_FALSE= 12906fi 12907 12908 12909 12910 12911# Check whether --enable-docs was given. 12912if test ${enable_docs+y} 12913then : 12914 enableval=$enable_docs; build_docs=$enableval 12915else $as_nop 12916 build_docs=yes 12917fi 12918 12919 12920 if test x$build_docs = xyes; then 12921 ENABLE_DOCS_TRUE= 12922 ENABLE_DOCS_FALSE='#' 12923else 12924 ENABLE_DOCS_TRUE='#' 12925 ENABLE_DOCS_FALSE= 12926fi 12927 12928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 12929printf %s "checking whether to build documentation... " >&6; } 12930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5 12931printf "%s\n" "$build_docs" >&6; } 12932 12933 12934 12935# Check whether --enable-devel-docs was given. 12936if test ${enable_devel_docs+y} 12937then : 12938 enableval=$enable_devel_docs; build_devel_docs=$enableval 12939else $as_nop 12940 build_devel_docs=yes 12941fi 12942 12943 12944 if test x$build_devel_docs = xyes; then 12945 ENABLE_DEVEL_DOCS_TRUE= 12946 ENABLE_DEVEL_DOCS_FALSE='#' 12947else 12948 ENABLE_DEVEL_DOCS_TRUE='#' 12949 ENABLE_DEVEL_DOCS_FALSE= 12950fi 12951 12952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5 12953printf %s "checking whether to build developer documentation... " >&6; } 12954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5 12955printf "%s\n" "$build_devel_docs" >&6; } 12956 12957 12958 12959 12960 12961# Check whether --with-xmlto was given. 12962if test ${with_xmlto+y} 12963then : 12964 withval=$with_xmlto; use_xmlto=$withval 12965else $as_nop 12966 use_xmlto=auto 12967fi 12968 12969 12970 12971if test "x$use_xmlto" = x"auto"; then 12972 # Extract the first word of "xmlto", so it can be a program name with args. 12973set dummy xmlto; ac_word=$2 12974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12975printf %s "checking for $ac_word... " >&6; } 12976if test ${ac_cv_path_XMLTO+y} 12977then : 12978 printf %s "(cached) " >&6 12979else $as_nop 12980 case $XMLTO in 12981 [\\/]* | ?:[\\/]*) 12982 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 12983 ;; 12984 *) 12985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12986for as_dir in $PATH 12987do 12988 IFS=$as_save_IFS 12989 case $as_dir in #((( 12990 '') as_dir=./ ;; 12991 */) ;; 12992 *) as_dir=$as_dir/ ;; 12993 esac 12994 for ac_exec_ext in '' $ac_executable_extensions; do 12995 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12996 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 12997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12998 break 2 12999 fi 13000done 13001 done 13002IFS=$as_save_IFS 13003 13004 ;; 13005esac 13006fi 13007XMLTO=$ac_cv_path_XMLTO 13008if test -n "$XMLTO"; then 13009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 13010printf "%s\n" "$XMLTO" >&6; } 13011else 13012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13013printf "%s\n" "no" >&6; } 13014fi 13015 13016 13017 if test "x$XMLTO" = "x"; then 13018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 13019printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 13020 have_xmlto=no 13021 else 13022 have_xmlto=yes 13023 fi 13024elif test "x$use_xmlto" = x"yes" ; then 13025 # Extract the first word of "xmlto", so it can be a program name with args. 13026set dummy xmlto; ac_word=$2 13027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13028printf %s "checking for $ac_word... " >&6; } 13029if test ${ac_cv_path_XMLTO+y} 13030then : 13031 printf %s "(cached) " >&6 13032else $as_nop 13033 case $XMLTO in 13034 [\\/]* | ?:[\\/]*) 13035 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 13036 ;; 13037 *) 13038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13039for as_dir in $PATH 13040do 13041 IFS=$as_save_IFS 13042 case $as_dir in #((( 13043 '') as_dir=./ ;; 13044 */) ;; 13045 *) as_dir=$as_dir/ ;; 13046 esac 13047 for ac_exec_ext in '' $ac_executable_extensions; do 13048 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13049 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 13050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13051 break 2 13052 fi 13053done 13054 done 13055IFS=$as_save_IFS 13056 13057 ;; 13058esac 13059fi 13060XMLTO=$ac_cv_path_XMLTO 13061if test -n "$XMLTO"; then 13062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 13063printf "%s\n" "$XMLTO" >&6; } 13064else 13065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13066printf "%s\n" "no" >&6; } 13067fi 13068 13069 13070 if test "x$XMLTO" = "x"; then 13071 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 13072 fi 13073 have_xmlto=yes 13074elif test "x$use_xmlto" = x"no" ; then 13075 if test "x$XMLTO" != "x"; then 13076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 13077printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 13078 fi 13079 have_xmlto=no 13080else 13081 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 13082fi 13083 13084# Test for a minimum version of xmlto, if provided. 13085if test "$have_xmlto" = yes; then 13086 # scrape the xmlto version 13087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 13088printf %s "checking the xmlto version... " >&6; } 13089 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 13090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 13091printf "%s\n" "$xmlto_version" >&6; } 13092 as_arg_v1=$xmlto_version 13093as_arg_v2=0.0.20 13094awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 13095case $? in #( 13096 1) : 13097 if test "x$use_xmlto" = xauto; then 13098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5 13099printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;} 13100 have_xmlto=no 13101 else 13102 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5 13103 fi ;; #( 13104 0) : 13105 ;; #( 13106 2) : 13107 ;; #( 13108 *) : 13109 ;; 13110esac 13111fi 13112 13113# Test for the ability of xmlto to generate a text target 13114# 13115# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the 13116# following test for empty XML docbook files. 13117# For compatibility reasons use the following empty XML docbook file and if 13118# it fails try it again with a non-empty XML file. 13119have_xmlto_text=no 13120cat > conftest.xml << "EOF" 13121EOF 13122if test "$have_xmlto" = yes 13123then : 13124 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 13125then : 13126 have_xmlto_text=yes 13127else $as_nop 13128 # Try it again with a non-empty XML file. 13129 cat > conftest.xml << "EOF" 13130<x></x> 13131EOF 13132 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 13133then : 13134 have_xmlto_text=yes 13135else $as_nop 13136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 13137printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 13138fi 13139fi 13140fi 13141rm -f conftest.xml 13142 if test $have_xmlto_text = yes; then 13143 HAVE_XMLTO_TEXT_TRUE= 13144 HAVE_XMLTO_TEXT_FALSE='#' 13145else 13146 HAVE_XMLTO_TEXT_TRUE='#' 13147 HAVE_XMLTO_TEXT_FALSE= 13148fi 13149 13150 if test "$have_xmlto" = yes; then 13151 HAVE_XMLTO_TRUE= 13152 HAVE_XMLTO_FALSE='#' 13153else 13154 HAVE_XMLTO_TRUE='#' 13155 HAVE_XMLTO_FALSE= 13156fi 13157 13158 13159 13160 13161 13162 13163# Check whether --with-fop was given. 13164if test ${with_fop+y} 13165then : 13166 withval=$with_fop; use_fop=$withval 13167else $as_nop 13168 use_fop=auto 13169fi 13170 13171 13172 13173if test "x$use_fop" = x"auto"; then 13174 # Extract the first word of "fop", so it can be a program name with args. 13175set dummy fop; ac_word=$2 13176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13177printf %s "checking for $ac_word... " >&6; } 13178if test ${ac_cv_path_FOP+y} 13179then : 13180 printf %s "(cached) " >&6 13181else $as_nop 13182 case $FOP in 13183 [\\/]* | ?:[\\/]*) 13184 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 13185 ;; 13186 *) 13187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13188for as_dir in $PATH 13189do 13190 IFS=$as_save_IFS 13191 case $as_dir in #((( 13192 '') as_dir=./ ;; 13193 */) ;; 13194 *) as_dir=$as_dir/ ;; 13195 esac 13196 for ac_exec_ext in '' $ac_executable_extensions; do 13197 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13198 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 13199 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13200 break 2 13201 fi 13202done 13203 done 13204IFS=$as_save_IFS 13205 13206 ;; 13207esac 13208fi 13209FOP=$ac_cv_path_FOP 13210if test -n "$FOP"; then 13211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 13212printf "%s\n" "$FOP" >&6; } 13213else 13214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13215printf "%s\n" "no" >&6; } 13216fi 13217 13218 13219 if test "x$FOP" = "x"; then 13220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 13221printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 13222 have_fop=no 13223 else 13224 have_fop=yes 13225 fi 13226elif test "x$use_fop" = x"yes" ; then 13227 # Extract the first word of "fop", so it can be a program name with args. 13228set dummy fop; ac_word=$2 13229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13230printf %s "checking for $ac_word... " >&6; } 13231if test ${ac_cv_path_FOP+y} 13232then : 13233 printf %s "(cached) " >&6 13234else $as_nop 13235 case $FOP in 13236 [\\/]* | ?:[\\/]*) 13237 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 13238 ;; 13239 *) 13240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13241for as_dir in $PATH 13242do 13243 IFS=$as_save_IFS 13244 case $as_dir in #((( 13245 '') as_dir=./ ;; 13246 */) ;; 13247 *) as_dir=$as_dir/ ;; 13248 esac 13249 for ac_exec_ext in '' $ac_executable_extensions; do 13250 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13251 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 13252 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13253 break 2 13254 fi 13255done 13256 done 13257IFS=$as_save_IFS 13258 13259 ;; 13260esac 13261fi 13262FOP=$ac_cv_path_FOP 13263if test -n "$FOP"; then 13264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 13265printf "%s\n" "$FOP" >&6; } 13266else 13267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13268printf "%s\n" "no" >&6; } 13269fi 13270 13271 13272 if test "x$FOP" = "x"; then 13273 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 13274 fi 13275 have_fop=yes 13276elif test "x$use_fop" = x"no" ; then 13277 if test "x$FOP" != "x"; then 13278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 13279printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 13280 fi 13281 have_fop=no 13282else 13283 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 13284fi 13285 13286# Test for a minimum version of fop, if provided. 13287 13288 if test "$have_fop" = yes; then 13289 HAVE_FOP_TRUE= 13290 HAVE_FOP_FALSE='#' 13291else 13292 HAVE_FOP_TRUE='#' 13293 HAVE_FOP_FALSE= 13294fi 13295 13296 13297 13298 13299# Preserves the interface, should it be implemented later 13300 13301 13302 13303# Check whether --with-xsltproc was given. 13304if test ${with_xsltproc+y} 13305then : 13306 withval=$with_xsltproc; use_xsltproc=$withval 13307else $as_nop 13308 use_xsltproc=auto 13309fi 13310 13311 13312 13313if test "x$use_xsltproc" = x"auto"; then 13314 # Extract the first word of "xsltproc", so it can be a program name with args. 13315set dummy xsltproc; ac_word=$2 13316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13317printf %s "checking for $ac_word... " >&6; } 13318if test ${ac_cv_path_XSLTPROC+y} 13319then : 13320 printf %s "(cached) " >&6 13321else $as_nop 13322 case $XSLTPROC in 13323 [\\/]* | ?:[\\/]*) 13324 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 13325 ;; 13326 *) 13327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13328for as_dir in $PATH 13329do 13330 IFS=$as_save_IFS 13331 case $as_dir in #((( 13332 '') as_dir=./ ;; 13333 */) ;; 13334 *) as_dir=$as_dir/ ;; 13335 esac 13336 for ac_exec_ext in '' $ac_executable_extensions; do 13337 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13338 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 13339 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13340 break 2 13341 fi 13342done 13343 done 13344IFS=$as_save_IFS 13345 13346 ;; 13347esac 13348fi 13349XSLTPROC=$ac_cv_path_XSLTPROC 13350if test -n "$XSLTPROC"; then 13351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 13352printf "%s\n" "$XSLTPROC" >&6; } 13353else 13354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13355printf "%s\n" "no" >&6; } 13356fi 13357 13358 13359 if test "x$XSLTPROC" = "x"; then 13360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 13361printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 13362 have_xsltproc=no 13363 else 13364 have_xsltproc=yes 13365 fi 13366elif test "x$use_xsltproc" = x"yes" ; then 13367 # Extract the first word of "xsltproc", so it can be a program name with args. 13368set dummy xsltproc; ac_word=$2 13369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13370printf %s "checking for $ac_word... " >&6; } 13371if test ${ac_cv_path_XSLTPROC+y} 13372then : 13373 printf %s "(cached) " >&6 13374else $as_nop 13375 case $XSLTPROC in 13376 [\\/]* | ?:[\\/]*) 13377 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 13378 ;; 13379 *) 13380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13381for as_dir in $PATH 13382do 13383 IFS=$as_save_IFS 13384 case $as_dir in #((( 13385 '') as_dir=./ ;; 13386 */) ;; 13387 *) as_dir=$as_dir/ ;; 13388 esac 13389 for ac_exec_ext in '' $ac_executable_extensions; do 13390 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13391 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 13392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13393 break 2 13394 fi 13395done 13396 done 13397IFS=$as_save_IFS 13398 13399 ;; 13400esac 13401fi 13402XSLTPROC=$ac_cv_path_XSLTPROC 13403if test -n "$XSLTPROC"; then 13404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 13405printf "%s\n" "$XSLTPROC" >&6; } 13406else 13407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13408printf "%s\n" "no" >&6; } 13409fi 13410 13411 13412 if test "x$XSLTPROC" = "x"; then 13413 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 13414 fi 13415 have_xsltproc=yes 13416elif test "x$use_xsltproc" = x"no" ; then 13417 if test "x$XSLTPROC" != "x"; then 13418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 13419printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 13420 fi 13421 have_xsltproc=no 13422else 13423 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 13424fi 13425 13426 if test "$have_xsltproc" = yes; then 13427 HAVE_XSLTPROC_TRUE= 13428 HAVE_XSLTPROC_FALSE='#' 13429else 13430 HAVE_XSLTPROC_TRUE='#' 13431 HAVE_XSLTPROC_FALSE= 13432fi 13433 13434 13435 13436 13437 13438 13439 13440# Check for different types of support on different platforms 13441case $host_os in 13442 solaris*) 13443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5 13444printf %s "checking for umem_alloc in -lumem... " >&6; } 13445if test ${ac_cv_lib_umem_umem_alloc+y} 13446then : 13447 printf %s "(cached) " >&6 13448else $as_nop 13449 ac_check_lib_save_LIBS=$LIBS 13450LIBS="-lumem $LIBS" 13451cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13452/* end confdefs.h. */ 13453 13454/* Override any GCC internal prototype to avoid an error. 13455 Use char because int might match the return type of a GCC 13456 builtin and then its argument prototype would still apply. 13457 The 'extern "C"' is for builds by C++ compilers; 13458 although this is not generally supported in C code supporting it here 13459 has little cost and some practical benefit (sr 110532). */ 13460#ifdef __cplusplus 13461extern "C" 13462#endif 13463char umem_alloc (void); 13464int 13465main (void) 13466{ 13467return umem_alloc (); 13468 ; 13469 return 0; 13470} 13471_ACEOF 13472if ac_fn_c_try_link "$LINENO" 13473then : 13474 ac_cv_lib_umem_umem_alloc=yes 13475else $as_nop 13476 ac_cv_lib_umem_umem_alloc=no 13477fi 13478rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13479 conftest$ac_exeext conftest.$ac_ext 13480LIBS=$ac_check_lib_save_LIBS 13481fi 13482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5 13483printf "%s\n" "$ac_cv_lib_umem_umem_alloc" >&6; } 13484if test "x$ac_cv_lib_umem_umem_alloc" = xyes 13485then : 13486 malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default' 13487fi 13488 13489 ;; 13490 *-gnu*) # GNU libc - Value is used as a single byte bit pattern, 13491 # both directly and inverted, so should not be 0 or 255. 13492 malloc_debug_env='MALLOC_PERTURB_=15' 13493 ;; 13494 darwin*) 13495 malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib' 13496 ;; 13497 *bsd*) 13498 malloc_debug_env='MallocPreScribble=1 MallocScribble=1' 13499 ;; 13500esac 13501 13502# User supplied flags override default flags 13503if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then 13504 malloc_debug_env="$XORG_MALLOC_DEBUG_ENV" 13505fi 13506 13507XORG_MALLOC_DEBUG_ENV=$malloc_debug_env 13508 13509 13510 13511 13512 13513 13514 13515# Check whether --enable-unit-tests was given. 13516if test ${enable_unit_tests+y} 13517then : 13518 enableval=$enable_unit_tests; enable_unit_tests=$enableval 13519else $as_nop 13520 enable_unit_tests=auto 13521fi 13522 13523 13524 if test "x$enable_unit_tests" != xno; then 13525 ENABLE_UNIT_TESTS_TRUE= 13526 ENABLE_UNIT_TESTS_FALSE='#' 13527else 13528 ENABLE_UNIT_TESTS_TRUE='#' 13529 ENABLE_UNIT_TESTS_FALSE= 13530fi 13531 13532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build unit test cases" >&5 13533printf %s "checking whether to build unit test cases... " >&6; } 13534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_unit_tests" >&5 13535printf "%s\n" "$enable_unit_tests" >&6; } 13536 13537 13538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-wrap,exit" >&5 13539printf %s "checking whether the linker accepts -Wl,-wrap,exit... " >&6; } 13540if test ${xorg_cv_linker_flags__Wl__wrap_exit+y} 13541then : 13542 printf %s "(cached) " >&6 13543else $as_nop 13544 13545 ax_save_FLAGS=$LDFLAGS 13546 LDFLAGS="-Wl,-wrap,exit" 13547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13548/* end confdefs.h. */ 13549#include <stdlib.h> 13550 void __wrap_exit(int status) { return; } 13551int 13552main (void) 13553{ 13554exit(0); 13555 ; 13556 return 0; 13557} 13558_ACEOF 13559if ac_fn_c_try_link "$LINENO" 13560then : 13561 xorg_cv_linker_flags__Wl__wrap_exit=yes 13562else $as_nop 13563 xorg_cv_linker_flags__Wl__wrap_exit=no 13564fi 13565rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13566 conftest$ac_exeext conftest.$ac_ext 13567 LDFLAGS=$ax_save_FLAGS 13568fi 13569 13570eval xorg_check_linker_flags=$xorg_cv_linker_flags__Wl__wrap_exit 13571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_check_linker_flags" >&5 13572printf "%s\n" "$xorg_check_linker_flags" >&6; } 13573if test "x$xorg_check_linker_flags" = xyes; then 13574 have_ld_wrap=yes 13575else 13576 have_ld_wrap=no 13577fi 13578 13579# Not having ld wrap when unit testing has been explicitly requested is an error 13580if test "x$enable_unit_tests" = x"yes" -a "xoptional" != "xoptional"; then 13581 if test "x$have_ld_wrap" = x"no"; then 13582 as_fn_error $? "--enable-unit-tests=yes specified but ld -wrap support is not available" "$LINENO" 5 13583 fi 13584fi 13585 if test "$have_ld_wrap" = yes; then 13586 HAVE_LD_WRAP_TRUE= 13587 HAVE_LD_WRAP_FALSE='#' 13588else 13589 HAVE_LD_WRAP_TRUE='#' 13590 HAVE_LD_WRAP_FALSE= 13591fi 13592 13593# 13594 13595 13596 13597 13598 13599 13600 13601 13602 13603 13604 13605 13606 13607 13608ac_config_headers="$ac_config_headers include/do-not-use-config.h" 13609 13610ac_config_headers="$ac_config_headers include/xorg-server.h" 13611 13612ac_config_headers="$ac_config_headers include/dix-config.h" 13613 13614ac_config_headers="$ac_config_headers include/xorg-config.h" 13615 13616ac_config_headers="$ac_config_headers include/xkb-config.h" 13617 13618ac_config_headers="$ac_config_headers include/xwin-config.h" 13619 13620ac_config_headers="$ac_config_headers include/version-config.h" 13621 13622 13623# By default we simply use the C compiler to build assembly code. 13624 13625test "${CCAS+set}" = set || CCAS=$CC 13626test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS 13627 13628 13629 13630depcc="$CCAS" am_compiler_list= 13631 13632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 13633printf %s "checking dependency style of $depcc... " >&6; } 13634if test ${am_cv_CCAS_dependencies_compiler_type+y} 13635then : 13636 printf %s "(cached) " >&6 13637else $as_nop 13638 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 13639 # We make a subdir and do the tests there. Otherwise we can end up 13640 # making bogus files that we don't know about and never remove. For 13641 # instance it was reported that on HP-UX the gcc test will end up 13642 # making a dummy file named 'D' -- because '-MD' means "put the output 13643 # in D". 13644 rm -rf conftest.dir 13645 mkdir conftest.dir 13646 # Copy depcomp to subdir because otherwise we won't find it if we're 13647 # using a relative directory. 13648 cp "$am_depcomp" conftest.dir 13649 cd conftest.dir 13650 # We will build objects and dependencies in a subdirectory because 13651 # it helps to detect inapplicable dependency modes. For instance 13652 # both Tru64's cc and ICC support -MD to output dependencies as a 13653 # side effect of compilation, but ICC will put the dependencies in 13654 # the current directory while Tru64 will put them in the object 13655 # directory. 13656 mkdir sub 13657 13658 am_cv_CCAS_dependencies_compiler_type=none 13659 if test "$am_compiler_list" = ""; then 13660 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 13661 fi 13662 am__universal=false 13663 13664 13665 for depmode in $am_compiler_list; do 13666 # Setup a source with many dependencies, because some compilers 13667 # like to wrap large dependency lists on column 80 (with \), and 13668 # we should not choose a depcomp mode which is confused by this. 13669 # 13670 # We need to recreate these files for each test, as the compiler may 13671 # overwrite some of them when testing with obscure command lines. 13672 # This happens at least with the AIX C compiler. 13673 : > sub/conftest.c 13674 for i in 1 2 3 4 5 6; do 13675 echo '#include "conftst'$i'.h"' >> sub/conftest.c 13676 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 13677 # Solaris 10 /bin/sh. 13678 echo '/* dummy */' > sub/conftst$i.h 13679 done 13680 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 13681 13682 # We check with '-c' and '-o' for the sake of the "dashmstdout" 13683 # mode. It turns out that the SunPro C++ compiler does not properly 13684 # handle '-M -o', and we need to detect this. Also, some Intel 13685 # versions had trouble with output in subdirs. 13686 am__obj=sub/conftest.${OBJEXT-o} 13687 am__minus_obj="-o $am__obj" 13688 case $depmode in 13689 gcc) 13690 # This depmode causes a compiler race in universal mode. 13691 test "$am__universal" = false || continue 13692 ;; 13693 nosideeffect) 13694 # After this tag, mechanisms are not by side-effect, so they'll 13695 # only be used when explicitly requested. 13696 if test "x$enable_dependency_tracking" = xyes; then 13697 continue 13698 else 13699 break 13700 fi 13701 ;; 13702 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 13703 # This compiler won't grok '-c -o', but also, the minuso test has 13704 # not run yet. These depmodes are late enough in the game, and 13705 # so weak that their functioning should not be impacted. 13706 am__obj=conftest.${OBJEXT-o} 13707 am__minus_obj= 13708 ;; 13709 none) break ;; 13710 esac 13711 if depmode=$depmode \ 13712 source=sub/conftest.c object=$am__obj \ 13713 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 13714 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 13715 >/dev/null 2>conftest.err && 13716 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 13717 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 13718 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 13719 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 13720 # icc doesn't choke on unknown options, it will just issue warnings 13721 # or remarks (even with -Werror). So we grep stderr for any message 13722 # that says an option was ignored or not supported. 13723 # When given -MP, icc 7.0 and 7.1 complain thusly: 13724 # icc: Command line warning: ignoring option '-M'; no argument required 13725 # The diagnosis changed in icc 8.0: 13726 # icc: Command line remark: option '-MP' not supported 13727 if (grep 'ignoring option' conftest.err || 13728 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 13729 am_cv_CCAS_dependencies_compiler_type=$depmode 13730 break 13731 fi 13732 fi 13733 done 13734 13735 cd .. 13736 rm -rf conftest.dir 13737else 13738 am_cv_CCAS_dependencies_compiler_type=none 13739fi 13740 13741fi 13742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 13743printf "%s\n" "$am_cv_CCAS_dependencies_compiler_type" >&6; } 13744CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type 13745 13746 if 13747 test "x$enable_dependency_tracking" != xno \ 13748 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then 13749 am__fastdepCCAS_TRUE= 13750 am__fastdepCCAS_FALSE='#' 13751else 13752 am__fastdepCCAS_TRUE='#' 13753 am__fastdepCCAS_FALSE= 13754fi 13755 13756 13757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 13758printf %s "checking whether ln -s works... " >&6; } 13759LN_S=$as_ln_s 13760if test "$LN_S" = "ln -s"; then 13761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13762printf "%s\n" "yes" >&6; } 13763else 13764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 13765printf "%s\n" "no, using $LN_S" >&6; } 13766fi 13767 13768 13769case `pwd` in 13770 *\ * | *\ *) 13771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 13772printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 13773esac 13774 13775 13776 13777macro_version='2.4.7' 13778macro_revision='2.4.7' 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793ltmain=$ac_aux_dir/ltmain.sh 13794 13795# Backslashify metacharacters that are still active within 13796# double-quoted strings. 13797sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 13798 13799# Same as above, but do not quote variable references. 13800double_quote_subst='s/\(["`\\]\)/\\\1/g' 13801 13802# Sed substitution to delay expansion of an escaped shell variable in a 13803# double_quote_subst'ed string. 13804delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 13805 13806# Sed substitution to delay expansion of an escaped single quote. 13807delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 13808 13809# Sed substitution to avoid accidental globbing in evaled expressions 13810no_glob_subst='s/\*/\\\*/g' 13811 13812ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13813ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 13814ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 13815 13816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 13817printf %s "checking how to print strings... " >&6; } 13818# Test print first, because it will be a builtin if present. 13819if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 13820 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 13821 ECHO='print -r --' 13822elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 13823 ECHO='printf %s\n' 13824else 13825 # Use this function as a fallback that always works. 13826 func_fallback_echo () 13827 { 13828 eval 'cat <<_LTECHO_EOF 13829$1 13830_LTECHO_EOF' 13831 } 13832 ECHO='func_fallback_echo' 13833fi 13834 13835# func_echo_all arg... 13836# Invoke $ECHO with all args, space-separated. 13837func_echo_all () 13838{ 13839 $ECHO "" 13840} 13841 13842case $ECHO in 13843 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 13844printf "%s\n" "printf" >&6; } ;; 13845 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 13846printf "%s\n" "print -r" >&6; } ;; 13847 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 13848printf "%s\n" "cat" >&6; } ;; 13849esac 13850 13851 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 13865printf %s "checking for a sed that does not truncate output... " >&6; } 13866if test ${ac_cv_path_SED+y} 13867then : 13868 printf %s "(cached) " >&6 13869else $as_nop 13870 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 13871 for ac_i in 1 2 3 4 5 6 7; do 13872 ac_script="$ac_script$as_nl$ac_script" 13873 done 13874 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 13875 { ac_script=; unset ac_script;} 13876 if test -z "$SED"; then 13877 ac_path_SED_found=false 13878 # Loop through the user's path and test for each of PROGNAME-LIST 13879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13880for as_dir in $PATH 13881do 13882 IFS=$as_save_IFS 13883 case $as_dir in #((( 13884 '') as_dir=./ ;; 13885 */) ;; 13886 *) as_dir=$as_dir/ ;; 13887 esac 13888 for ac_prog in sed gsed 13889 do 13890 for ac_exec_ext in '' $ac_executable_extensions; do 13891 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 13892 as_fn_executable_p "$ac_path_SED" || continue 13893# Check for GNU ac_path_SED and select it if it is found. 13894 # Check for GNU $ac_path_SED 13895case `"$ac_path_SED" --version 2>&1` in 13896*GNU*) 13897 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 13898*) 13899 ac_count=0 13900 printf %s 0123456789 >"conftest.in" 13901 while : 13902 do 13903 cat "conftest.in" "conftest.in" >"conftest.tmp" 13904 mv "conftest.tmp" "conftest.in" 13905 cp "conftest.in" "conftest.nl" 13906 printf "%s\n" '' >> "conftest.nl" 13907 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 13908 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13909 as_fn_arith $ac_count + 1 && ac_count=$as_val 13910 if test $ac_count -gt ${ac_path_SED_max-0}; then 13911 # Best one so far, save it but keep looking for a better one 13912 ac_cv_path_SED="$ac_path_SED" 13913 ac_path_SED_max=$ac_count 13914 fi 13915 # 10*(2^10) chars as input seems more than enough 13916 test $ac_count -gt 10 && break 13917 done 13918 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13919esac 13920 13921 $ac_path_SED_found && break 3 13922 done 13923 done 13924 done 13925IFS=$as_save_IFS 13926 if test -z "$ac_cv_path_SED"; then 13927 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 13928 fi 13929else 13930 ac_cv_path_SED=$SED 13931fi 13932 13933fi 13934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 13935printf "%s\n" "$ac_cv_path_SED" >&6; } 13936 SED="$ac_cv_path_SED" 13937 rm -f conftest.sed 13938 13939test -z "$SED" && SED=sed 13940Xsed="$SED -e 1s/^X//" 13941 13942 13943 13944 13945 13946 13947 13948 13949 13950 13951 13952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 13953printf %s "checking for grep that handles long lines and -e... " >&6; } 13954if test ${ac_cv_path_GREP+y} 13955then : 13956 printf %s "(cached) " >&6 13957else $as_nop 13958 if test -z "$GREP"; then 13959 ac_path_GREP_found=false 13960 # Loop through the user's path and test for each of PROGNAME-LIST 13961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13962for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13963do 13964 IFS=$as_save_IFS 13965 case $as_dir in #((( 13966 '') as_dir=./ ;; 13967 */) ;; 13968 *) as_dir=$as_dir/ ;; 13969 esac 13970 for ac_prog in grep ggrep 13971 do 13972 for ac_exec_ext in '' $ac_executable_extensions; do 13973 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 13974 as_fn_executable_p "$ac_path_GREP" || continue 13975# Check for GNU ac_path_GREP and select it if it is found. 13976 # Check for GNU $ac_path_GREP 13977case `"$ac_path_GREP" --version 2>&1` in 13978*GNU*) 13979 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 13980*) 13981 ac_count=0 13982 printf %s 0123456789 >"conftest.in" 13983 while : 13984 do 13985 cat "conftest.in" "conftest.in" >"conftest.tmp" 13986 mv "conftest.tmp" "conftest.in" 13987 cp "conftest.in" "conftest.nl" 13988 printf "%s\n" 'GREP' >> "conftest.nl" 13989 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13990 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13991 as_fn_arith $ac_count + 1 && ac_count=$as_val 13992 if test $ac_count -gt ${ac_path_GREP_max-0}; then 13993 # Best one so far, save it but keep looking for a better one 13994 ac_cv_path_GREP="$ac_path_GREP" 13995 ac_path_GREP_max=$ac_count 13996 fi 13997 # 10*(2^10) chars as input seems more than enough 13998 test $ac_count -gt 10 && break 13999 done 14000 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14001esac 14002 14003 $ac_path_GREP_found && break 3 14004 done 14005 done 14006 done 14007IFS=$as_save_IFS 14008 if test -z "$ac_cv_path_GREP"; then 14009 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 14010 fi 14011else 14012 ac_cv_path_GREP=$GREP 14013fi 14014 14015fi 14016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 14017printf "%s\n" "$ac_cv_path_GREP" >&6; } 14018 GREP="$ac_cv_path_GREP" 14019 14020 14021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 14022printf %s "checking for egrep... " >&6; } 14023if test ${ac_cv_path_EGREP+y} 14024then : 14025 printf %s "(cached) " >&6 14026else $as_nop 14027 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 14028 then ac_cv_path_EGREP="$GREP -E" 14029 else 14030 if test -z "$EGREP"; then 14031 ac_path_EGREP_found=false 14032 # Loop through the user's path and test for each of PROGNAME-LIST 14033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14034for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 14035do 14036 IFS=$as_save_IFS 14037 case $as_dir in #((( 14038 '') as_dir=./ ;; 14039 */) ;; 14040 *) as_dir=$as_dir/ ;; 14041 esac 14042 for ac_prog in egrep 14043 do 14044 for ac_exec_ext in '' $ac_executable_extensions; do 14045 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 14046 as_fn_executable_p "$ac_path_EGREP" || continue 14047# Check for GNU ac_path_EGREP and select it if it is found. 14048 # Check for GNU $ac_path_EGREP 14049case `"$ac_path_EGREP" --version 2>&1` in 14050*GNU*) 14051 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 14052*) 14053 ac_count=0 14054 printf %s 0123456789 >"conftest.in" 14055 while : 14056 do 14057 cat "conftest.in" "conftest.in" >"conftest.tmp" 14058 mv "conftest.tmp" "conftest.in" 14059 cp "conftest.in" "conftest.nl" 14060 printf "%s\n" 'EGREP' >> "conftest.nl" 14061 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 14062 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 14063 as_fn_arith $ac_count + 1 && ac_count=$as_val 14064 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 14065 # Best one so far, save it but keep looking for a better one 14066 ac_cv_path_EGREP="$ac_path_EGREP" 14067 ac_path_EGREP_max=$ac_count 14068 fi 14069 # 10*(2^10) chars as input seems more than enough 14070 test $ac_count -gt 10 && break 14071 done 14072 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14073esac 14074 14075 $ac_path_EGREP_found && break 3 14076 done 14077 done 14078 done 14079IFS=$as_save_IFS 14080 if test -z "$ac_cv_path_EGREP"; then 14081 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 14082 fi 14083else 14084 ac_cv_path_EGREP=$EGREP 14085fi 14086 14087 fi 14088fi 14089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 14090printf "%s\n" "$ac_cv_path_EGREP" >&6; } 14091 EGREP="$ac_cv_path_EGREP" 14092 14093 14094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 14095printf %s "checking for fgrep... " >&6; } 14096if test ${ac_cv_path_FGREP+y} 14097then : 14098 printf %s "(cached) " >&6 14099else $as_nop 14100 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 14101 then ac_cv_path_FGREP="$GREP -F" 14102 else 14103 if test -z "$FGREP"; then 14104 ac_path_FGREP_found=false 14105 # Loop through the user's path and test for each of PROGNAME-LIST 14106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14107for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 14108do 14109 IFS=$as_save_IFS 14110 case $as_dir in #((( 14111 '') as_dir=./ ;; 14112 */) ;; 14113 *) as_dir=$as_dir/ ;; 14114 esac 14115 for ac_prog in fgrep 14116 do 14117 for ac_exec_ext in '' $ac_executable_extensions; do 14118 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 14119 as_fn_executable_p "$ac_path_FGREP" || continue 14120# Check for GNU ac_path_FGREP and select it if it is found. 14121 # Check for GNU $ac_path_FGREP 14122case `"$ac_path_FGREP" --version 2>&1` in 14123*GNU*) 14124 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 14125*) 14126 ac_count=0 14127 printf %s 0123456789 >"conftest.in" 14128 while : 14129 do 14130 cat "conftest.in" "conftest.in" >"conftest.tmp" 14131 mv "conftest.tmp" "conftest.in" 14132 cp "conftest.in" "conftest.nl" 14133 printf "%s\n" 'FGREP' >> "conftest.nl" 14134 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 14135 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 14136 as_fn_arith $ac_count + 1 && ac_count=$as_val 14137 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 14138 # Best one so far, save it but keep looking for a better one 14139 ac_cv_path_FGREP="$ac_path_FGREP" 14140 ac_path_FGREP_max=$ac_count 14141 fi 14142 # 10*(2^10) chars as input seems more than enough 14143 test $ac_count -gt 10 && break 14144 done 14145 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14146esac 14147 14148 $ac_path_FGREP_found && break 3 14149 done 14150 done 14151 done 14152IFS=$as_save_IFS 14153 if test -z "$ac_cv_path_FGREP"; then 14154 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 14155 fi 14156else 14157 ac_cv_path_FGREP=$FGREP 14158fi 14159 14160 fi 14161fi 14162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 14163printf "%s\n" "$ac_cv_path_FGREP" >&6; } 14164 FGREP="$ac_cv_path_FGREP" 14165 14166 14167test -z "$GREP" && GREP=grep 14168 14169 14170 14171 14172 14173 14174 14175 14176 14177 14178 14179 14180 14181 14182 14183 14184 14185 14186 14187# Check whether --with-gnu-ld was given. 14188if test ${with_gnu_ld+y} 14189then : 14190 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 14191else $as_nop 14192 with_gnu_ld=no 14193fi 14194 14195ac_prog=ld 14196if test yes = "$GCC"; then 14197 # Check if gcc -print-prog-name=ld gives a path. 14198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 14199printf %s "checking for ld used by $CC... " >&6; } 14200 case $host in 14201 *-*-mingw*) 14202 # gcc leaves a trailing carriage return, which upsets mingw 14203 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 14204 *) 14205 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 14206 esac 14207 case $ac_prog in 14208 # Accept absolute paths. 14209 [\\/]* | ?:[\\/]*) 14210 re_direlt='/[^/][^/]*/\.\./' 14211 # Canonicalize the pathname of ld 14212 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 14213 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 14214 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 14215 done 14216 test -z "$LD" && LD=$ac_prog 14217 ;; 14218 "") 14219 # If it fails, then pretend we aren't using GCC. 14220 ac_prog=ld 14221 ;; 14222 *) 14223 # If it is relative, then search for the first ld in PATH. 14224 with_gnu_ld=unknown 14225 ;; 14226 esac 14227elif test yes = "$with_gnu_ld"; then 14228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 14229printf %s "checking for GNU ld... " >&6; } 14230else 14231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 14232printf %s "checking for non-GNU ld... " >&6; } 14233fi 14234if test ${lt_cv_path_LD+y} 14235then : 14236 printf %s "(cached) " >&6 14237else $as_nop 14238 if test -z "$LD"; then 14239 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14240 for ac_dir in $PATH; do 14241 IFS=$lt_save_ifs 14242 test -z "$ac_dir" && ac_dir=. 14243 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 14244 lt_cv_path_LD=$ac_dir/$ac_prog 14245 # Check to see if the program is GNU ld. I'd rather use --version, 14246 # but apparently some variants of GNU ld only accept -v. 14247 # Break only if it was the GNU/non-GNU ld that we prefer. 14248 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 14249 *GNU* | *'with BFD'*) 14250 test no != "$with_gnu_ld" && break 14251 ;; 14252 *) 14253 test yes != "$with_gnu_ld" && break 14254 ;; 14255 esac 14256 fi 14257 done 14258 IFS=$lt_save_ifs 14259else 14260 lt_cv_path_LD=$LD # Let the user override the test with a path. 14261fi 14262fi 14263 14264LD=$lt_cv_path_LD 14265if test -n "$LD"; then 14266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 14267printf "%s\n" "$LD" >&6; } 14268else 14269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14270printf "%s\n" "no" >&6; } 14271fi 14272test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 14273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 14274printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 14275if test ${lt_cv_prog_gnu_ld+y} 14276then : 14277 printf %s "(cached) " >&6 14278else $as_nop 14279 # I'd rather use --version here, but apparently some GNU lds only accept -v. 14280case `$LD -v 2>&1 </dev/null` in 14281*GNU* | *'with BFD'*) 14282 lt_cv_prog_gnu_ld=yes 14283 ;; 14284*) 14285 lt_cv_prog_gnu_ld=no 14286 ;; 14287esac 14288fi 14289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 14290printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 14291with_gnu_ld=$lt_cv_prog_gnu_ld 14292 14293 14294 14295 14296 14297 14298 14299 14300 14301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 14302printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 14303if test ${lt_cv_path_NM+y} 14304then : 14305 printf %s "(cached) " >&6 14306else $as_nop 14307 if test -n "$NM"; then 14308 # Let the user override the test. 14309 lt_cv_path_NM=$NM 14310else 14311 lt_nm_to_check=${ac_tool_prefix}nm 14312 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 14313 lt_nm_to_check="$lt_nm_to_check nm" 14314 fi 14315 for lt_tmp_nm in $lt_nm_to_check; do 14316 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14317 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 14318 IFS=$lt_save_ifs 14319 test -z "$ac_dir" && ac_dir=. 14320 tmp_nm=$ac_dir/$lt_tmp_nm 14321 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 14322 # Check to see if the nm accepts a BSD-compat flag. 14323 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 14324 # nm: unknown option "B" ignored 14325 # Tru64's nm complains that /dev/null is an invalid object file 14326 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 14327 case $build_os in 14328 mingw*) lt_bad_file=conftest.nm/nofile ;; 14329 *) lt_bad_file=/dev/null ;; 14330 esac 14331 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 14332 *$lt_bad_file* | *'Invalid file or object type'*) 14333 lt_cv_path_NM="$tmp_nm -B" 14334 break 2 14335 ;; 14336 *) 14337 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 14338 */dev/null*) 14339 lt_cv_path_NM="$tmp_nm -p" 14340 break 2 14341 ;; 14342 *) 14343 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 14344 continue # so that we can try to find one that supports BSD flags 14345 ;; 14346 esac 14347 ;; 14348 esac 14349 fi 14350 done 14351 IFS=$lt_save_ifs 14352 done 14353 : ${lt_cv_path_NM=no} 14354fi 14355fi 14356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 14357printf "%s\n" "$lt_cv_path_NM" >&6; } 14358if test no != "$lt_cv_path_NM"; then 14359 NM=$lt_cv_path_NM 14360else 14361 # Didn't find any BSD compatible name lister, look for dumpbin. 14362 if test -n "$DUMPBIN"; then : 14363 # Let the user override the test. 14364 else 14365 if test -n "$ac_tool_prefix"; then 14366 for ac_prog in dumpbin "link -dump" 14367 do 14368 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 14369set dummy $ac_tool_prefix$ac_prog; ac_word=$2 14370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14371printf %s "checking for $ac_word... " >&6; } 14372if test ${ac_cv_prog_DUMPBIN+y} 14373then : 14374 printf %s "(cached) " >&6 14375else $as_nop 14376 if test -n "$DUMPBIN"; then 14377 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 14378else 14379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14380for as_dir in $PATH 14381do 14382 IFS=$as_save_IFS 14383 case $as_dir in #((( 14384 '') as_dir=./ ;; 14385 */) ;; 14386 *) as_dir=$as_dir/ ;; 14387 esac 14388 for ac_exec_ext in '' $ac_executable_extensions; do 14389 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14390 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 14391 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14392 break 2 14393 fi 14394done 14395 done 14396IFS=$as_save_IFS 14397 14398fi 14399fi 14400DUMPBIN=$ac_cv_prog_DUMPBIN 14401if test -n "$DUMPBIN"; then 14402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 14403printf "%s\n" "$DUMPBIN" >&6; } 14404else 14405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14406printf "%s\n" "no" >&6; } 14407fi 14408 14409 14410 test -n "$DUMPBIN" && break 14411 done 14412fi 14413if test -z "$DUMPBIN"; then 14414 ac_ct_DUMPBIN=$DUMPBIN 14415 for ac_prog in dumpbin "link -dump" 14416do 14417 # Extract the first word of "$ac_prog", so it can be a program name with args. 14418set dummy $ac_prog; ac_word=$2 14419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14420printf %s "checking for $ac_word... " >&6; } 14421if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 14422then : 14423 printf %s "(cached) " >&6 14424else $as_nop 14425 if test -n "$ac_ct_DUMPBIN"; then 14426 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 14427else 14428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14429for as_dir in $PATH 14430do 14431 IFS=$as_save_IFS 14432 case $as_dir in #((( 14433 '') as_dir=./ ;; 14434 */) ;; 14435 *) as_dir=$as_dir/ ;; 14436 esac 14437 for ac_exec_ext in '' $ac_executable_extensions; do 14438 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14439 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 14440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14441 break 2 14442 fi 14443done 14444 done 14445IFS=$as_save_IFS 14446 14447fi 14448fi 14449ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 14450if test -n "$ac_ct_DUMPBIN"; then 14451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 14452printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 14453else 14454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14455printf "%s\n" "no" >&6; } 14456fi 14457 14458 14459 test -n "$ac_ct_DUMPBIN" && break 14460done 14461 14462 if test "x$ac_ct_DUMPBIN" = x; then 14463 DUMPBIN=":" 14464 else 14465 case $cross_compiling:$ac_tool_warned in 14466yes:) 14467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14468printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14469ac_tool_warned=yes ;; 14470esac 14471 DUMPBIN=$ac_ct_DUMPBIN 14472 fi 14473fi 14474 14475 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 14476 *COFF*) 14477 DUMPBIN="$DUMPBIN -symbols -headers" 14478 ;; 14479 *) 14480 DUMPBIN=: 14481 ;; 14482 esac 14483 fi 14484 14485 if test : != "$DUMPBIN"; then 14486 NM=$DUMPBIN 14487 fi 14488fi 14489test -z "$NM" && NM=nm 14490 14491 14492 14493 14494 14495 14496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 14497printf %s "checking the name lister ($NM) interface... " >&6; } 14498if test ${lt_cv_nm_interface+y} 14499then : 14500 printf %s "(cached) " >&6 14501else $as_nop 14502 lt_cv_nm_interface="BSD nm" 14503 echo "int some_variable = 0;" > conftest.$ac_ext 14504 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 14505 (eval "$ac_compile" 2>conftest.err) 14506 cat conftest.err >&5 14507 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 14508 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 14509 cat conftest.err >&5 14510 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 14511 cat conftest.out >&5 14512 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 14513 lt_cv_nm_interface="MS dumpbin" 14514 fi 14515 rm -f conftest* 14516fi 14517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 14518printf "%s\n" "$lt_cv_nm_interface" >&6; } 14519 14520# find the maximum length of command line arguments 14521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 14522printf %s "checking the maximum length of command line arguments... " >&6; } 14523if test ${lt_cv_sys_max_cmd_len+y} 14524then : 14525 printf %s "(cached) " >&6 14526else $as_nop 14527 i=0 14528 teststring=ABCD 14529 14530 case $build_os in 14531 msdosdjgpp*) 14532 # On DJGPP, this test can blow up pretty badly due to problems in libc 14533 # (any single argument exceeding 2000 bytes causes a buffer overrun 14534 # during glob expansion). Even if it were fixed, the result of this 14535 # check would be larger than it should be. 14536 lt_cv_sys_max_cmd_len=12288; # 12K is about right 14537 ;; 14538 14539 gnu*) 14540 # Under GNU Hurd, this test is not required because there is 14541 # no limit to the length of command line arguments. 14542 # Libtool will interpret -1 as no limit whatsoever 14543 lt_cv_sys_max_cmd_len=-1; 14544 ;; 14545 14546 cygwin* | mingw* | cegcc*) 14547 # On Win9x/ME, this test blows up -- it succeeds, but takes 14548 # about 5 minutes as the teststring grows exponentially. 14549 # Worse, since 9x/ME are not pre-emptively multitasking, 14550 # you end up with a "frozen" computer, even though with patience 14551 # the test eventually succeeds (with a max line length of 256k). 14552 # Instead, let's just punt: use the minimum linelength reported by 14553 # all of the supported platforms: 8192 (on NT/2K/XP). 14554 lt_cv_sys_max_cmd_len=8192; 14555 ;; 14556 14557 mint*) 14558 # On MiNT this can take a long time and run out of memory. 14559 lt_cv_sys_max_cmd_len=8192; 14560 ;; 14561 14562 amigaos*) 14563 # On AmigaOS with pdksh, this test takes hours, literally. 14564 # So we just punt and use a minimum line length of 8192. 14565 lt_cv_sys_max_cmd_len=8192; 14566 ;; 14567 14568 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 14569 # This has been around since 386BSD, at least. Likely further. 14570 if test -x /sbin/sysctl; then 14571 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 14572 elif test -x /usr/sbin/sysctl; then 14573 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 14574 else 14575 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 14576 fi 14577 # And add a safety zone 14578 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 14579 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 14580 ;; 14581 14582 interix*) 14583 # We know the value 262144 and hardcode it with a safety zone (like BSD) 14584 lt_cv_sys_max_cmd_len=196608 14585 ;; 14586 14587 os2*) 14588 # The test takes a long time on OS/2. 14589 lt_cv_sys_max_cmd_len=8192 14590 ;; 14591 14592 osf*) 14593 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 14594 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 14595 # nice to cause kernel panics so lets avoid the loop below. 14596 # First set a reasonable default. 14597 lt_cv_sys_max_cmd_len=16384 14598 # 14599 if test -x /sbin/sysconfig; then 14600 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 14601 *1*) lt_cv_sys_max_cmd_len=-1 ;; 14602 esac 14603 fi 14604 ;; 14605 sco3.2v5*) 14606 lt_cv_sys_max_cmd_len=102400 14607 ;; 14608 sysv5* | sco5v6* | sysv4.2uw2*) 14609 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 14610 if test -n "$kargmax"; then 14611 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 14612 else 14613 lt_cv_sys_max_cmd_len=32768 14614 fi 14615 ;; 14616 *) 14617 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 14618 if test -n "$lt_cv_sys_max_cmd_len" && \ 14619 test undefined != "$lt_cv_sys_max_cmd_len"; then 14620 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 14621 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 14622 else 14623 # Make teststring a little bigger before we do anything with it. 14624 # a 1K string should be a reasonable start. 14625 for i in 1 2 3 4 5 6 7 8; do 14626 teststring=$teststring$teststring 14627 done 14628 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 14629 # If test is not a shell built-in, we'll probably end up computing a 14630 # maximum length that is only half of the actual maximum length, but 14631 # we can't tell. 14632 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 14633 = "X$teststring$teststring"; } >/dev/null 2>&1 && 14634 test 17 != "$i" # 1/2 MB should be enough 14635 do 14636 i=`expr $i + 1` 14637 teststring=$teststring$teststring 14638 done 14639 # Only check the string length outside the loop. 14640 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 14641 teststring= 14642 # Add a significant safety factor because C++ compilers can tack on 14643 # massive amounts of additional arguments before passing them to the 14644 # linker. It appears as though 1/2 is a usable value. 14645 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 14646 fi 14647 ;; 14648 esac 14649 14650fi 14651 14652if test -n "$lt_cv_sys_max_cmd_len"; then 14653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 14654printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 14655else 14656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 14657printf "%s\n" "none" >&6; } 14658fi 14659max_cmd_len=$lt_cv_sys_max_cmd_len 14660 14661 14662 14663 14664 14665 14666: ${CP="cp -f"} 14667: ${MV="mv -f"} 14668: ${RM="rm -f"} 14669 14670if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 14671 lt_unset=unset 14672else 14673 lt_unset=false 14674fi 14675 14676 14677 14678 14679 14680# test EBCDIC or ASCII 14681case `echo X|tr X '\101'` in 14682 A) # ASCII based system 14683 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 14684 lt_SP2NL='tr \040 \012' 14685 lt_NL2SP='tr \015\012 \040\040' 14686 ;; 14687 *) # EBCDIC based system 14688 lt_SP2NL='tr \100 \n' 14689 lt_NL2SP='tr \r\n \100\100' 14690 ;; 14691esac 14692 14693 14694 14695 14696 14697 14698 14699 14700 14701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 14702printf %s "checking how to convert $build file names to $host format... " >&6; } 14703if test ${lt_cv_to_host_file_cmd+y} 14704then : 14705 printf %s "(cached) " >&6 14706else $as_nop 14707 case $host in 14708 *-*-mingw* ) 14709 case $build in 14710 *-*-mingw* ) # actually msys 14711 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 14712 ;; 14713 *-*-cygwin* ) 14714 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 14715 ;; 14716 * ) # otherwise, assume *nix 14717 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 14718 ;; 14719 esac 14720 ;; 14721 *-*-cygwin* ) 14722 case $build in 14723 *-*-mingw* ) # actually msys 14724 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 14725 ;; 14726 *-*-cygwin* ) 14727 lt_cv_to_host_file_cmd=func_convert_file_noop 14728 ;; 14729 * ) # otherwise, assume *nix 14730 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 14731 ;; 14732 esac 14733 ;; 14734 * ) # unhandled hosts (and "normal" native builds) 14735 lt_cv_to_host_file_cmd=func_convert_file_noop 14736 ;; 14737esac 14738 14739fi 14740 14741to_host_file_cmd=$lt_cv_to_host_file_cmd 14742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 14743printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 14744 14745 14746 14747 14748 14749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 14750printf %s "checking how to convert $build file names to toolchain format... " >&6; } 14751if test ${lt_cv_to_tool_file_cmd+y} 14752then : 14753 printf %s "(cached) " >&6 14754else $as_nop 14755 #assume ordinary cross tools, or native build. 14756lt_cv_to_tool_file_cmd=func_convert_file_noop 14757case $host in 14758 *-*-mingw* ) 14759 case $build in 14760 *-*-mingw* ) # actually msys 14761 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 14762 ;; 14763 esac 14764 ;; 14765esac 14766 14767fi 14768 14769to_tool_file_cmd=$lt_cv_to_tool_file_cmd 14770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 14771printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 14772 14773 14774 14775 14776 14777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 14778printf %s "checking for $LD option to reload object files... " >&6; } 14779if test ${lt_cv_ld_reload_flag+y} 14780then : 14781 printf %s "(cached) " >&6 14782else $as_nop 14783 lt_cv_ld_reload_flag='-r' 14784fi 14785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 14786printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 14787reload_flag=$lt_cv_ld_reload_flag 14788case $reload_flag in 14789"" | " "*) ;; 14790*) reload_flag=" $reload_flag" ;; 14791esac 14792reload_cmds='$LD$reload_flag -o $output$reload_objs' 14793case $host_os in 14794 cygwin* | mingw* | pw32* | cegcc*) 14795 if test yes != "$GCC"; then 14796 reload_cmds=false 14797 fi 14798 ;; 14799 darwin*) 14800 if test yes = "$GCC"; then 14801 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 14802 else 14803 reload_cmds='$LD$reload_flag -o $output$reload_objs' 14804 fi 14805 ;; 14806esac 14807 14808 14809 14810 14811 14812 14813 14814 14815 14816if test -n "$ac_tool_prefix"; then 14817 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 14818set dummy ${ac_tool_prefix}file; ac_word=$2 14819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14820printf %s "checking for $ac_word... " >&6; } 14821if test ${ac_cv_prog_FILECMD+y} 14822then : 14823 printf %s "(cached) " >&6 14824else $as_nop 14825 if test -n "$FILECMD"; then 14826 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 14827else 14828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14829for as_dir in $PATH 14830do 14831 IFS=$as_save_IFS 14832 case $as_dir in #((( 14833 '') as_dir=./ ;; 14834 */) ;; 14835 *) as_dir=$as_dir/ ;; 14836 esac 14837 for ac_exec_ext in '' $ac_executable_extensions; do 14838 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14839 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 14840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14841 break 2 14842 fi 14843done 14844 done 14845IFS=$as_save_IFS 14846 14847fi 14848fi 14849FILECMD=$ac_cv_prog_FILECMD 14850if test -n "$FILECMD"; then 14851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 14852printf "%s\n" "$FILECMD" >&6; } 14853else 14854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14855printf "%s\n" "no" >&6; } 14856fi 14857 14858 14859fi 14860if test -z "$ac_cv_prog_FILECMD"; then 14861 ac_ct_FILECMD=$FILECMD 14862 # Extract the first word of "file", so it can be a program name with args. 14863set dummy file; ac_word=$2 14864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14865printf %s "checking for $ac_word... " >&6; } 14866if test ${ac_cv_prog_ac_ct_FILECMD+y} 14867then : 14868 printf %s "(cached) " >&6 14869else $as_nop 14870 if test -n "$ac_ct_FILECMD"; then 14871 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 14872else 14873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14874for as_dir in $PATH 14875do 14876 IFS=$as_save_IFS 14877 case $as_dir in #((( 14878 '') as_dir=./ ;; 14879 */) ;; 14880 *) as_dir=$as_dir/ ;; 14881 esac 14882 for ac_exec_ext in '' $ac_executable_extensions; do 14883 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14884 ac_cv_prog_ac_ct_FILECMD="file" 14885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14886 break 2 14887 fi 14888done 14889 done 14890IFS=$as_save_IFS 14891 14892fi 14893fi 14894ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 14895if test -n "$ac_ct_FILECMD"; then 14896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 14897printf "%s\n" "$ac_ct_FILECMD" >&6; } 14898else 14899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14900printf "%s\n" "no" >&6; } 14901fi 14902 14903 if test "x$ac_ct_FILECMD" = x; then 14904 FILECMD=":" 14905 else 14906 case $cross_compiling:$ac_tool_warned in 14907yes:) 14908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14909printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14910ac_tool_warned=yes ;; 14911esac 14912 FILECMD=$ac_ct_FILECMD 14913 fi 14914else 14915 FILECMD="$ac_cv_prog_FILECMD" 14916fi 14917 14918 14919 14920 14921 14922 14923 14924if test -n "$ac_tool_prefix"; then 14925 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 14926set dummy ${ac_tool_prefix}objdump; ac_word=$2 14927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14928printf %s "checking for $ac_word... " >&6; } 14929if test ${ac_cv_prog_OBJDUMP+y} 14930then : 14931 printf %s "(cached) " >&6 14932else $as_nop 14933 if test -n "$OBJDUMP"; then 14934 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 14935else 14936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14937for as_dir in $PATH 14938do 14939 IFS=$as_save_IFS 14940 case $as_dir in #((( 14941 '') as_dir=./ ;; 14942 */) ;; 14943 *) as_dir=$as_dir/ ;; 14944 esac 14945 for ac_exec_ext in '' $ac_executable_extensions; do 14946 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14947 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 14948 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14949 break 2 14950 fi 14951done 14952 done 14953IFS=$as_save_IFS 14954 14955fi 14956fi 14957OBJDUMP=$ac_cv_prog_OBJDUMP 14958if test -n "$OBJDUMP"; then 14959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 14960printf "%s\n" "$OBJDUMP" >&6; } 14961else 14962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14963printf "%s\n" "no" >&6; } 14964fi 14965 14966 14967fi 14968if test -z "$ac_cv_prog_OBJDUMP"; then 14969 ac_ct_OBJDUMP=$OBJDUMP 14970 # Extract the first word of "objdump", so it can be a program name with args. 14971set dummy objdump; ac_word=$2 14972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14973printf %s "checking for $ac_word... " >&6; } 14974if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 14975then : 14976 printf %s "(cached) " >&6 14977else $as_nop 14978 if test -n "$ac_ct_OBJDUMP"; then 14979 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 14980else 14981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14982for as_dir in $PATH 14983do 14984 IFS=$as_save_IFS 14985 case $as_dir in #((( 14986 '') as_dir=./ ;; 14987 */) ;; 14988 *) as_dir=$as_dir/ ;; 14989 esac 14990 for ac_exec_ext in '' $ac_executable_extensions; do 14991 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14992 ac_cv_prog_ac_ct_OBJDUMP="objdump" 14993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14994 break 2 14995 fi 14996done 14997 done 14998IFS=$as_save_IFS 14999 15000fi 15001fi 15002ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 15003if test -n "$ac_ct_OBJDUMP"; then 15004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 15005printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 15006else 15007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15008printf "%s\n" "no" >&6; } 15009fi 15010 15011 if test "x$ac_ct_OBJDUMP" = x; then 15012 OBJDUMP="false" 15013 else 15014 case $cross_compiling:$ac_tool_warned in 15015yes:) 15016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15017printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15018ac_tool_warned=yes ;; 15019esac 15020 OBJDUMP=$ac_ct_OBJDUMP 15021 fi 15022else 15023 OBJDUMP="$ac_cv_prog_OBJDUMP" 15024fi 15025 15026test -z "$OBJDUMP" && OBJDUMP=objdump 15027 15028 15029 15030 15031 15032 15033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 15034printf %s "checking how to recognize dependent libraries... " >&6; } 15035if test ${lt_cv_deplibs_check_method+y} 15036then : 15037 printf %s "(cached) " >&6 15038else $as_nop 15039 lt_cv_file_magic_cmd='$MAGIC_CMD' 15040lt_cv_file_magic_test_file= 15041lt_cv_deplibs_check_method='unknown' 15042# Need to set the preceding variable on all platforms that support 15043# interlibrary dependencies. 15044# 'none' -- dependencies not supported. 15045# 'unknown' -- same as none, but documents that we really don't know. 15046# 'pass_all' -- all dependencies passed with no checks. 15047# 'test_compile' -- check by making test program. 15048# 'file_magic [[regex]]' -- check by looking for files in library path 15049# that responds to the $file_magic_cmd with a given extended regex. 15050# If you have 'file' or equivalent on your system and you're not sure 15051# whether 'pass_all' will *always* work, you probably want this one. 15052 15053case $host_os in 15054aix[4-9]*) 15055 lt_cv_deplibs_check_method=pass_all 15056 ;; 15057 15058beos*) 15059 lt_cv_deplibs_check_method=pass_all 15060 ;; 15061 15062bsdi[45]*) 15063 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 15064 lt_cv_file_magic_cmd='$FILECMD -L' 15065 lt_cv_file_magic_test_file=/shlib/libc.so 15066 ;; 15067 15068cygwin*) 15069 # func_win32_libid is a shell function defined in ltmain.sh 15070 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 15071 lt_cv_file_magic_cmd='func_win32_libid' 15072 ;; 15073 15074mingw* | pw32*) 15075 # Base MSYS/MinGW do not provide the 'file' command needed by 15076 # func_win32_libid shell function, so use a weaker test based on 'objdump', 15077 # unless we find 'file', for example because we are cross-compiling. 15078 if ( file / ) >/dev/null 2>&1; then 15079 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 15080 lt_cv_file_magic_cmd='func_win32_libid' 15081 else 15082 # Keep this pattern in sync with the one in func_win32_libid. 15083 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 15084 lt_cv_file_magic_cmd='$OBJDUMP -f' 15085 fi 15086 ;; 15087 15088cegcc*) 15089 # use the weaker test based on 'objdump'. See mingw*. 15090 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 15091 lt_cv_file_magic_cmd='$OBJDUMP -f' 15092 ;; 15093 15094darwin* | rhapsody*) 15095 lt_cv_deplibs_check_method=pass_all 15096 ;; 15097 15098freebsd* | dragonfly* | midnightbsd*) 15099 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 15100 case $host_cpu in 15101 i*86 ) 15102 # Not sure whether the presence of OpenBSD here was a mistake. 15103 # Let's accept both of them until this is cleared up. 15104 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 15105 lt_cv_file_magic_cmd=$FILECMD 15106 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 15107 ;; 15108 esac 15109 else 15110 lt_cv_deplibs_check_method=pass_all 15111 fi 15112 ;; 15113 15114haiku*) 15115 lt_cv_deplibs_check_method=pass_all 15116 ;; 15117 15118hpux10.20* | hpux11*) 15119 lt_cv_file_magic_cmd=$FILECMD 15120 case $host_cpu in 15121 ia64*) 15122 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 15123 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 15124 ;; 15125 hppa*64*) 15126 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]' 15127 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 15128 ;; 15129 *) 15130 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 15131 lt_cv_file_magic_test_file=/usr/lib/libc.sl 15132 ;; 15133 esac 15134 ;; 15135 15136interix[3-9]*) 15137 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 15138 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 15139 ;; 15140 15141irix5* | irix6* | nonstopux*) 15142 case $LD in 15143 *-32|*"-32 ") libmagic=32-bit;; 15144 *-n32|*"-n32 ") libmagic=N32;; 15145 *-64|*"-64 ") libmagic=64-bit;; 15146 *) libmagic=never-match;; 15147 esac 15148 lt_cv_deplibs_check_method=pass_all 15149 ;; 15150 15151# This must be glibc/ELF. 15152linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15153 lt_cv_deplibs_check_method=pass_all 15154 ;; 15155 15156netbsd*) 15157 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 15158 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 15159 else 15160 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 15161 fi 15162 ;; 15163 15164newos6*) 15165 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 15166 lt_cv_file_magic_cmd=$FILECMD 15167 lt_cv_file_magic_test_file=/usr/lib/libnls.so 15168 ;; 15169 15170*nto* | *qnx*) 15171 lt_cv_deplibs_check_method=pass_all 15172 ;; 15173 15174openbsd* | bitrig*) 15175 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 15176 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 15177 else 15178 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 15179 fi 15180 ;; 15181 15182osf3* | osf4* | osf5*) 15183 lt_cv_deplibs_check_method=pass_all 15184 ;; 15185 15186rdos*) 15187 lt_cv_deplibs_check_method=pass_all 15188 ;; 15189 15190solaris*) 15191 lt_cv_deplibs_check_method=pass_all 15192 ;; 15193 15194sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15195 lt_cv_deplibs_check_method=pass_all 15196 ;; 15197 15198sysv4 | sysv4.3*) 15199 case $host_vendor in 15200 motorola) 15201 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]' 15202 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 15203 ;; 15204 ncr) 15205 lt_cv_deplibs_check_method=pass_all 15206 ;; 15207 sequent) 15208 lt_cv_file_magic_cmd='/bin/file' 15209 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 15210 ;; 15211 sni) 15212 lt_cv_file_magic_cmd='/bin/file' 15213 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 15214 lt_cv_file_magic_test_file=/lib/libc.so 15215 ;; 15216 siemens) 15217 lt_cv_deplibs_check_method=pass_all 15218 ;; 15219 pc) 15220 lt_cv_deplibs_check_method=pass_all 15221 ;; 15222 esac 15223 ;; 15224 15225tpf*) 15226 lt_cv_deplibs_check_method=pass_all 15227 ;; 15228os2*) 15229 lt_cv_deplibs_check_method=pass_all 15230 ;; 15231esac 15232 15233fi 15234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 15235printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 15236 15237file_magic_glob= 15238want_nocaseglob=no 15239if test "$build" = "$host"; then 15240 case $host_os in 15241 mingw* | pw32*) 15242 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 15243 want_nocaseglob=yes 15244 else 15245 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 15246 fi 15247 ;; 15248 esac 15249fi 15250 15251file_magic_cmd=$lt_cv_file_magic_cmd 15252deplibs_check_method=$lt_cv_deplibs_check_method 15253test -z "$deplibs_check_method" && deplibs_check_method=unknown 15254 15255 15256 15257 15258 15259 15260 15261 15262 15263 15264 15265 15266 15267 15268 15269 15270 15271 15272 15273 15274 15275 15276if test -n "$ac_tool_prefix"; then 15277 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 15278set dummy ${ac_tool_prefix}dlltool; ac_word=$2 15279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15280printf %s "checking for $ac_word... " >&6; } 15281if test ${ac_cv_prog_DLLTOOL+y} 15282then : 15283 printf %s "(cached) " >&6 15284else $as_nop 15285 if test -n "$DLLTOOL"; then 15286 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 15287else 15288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15289for as_dir in $PATH 15290do 15291 IFS=$as_save_IFS 15292 case $as_dir in #((( 15293 '') as_dir=./ ;; 15294 */) ;; 15295 *) as_dir=$as_dir/ ;; 15296 esac 15297 for ac_exec_ext in '' $ac_executable_extensions; do 15298 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15299 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 15300 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15301 break 2 15302 fi 15303done 15304 done 15305IFS=$as_save_IFS 15306 15307fi 15308fi 15309DLLTOOL=$ac_cv_prog_DLLTOOL 15310if test -n "$DLLTOOL"; then 15311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 15312printf "%s\n" "$DLLTOOL" >&6; } 15313else 15314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15315printf "%s\n" "no" >&6; } 15316fi 15317 15318 15319fi 15320if test -z "$ac_cv_prog_DLLTOOL"; then 15321 ac_ct_DLLTOOL=$DLLTOOL 15322 # Extract the first word of "dlltool", so it can be a program name with args. 15323set dummy dlltool; ac_word=$2 15324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15325printf %s "checking for $ac_word... " >&6; } 15326if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 15327then : 15328 printf %s "(cached) " >&6 15329else $as_nop 15330 if test -n "$ac_ct_DLLTOOL"; then 15331 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 15332else 15333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15334for as_dir in $PATH 15335do 15336 IFS=$as_save_IFS 15337 case $as_dir in #((( 15338 '') as_dir=./ ;; 15339 */) ;; 15340 *) as_dir=$as_dir/ ;; 15341 esac 15342 for ac_exec_ext in '' $ac_executable_extensions; do 15343 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15344 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 15345 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15346 break 2 15347 fi 15348done 15349 done 15350IFS=$as_save_IFS 15351 15352fi 15353fi 15354ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 15355if test -n "$ac_ct_DLLTOOL"; then 15356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 15357printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 15358else 15359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15360printf "%s\n" "no" >&6; } 15361fi 15362 15363 if test "x$ac_ct_DLLTOOL" = x; then 15364 DLLTOOL="false" 15365 else 15366 case $cross_compiling:$ac_tool_warned in 15367yes:) 15368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15369printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15370ac_tool_warned=yes ;; 15371esac 15372 DLLTOOL=$ac_ct_DLLTOOL 15373 fi 15374else 15375 DLLTOOL="$ac_cv_prog_DLLTOOL" 15376fi 15377 15378test -z "$DLLTOOL" && DLLTOOL=dlltool 15379 15380 15381 15382 15383 15384 15385 15386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 15387printf %s "checking how to associate runtime and link libraries... " >&6; } 15388if test ${lt_cv_sharedlib_from_linklib_cmd+y} 15389then : 15390 printf %s "(cached) " >&6 15391else $as_nop 15392 lt_cv_sharedlib_from_linklib_cmd='unknown' 15393 15394case $host_os in 15395cygwin* | mingw* | pw32* | cegcc*) 15396 # two different shell functions defined in ltmain.sh; 15397 # decide which one to use based on capabilities of $DLLTOOL 15398 case `$DLLTOOL --help 2>&1` in 15399 *--identify-strict*) 15400 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 15401 ;; 15402 *) 15403 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 15404 ;; 15405 esac 15406 ;; 15407*) 15408 # fallback: assume linklib IS sharedlib 15409 lt_cv_sharedlib_from_linklib_cmd=$ECHO 15410 ;; 15411esac 15412 15413fi 15414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 15415printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 15416sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 15417test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 15418 15419 15420 15421 15422 15423 15424 15425if test -n "$ac_tool_prefix"; then 15426 for ac_prog in ar 15427 do 15428 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 15429set dummy $ac_tool_prefix$ac_prog; ac_word=$2 15430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15431printf %s "checking for $ac_word... " >&6; } 15432if test ${ac_cv_prog_AR+y} 15433then : 15434 printf %s "(cached) " >&6 15435else $as_nop 15436 if test -n "$AR"; then 15437 ac_cv_prog_AR="$AR" # Let the user override the test. 15438else 15439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15440for as_dir in $PATH 15441do 15442 IFS=$as_save_IFS 15443 case $as_dir in #((( 15444 '') as_dir=./ ;; 15445 */) ;; 15446 *) as_dir=$as_dir/ ;; 15447 esac 15448 for ac_exec_ext in '' $ac_executable_extensions; do 15449 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15450 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 15451 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15452 break 2 15453 fi 15454done 15455 done 15456IFS=$as_save_IFS 15457 15458fi 15459fi 15460AR=$ac_cv_prog_AR 15461if test -n "$AR"; then 15462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 15463printf "%s\n" "$AR" >&6; } 15464else 15465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15466printf "%s\n" "no" >&6; } 15467fi 15468 15469 15470 test -n "$AR" && break 15471 done 15472fi 15473if test -z "$AR"; then 15474 ac_ct_AR=$AR 15475 for ac_prog in ar 15476do 15477 # Extract the first word of "$ac_prog", so it can be a program name with args. 15478set dummy $ac_prog; ac_word=$2 15479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15480printf %s "checking for $ac_word... " >&6; } 15481if test ${ac_cv_prog_ac_ct_AR+y} 15482then : 15483 printf %s "(cached) " >&6 15484else $as_nop 15485 if test -n "$ac_ct_AR"; then 15486 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 15487else 15488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15489for as_dir in $PATH 15490do 15491 IFS=$as_save_IFS 15492 case $as_dir in #((( 15493 '') as_dir=./ ;; 15494 */) ;; 15495 *) as_dir=$as_dir/ ;; 15496 esac 15497 for ac_exec_ext in '' $ac_executable_extensions; do 15498 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15499 ac_cv_prog_ac_ct_AR="$ac_prog" 15500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15501 break 2 15502 fi 15503done 15504 done 15505IFS=$as_save_IFS 15506 15507fi 15508fi 15509ac_ct_AR=$ac_cv_prog_ac_ct_AR 15510if test -n "$ac_ct_AR"; then 15511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 15512printf "%s\n" "$ac_ct_AR" >&6; } 15513else 15514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15515printf "%s\n" "no" >&6; } 15516fi 15517 15518 15519 test -n "$ac_ct_AR" && break 15520done 15521 15522 if test "x$ac_ct_AR" = x; then 15523 AR="false" 15524 else 15525 case $cross_compiling:$ac_tool_warned in 15526yes:) 15527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15528printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15529ac_tool_warned=yes ;; 15530esac 15531 AR=$ac_ct_AR 15532 fi 15533fi 15534 15535: ${AR=ar} 15536 15537 15538 15539 15540 15541 15542# Use ARFLAGS variable as AR's operation code to sync the variable naming with 15543# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 15544# higher priority because thats what people were doing historically (setting 15545# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 15546# variable obsoleted/removed. 15547 15548test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 15549lt_ar_flags=$AR_FLAGS 15550 15551 15552 15553 15554 15555 15556# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 15557# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 15558 15559 15560 15561 15562 15563 15564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 15565printf %s "checking for archiver @FILE support... " >&6; } 15566if test ${lt_cv_ar_at_file+y} 15567then : 15568 printf %s "(cached) " >&6 15569else $as_nop 15570 lt_cv_ar_at_file=no 15571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15572/* end confdefs.h. */ 15573 15574int 15575main (void) 15576{ 15577 15578 ; 15579 return 0; 15580} 15581_ACEOF 15582if ac_fn_c_try_compile "$LINENO" 15583then : 15584 echo conftest.$ac_objext > conftest.lst 15585 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 15586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 15587 (eval $lt_ar_try) 2>&5 15588 ac_status=$? 15589 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15590 test $ac_status = 0; } 15591 if test 0 -eq "$ac_status"; then 15592 # Ensure the archiver fails upon bogus file names. 15593 rm -f conftest.$ac_objext libconftest.a 15594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 15595 (eval $lt_ar_try) 2>&5 15596 ac_status=$? 15597 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15598 test $ac_status = 0; } 15599 if test 0 -ne "$ac_status"; then 15600 lt_cv_ar_at_file=@ 15601 fi 15602 fi 15603 rm -f conftest.* libconftest.a 15604 15605fi 15606rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15607 15608fi 15609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 15610printf "%s\n" "$lt_cv_ar_at_file" >&6; } 15611 15612if test no = "$lt_cv_ar_at_file"; then 15613 archiver_list_spec= 15614else 15615 archiver_list_spec=$lt_cv_ar_at_file 15616fi 15617 15618 15619 15620 15621 15622 15623 15624if test -n "$ac_tool_prefix"; then 15625 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 15626set dummy ${ac_tool_prefix}strip; ac_word=$2 15627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15628printf %s "checking for $ac_word... " >&6; } 15629if test ${ac_cv_prog_STRIP+y} 15630then : 15631 printf %s "(cached) " >&6 15632else $as_nop 15633 if test -n "$STRIP"; then 15634 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 15635else 15636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15637for as_dir in $PATH 15638do 15639 IFS=$as_save_IFS 15640 case $as_dir in #((( 15641 '') as_dir=./ ;; 15642 */) ;; 15643 *) as_dir=$as_dir/ ;; 15644 esac 15645 for ac_exec_ext in '' $ac_executable_extensions; do 15646 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15647 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 15648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15649 break 2 15650 fi 15651done 15652 done 15653IFS=$as_save_IFS 15654 15655fi 15656fi 15657STRIP=$ac_cv_prog_STRIP 15658if test -n "$STRIP"; then 15659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 15660printf "%s\n" "$STRIP" >&6; } 15661else 15662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15663printf "%s\n" "no" >&6; } 15664fi 15665 15666 15667fi 15668if test -z "$ac_cv_prog_STRIP"; then 15669 ac_ct_STRIP=$STRIP 15670 # Extract the first word of "strip", so it can be a program name with args. 15671set dummy strip; ac_word=$2 15672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15673printf %s "checking for $ac_word... " >&6; } 15674if test ${ac_cv_prog_ac_ct_STRIP+y} 15675then : 15676 printf %s "(cached) " >&6 15677else $as_nop 15678 if test -n "$ac_ct_STRIP"; then 15679 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 15680else 15681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15682for as_dir in $PATH 15683do 15684 IFS=$as_save_IFS 15685 case $as_dir in #((( 15686 '') as_dir=./ ;; 15687 */) ;; 15688 *) as_dir=$as_dir/ ;; 15689 esac 15690 for ac_exec_ext in '' $ac_executable_extensions; do 15691 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15692 ac_cv_prog_ac_ct_STRIP="strip" 15693 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15694 break 2 15695 fi 15696done 15697 done 15698IFS=$as_save_IFS 15699 15700fi 15701fi 15702ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 15703if test -n "$ac_ct_STRIP"; then 15704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 15705printf "%s\n" "$ac_ct_STRIP" >&6; } 15706else 15707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15708printf "%s\n" "no" >&6; } 15709fi 15710 15711 if test "x$ac_ct_STRIP" = x; then 15712 STRIP=":" 15713 else 15714 case $cross_compiling:$ac_tool_warned in 15715yes:) 15716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15717printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15718ac_tool_warned=yes ;; 15719esac 15720 STRIP=$ac_ct_STRIP 15721 fi 15722else 15723 STRIP="$ac_cv_prog_STRIP" 15724fi 15725 15726test -z "$STRIP" && STRIP=: 15727 15728 15729 15730 15731 15732 15733if test -n "$ac_tool_prefix"; then 15734 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 15735set dummy ${ac_tool_prefix}ranlib; ac_word=$2 15736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15737printf %s "checking for $ac_word... " >&6; } 15738if test ${ac_cv_prog_RANLIB+y} 15739then : 15740 printf %s "(cached) " >&6 15741else $as_nop 15742 if test -n "$RANLIB"; then 15743 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 15744else 15745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15746for as_dir in $PATH 15747do 15748 IFS=$as_save_IFS 15749 case $as_dir in #((( 15750 '') as_dir=./ ;; 15751 */) ;; 15752 *) as_dir=$as_dir/ ;; 15753 esac 15754 for ac_exec_ext in '' $ac_executable_extensions; do 15755 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15756 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 15757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15758 break 2 15759 fi 15760done 15761 done 15762IFS=$as_save_IFS 15763 15764fi 15765fi 15766RANLIB=$ac_cv_prog_RANLIB 15767if test -n "$RANLIB"; then 15768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 15769printf "%s\n" "$RANLIB" >&6; } 15770else 15771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15772printf "%s\n" "no" >&6; } 15773fi 15774 15775 15776fi 15777if test -z "$ac_cv_prog_RANLIB"; then 15778 ac_ct_RANLIB=$RANLIB 15779 # Extract the first word of "ranlib", so it can be a program name with args. 15780set dummy ranlib; ac_word=$2 15781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15782printf %s "checking for $ac_word... " >&6; } 15783if test ${ac_cv_prog_ac_ct_RANLIB+y} 15784then : 15785 printf %s "(cached) " >&6 15786else $as_nop 15787 if test -n "$ac_ct_RANLIB"; then 15788 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 15789else 15790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15791for as_dir in $PATH 15792do 15793 IFS=$as_save_IFS 15794 case $as_dir in #((( 15795 '') as_dir=./ ;; 15796 */) ;; 15797 *) as_dir=$as_dir/ ;; 15798 esac 15799 for ac_exec_ext in '' $ac_executable_extensions; do 15800 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15801 ac_cv_prog_ac_ct_RANLIB="ranlib" 15802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15803 break 2 15804 fi 15805done 15806 done 15807IFS=$as_save_IFS 15808 15809fi 15810fi 15811ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 15812if test -n "$ac_ct_RANLIB"; then 15813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 15814printf "%s\n" "$ac_ct_RANLIB" >&6; } 15815else 15816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15817printf "%s\n" "no" >&6; } 15818fi 15819 15820 if test "x$ac_ct_RANLIB" = x; then 15821 RANLIB=":" 15822 else 15823 case $cross_compiling:$ac_tool_warned in 15824yes:) 15825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15826printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15827ac_tool_warned=yes ;; 15828esac 15829 RANLIB=$ac_ct_RANLIB 15830 fi 15831else 15832 RANLIB="$ac_cv_prog_RANLIB" 15833fi 15834 15835test -z "$RANLIB" && RANLIB=: 15836 15837 15838 15839 15840 15841 15842# Determine commands to create old-style static archives. 15843old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 15844old_postinstall_cmds='chmod 644 $oldlib' 15845old_postuninstall_cmds= 15846 15847if test -n "$RANLIB"; then 15848 case $host_os in 15849 bitrig* | openbsd*) 15850 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 15851 ;; 15852 *) 15853 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 15854 ;; 15855 esac 15856 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 15857fi 15858 15859case $host_os in 15860 darwin*) 15861 lock_old_archive_extraction=yes ;; 15862 *) 15863 lock_old_archive_extraction=no ;; 15864esac 15865 15866 15867 15868 15869 15870 15871 15872 15873 15874 15875 15876 15877 15878 15879 15880 15881 15882 15883 15884 15885 15886 15887 15888 15889 15890 15891 15892 15893 15894 15895 15896 15897 15898 15899 15900 15901 15902 15903 15904# If no C compiler was specified, use CC. 15905LTCC=${LTCC-"$CC"} 15906 15907# If no C compiler flags were specified, use CFLAGS. 15908LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15909 15910# Allow CC to be a program name with arguments. 15911compiler=$CC 15912 15913 15914# Check for command to grab the raw symbol name followed by C symbol from nm. 15915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 15916printf %s "checking command to parse $NM output from $compiler object... " >&6; } 15917if test ${lt_cv_sys_global_symbol_pipe+y} 15918then : 15919 printf %s "(cached) " >&6 15920else $as_nop 15921 15922# These are sane defaults that work on at least a few old systems. 15923# [They come from Ultrix. What could be older than Ultrix?!! ;)] 15924 15925# Character class describing NM global symbol codes. 15926symcode='[BCDEGRST]' 15927 15928# Regexp to match symbols that can be accessed directly from C. 15929sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 15930 15931# Define system-specific variables. 15932case $host_os in 15933aix*) 15934 symcode='[BCDT]' 15935 ;; 15936cygwin* | mingw* | pw32* | cegcc*) 15937 symcode='[ABCDGISTW]' 15938 ;; 15939hpux*) 15940 if test ia64 = "$host_cpu"; then 15941 symcode='[ABCDEGRST]' 15942 fi 15943 ;; 15944irix* | nonstopux*) 15945 symcode='[BCDEGRST]' 15946 ;; 15947osf*) 15948 symcode='[BCDEGQRST]' 15949 ;; 15950solaris*) 15951 symcode='[BDRT]' 15952 ;; 15953sco3.2v5*) 15954 symcode='[DT]' 15955 ;; 15956sysv4.2uw2*) 15957 symcode='[DT]' 15958 ;; 15959sysv5* | sco5v6* | unixware* | OpenUNIX*) 15960 symcode='[ABDT]' 15961 ;; 15962sysv4) 15963 symcode='[DFNSTU]' 15964 ;; 15965esac 15966 15967# If we're using GNU nm, then use its standard symbol codes. 15968case `$NM -V 2>&1` in 15969*GNU* | *'with BFD'*) 15970 symcode='[ABCDGIRSTW]' ;; 15971esac 15972 15973if test "$lt_cv_nm_interface" = "MS dumpbin"; then 15974 # Gets list of data symbols to import. 15975 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 15976 # Adjust the below global symbol transforms to fixup imported variables. 15977 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 15978 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 15979 lt_c_name_lib_hook="\ 15980 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 15981 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 15982else 15983 # Disable hooks by default. 15984 lt_cv_sys_global_symbol_to_import= 15985 lt_cdecl_hook= 15986 lt_c_name_hook= 15987 lt_c_name_lib_hook= 15988fi 15989 15990# Transform an extracted symbol line into a proper C declaration. 15991# Some systems (esp. on ia64) link data and code symbols differently, 15992# so use this general approach. 15993lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 15994$lt_cdecl_hook\ 15995" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 15996" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 15997 15998# Transform an extracted symbol line into symbol name and symbol address 15999lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 16000$lt_c_name_hook\ 16001" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 16002" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 16003 16004# Transform an extracted symbol line into symbol name with lib prefix and 16005# symbol address. 16006lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 16007$lt_c_name_lib_hook\ 16008" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 16009" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 16010" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 16011 16012# Handle CRLF in mingw tool chain 16013opt_cr= 16014case $build_os in 16015mingw*) 16016 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 16017 ;; 16018esac 16019 16020# Try without a prefix underscore, then with it. 16021for ac_symprfx in "" "_"; do 16022 16023 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 16024 symxfrm="\\1 $ac_symprfx\\2 \\2" 16025 16026 # Write the raw and C identifiers. 16027 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 16028 # Fake it for dumpbin and say T for any non-static function, 16029 # D for any global variable and I for any imported variable. 16030 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 16031 # which start with @ or ?. 16032 lt_cv_sys_global_symbol_pipe="$AWK '"\ 16033" {last_section=section; section=\$ 3};"\ 16034" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 16035" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 16036" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 16037" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 16038" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 16039" \$ 0!~/External *\|/{next};"\ 16040" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 16041" {if(hide[section]) next};"\ 16042" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 16043" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 16044" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 16045" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 16046" ' prfx=^$ac_symprfx" 16047 else 16048 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 16049 fi 16050 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 16051 16052 # Check to see that the pipe works correctly. 16053 pipe_works=no 16054 16055 rm -f conftest* 16056 cat > conftest.$ac_ext <<_LT_EOF 16057#ifdef __cplusplus 16058extern "C" { 16059#endif 16060char nm_test_var; 16061void nm_test_func(void); 16062void nm_test_func(void){} 16063#ifdef __cplusplus 16064} 16065#endif 16066int main(){nm_test_var='a';nm_test_func();return(0);} 16067_LT_EOF 16068 16069 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16070 (eval $ac_compile) 2>&5 16071 ac_status=$? 16072 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16073 test $ac_status = 0; }; then 16074 # Now try to grab the symbols. 16075 nlist=conftest.nm 16076 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 16077 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 16078 ac_status=$? 16079 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16080 test $ac_status = 0; } && test -s "$nlist"; then 16081 # Try sorting and uniquifying the output. 16082 if sort "$nlist" | uniq > "$nlist"T; then 16083 mv -f "$nlist"T "$nlist" 16084 else 16085 rm -f "$nlist"T 16086 fi 16087 16088 # Make sure that we snagged all the symbols we need. 16089 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 16090 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 16091 cat <<_LT_EOF > conftest.$ac_ext 16092/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 16093#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 16094/* DATA imports from DLLs on WIN32 can't be const, because runtime 16095 relocations are performed -- see ld's documentation on pseudo-relocs. */ 16096# define LT_DLSYM_CONST 16097#elif defined __osf__ 16098/* This system does not cope well with relocations in const data. */ 16099# define LT_DLSYM_CONST 16100#else 16101# define LT_DLSYM_CONST const 16102#endif 16103 16104#ifdef __cplusplus 16105extern "C" { 16106#endif 16107 16108_LT_EOF 16109 # Now generate the symbol file. 16110 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 16111 16112 cat <<_LT_EOF >> conftest.$ac_ext 16113 16114/* The mapping between symbol names and symbols. */ 16115LT_DLSYM_CONST struct { 16116 const char *name; 16117 void *address; 16118} 16119lt__PROGRAM__LTX_preloaded_symbols[] = 16120{ 16121 { "@PROGRAM@", (void *) 0 }, 16122_LT_EOF 16123 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 16124 cat <<\_LT_EOF >> conftest.$ac_ext 16125 {0, (void *) 0} 16126}; 16127 16128/* This works around a problem in FreeBSD linker */ 16129#ifdef FREEBSD_WORKAROUND 16130static const void *lt_preloaded_setup() { 16131 return lt__PROGRAM__LTX_preloaded_symbols; 16132} 16133#endif 16134 16135#ifdef __cplusplus 16136} 16137#endif 16138_LT_EOF 16139 # Now try linking the two files. 16140 mv conftest.$ac_objext conftstm.$ac_objext 16141 lt_globsym_save_LIBS=$LIBS 16142 lt_globsym_save_CFLAGS=$CFLAGS 16143 LIBS=conftstm.$ac_objext 16144 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 16145 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 16146 (eval $ac_link) 2>&5 16147 ac_status=$? 16148 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16149 test $ac_status = 0; } && test -s conftest$ac_exeext; then 16150 pipe_works=yes 16151 fi 16152 LIBS=$lt_globsym_save_LIBS 16153 CFLAGS=$lt_globsym_save_CFLAGS 16154 else 16155 echo "cannot find nm_test_func in $nlist" >&5 16156 fi 16157 else 16158 echo "cannot find nm_test_var in $nlist" >&5 16159 fi 16160 else 16161 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 16162 fi 16163 else 16164 echo "$progname: failed program was:" >&5 16165 cat conftest.$ac_ext >&5 16166 fi 16167 rm -rf conftest* conftst* 16168 16169 # Do not use the global_symbol_pipe unless it works. 16170 if test yes = "$pipe_works"; then 16171 break 16172 else 16173 lt_cv_sys_global_symbol_pipe= 16174 fi 16175done 16176 16177fi 16178 16179if test -z "$lt_cv_sys_global_symbol_pipe"; then 16180 lt_cv_sys_global_symbol_to_cdecl= 16181fi 16182if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 16183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 16184printf "%s\n" "failed" >&6; } 16185else 16186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 16187printf "%s\n" "ok" >&6; } 16188fi 16189 16190# Response file support. 16191if test "$lt_cv_nm_interface" = "MS dumpbin"; then 16192 nm_file_list_spec='@' 16193elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 16194 nm_file_list_spec='@' 16195fi 16196 16197 16198 16199 16200 16201 16202 16203 16204 16205 16206 16207 16208 16209 16210 16211 16212 16213 16214 16215 16216 16217 16218 16219 16220 16221 16222 16223 16224 16225 16226 16227 16228 16229 16230 16231 16232 16233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 16234printf %s "checking for sysroot... " >&6; } 16235 16236# Check whether --with-sysroot was given. 16237if test ${with_sysroot+y} 16238then : 16239 withval=$with_sysroot; 16240else $as_nop 16241 with_sysroot=no 16242fi 16243 16244 16245lt_sysroot= 16246case $with_sysroot in #( 16247 yes) 16248 if test yes = "$GCC"; then 16249 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 16250 fi 16251 ;; #( 16252 /*) 16253 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 16254 ;; #( 16255 no|'') 16256 ;; #( 16257 *) 16258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 16259printf "%s\n" "$with_sysroot" >&6; } 16260 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 16261 ;; 16262esac 16263 16264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 16265printf "%s\n" "${lt_sysroot:-no}" >&6; } 16266 16267 16268 16269 16270 16271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 16272printf %s "checking for a working dd... " >&6; } 16273if test ${ac_cv_path_lt_DD+y} 16274then : 16275 printf %s "(cached) " >&6 16276else $as_nop 16277 printf 0123456789abcdef0123456789abcdef >conftest.i 16278cat conftest.i conftest.i >conftest2.i 16279: ${lt_DD:=$DD} 16280if test -z "$lt_DD"; then 16281 ac_path_lt_DD_found=false 16282 # Loop through the user's path and test for each of PROGNAME-LIST 16283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16284for as_dir in $PATH 16285do 16286 IFS=$as_save_IFS 16287 case $as_dir in #((( 16288 '') as_dir=./ ;; 16289 */) ;; 16290 *) as_dir=$as_dir/ ;; 16291 esac 16292 for ac_prog in dd 16293 do 16294 for ac_exec_ext in '' $ac_executable_extensions; do 16295 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 16296 as_fn_executable_p "$ac_path_lt_DD" || continue 16297if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 16298 cmp -s conftest.i conftest.out \ 16299 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 16300fi 16301 $ac_path_lt_DD_found && break 3 16302 done 16303 done 16304 done 16305IFS=$as_save_IFS 16306 if test -z "$ac_cv_path_lt_DD"; then 16307 : 16308 fi 16309else 16310 ac_cv_path_lt_DD=$lt_DD 16311fi 16312 16313rm -f conftest.i conftest2.i conftest.out 16314fi 16315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 16316printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 16317 16318 16319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 16320printf %s "checking how to truncate binary pipes... " >&6; } 16321if test ${lt_cv_truncate_bin+y} 16322then : 16323 printf %s "(cached) " >&6 16324else $as_nop 16325 printf 0123456789abcdef0123456789abcdef >conftest.i 16326cat conftest.i conftest.i >conftest2.i 16327lt_cv_truncate_bin= 16328if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 16329 cmp -s conftest.i conftest.out \ 16330 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 16331fi 16332rm -f conftest.i conftest2.i conftest.out 16333test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 16334fi 16335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 16336printf "%s\n" "$lt_cv_truncate_bin" >&6; } 16337 16338 16339 16340 16341 16342 16343 16344# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 16345func_cc_basename () 16346{ 16347 for cc_temp in $*""; do 16348 case $cc_temp in 16349 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16350 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16351 \-*) ;; 16352 *) break;; 16353 esac 16354 done 16355 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 16356} 16357 16358# Check whether --enable-libtool-lock was given. 16359if test ${enable_libtool_lock+y} 16360then : 16361 enableval=$enable_libtool_lock; 16362fi 16363 16364test no = "$enable_libtool_lock" || enable_libtool_lock=yes 16365 16366# Some flags need to be propagated to the compiler or linker for good 16367# libtool support. 16368case $host in 16369ia64-*-hpux*) 16370 # Find out what ABI is being produced by ac_compile, and set mode 16371 # options accordingly. 16372 echo 'int i;' > conftest.$ac_ext 16373 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16374 (eval $ac_compile) 2>&5 16375 ac_status=$? 16376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16377 test $ac_status = 0; }; then 16378 case `$FILECMD conftest.$ac_objext` in 16379 *ELF-32*) 16380 HPUX_IA64_MODE=32 16381 ;; 16382 *ELF-64*) 16383 HPUX_IA64_MODE=64 16384 ;; 16385 esac 16386 fi 16387 rm -rf conftest* 16388 ;; 16389*-*-irix6*) 16390 # Find out what ABI is being produced by ac_compile, and set linker 16391 # options accordingly. 16392 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 16393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16394 (eval $ac_compile) 2>&5 16395 ac_status=$? 16396 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16397 test $ac_status = 0; }; then 16398 if test yes = "$lt_cv_prog_gnu_ld"; then 16399 case `$FILECMD conftest.$ac_objext` in 16400 *32-bit*) 16401 LD="${LD-ld} -melf32bsmip" 16402 ;; 16403 *N32*) 16404 LD="${LD-ld} -melf32bmipn32" 16405 ;; 16406 *64-bit*) 16407 LD="${LD-ld} -melf64bmip" 16408 ;; 16409 esac 16410 else 16411 case `$FILECMD conftest.$ac_objext` in 16412 *32-bit*) 16413 LD="${LD-ld} -32" 16414 ;; 16415 *N32*) 16416 LD="${LD-ld} -n32" 16417 ;; 16418 *64-bit*) 16419 LD="${LD-ld} -64" 16420 ;; 16421 esac 16422 fi 16423 fi 16424 rm -rf conftest* 16425 ;; 16426 16427mips64*-*linux*) 16428 # Find out what ABI is being produced by ac_compile, and set linker 16429 # options accordingly. 16430 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 16431 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16432 (eval $ac_compile) 2>&5 16433 ac_status=$? 16434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16435 test $ac_status = 0; }; then 16436 emul=elf 16437 case `$FILECMD conftest.$ac_objext` in 16438 *32-bit*) 16439 emul="${emul}32" 16440 ;; 16441 *64-bit*) 16442 emul="${emul}64" 16443 ;; 16444 esac 16445 case `$FILECMD conftest.$ac_objext` in 16446 *MSB*) 16447 emul="${emul}btsmip" 16448 ;; 16449 *LSB*) 16450 emul="${emul}ltsmip" 16451 ;; 16452 esac 16453 case `$FILECMD conftest.$ac_objext` in 16454 *N32*) 16455 emul="${emul}n32" 16456 ;; 16457 esac 16458 LD="${LD-ld} -m $emul" 16459 fi 16460 rm -rf conftest* 16461 ;; 16462 16463x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 16464s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 16465 # Find out what ABI is being produced by ac_compile, and set linker 16466 # options accordingly. Note that the listed cases only cover the 16467 # situations where additional linker options are needed (such as when 16468 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 16469 # vice versa); the common cases where no linker options are needed do 16470 # not appear in the list. 16471 echo 'int i;' > conftest.$ac_ext 16472 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16473 (eval $ac_compile) 2>&5 16474 ac_status=$? 16475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16476 test $ac_status = 0; }; then 16477 case `$FILECMD conftest.o` in 16478 *32-bit*) 16479 case $host in 16480 x86_64-*kfreebsd*-gnu) 16481 LD="${LD-ld} -m elf_i386_fbsd" 16482 ;; 16483 x86_64-*linux*) 16484 case `$FILECMD conftest.o` in 16485 *x86-64*) 16486 LD="${LD-ld} -m elf32_x86_64" 16487 ;; 16488 *) 16489 LD="${LD-ld} -m elf_i386" 16490 ;; 16491 esac 16492 ;; 16493 powerpc64le-*linux*) 16494 LD="${LD-ld} -m elf32lppclinux" 16495 ;; 16496 powerpc64-*linux*) 16497 LD="${LD-ld} -m elf32ppclinux" 16498 ;; 16499 s390x-*linux*) 16500 LD="${LD-ld} -m elf_s390" 16501 ;; 16502 sparc64-*linux*) 16503 LD="${LD-ld} -m elf32_sparc" 16504 ;; 16505 esac 16506 ;; 16507 *64-bit*) 16508 case $host in 16509 x86_64-*kfreebsd*-gnu) 16510 LD="${LD-ld} -m elf_x86_64_fbsd" 16511 ;; 16512 x86_64-*linux*) 16513 LD="${LD-ld} -m elf_x86_64" 16514 ;; 16515 powerpcle-*linux*|powerpc64le-*linux*) 16516 LD="${LD-ld} -m elf64lppc" 16517 ;; 16518 powerpc-*linux*|powerpc64-*linux*) 16519 LD="${LD-ld} -m elf64ppc" 16520 ;; 16521 s390*-*linux*|s390*-*tpf*) 16522 LD="${LD-ld} -m elf64_s390" 16523 ;; 16524 sparc*-*linux*) 16525 LD="${LD-ld} -m elf64_sparc" 16526 ;; 16527 esac 16528 ;; 16529 esac 16530 fi 16531 rm -rf conftest* 16532 ;; 16533 16534*-*-sco3.2v5*) 16535 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 16536 SAVE_CFLAGS=$CFLAGS 16537 CFLAGS="$CFLAGS -belf" 16538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 16539printf %s "checking whether the C compiler needs -belf... " >&6; } 16540if test ${lt_cv_cc_needs_belf+y} 16541then : 16542 printf %s "(cached) " >&6 16543else $as_nop 16544 ac_ext=c 16545ac_cpp='$CPP $CPPFLAGS' 16546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16548ac_compiler_gnu=$ac_cv_c_compiler_gnu 16549 16550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16551/* end confdefs.h. */ 16552 16553int 16554main (void) 16555{ 16556 16557 ; 16558 return 0; 16559} 16560_ACEOF 16561if ac_fn_c_try_link "$LINENO" 16562then : 16563 lt_cv_cc_needs_belf=yes 16564else $as_nop 16565 lt_cv_cc_needs_belf=no 16566fi 16567rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16568 conftest$ac_exeext conftest.$ac_ext 16569 ac_ext=c 16570ac_cpp='$CPP $CPPFLAGS' 16571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16573ac_compiler_gnu=$ac_cv_c_compiler_gnu 16574 16575fi 16576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 16577printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 16578 if test yes != "$lt_cv_cc_needs_belf"; then 16579 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 16580 CFLAGS=$SAVE_CFLAGS 16581 fi 16582 ;; 16583*-*solaris*) 16584 # Find out what ABI is being produced by ac_compile, and set linker 16585 # options accordingly. 16586 echo 'int i;' > conftest.$ac_ext 16587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16588 (eval $ac_compile) 2>&5 16589 ac_status=$? 16590 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16591 test $ac_status = 0; }; then 16592 case `$FILECMD conftest.o` in 16593 *64-bit*) 16594 case $lt_cv_prog_gnu_ld in 16595 yes*) 16596 case $host in 16597 i?86-*-solaris*|x86_64-*-solaris*) 16598 LD="${LD-ld} -m elf_x86_64" 16599 ;; 16600 sparc*-*-solaris*) 16601 LD="${LD-ld} -m elf64_sparc" 16602 ;; 16603 esac 16604 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 16605 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 16606 LD=${LD-ld}_sol2 16607 fi 16608 ;; 16609 *) 16610 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 16611 LD="${LD-ld} -64" 16612 fi 16613 ;; 16614 esac 16615 ;; 16616 esac 16617 fi 16618 rm -rf conftest* 16619 ;; 16620esac 16621 16622need_locks=$enable_libtool_lock 16623 16624if test -n "$ac_tool_prefix"; then 16625 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 16626set dummy ${ac_tool_prefix}mt; ac_word=$2 16627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16628printf %s "checking for $ac_word... " >&6; } 16629if test ${ac_cv_prog_MANIFEST_TOOL+y} 16630then : 16631 printf %s "(cached) " >&6 16632else $as_nop 16633 if test -n "$MANIFEST_TOOL"; then 16634 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 16635else 16636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16637for as_dir in $PATH 16638do 16639 IFS=$as_save_IFS 16640 case $as_dir in #((( 16641 '') as_dir=./ ;; 16642 */) ;; 16643 *) as_dir=$as_dir/ ;; 16644 esac 16645 for ac_exec_ext in '' $ac_executable_extensions; do 16646 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 16647 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 16648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 16649 break 2 16650 fi 16651done 16652 done 16653IFS=$as_save_IFS 16654 16655fi 16656fi 16657MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 16658if test -n "$MANIFEST_TOOL"; then 16659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 16660printf "%s\n" "$MANIFEST_TOOL" >&6; } 16661else 16662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16663printf "%s\n" "no" >&6; } 16664fi 16665 16666 16667fi 16668if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 16669 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 16670 # Extract the first word of "mt", so it can be a program name with args. 16671set dummy mt; ac_word=$2 16672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16673printf %s "checking for $ac_word... " >&6; } 16674if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 16675then : 16676 printf %s "(cached) " >&6 16677else $as_nop 16678 if test -n "$ac_ct_MANIFEST_TOOL"; then 16679 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 16680else 16681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16682for as_dir in $PATH 16683do 16684 IFS=$as_save_IFS 16685 case $as_dir in #((( 16686 '') as_dir=./ ;; 16687 */) ;; 16688 *) as_dir=$as_dir/ ;; 16689 esac 16690 for ac_exec_ext in '' $ac_executable_extensions; do 16691 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 16692 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 16693 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 16694 break 2 16695 fi 16696done 16697 done 16698IFS=$as_save_IFS 16699 16700fi 16701fi 16702ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 16703if test -n "$ac_ct_MANIFEST_TOOL"; then 16704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 16705printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 16706else 16707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16708printf "%s\n" "no" >&6; } 16709fi 16710 16711 if test "x$ac_ct_MANIFEST_TOOL" = x; then 16712 MANIFEST_TOOL=":" 16713 else 16714 case $cross_compiling:$ac_tool_warned in 16715yes:) 16716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16717printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16718ac_tool_warned=yes ;; 16719esac 16720 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 16721 fi 16722else 16723 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 16724fi 16725 16726test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 16727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 16728printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 16729if test ${lt_cv_path_mainfest_tool+y} 16730then : 16731 printf %s "(cached) " >&6 16732else $as_nop 16733 lt_cv_path_mainfest_tool=no 16734 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 16735 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 16736 cat conftest.err >&5 16737 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 16738 lt_cv_path_mainfest_tool=yes 16739 fi 16740 rm -f conftest* 16741fi 16742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 16743printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 16744if test yes != "$lt_cv_path_mainfest_tool"; then 16745 MANIFEST_TOOL=: 16746fi 16747 16748 16749 16750 16751 16752 16753 case $host_os in 16754 rhapsody* | darwin*) 16755 if test -n "$ac_tool_prefix"; then 16756 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 16757set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 16758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16759printf %s "checking for $ac_word... " >&6; } 16760if test ${ac_cv_prog_DSYMUTIL+y} 16761then : 16762 printf %s "(cached) " >&6 16763else $as_nop 16764 if test -n "$DSYMUTIL"; then 16765 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 16766else 16767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16768for as_dir in $PATH 16769do 16770 IFS=$as_save_IFS 16771 case $as_dir in #((( 16772 '') as_dir=./ ;; 16773 */) ;; 16774 *) as_dir=$as_dir/ ;; 16775 esac 16776 for ac_exec_ext in '' $ac_executable_extensions; do 16777 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 16778 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 16779 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 16780 break 2 16781 fi 16782done 16783 done 16784IFS=$as_save_IFS 16785 16786fi 16787fi 16788DSYMUTIL=$ac_cv_prog_DSYMUTIL 16789if test -n "$DSYMUTIL"; then 16790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 16791printf "%s\n" "$DSYMUTIL" >&6; } 16792else 16793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16794printf "%s\n" "no" >&6; } 16795fi 16796 16797 16798fi 16799if test -z "$ac_cv_prog_DSYMUTIL"; then 16800 ac_ct_DSYMUTIL=$DSYMUTIL 16801 # Extract the first word of "dsymutil", so it can be a program name with args. 16802set dummy dsymutil; ac_word=$2 16803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16804printf %s "checking for $ac_word... " >&6; } 16805if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 16806then : 16807 printf %s "(cached) " >&6 16808else $as_nop 16809 if test -n "$ac_ct_DSYMUTIL"; then 16810 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 16811else 16812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16813for as_dir in $PATH 16814do 16815 IFS=$as_save_IFS 16816 case $as_dir in #((( 16817 '') as_dir=./ ;; 16818 */) ;; 16819 *) as_dir=$as_dir/ ;; 16820 esac 16821 for ac_exec_ext in '' $ac_executable_extensions; do 16822 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 16823 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 16824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 16825 break 2 16826 fi 16827done 16828 done 16829IFS=$as_save_IFS 16830 16831fi 16832fi 16833ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 16834if test -n "$ac_ct_DSYMUTIL"; then 16835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 16836printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 16837else 16838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16839printf "%s\n" "no" >&6; } 16840fi 16841 16842 if test "x$ac_ct_DSYMUTIL" = x; then 16843 DSYMUTIL=":" 16844 else 16845 case $cross_compiling:$ac_tool_warned in 16846yes:) 16847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16848printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16849ac_tool_warned=yes ;; 16850esac 16851 DSYMUTIL=$ac_ct_DSYMUTIL 16852 fi 16853else 16854 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 16855fi 16856 16857 if test -n "$ac_tool_prefix"; then 16858 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 16859set dummy ${ac_tool_prefix}nmedit; ac_word=$2 16860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16861printf %s "checking for $ac_word... " >&6; } 16862if test ${ac_cv_prog_NMEDIT+y} 16863then : 16864 printf %s "(cached) " >&6 16865else $as_nop 16866 if test -n "$NMEDIT"; then 16867 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 16868else 16869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16870for as_dir in $PATH 16871do 16872 IFS=$as_save_IFS 16873 case $as_dir in #((( 16874 '') as_dir=./ ;; 16875 */) ;; 16876 *) as_dir=$as_dir/ ;; 16877 esac 16878 for ac_exec_ext in '' $ac_executable_extensions; do 16879 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 16880 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 16881 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 16882 break 2 16883 fi 16884done 16885 done 16886IFS=$as_save_IFS 16887 16888fi 16889fi 16890NMEDIT=$ac_cv_prog_NMEDIT 16891if test -n "$NMEDIT"; then 16892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 16893printf "%s\n" "$NMEDIT" >&6; } 16894else 16895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16896printf "%s\n" "no" >&6; } 16897fi 16898 16899 16900fi 16901if test -z "$ac_cv_prog_NMEDIT"; then 16902 ac_ct_NMEDIT=$NMEDIT 16903 # Extract the first word of "nmedit", so it can be a program name with args. 16904set dummy nmedit; ac_word=$2 16905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16906printf %s "checking for $ac_word... " >&6; } 16907if test ${ac_cv_prog_ac_ct_NMEDIT+y} 16908then : 16909 printf %s "(cached) " >&6 16910else $as_nop 16911 if test -n "$ac_ct_NMEDIT"; then 16912 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 16913else 16914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16915for as_dir in $PATH 16916do 16917 IFS=$as_save_IFS 16918 case $as_dir in #((( 16919 '') as_dir=./ ;; 16920 */) ;; 16921 *) as_dir=$as_dir/ ;; 16922 esac 16923 for ac_exec_ext in '' $ac_executable_extensions; do 16924 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 16925 ac_cv_prog_ac_ct_NMEDIT="nmedit" 16926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 16927 break 2 16928 fi 16929done 16930 done 16931IFS=$as_save_IFS 16932 16933fi 16934fi 16935ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 16936if test -n "$ac_ct_NMEDIT"; then 16937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 16938printf "%s\n" "$ac_ct_NMEDIT" >&6; } 16939else 16940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16941printf "%s\n" "no" >&6; } 16942fi 16943 16944 if test "x$ac_ct_NMEDIT" = x; then 16945 NMEDIT=":" 16946 else 16947 case $cross_compiling:$ac_tool_warned in 16948yes:) 16949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16950printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16951ac_tool_warned=yes ;; 16952esac 16953 NMEDIT=$ac_ct_NMEDIT 16954 fi 16955else 16956 NMEDIT="$ac_cv_prog_NMEDIT" 16957fi 16958 16959 if test -n "$ac_tool_prefix"; then 16960 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 16961set dummy ${ac_tool_prefix}lipo; ac_word=$2 16962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16963printf %s "checking for $ac_word... " >&6; } 16964if test ${ac_cv_prog_LIPO+y} 16965then : 16966 printf %s "(cached) " >&6 16967else $as_nop 16968 if test -n "$LIPO"; then 16969 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 16970else 16971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16972for as_dir in $PATH 16973do 16974 IFS=$as_save_IFS 16975 case $as_dir in #((( 16976 '') as_dir=./ ;; 16977 */) ;; 16978 *) as_dir=$as_dir/ ;; 16979 esac 16980 for ac_exec_ext in '' $ac_executable_extensions; do 16981 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 16982 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 16983 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 16984 break 2 16985 fi 16986done 16987 done 16988IFS=$as_save_IFS 16989 16990fi 16991fi 16992LIPO=$ac_cv_prog_LIPO 16993if test -n "$LIPO"; then 16994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 16995printf "%s\n" "$LIPO" >&6; } 16996else 16997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16998printf "%s\n" "no" >&6; } 16999fi 17000 17001 17002fi 17003if test -z "$ac_cv_prog_LIPO"; then 17004 ac_ct_LIPO=$LIPO 17005 # Extract the first word of "lipo", so it can be a program name with args. 17006set dummy lipo; ac_word=$2 17007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17008printf %s "checking for $ac_word... " >&6; } 17009if test ${ac_cv_prog_ac_ct_LIPO+y} 17010then : 17011 printf %s "(cached) " >&6 17012else $as_nop 17013 if test -n "$ac_ct_LIPO"; then 17014 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 17015else 17016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17017for as_dir in $PATH 17018do 17019 IFS=$as_save_IFS 17020 case $as_dir in #((( 17021 '') as_dir=./ ;; 17022 */) ;; 17023 *) as_dir=$as_dir/ ;; 17024 esac 17025 for ac_exec_ext in '' $ac_executable_extensions; do 17026 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17027 ac_cv_prog_ac_ct_LIPO="lipo" 17028 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17029 break 2 17030 fi 17031done 17032 done 17033IFS=$as_save_IFS 17034 17035fi 17036fi 17037ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 17038if test -n "$ac_ct_LIPO"; then 17039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 17040printf "%s\n" "$ac_ct_LIPO" >&6; } 17041else 17042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17043printf "%s\n" "no" >&6; } 17044fi 17045 17046 if test "x$ac_ct_LIPO" = x; then 17047 LIPO=":" 17048 else 17049 case $cross_compiling:$ac_tool_warned in 17050yes:) 17051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17052printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17053ac_tool_warned=yes ;; 17054esac 17055 LIPO=$ac_ct_LIPO 17056 fi 17057else 17058 LIPO="$ac_cv_prog_LIPO" 17059fi 17060 17061 if test -n "$ac_tool_prefix"; then 17062 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 17063set dummy ${ac_tool_prefix}otool; ac_word=$2 17064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17065printf %s "checking for $ac_word... " >&6; } 17066if test ${ac_cv_prog_OTOOL+y} 17067then : 17068 printf %s "(cached) " >&6 17069else $as_nop 17070 if test -n "$OTOOL"; then 17071 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 17072else 17073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17074for as_dir in $PATH 17075do 17076 IFS=$as_save_IFS 17077 case $as_dir in #((( 17078 '') as_dir=./ ;; 17079 */) ;; 17080 *) as_dir=$as_dir/ ;; 17081 esac 17082 for ac_exec_ext in '' $ac_executable_extensions; do 17083 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17084 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 17085 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17086 break 2 17087 fi 17088done 17089 done 17090IFS=$as_save_IFS 17091 17092fi 17093fi 17094OTOOL=$ac_cv_prog_OTOOL 17095if test -n "$OTOOL"; then 17096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 17097printf "%s\n" "$OTOOL" >&6; } 17098else 17099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17100printf "%s\n" "no" >&6; } 17101fi 17102 17103 17104fi 17105if test -z "$ac_cv_prog_OTOOL"; then 17106 ac_ct_OTOOL=$OTOOL 17107 # Extract the first word of "otool", so it can be a program name with args. 17108set dummy otool; ac_word=$2 17109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17110printf %s "checking for $ac_word... " >&6; } 17111if test ${ac_cv_prog_ac_ct_OTOOL+y} 17112then : 17113 printf %s "(cached) " >&6 17114else $as_nop 17115 if test -n "$ac_ct_OTOOL"; then 17116 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 17117else 17118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17119for as_dir in $PATH 17120do 17121 IFS=$as_save_IFS 17122 case $as_dir in #((( 17123 '') as_dir=./ ;; 17124 */) ;; 17125 *) as_dir=$as_dir/ ;; 17126 esac 17127 for ac_exec_ext in '' $ac_executable_extensions; do 17128 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17129 ac_cv_prog_ac_ct_OTOOL="otool" 17130 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17131 break 2 17132 fi 17133done 17134 done 17135IFS=$as_save_IFS 17136 17137fi 17138fi 17139ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 17140if test -n "$ac_ct_OTOOL"; then 17141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 17142printf "%s\n" "$ac_ct_OTOOL" >&6; } 17143else 17144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17145printf "%s\n" "no" >&6; } 17146fi 17147 17148 if test "x$ac_ct_OTOOL" = x; then 17149 OTOOL=":" 17150 else 17151 case $cross_compiling:$ac_tool_warned in 17152yes:) 17153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17154printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17155ac_tool_warned=yes ;; 17156esac 17157 OTOOL=$ac_ct_OTOOL 17158 fi 17159else 17160 OTOOL="$ac_cv_prog_OTOOL" 17161fi 17162 17163 if test -n "$ac_tool_prefix"; then 17164 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 17165set dummy ${ac_tool_prefix}otool64; ac_word=$2 17166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17167printf %s "checking for $ac_word... " >&6; } 17168if test ${ac_cv_prog_OTOOL64+y} 17169then : 17170 printf %s "(cached) " >&6 17171else $as_nop 17172 if test -n "$OTOOL64"; then 17173 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 17174else 17175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17176for as_dir in $PATH 17177do 17178 IFS=$as_save_IFS 17179 case $as_dir in #((( 17180 '') as_dir=./ ;; 17181 */) ;; 17182 *) as_dir=$as_dir/ ;; 17183 esac 17184 for ac_exec_ext in '' $ac_executable_extensions; do 17185 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17186 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 17187 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17188 break 2 17189 fi 17190done 17191 done 17192IFS=$as_save_IFS 17193 17194fi 17195fi 17196OTOOL64=$ac_cv_prog_OTOOL64 17197if test -n "$OTOOL64"; then 17198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 17199printf "%s\n" "$OTOOL64" >&6; } 17200else 17201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17202printf "%s\n" "no" >&6; } 17203fi 17204 17205 17206fi 17207if test -z "$ac_cv_prog_OTOOL64"; then 17208 ac_ct_OTOOL64=$OTOOL64 17209 # Extract the first word of "otool64", so it can be a program name with args. 17210set dummy otool64; ac_word=$2 17211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17212printf %s "checking for $ac_word... " >&6; } 17213if test ${ac_cv_prog_ac_ct_OTOOL64+y} 17214then : 17215 printf %s "(cached) " >&6 17216else $as_nop 17217 if test -n "$ac_ct_OTOOL64"; then 17218 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 17219else 17220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17221for as_dir in $PATH 17222do 17223 IFS=$as_save_IFS 17224 case $as_dir in #((( 17225 '') as_dir=./ ;; 17226 */) ;; 17227 *) as_dir=$as_dir/ ;; 17228 esac 17229 for ac_exec_ext in '' $ac_executable_extensions; do 17230 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17231 ac_cv_prog_ac_ct_OTOOL64="otool64" 17232 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17233 break 2 17234 fi 17235done 17236 done 17237IFS=$as_save_IFS 17238 17239fi 17240fi 17241ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 17242if test -n "$ac_ct_OTOOL64"; then 17243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 17244printf "%s\n" "$ac_ct_OTOOL64" >&6; } 17245else 17246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17247printf "%s\n" "no" >&6; } 17248fi 17249 17250 if test "x$ac_ct_OTOOL64" = x; then 17251 OTOOL64=":" 17252 else 17253 case $cross_compiling:$ac_tool_warned in 17254yes:) 17255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17256printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17257ac_tool_warned=yes ;; 17258esac 17259 OTOOL64=$ac_ct_OTOOL64 17260 fi 17261else 17262 OTOOL64="$ac_cv_prog_OTOOL64" 17263fi 17264 17265 17266 17267 17268 17269 17270 17271 17272 17273 17274 17275 17276 17277 17278 17279 17280 17281 17282 17283 17284 17285 17286 17287 17288 17289 17290 17291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 17292printf %s "checking for -single_module linker flag... " >&6; } 17293if test ${lt_cv_apple_cc_single_mod+y} 17294then : 17295 printf %s "(cached) " >&6 17296else $as_nop 17297 lt_cv_apple_cc_single_mod=no 17298 if test -z "$LT_MULTI_MODULE"; then 17299 # By default we will add the -single_module flag. You can override 17300 # by either setting the environment variable LT_MULTI_MODULE 17301 # non-empty at configure time, or by adding -multi_module to the 17302 # link flags. 17303 rm -rf libconftest.dylib* 17304 echo "int foo(void){return 1;}" > conftest.c 17305 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 17306-dynamiclib -Wl,-single_module conftest.c" >&5 17307 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 17308 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 17309 _lt_result=$? 17310 # If there is a non-empty error log, and "single_module" 17311 # appears in it, assume the flag caused a linker warning 17312 if test -s conftest.err && $GREP single_module conftest.err; then 17313 cat conftest.err >&5 17314 # Otherwise, if the output was created with a 0 exit code from 17315 # the compiler, it worked. 17316 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 17317 lt_cv_apple_cc_single_mod=yes 17318 else 17319 cat conftest.err >&5 17320 fi 17321 rm -rf libconftest.dylib* 17322 rm -f conftest.* 17323 fi 17324fi 17325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 17326printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 17327 17328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 17329printf %s "checking for -exported_symbols_list linker flag... " >&6; } 17330if test ${lt_cv_ld_exported_symbols_list+y} 17331then : 17332 printf %s "(cached) " >&6 17333else $as_nop 17334 lt_cv_ld_exported_symbols_list=no 17335 save_LDFLAGS=$LDFLAGS 17336 echo "_main" > conftest.sym 17337 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 17338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17339/* end confdefs.h. */ 17340 17341int 17342main (void) 17343{ 17344 17345 ; 17346 return 0; 17347} 17348_ACEOF 17349if ac_fn_c_try_link "$LINENO" 17350then : 17351 lt_cv_ld_exported_symbols_list=yes 17352else $as_nop 17353 lt_cv_ld_exported_symbols_list=no 17354fi 17355rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17356 conftest$ac_exeext conftest.$ac_ext 17357 LDFLAGS=$save_LDFLAGS 17358 17359fi 17360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 17361printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 17362 17363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 17364printf %s "checking for -force_load linker flag... " >&6; } 17365if test ${lt_cv_ld_force_load+y} 17366then : 17367 printf %s "(cached) " >&6 17368else $as_nop 17369 lt_cv_ld_force_load=no 17370 cat > conftest.c << _LT_EOF 17371int forced_loaded() { return 2;} 17372_LT_EOF 17373 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 17374 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 17375 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 17376 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 17377 echo "$RANLIB libconftest.a" >&5 17378 $RANLIB libconftest.a 2>&5 17379 cat > conftest.c << _LT_EOF 17380int main() { return 0;} 17381_LT_EOF 17382 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 17383 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 17384 _lt_result=$? 17385 if test -s conftest.err && $GREP force_load conftest.err; then 17386 cat conftest.err >&5 17387 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 17388 lt_cv_ld_force_load=yes 17389 else 17390 cat conftest.err >&5 17391 fi 17392 rm -f conftest.err libconftest.a conftest conftest.c 17393 rm -rf conftest.dSYM 17394 17395fi 17396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 17397printf "%s\n" "$lt_cv_ld_force_load" >&6; } 17398 case $host_os in 17399 rhapsody* | darwin1.[012]) 17400 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 17401 darwin1.*) 17402 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 17403 darwin*) 17404 case $MACOSX_DEPLOYMENT_TARGET,$host in 17405 10.[012],*|,*powerpc*-darwin[5-8]*) 17406 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 17407 *) 17408 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 17409 esac 17410 ;; 17411 esac 17412 if test yes = "$lt_cv_apple_cc_single_mod"; then 17413 _lt_dar_single_mod='$single_module' 17414 fi 17415 if test yes = "$lt_cv_ld_exported_symbols_list"; then 17416 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 17417 else 17418 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 17419 fi 17420 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 17421 _lt_dsymutil='~$DSYMUTIL $lib || :' 17422 else 17423 _lt_dsymutil= 17424 fi 17425 ;; 17426 esac 17427 17428# func_munge_path_list VARIABLE PATH 17429# ----------------------------------- 17430# VARIABLE is name of variable containing _space_ separated list of 17431# directories to be munged by the contents of PATH, which is string 17432# having a format: 17433# "DIR[:DIR]:" 17434# string "DIR[ DIR]" will be prepended to VARIABLE 17435# ":DIR[:DIR]" 17436# string "DIR[ DIR]" will be appended to VARIABLE 17437# "DIRP[:DIRP]::[DIRA:]DIRA" 17438# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 17439# "DIRA[ DIRA]" will be appended to VARIABLE 17440# "DIR[:DIR]" 17441# VARIABLE will be replaced by "DIR[ DIR]" 17442func_munge_path_list () 17443{ 17444 case x$2 in 17445 x) 17446 ;; 17447 *:) 17448 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 17449 ;; 17450 x:*) 17451 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 17452 ;; 17453 *::*) 17454 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 17455 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 17456 ;; 17457 *) 17458 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 17459 ;; 17460 esac 17461} 17462 17463ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 17464" 17465if test "x$ac_cv_header_dlfcn_h" = xyes 17466then : 17467 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 17468 17469fi 17470 17471 17472 17473 17474 17475# Set options 17476# Check whether --enable-static was given. 17477if test ${enable_static+y} 17478then : 17479 enableval=$enable_static; p=${PACKAGE-default} 17480 case $enableval in 17481 yes) enable_static=yes ;; 17482 no) enable_static=no ;; 17483 *) 17484 enable_static=no 17485 # Look at the argument we got. We use all the common list separators. 17486 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 17487 for pkg in $enableval; do 17488 IFS=$lt_save_ifs 17489 if test "X$pkg" = "X$p"; then 17490 enable_static=yes 17491 fi 17492 done 17493 IFS=$lt_save_ifs 17494 ;; 17495 esac 17496else $as_nop 17497 enable_static=no 17498fi 17499 17500 17501 17502 17503 17504 17505 17506enable_win32_dll=yes 17507 17508case $host in 17509*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 17510 if test -n "$ac_tool_prefix"; then 17511 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 17512set dummy ${ac_tool_prefix}as; ac_word=$2 17513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17514printf %s "checking for $ac_word... " >&6; } 17515if test ${ac_cv_prog_AS+y} 17516then : 17517 printf %s "(cached) " >&6 17518else $as_nop 17519 if test -n "$AS"; then 17520 ac_cv_prog_AS="$AS" # Let the user override the test. 17521else 17522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17523for as_dir in $PATH 17524do 17525 IFS=$as_save_IFS 17526 case $as_dir in #((( 17527 '') as_dir=./ ;; 17528 */) ;; 17529 *) as_dir=$as_dir/ ;; 17530 esac 17531 for ac_exec_ext in '' $ac_executable_extensions; do 17532 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17533 ac_cv_prog_AS="${ac_tool_prefix}as" 17534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17535 break 2 17536 fi 17537done 17538 done 17539IFS=$as_save_IFS 17540 17541fi 17542fi 17543AS=$ac_cv_prog_AS 17544if test -n "$AS"; then 17545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 17546printf "%s\n" "$AS" >&6; } 17547else 17548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17549printf "%s\n" "no" >&6; } 17550fi 17551 17552 17553fi 17554if test -z "$ac_cv_prog_AS"; then 17555 ac_ct_AS=$AS 17556 # Extract the first word of "as", so it can be a program name with args. 17557set dummy as; ac_word=$2 17558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17559printf %s "checking for $ac_word... " >&6; } 17560if test ${ac_cv_prog_ac_ct_AS+y} 17561then : 17562 printf %s "(cached) " >&6 17563else $as_nop 17564 if test -n "$ac_ct_AS"; then 17565 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 17566else 17567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17568for as_dir in $PATH 17569do 17570 IFS=$as_save_IFS 17571 case $as_dir in #((( 17572 '') as_dir=./ ;; 17573 */) ;; 17574 *) as_dir=$as_dir/ ;; 17575 esac 17576 for ac_exec_ext in '' $ac_executable_extensions; do 17577 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17578 ac_cv_prog_ac_ct_AS="as" 17579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17580 break 2 17581 fi 17582done 17583 done 17584IFS=$as_save_IFS 17585 17586fi 17587fi 17588ac_ct_AS=$ac_cv_prog_ac_ct_AS 17589if test -n "$ac_ct_AS"; then 17590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 17591printf "%s\n" "$ac_ct_AS" >&6; } 17592else 17593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17594printf "%s\n" "no" >&6; } 17595fi 17596 17597 if test "x$ac_ct_AS" = x; then 17598 AS="false" 17599 else 17600 case $cross_compiling:$ac_tool_warned in 17601yes:) 17602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17603printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17604ac_tool_warned=yes ;; 17605esac 17606 AS=$ac_ct_AS 17607 fi 17608else 17609 AS="$ac_cv_prog_AS" 17610fi 17611 17612 if test -n "$ac_tool_prefix"; then 17613 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 17614set dummy ${ac_tool_prefix}dlltool; ac_word=$2 17615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17616printf %s "checking for $ac_word... " >&6; } 17617if test ${ac_cv_prog_DLLTOOL+y} 17618then : 17619 printf %s "(cached) " >&6 17620else $as_nop 17621 if test -n "$DLLTOOL"; then 17622 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 17623else 17624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17625for as_dir in $PATH 17626do 17627 IFS=$as_save_IFS 17628 case $as_dir in #((( 17629 '') as_dir=./ ;; 17630 */) ;; 17631 *) as_dir=$as_dir/ ;; 17632 esac 17633 for ac_exec_ext in '' $ac_executable_extensions; do 17634 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17635 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 17636 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17637 break 2 17638 fi 17639done 17640 done 17641IFS=$as_save_IFS 17642 17643fi 17644fi 17645DLLTOOL=$ac_cv_prog_DLLTOOL 17646if test -n "$DLLTOOL"; then 17647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 17648printf "%s\n" "$DLLTOOL" >&6; } 17649else 17650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17651printf "%s\n" "no" >&6; } 17652fi 17653 17654 17655fi 17656if test -z "$ac_cv_prog_DLLTOOL"; then 17657 ac_ct_DLLTOOL=$DLLTOOL 17658 # Extract the first word of "dlltool", so it can be a program name with args. 17659set dummy dlltool; ac_word=$2 17660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17661printf %s "checking for $ac_word... " >&6; } 17662if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 17663then : 17664 printf %s "(cached) " >&6 17665else $as_nop 17666 if test -n "$ac_ct_DLLTOOL"; then 17667 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 17668else 17669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17670for as_dir in $PATH 17671do 17672 IFS=$as_save_IFS 17673 case $as_dir in #((( 17674 '') as_dir=./ ;; 17675 */) ;; 17676 *) as_dir=$as_dir/ ;; 17677 esac 17678 for ac_exec_ext in '' $ac_executable_extensions; do 17679 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17680 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 17681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17682 break 2 17683 fi 17684done 17685 done 17686IFS=$as_save_IFS 17687 17688fi 17689fi 17690ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 17691if test -n "$ac_ct_DLLTOOL"; then 17692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 17693printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 17694else 17695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17696printf "%s\n" "no" >&6; } 17697fi 17698 17699 if test "x$ac_ct_DLLTOOL" = x; then 17700 DLLTOOL="false" 17701 else 17702 case $cross_compiling:$ac_tool_warned in 17703yes:) 17704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17705printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17706ac_tool_warned=yes ;; 17707esac 17708 DLLTOOL=$ac_ct_DLLTOOL 17709 fi 17710else 17711 DLLTOOL="$ac_cv_prog_DLLTOOL" 17712fi 17713 17714 if test -n "$ac_tool_prefix"; then 17715 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 17716set dummy ${ac_tool_prefix}objdump; ac_word=$2 17717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17718printf %s "checking for $ac_word... " >&6; } 17719if test ${ac_cv_prog_OBJDUMP+y} 17720then : 17721 printf %s "(cached) " >&6 17722else $as_nop 17723 if test -n "$OBJDUMP"; then 17724 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 17725else 17726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17727for as_dir in $PATH 17728do 17729 IFS=$as_save_IFS 17730 case $as_dir in #((( 17731 '') as_dir=./ ;; 17732 */) ;; 17733 *) as_dir=$as_dir/ ;; 17734 esac 17735 for ac_exec_ext in '' $ac_executable_extensions; do 17736 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17737 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 17738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17739 break 2 17740 fi 17741done 17742 done 17743IFS=$as_save_IFS 17744 17745fi 17746fi 17747OBJDUMP=$ac_cv_prog_OBJDUMP 17748if test -n "$OBJDUMP"; then 17749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 17750printf "%s\n" "$OBJDUMP" >&6; } 17751else 17752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17753printf "%s\n" "no" >&6; } 17754fi 17755 17756 17757fi 17758if test -z "$ac_cv_prog_OBJDUMP"; then 17759 ac_ct_OBJDUMP=$OBJDUMP 17760 # Extract the first word of "objdump", so it can be a program name with args. 17761set dummy objdump; ac_word=$2 17762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17763printf %s "checking for $ac_word... " >&6; } 17764if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 17765then : 17766 printf %s "(cached) " >&6 17767else $as_nop 17768 if test -n "$ac_ct_OBJDUMP"; then 17769 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 17770else 17771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17772for as_dir in $PATH 17773do 17774 IFS=$as_save_IFS 17775 case $as_dir in #((( 17776 '') as_dir=./ ;; 17777 */) ;; 17778 *) as_dir=$as_dir/ ;; 17779 esac 17780 for ac_exec_ext in '' $ac_executable_extensions; do 17781 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17782 ac_cv_prog_ac_ct_OBJDUMP="objdump" 17783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17784 break 2 17785 fi 17786done 17787 done 17788IFS=$as_save_IFS 17789 17790fi 17791fi 17792ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 17793if test -n "$ac_ct_OBJDUMP"; then 17794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 17795printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 17796else 17797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17798printf "%s\n" "no" >&6; } 17799fi 17800 17801 if test "x$ac_ct_OBJDUMP" = x; then 17802 OBJDUMP="false" 17803 else 17804 case $cross_compiling:$ac_tool_warned in 17805yes:) 17806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17807printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17808ac_tool_warned=yes ;; 17809esac 17810 OBJDUMP=$ac_ct_OBJDUMP 17811 fi 17812else 17813 OBJDUMP="$ac_cv_prog_OBJDUMP" 17814fi 17815 17816 ;; 17817esac 17818 17819test -z "$AS" && AS=as 17820 17821 17822 17823 17824 17825test -z "$DLLTOOL" && DLLTOOL=dlltool 17826 17827 17828 17829 17830 17831test -z "$OBJDUMP" && OBJDUMP=objdump 17832 17833 17834 17835 17836 17837 17838 17839 enable_dlopen=no 17840 17841 17842 17843 # Check whether --enable-shared was given. 17844if test ${enable_shared+y} 17845then : 17846 enableval=$enable_shared; p=${PACKAGE-default} 17847 case $enableval in 17848 yes) enable_shared=yes ;; 17849 no) enable_shared=no ;; 17850 *) 17851 enable_shared=no 17852 # Look at the argument we got. We use all the common list separators. 17853 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 17854 for pkg in $enableval; do 17855 IFS=$lt_save_ifs 17856 if test "X$pkg" = "X$p"; then 17857 enable_shared=yes 17858 fi 17859 done 17860 IFS=$lt_save_ifs 17861 ;; 17862 esac 17863else $as_nop 17864 enable_shared=yes 17865fi 17866 17867 17868 17869 17870 17871 17872 17873 17874 17875 17876 17877# Check whether --with-pic was given. 17878if test ${with_pic+y} 17879then : 17880 withval=$with_pic; lt_p=${PACKAGE-default} 17881 case $withval in 17882 yes|no) pic_mode=$withval ;; 17883 *) 17884 pic_mode=default 17885 # Look at the argument we got. We use all the common list separators. 17886 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 17887 for lt_pkg in $withval; do 17888 IFS=$lt_save_ifs 17889 if test "X$lt_pkg" = "X$lt_p"; then 17890 pic_mode=yes 17891 fi 17892 done 17893 IFS=$lt_save_ifs 17894 ;; 17895 esac 17896else $as_nop 17897 pic_mode=default 17898fi 17899 17900 17901 17902 17903 17904 17905 17906 17907 # Check whether --enable-fast-install was given. 17908if test ${enable_fast_install+y} 17909then : 17910 enableval=$enable_fast_install; p=${PACKAGE-default} 17911 case $enableval in 17912 yes) enable_fast_install=yes ;; 17913 no) enable_fast_install=no ;; 17914 *) 17915 enable_fast_install=no 17916 # Look at the argument we got. We use all the common list separators. 17917 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 17918 for pkg in $enableval; do 17919 IFS=$lt_save_ifs 17920 if test "X$pkg" = "X$p"; then 17921 enable_fast_install=yes 17922 fi 17923 done 17924 IFS=$lt_save_ifs 17925 ;; 17926 esac 17927else $as_nop 17928 enable_fast_install=yes 17929fi 17930 17931 17932 17933 17934 17935 17936 17937 17938 shared_archive_member_spec= 17939case $host,$enable_shared in 17940power*-*-aix[5-9]*,yes) 17941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 17942printf %s "checking which variant of shared library versioning to provide... " >&6; } 17943 17944# Check whether --with-aix-soname was given. 17945if test ${with_aix_soname+y} 17946then : 17947 withval=$with_aix_soname; case $withval in 17948 aix|svr4|both) 17949 ;; 17950 *) 17951 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 17952 ;; 17953 esac 17954 lt_cv_with_aix_soname=$with_aix_soname 17955else $as_nop 17956 if test ${lt_cv_with_aix_soname+y} 17957then : 17958 printf %s "(cached) " >&6 17959else $as_nop 17960 lt_cv_with_aix_soname=aix 17961fi 17962 17963 with_aix_soname=$lt_cv_with_aix_soname 17964fi 17965 17966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 17967printf "%s\n" "$with_aix_soname" >&6; } 17968 if test aix != "$with_aix_soname"; then 17969 # For the AIX way of multilib, we name the shared archive member 17970 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 17971 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 17972 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 17973 # the AIX toolchain works better with OBJECT_MODE set (default 32). 17974 if test 64 = "${OBJECT_MODE-32}"; then 17975 shared_archive_member_spec=shr_64 17976 else 17977 shared_archive_member_spec=shr 17978 fi 17979 fi 17980 ;; 17981*) 17982 with_aix_soname=aix 17983 ;; 17984esac 17985 17986 17987 17988 17989 17990 17991 17992 17993 17994 17995# This can be used to rebuild libtool when needed 17996LIBTOOL_DEPS=$ltmain 17997 17998# Always use our own libtool. 17999LIBTOOL='$(SHELL) $(top_builddir)/libtool' 18000 18001 18002 18003 18004 18005 18006 18007 18008 18009 18010 18011 18012 18013 18014 18015 18016 18017 18018 18019 18020 18021 18022 18023 18024 18025 18026 18027 18028 18029 18030test -z "$LN_S" && LN_S="ln -s" 18031 18032 18033 18034 18035 18036 18037 18038 18039 18040 18041 18042 18043 18044 18045if test -n "${ZSH_VERSION+set}"; then 18046 setopt NO_GLOB_SUBST 18047fi 18048 18049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 18050printf %s "checking for objdir... " >&6; } 18051if test ${lt_cv_objdir+y} 18052then : 18053 printf %s "(cached) " >&6 18054else $as_nop 18055 rm -f .libs 2>/dev/null 18056mkdir .libs 2>/dev/null 18057if test -d .libs; then 18058 lt_cv_objdir=.libs 18059else 18060 # MS-DOS does not allow filenames that begin with a dot. 18061 lt_cv_objdir=_libs 18062fi 18063rmdir .libs 2>/dev/null 18064fi 18065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 18066printf "%s\n" "$lt_cv_objdir" >&6; } 18067objdir=$lt_cv_objdir 18068 18069 18070 18071 18072 18073printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 18074 18075 18076 18077 18078case $host_os in 18079aix3*) 18080 # AIX sometimes has problems with the GCC collect2 program. For some 18081 # reason, if we set the COLLECT_NAMES environment variable, the problems 18082 # vanish in a puff of smoke. 18083 if test set != "${COLLECT_NAMES+set}"; then 18084 COLLECT_NAMES= 18085 export COLLECT_NAMES 18086 fi 18087 ;; 18088esac 18089 18090# Global variables: 18091ofile=libtool 18092can_build_shared=yes 18093 18094# All known linkers require a '.a' archive for static linking (except MSVC and 18095# ICC, which need '.lib'). 18096libext=a 18097 18098with_gnu_ld=$lt_cv_prog_gnu_ld 18099 18100old_CC=$CC 18101old_CFLAGS=$CFLAGS 18102 18103# Set sane defaults for various variables 18104test -z "$CC" && CC=cc 18105test -z "$LTCC" && LTCC=$CC 18106test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 18107test -z "$LD" && LD=ld 18108test -z "$ac_objext" && ac_objext=o 18109 18110func_cc_basename $compiler 18111cc_basename=$func_cc_basename_result 18112 18113 18114# Only perform the check for file, if the check method requires it 18115test -z "$MAGIC_CMD" && MAGIC_CMD=file 18116case $deplibs_check_method in 18117file_magic*) 18118 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 18119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 18120printf %s "checking for ${ac_tool_prefix}file... " >&6; } 18121if test ${lt_cv_path_MAGIC_CMD+y} 18122then : 18123 printf %s "(cached) " >&6 18124else $as_nop 18125 case $MAGIC_CMD in 18126[\\/*] | ?:[\\/]*) 18127 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 18128 ;; 18129*) 18130 lt_save_MAGIC_CMD=$MAGIC_CMD 18131 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 18132 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 18133 for ac_dir in $ac_dummy; do 18134 IFS=$lt_save_ifs 18135 test -z "$ac_dir" && ac_dir=. 18136 if test -f "$ac_dir/${ac_tool_prefix}file"; then 18137 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 18138 if test -n "$file_magic_test_file"; then 18139 case $deplibs_check_method in 18140 "file_magic "*) 18141 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 18142 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 18143 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 18144 $EGREP "$file_magic_regex" > /dev/null; then 18145 : 18146 else 18147 cat <<_LT_EOF 1>&2 18148 18149*** Warning: the command libtool uses to detect shared libraries, 18150*** $file_magic_cmd, produces output that libtool cannot recognize. 18151*** The result is that libtool may fail to recognize shared libraries 18152*** as such. This will affect the creation of libtool libraries that 18153*** depend on shared libraries, but programs linked with such libtool 18154*** libraries will work regardless of this problem. Nevertheless, you 18155*** may want to report the problem to your system manager and/or to 18156*** bug-libtool@gnu.org 18157 18158_LT_EOF 18159 fi ;; 18160 esac 18161 fi 18162 break 18163 fi 18164 done 18165 IFS=$lt_save_ifs 18166 MAGIC_CMD=$lt_save_MAGIC_CMD 18167 ;; 18168esac 18169fi 18170 18171MAGIC_CMD=$lt_cv_path_MAGIC_CMD 18172if test -n "$MAGIC_CMD"; then 18173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 18174printf "%s\n" "$MAGIC_CMD" >&6; } 18175else 18176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18177printf "%s\n" "no" >&6; } 18178fi 18179 18180 18181 18182 18183 18184if test -z "$lt_cv_path_MAGIC_CMD"; then 18185 if test -n "$ac_tool_prefix"; then 18186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 18187printf %s "checking for file... " >&6; } 18188if test ${lt_cv_path_MAGIC_CMD+y} 18189then : 18190 printf %s "(cached) " >&6 18191else $as_nop 18192 case $MAGIC_CMD in 18193[\\/*] | ?:[\\/]*) 18194 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 18195 ;; 18196*) 18197 lt_save_MAGIC_CMD=$MAGIC_CMD 18198 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 18199 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 18200 for ac_dir in $ac_dummy; do 18201 IFS=$lt_save_ifs 18202 test -z "$ac_dir" && ac_dir=. 18203 if test -f "$ac_dir/file"; then 18204 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 18205 if test -n "$file_magic_test_file"; then 18206 case $deplibs_check_method in 18207 "file_magic "*) 18208 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 18209 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 18210 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 18211 $EGREP "$file_magic_regex" > /dev/null; then 18212 : 18213 else 18214 cat <<_LT_EOF 1>&2 18215 18216*** Warning: the command libtool uses to detect shared libraries, 18217*** $file_magic_cmd, produces output that libtool cannot recognize. 18218*** The result is that libtool may fail to recognize shared libraries 18219*** as such. This will affect the creation of libtool libraries that 18220*** depend on shared libraries, but programs linked with such libtool 18221*** libraries will work regardless of this problem. Nevertheless, you 18222*** may want to report the problem to your system manager and/or to 18223*** bug-libtool@gnu.org 18224 18225_LT_EOF 18226 fi ;; 18227 esac 18228 fi 18229 break 18230 fi 18231 done 18232 IFS=$lt_save_ifs 18233 MAGIC_CMD=$lt_save_MAGIC_CMD 18234 ;; 18235esac 18236fi 18237 18238MAGIC_CMD=$lt_cv_path_MAGIC_CMD 18239if test -n "$MAGIC_CMD"; then 18240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 18241printf "%s\n" "$MAGIC_CMD" >&6; } 18242else 18243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18244printf "%s\n" "no" >&6; } 18245fi 18246 18247 18248 else 18249 MAGIC_CMD=: 18250 fi 18251fi 18252 18253 fi 18254 ;; 18255esac 18256 18257# Use C for the default configuration in the libtool script 18258 18259lt_save_CC=$CC 18260ac_ext=c 18261ac_cpp='$CPP $CPPFLAGS' 18262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18264ac_compiler_gnu=$ac_cv_c_compiler_gnu 18265 18266 18267# Source file extension for C test sources. 18268ac_ext=c 18269 18270# Object file extension for compiled C test sources. 18271objext=o 18272objext=$objext 18273 18274# Code to be used in simple compile tests 18275lt_simple_compile_test_code="int some_variable = 0;" 18276 18277# Code to be used in simple link tests 18278lt_simple_link_test_code='int main(){return(0);}' 18279 18280 18281 18282 18283 18284 18285 18286# If no C compiler was specified, use CC. 18287LTCC=${LTCC-"$CC"} 18288 18289# If no C compiler flags were specified, use CFLAGS. 18290LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18291 18292# Allow CC to be a program name with arguments. 18293compiler=$CC 18294 18295# Save the default compiler, since it gets overwritten when the other 18296# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 18297compiler_DEFAULT=$CC 18298 18299# save warnings/boilerplate of simple test code 18300ac_outfile=conftest.$ac_objext 18301echo "$lt_simple_compile_test_code" >conftest.$ac_ext 18302eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18303_lt_compiler_boilerplate=`cat conftest.err` 18304$RM conftest* 18305 18306ac_outfile=conftest.$ac_objext 18307echo "$lt_simple_link_test_code" >conftest.$ac_ext 18308eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18309_lt_linker_boilerplate=`cat conftest.err` 18310$RM -r conftest* 18311 18312 18313## CAVEAT EMPTOR: 18314## There is no encapsulation within the following macros, do not change 18315## the running order or otherwise move them around unless you know exactly 18316## what you are doing... 18317if test -n "$compiler"; then 18318 18319lt_prog_compiler_no_builtin_flag= 18320 18321if test yes = "$GCC"; then 18322 case $cc_basename in 18323 nvcc*) 18324 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 18325 *) 18326 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 18327 esac 18328 18329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 18330printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 18331if test ${lt_cv_prog_compiler_rtti_exceptions+y} 18332then : 18333 printf %s "(cached) " >&6 18334else $as_nop 18335 lt_cv_prog_compiler_rtti_exceptions=no 18336 ac_outfile=conftest.$ac_objext 18337 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18338 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 18339 # Insert the option either (1) after the last *FLAGS variable, or 18340 # (2) before a word containing "conftest.", or (3) at the end. 18341 # Note that $ac_compile itself does not contain backslashes and begins 18342 # with a dollar sign (not a hyphen), so the echo should work correctly. 18343 # The option is referenced via a variable to avoid confusing sed. 18344 lt_compile=`echo "$ac_compile" | $SED \ 18345 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18346 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18347 -e 's:$: $lt_compiler_flag:'` 18348 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 18349 (eval "$lt_compile" 2>conftest.err) 18350 ac_status=$? 18351 cat conftest.err >&5 18352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18353 if (exit $ac_status) && test -s "$ac_outfile"; then 18354 # The compiler can only warn and ignore the option if not recognized 18355 # So say no if there are warnings other than the usual output. 18356 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 18357 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 18358 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 18359 lt_cv_prog_compiler_rtti_exceptions=yes 18360 fi 18361 fi 18362 $RM conftest* 18363 18364fi 18365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 18366printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 18367 18368if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 18369 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 18370else 18371 : 18372fi 18373 18374fi 18375 18376 18377 18378 18379 18380 18381 lt_prog_compiler_wl= 18382lt_prog_compiler_pic= 18383lt_prog_compiler_static= 18384 18385 18386 if test yes = "$GCC"; then 18387 lt_prog_compiler_wl='-Wl,' 18388 lt_prog_compiler_static='-static' 18389 18390 case $host_os in 18391 aix*) 18392 # All AIX code is PIC. 18393 if test ia64 = "$host_cpu"; then 18394 # AIX 5 now supports IA64 processor 18395 lt_prog_compiler_static='-Bstatic' 18396 fi 18397 lt_prog_compiler_pic='-fPIC' 18398 ;; 18399 18400 amigaos*) 18401 case $host_cpu in 18402 powerpc) 18403 # see comment about AmigaOS4 .so support 18404 lt_prog_compiler_pic='-fPIC' 18405 ;; 18406 m68k) 18407 # FIXME: we need at least 68020 code to build shared libraries, but 18408 # adding the '-m68020' flag to GCC prevents building anything better, 18409 # like '-m68040'. 18410 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 18411 ;; 18412 esac 18413 ;; 18414 18415 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 18416 # PIC is the default for these OSes. 18417 ;; 18418 18419 mingw* | cygwin* | pw32* | os2* | cegcc*) 18420 # This hack is so that the source file can tell whether it is being 18421 # built for inclusion in a dll (and should export symbols for example). 18422 # Although the cygwin gcc ignores -fPIC, still need this for old-style 18423 # (--disable-auto-import) libraries 18424 lt_prog_compiler_pic='-DDLL_EXPORT' 18425 case $host_os in 18426 os2*) 18427 lt_prog_compiler_static='$wl-static' 18428 ;; 18429 esac 18430 ;; 18431 18432 darwin* | rhapsody*) 18433 # PIC is the default on this platform 18434 # Common symbols not allowed in MH_DYLIB files 18435 lt_prog_compiler_pic='-fno-common' 18436 ;; 18437 18438 haiku*) 18439 # PIC is the default for Haiku. 18440 # The "-static" flag exists, but is broken. 18441 lt_prog_compiler_static= 18442 ;; 18443 18444 hpux*) 18445 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 18446 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 18447 # sets the default TLS model and affects inlining. 18448 case $host_cpu in 18449 hppa*64*) 18450 # +Z the default 18451 ;; 18452 *) 18453 lt_prog_compiler_pic='-fPIC' 18454 ;; 18455 esac 18456 ;; 18457 18458 interix[3-9]*) 18459 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 18460 # Instead, we relocate shared libraries at runtime. 18461 ;; 18462 18463 msdosdjgpp*) 18464 # Just because we use GCC doesn't mean we suddenly get shared libraries 18465 # on systems that don't support them. 18466 lt_prog_compiler_can_build_shared=no 18467 enable_shared=no 18468 ;; 18469 18470 *nto* | *qnx*) 18471 # QNX uses GNU C++, but need to define -shared option too, otherwise 18472 # it will coredump. 18473 lt_prog_compiler_pic='-fPIC -shared' 18474 ;; 18475 18476 sysv4*MP*) 18477 if test -d /usr/nec; then 18478 lt_prog_compiler_pic=-Kconform_pic 18479 fi 18480 ;; 18481 18482 *) 18483 lt_prog_compiler_pic='-fPIC' 18484 ;; 18485 esac 18486 18487 case $cc_basename in 18488 nvcc*) # Cuda Compiler Driver 2.2 18489 lt_prog_compiler_wl='-Xlinker ' 18490 if test -n "$lt_prog_compiler_pic"; then 18491 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 18492 fi 18493 ;; 18494 esac 18495 else 18496 # PORTME Check for flag to pass linker flags through the system compiler. 18497 case $host_os in 18498 aix*) 18499 lt_prog_compiler_wl='-Wl,' 18500 if test ia64 = "$host_cpu"; then 18501 # AIX 5 now supports IA64 processor 18502 lt_prog_compiler_static='-Bstatic' 18503 else 18504 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 18505 fi 18506 ;; 18507 18508 darwin* | rhapsody*) 18509 # PIC is the default on this platform 18510 # Common symbols not allowed in MH_DYLIB files 18511 lt_prog_compiler_pic='-fno-common' 18512 case $cc_basename in 18513 nagfor*) 18514 # NAG Fortran compiler 18515 lt_prog_compiler_wl='-Wl,-Wl,,' 18516 lt_prog_compiler_pic='-PIC' 18517 lt_prog_compiler_static='-Bstatic' 18518 ;; 18519 esac 18520 ;; 18521 18522 mingw* | cygwin* | pw32* | os2* | cegcc*) 18523 # This hack is so that the source file can tell whether it is being 18524 # built for inclusion in a dll (and should export symbols for example). 18525 lt_prog_compiler_pic='-DDLL_EXPORT' 18526 case $host_os in 18527 os2*) 18528 lt_prog_compiler_static='$wl-static' 18529 ;; 18530 esac 18531 ;; 18532 18533 hpux9* | hpux10* | hpux11*) 18534 lt_prog_compiler_wl='-Wl,' 18535 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 18536 # not for PA HP-UX. 18537 case $host_cpu in 18538 hppa*64*|ia64*) 18539 # +Z the default 18540 ;; 18541 *) 18542 lt_prog_compiler_pic='+Z' 18543 ;; 18544 esac 18545 # Is there a better lt_prog_compiler_static that works with the bundled CC? 18546 lt_prog_compiler_static='$wl-a ${wl}archive' 18547 ;; 18548 18549 irix5* | irix6* | nonstopux*) 18550 lt_prog_compiler_wl='-Wl,' 18551 # PIC (with -KPIC) is the default. 18552 lt_prog_compiler_static='-non_shared' 18553 ;; 18554 18555 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 18556 case $cc_basename in 18557 # old Intel for x86_64, which still supported -KPIC. 18558 ecc*) 18559 lt_prog_compiler_wl='-Wl,' 18560 lt_prog_compiler_pic='-KPIC' 18561 lt_prog_compiler_static='-static' 18562 ;; 18563 # icc used to be incompatible with GCC. 18564 # ICC 10 doesn't accept -KPIC any more. 18565 icc* | ifort*) 18566 lt_prog_compiler_wl='-Wl,' 18567 lt_prog_compiler_pic='-fPIC' 18568 lt_prog_compiler_static='-static' 18569 ;; 18570 # Lahey Fortran 8.1. 18571 lf95*) 18572 lt_prog_compiler_wl='-Wl,' 18573 lt_prog_compiler_pic='--shared' 18574 lt_prog_compiler_static='--static' 18575 ;; 18576 nagfor*) 18577 # NAG Fortran compiler 18578 lt_prog_compiler_wl='-Wl,-Wl,,' 18579 lt_prog_compiler_pic='-PIC' 18580 lt_prog_compiler_static='-Bstatic' 18581 ;; 18582 tcc*) 18583 # Fabrice Bellard et al's Tiny C Compiler 18584 lt_prog_compiler_wl='-Wl,' 18585 lt_prog_compiler_pic='-fPIC' 18586 lt_prog_compiler_static='-static' 18587 ;; 18588 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 18589 # Portland Group compilers (*not* the Pentium gcc compiler, 18590 # which looks to be a dead project) 18591 lt_prog_compiler_wl='-Wl,' 18592 lt_prog_compiler_pic='-fpic' 18593 lt_prog_compiler_static='-Bstatic' 18594 ;; 18595 ccc*) 18596 lt_prog_compiler_wl='-Wl,' 18597 # All Alpha code is PIC. 18598 lt_prog_compiler_static='-non_shared' 18599 ;; 18600 xl* | bgxl* | bgf* | mpixl*) 18601 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 18602 lt_prog_compiler_wl='-Wl,' 18603 lt_prog_compiler_pic='-qpic' 18604 lt_prog_compiler_static='-qstaticlink' 18605 ;; 18606 *) 18607 case `$CC -V 2>&1 | $SED 5q` in 18608 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 18609 # Sun Fortran 8.3 passes all unrecognized flags to the linker 18610 lt_prog_compiler_pic='-KPIC' 18611 lt_prog_compiler_static='-Bstatic' 18612 lt_prog_compiler_wl='' 18613 ;; 18614 *Sun\ F* | *Sun*Fortran*) 18615 lt_prog_compiler_pic='-KPIC' 18616 lt_prog_compiler_static='-Bstatic' 18617 lt_prog_compiler_wl='-Qoption ld ' 18618 ;; 18619 *Sun\ C*) 18620 # Sun C 5.9 18621 lt_prog_compiler_pic='-KPIC' 18622 lt_prog_compiler_static='-Bstatic' 18623 lt_prog_compiler_wl='-Wl,' 18624 ;; 18625 *Intel*\ [CF]*Compiler*) 18626 lt_prog_compiler_wl='-Wl,' 18627 lt_prog_compiler_pic='-fPIC' 18628 lt_prog_compiler_static='-static' 18629 ;; 18630 *Portland\ Group*) 18631 lt_prog_compiler_wl='-Wl,' 18632 lt_prog_compiler_pic='-fpic' 18633 lt_prog_compiler_static='-Bstatic' 18634 ;; 18635 esac 18636 ;; 18637 esac 18638 ;; 18639 18640 newsos6) 18641 lt_prog_compiler_pic='-KPIC' 18642 lt_prog_compiler_static='-Bstatic' 18643 ;; 18644 18645 *nto* | *qnx*) 18646 # QNX uses GNU C++, but need to define -shared option too, otherwise 18647 # it will coredump. 18648 lt_prog_compiler_pic='-fPIC -shared' 18649 ;; 18650 18651 osf3* | osf4* | osf5*) 18652 lt_prog_compiler_wl='-Wl,' 18653 # All OSF/1 code is PIC. 18654 lt_prog_compiler_static='-non_shared' 18655 ;; 18656 18657 rdos*) 18658 lt_prog_compiler_static='-non_shared' 18659 ;; 18660 18661 solaris*) 18662 lt_prog_compiler_pic='-KPIC' 18663 lt_prog_compiler_static='-Bstatic' 18664 case $cc_basename in 18665 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 18666 lt_prog_compiler_wl='-Qoption ld ';; 18667 *) 18668 lt_prog_compiler_wl='-Wl,';; 18669 esac 18670 ;; 18671 18672 sunos4*) 18673 lt_prog_compiler_wl='-Qoption ld ' 18674 lt_prog_compiler_pic='-PIC' 18675 lt_prog_compiler_static='-Bstatic' 18676 ;; 18677 18678 sysv4 | sysv4.2uw2* | sysv4.3*) 18679 lt_prog_compiler_wl='-Wl,' 18680 lt_prog_compiler_pic='-KPIC' 18681 lt_prog_compiler_static='-Bstatic' 18682 ;; 18683 18684 sysv4*MP*) 18685 if test -d /usr/nec; then 18686 lt_prog_compiler_pic='-Kconform_pic' 18687 lt_prog_compiler_static='-Bstatic' 18688 fi 18689 ;; 18690 18691 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 18692 lt_prog_compiler_wl='-Wl,' 18693 lt_prog_compiler_pic='-KPIC' 18694 lt_prog_compiler_static='-Bstatic' 18695 ;; 18696 18697 unicos*) 18698 lt_prog_compiler_wl='-Wl,' 18699 lt_prog_compiler_can_build_shared=no 18700 ;; 18701 18702 uts4*) 18703 lt_prog_compiler_pic='-pic' 18704 lt_prog_compiler_static='-Bstatic' 18705 ;; 18706 18707 *) 18708 lt_prog_compiler_can_build_shared=no 18709 ;; 18710 esac 18711 fi 18712 18713case $host_os in 18714 # For platforms that do not support PIC, -DPIC is meaningless: 18715 *djgpp*) 18716 lt_prog_compiler_pic= 18717 ;; 18718 *) 18719 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 18720 ;; 18721esac 18722 18723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 18724printf %s "checking for $compiler option to produce PIC... " >&6; } 18725if test ${lt_cv_prog_compiler_pic+y} 18726then : 18727 printf %s "(cached) " >&6 18728else $as_nop 18729 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 18730fi 18731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 18732printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 18733lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 18734 18735# 18736# Check to make sure the PIC flag actually works. 18737# 18738if test -n "$lt_prog_compiler_pic"; then 18739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 18740printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 18741if test ${lt_cv_prog_compiler_pic_works+y} 18742then : 18743 printf %s "(cached) " >&6 18744else $as_nop 18745 lt_cv_prog_compiler_pic_works=no 18746 ac_outfile=conftest.$ac_objext 18747 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18748 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 18749 # Insert the option either (1) after the last *FLAGS variable, or 18750 # (2) before a word containing "conftest.", or (3) at the end. 18751 # Note that $ac_compile itself does not contain backslashes and begins 18752 # with a dollar sign (not a hyphen), so the echo should work correctly. 18753 # The option is referenced via a variable to avoid confusing sed. 18754 lt_compile=`echo "$ac_compile" | $SED \ 18755 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18756 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18757 -e 's:$: $lt_compiler_flag:'` 18758 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 18759 (eval "$lt_compile" 2>conftest.err) 18760 ac_status=$? 18761 cat conftest.err >&5 18762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18763 if (exit $ac_status) && test -s "$ac_outfile"; then 18764 # The compiler can only warn and ignore the option if not recognized 18765 # So say no if there are warnings other than the usual output. 18766 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 18767 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 18768 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 18769 lt_cv_prog_compiler_pic_works=yes 18770 fi 18771 fi 18772 $RM conftest* 18773 18774fi 18775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 18776printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 18777 18778if test yes = "$lt_cv_prog_compiler_pic_works"; then 18779 case $lt_prog_compiler_pic in 18780 "" | " "*) ;; 18781 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 18782 esac 18783else 18784 lt_prog_compiler_pic= 18785 lt_prog_compiler_can_build_shared=no 18786fi 18787 18788fi 18789 18790 18791 18792 18793 18794 18795 18796 18797 18798 18799 18800# 18801# Check to make sure the static flag actually works. 18802# 18803wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 18804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 18805printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 18806if test ${lt_cv_prog_compiler_static_works+y} 18807then : 18808 printf %s "(cached) " >&6 18809else $as_nop 18810 lt_cv_prog_compiler_static_works=no 18811 save_LDFLAGS=$LDFLAGS 18812 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 18813 echo "$lt_simple_link_test_code" > conftest.$ac_ext 18814 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 18815 # The linker can only warn and ignore the option if not recognized 18816 # So say no if there are warnings 18817 if test -s conftest.err; then 18818 # Append any errors to the config.log. 18819 cat conftest.err 1>&5 18820 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 18821 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 18822 if diff conftest.exp conftest.er2 >/dev/null; then 18823 lt_cv_prog_compiler_static_works=yes 18824 fi 18825 else 18826 lt_cv_prog_compiler_static_works=yes 18827 fi 18828 fi 18829 $RM -r conftest* 18830 LDFLAGS=$save_LDFLAGS 18831 18832fi 18833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 18834printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 18835 18836if test yes = "$lt_cv_prog_compiler_static_works"; then 18837 : 18838else 18839 lt_prog_compiler_static= 18840fi 18841 18842 18843 18844 18845 18846 18847 18848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 18849printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 18850if test ${lt_cv_prog_compiler_c_o+y} 18851then : 18852 printf %s "(cached) " >&6 18853else $as_nop 18854 lt_cv_prog_compiler_c_o=no 18855 $RM -r conftest 2>/dev/null 18856 mkdir conftest 18857 cd conftest 18858 mkdir out 18859 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18860 18861 lt_compiler_flag="-o out/conftest2.$ac_objext" 18862 # Insert the option either (1) after the last *FLAGS variable, or 18863 # (2) before a word containing "conftest.", or (3) at the end. 18864 # Note that $ac_compile itself does not contain backslashes and begins 18865 # with a dollar sign (not a hyphen), so the echo should work correctly. 18866 lt_compile=`echo "$ac_compile" | $SED \ 18867 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18868 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18869 -e 's:$: $lt_compiler_flag:'` 18870 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 18871 (eval "$lt_compile" 2>out/conftest.err) 18872 ac_status=$? 18873 cat out/conftest.err >&5 18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18875 if (exit $ac_status) && test -s out/conftest2.$ac_objext 18876 then 18877 # The compiler can only warn and ignore the option if not recognized 18878 # So say no if there are warnings 18879 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 18880 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 18881 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 18882 lt_cv_prog_compiler_c_o=yes 18883 fi 18884 fi 18885 chmod u+w . 2>&5 18886 $RM conftest* 18887 # SGI C++ compiler will create directory out/ii_files/ for 18888 # template instantiation 18889 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 18890 $RM out/* && rmdir out 18891 cd .. 18892 $RM -r conftest 18893 $RM conftest* 18894 18895fi 18896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 18897printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 18898 18899 18900 18901 18902 18903 18904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 18905printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 18906if test ${lt_cv_prog_compiler_c_o+y} 18907then : 18908 printf %s "(cached) " >&6 18909else $as_nop 18910 lt_cv_prog_compiler_c_o=no 18911 $RM -r conftest 2>/dev/null 18912 mkdir conftest 18913 cd conftest 18914 mkdir out 18915 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18916 18917 lt_compiler_flag="-o out/conftest2.$ac_objext" 18918 # Insert the option either (1) after the last *FLAGS variable, or 18919 # (2) before a word containing "conftest.", or (3) at the end. 18920 # Note that $ac_compile itself does not contain backslashes and begins 18921 # with a dollar sign (not a hyphen), so the echo should work correctly. 18922 lt_compile=`echo "$ac_compile" | $SED \ 18923 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18924 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18925 -e 's:$: $lt_compiler_flag:'` 18926 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 18927 (eval "$lt_compile" 2>out/conftest.err) 18928 ac_status=$? 18929 cat out/conftest.err >&5 18930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18931 if (exit $ac_status) && test -s out/conftest2.$ac_objext 18932 then 18933 # The compiler can only warn and ignore the option if not recognized 18934 # So say no if there are warnings 18935 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 18936 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 18937 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 18938 lt_cv_prog_compiler_c_o=yes 18939 fi 18940 fi 18941 chmod u+w . 2>&5 18942 $RM conftest* 18943 # SGI C++ compiler will create directory out/ii_files/ for 18944 # template instantiation 18945 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 18946 $RM out/* && rmdir out 18947 cd .. 18948 $RM -r conftest 18949 $RM conftest* 18950 18951fi 18952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 18953printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 18954 18955 18956 18957 18958hard_links=nottested 18959if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 18960 # do not overwrite the value of need_locks provided by the user 18961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 18962printf %s "checking if we can lock with hard links... " >&6; } 18963 hard_links=yes 18964 $RM conftest* 18965 ln conftest.a conftest.b 2>/dev/null && hard_links=no 18966 touch conftest.a 18967 ln conftest.a conftest.b 2>&5 || hard_links=no 18968 ln conftest.a conftest.b 2>/dev/null && hard_links=no 18969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 18970printf "%s\n" "$hard_links" >&6; } 18971 if test no = "$hard_links"; then 18972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 18973printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 18974 need_locks=warn 18975 fi 18976else 18977 need_locks=no 18978fi 18979 18980 18981 18982 18983 18984 18985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 18986printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 18987 18988 runpath_var= 18989 allow_undefined_flag= 18990 always_export_symbols=no 18991 archive_cmds= 18992 archive_expsym_cmds= 18993 compiler_needs_object=no 18994 enable_shared_with_static_runtimes=no 18995 export_dynamic_flag_spec= 18996 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 18997 hardcode_automatic=no 18998 hardcode_direct=no 18999 hardcode_direct_absolute=no 19000 hardcode_libdir_flag_spec= 19001 hardcode_libdir_separator= 19002 hardcode_minus_L=no 19003 hardcode_shlibpath_var=unsupported 19004 inherit_rpath=no 19005 link_all_deplibs=unknown 19006 module_cmds= 19007 module_expsym_cmds= 19008 old_archive_from_new_cmds= 19009 old_archive_from_expsyms_cmds= 19010 thread_safe_flag_spec= 19011 whole_archive_flag_spec= 19012 # include_expsyms should be a list of space-separated symbols to be *always* 19013 # included in the symbol list 19014 include_expsyms= 19015 # exclude_expsyms can be an extended regexp of symbols to exclude 19016 # it will be wrapped by ' (' and ')$', so one must not match beginning or 19017 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 19018 # as well as any symbol that contains 'd'. 19019 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 19020 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 19021 # platforms (ab)use it in PIC code, but their linkers get confused if 19022 # the symbol is explicitly referenced. Since portable code cannot 19023 # rely on this symbol name, it's probably fine to never include it in 19024 # preloaded symbol tables. 19025 # Exclude shared library initialization/finalization symbols. 19026 extract_expsyms_cmds= 19027 19028 case $host_os in 19029 cygwin* | mingw* | pw32* | cegcc*) 19030 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 19031 # When not using gcc, we currently assume that we are using 19032 # Microsoft Visual C++ or Intel C++ Compiler. 19033 if test yes != "$GCC"; then 19034 with_gnu_ld=no 19035 fi 19036 ;; 19037 interix*) 19038 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 19039 with_gnu_ld=yes 19040 ;; 19041 openbsd* | bitrig*) 19042 with_gnu_ld=no 19043 ;; 19044 esac 19045 19046 ld_shlibs=yes 19047 19048 # On some targets, GNU ld is compatible enough with the native linker 19049 # that we're better off using the native interface for both. 19050 lt_use_gnu_ld_interface=no 19051 if test yes = "$with_gnu_ld"; then 19052 case $host_os in 19053 aix*) 19054 # The AIX port of GNU ld has always aspired to compatibility 19055 # with the native linker. However, as the warning in the GNU ld 19056 # block says, versions before 2.19.5* couldn't really create working 19057 # shared libraries, regardless of the interface used. 19058 case `$LD -v 2>&1` in 19059 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 19060 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 19061 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 19062 *) 19063 lt_use_gnu_ld_interface=yes 19064 ;; 19065 esac 19066 ;; 19067 *) 19068 lt_use_gnu_ld_interface=yes 19069 ;; 19070 esac 19071 fi 19072 19073 if test yes = "$lt_use_gnu_ld_interface"; then 19074 # If archive_cmds runs LD, not CC, wlarc should be empty 19075 wlarc='$wl' 19076 19077 # Set some defaults for GNU ld with shared library support. These 19078 # are reset later if shared libraries are not supported. Putting them 19079 # here allows them to be overridden if necessary. 19080 runpath_var=LD_RUN_PATH 19081 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 19082 export_dynamic_flag_spec='$wl--export-dynamic' 19083 # ancient GNU ld didn't support --whole-archive et. al. 19084 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 19085 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 19086 else 19087 whole_archive_flag_spec= 19088 fi 19089 supports_anon_versioning=no 19090 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 19091 *GNU\ gold*) supports_anon_versioning=yes ;; 19092 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 19093 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 19094 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 19095 *\ 2.11.*) ;; # other 2.11 versions 19096 *) supports_anon_versioning=yes ;; 19097 esac 19098 19099 # See if GNU ld supports shared libraries. 19100 case $host_os in 19101 aix[3-9]*) 19102 # On AIX/PPC, the GNU linker is very broken 19103 if test ia64 != "$host_cpu"; then 19104 ld_shlibs=no 19105 cat <<_LT_EOF 1>&2 19106 19107*** Warning: the GNU linker, at least up to release 2.19, is reported 19108*** to be unable to reliably create shared libraries on AIX. 19109*** Therefore, libtool is disabling shared libraries support. If you 19110*** really care for shared libraries, you may want to install binutils 19111*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 19112*** You will then need to restart the configuration process. 19113 19114_LT_EOF 19115 fi 19116 ;; 19117 19118 amigaos*) 19119 case $host_cpu in 19120 powerpc) 19121 # see comment about AmigaOS4 .so support 19122 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19123 archive_expsym_cmds='' 19124 ;; 19125 m68k) 19126 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)' 19127 hardcode_libdir_flag_spec='-L$libdir' 19128 hardcode_minus_L=yes 19129 ;; 19130 esac 19131 ;; 19132 19133 beos*) 19134 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 19135 allow_undefined_flag=unsupported 19136 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 19137 # support --undefined. This deserves some investigation. FIXME 19138 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19139 else 19140 ld_shlibs=no 19141 fi 19142 ;; 19143 19144 cygwin* | mingw* | pw32* | cegcc*) 19145 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 19146 # as there is no search path for DLLs. 19147 hardcode_libdir_flag_spec='-L$libdir' 19148 export_dynamic_flag_spec='$wl--export-all-symbols' 19149 allow_undefined_flag=unsupported 19150 always_export_symbols=no 19151 enable_shared_with_static_runtimes=yes 19152 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' 19153 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 19154 19155 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 19156 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 19157 # If the export-symbols file already is a .def file, use it as 19158 # is; otherwise, prepend EXPORTS... 19159 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 19160 cp $export_symbols $output_objdir/$soname.def; 19161 else 19162 echo EXPORTS > $output_objdir/$soname.def; 19163 cat $export_symbols >> $output_objdir/$soname.def; 19164 fi~ 19165 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 19166 else 19167 ld_shlibs=no 19168 fi 19169 ;; 19170 19171 haiku*) 19172 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19173 link_all_deplibs=yes 19174 ;; 19175 19176 os2*) 19177 hardcode_libdir_flag_spec='-L$libdir' 19178 hardcode_minus_L=yes 19179 allow_undefined_flag=unsupported 19180 shrext_cmds=.dll 19181 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 19182 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 19183 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 19184 $ECHO EXPORTS >> $output_objdir/$libname.def~ 19185 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 19186 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 19187 emximp -o $lib $output_objdir/$libname.def' 19188 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 19189 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 19190 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 19191 $ECHO EXPORTS >> $output_objdir/$libname.def~ 19192 prefix_cmds="$SED"~ 19193 if test EXPORTS = "`$SED 1q $export_symbols`"; then 19194 prefix_cmds="$prefix_cmds -e 1d"; 19195 fi~ 19196 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 19197 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 19198 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 19199 emximp -o $lib $output_objdir/$libname.def' 19200 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 19201 enable_shared_with_static_runtimes=yes 19202 file_list_spec='@' 19203 ;; 19204 19205 interix[3-9]*) 19206 hardcode_direct=no 19207 hardcode_shlibpath_var=no 19208 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 19209 export_dynamic_flag_spec='$wl-E' 19210 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 19211 # Instead, shared libraries are loaded at an image base (0x10000000 by 19212 # default) and relocated if they conflict, which is a slow very memory 19213 # consuming and fragmenting process. To avoid this, we pick a random, 19214 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 19215 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 19216 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 19217 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' 19218 ;; 19219 19220 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 19221 tmp_diet=no 19222 if test linux-dietlibc = "$host_os"; then 19223 case $cc_basename in 19224 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 19225 esac 19226 fi 19227 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 19228 && test no = "$tmp_diet" 19229 then 19230 tmp_addflag=' $pic_flag' 19231 tmp_sharedflag='-shared' 19232 case $cc_basename,$host_cpu in 19233 pgcc*) # Portland Group C compiler 19234 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' 19235 tmp_addflag=' $pic_flag' 19236 ;; 19237 pgf77* | pgf90* | pgf95* | pgfortran*) 19238 # Portland Group f77 and f90 compilers 19239 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' 19240 tmp_addflag=' $pic_flag -Mnomain' ;; 19241 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 19242 tmp_addflag=' -i_dynamic' ;; 19243 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 19244 tmp_addflag=' -i_dynamic -nofor_main' ;; 19245 ifc* | ifort*) # Intel Fortran compiler 19246 tmp_addflag=' -nofor_main' ;; 19247 lf95*) # Lahey Fortran 8.1 19248 whole_archive_flag_spec= 19249 tmp_sharedflag='--shared' ;; 19250 nagfor*) # NAGFOR 5.3 19251 tmp_sharedflag='-Wl,-shared' ;; 19252 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 19253 tmp_sharedflag='-qmkshrobj' 19254 tmp_addflag= ;; 19255 nvcc*) # Cuda Compiler Driver 2.2 19256 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' 19257 compiler_needs_object=yes 19258 ;; 19259 esac 19260 case `$CC -V 2>&1 | $SED 5q` in 19261 *Sun\ C*) # Sun C 5.9 19262 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' 19263 compiler_needs_object=yes 19264 tmp_sharedflag='-G' ;; 19265 *Sun\ F*) # Sun Fortran 8.3 19266 tmp_sharedflag='-G' ;; 19267 esac 19268 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19269 19270 if test yes = "$supports_anon_versioning"; then 19271 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 19272 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 19273 echo "local: *; };" >> $output_objdir/$libname.ver~ 19274 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 19275 fi 19276 19277 case $cc_basename in 19278 tcc*) 19279 export_dynamic_flag_spec='-rdynamic' 19280 ;; 19281 xlf* | bgf* | bgxlf* | mpixlf*) 19282 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 19283 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 19284 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 19285 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 19286 if test yes = "$supports_anon_versioning"; then 19287 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 19288 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 19289 echo "local: *; };" >> $output_objdir/$libname.ver~ 19290 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 19291 fi 19292 ;; 19293 esac 19294 else 19295 ld_shlibs=no 19296 fi 19297 ;; 19298 19299 netbsd*) 19300 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 19301 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 19302 wlarc= 19303 else 19304 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19305 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 19306 fi 19307 ;; 19308 19309 solaris*) 19310 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 19311 ld_shlibs=no 19312 cat <<_LT_EOF 1>&2 19313 19314*** Warning: The releases 2.8.* of the GNU linker cannot reliably 19315*** create shared libraries on Solaris systems. Therefore, libtool 19316*** is disabling shared libraries support. We urge you to upgrade GNU 19317*** binutils to release 2.9.1 or newer. Another option is to modify 19318*** your PATH or compiler configuration so that the native linker is 19319*** used, and then restart. 19320 19321_LT_EOF 19322 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 19323 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19324 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 19325 else 19326 ld_shlibs=no 19327 fi 19328 ;; 19329 19330 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 19331 case `$LD -v 2>&1` in 19332 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 19333 ld_shlibs=no 19334 cat <<_LT_EOF 1>&2 19335 19336*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 19337*** reliably create shared libraries on SCO systems. Therefore, libtool 19338*** is disabling shared libraries support. We urge you to upgrade GNU 19339*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 19340*** your PATH or compiler configuration so that the native linker is 19341*** used, and then restart. 19342 19343_LT_EOF 19344 ;; 19345 *) 19346 # For security reasons, it is highly recommended that you always 19347 # use absolute paths for naming shared libraries, and exclude the 19348 # DT_RUNPATH tag from executables and libraries. But doing so 19349 # requires that you compile everything twice, which is a pain. 19350 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 19351 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 19352 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19353 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 19354 else 19355 ld_shlibs=no 19356 fi 19357 ;; 19358 esac 19359 ;; 19360 19361 sunos4*) 19362 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 19363 wlarc= 19364 hardcode_direct=yes 19365 hardcode_shlibpath_var=no 19366 ;; 19367 19368 *) 19369 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 19370 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19371 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 19372 else 19373 ld_shlibs=no 19374 fi 19375 ;; 19376 esac 19377 19378 if test no = "$ld_shlibs"; then 19379 runpath_var= 19380 hardcode_libdir_flag_spec= 19381 export_dynamic_flag_spec= 19382 whole_archive_flag_spec= 19383 fi 19384 else 19385 # PORTME fill in a description of your system's linker (not GNU ld) 19386 case $host_os in 19387 aix3*) 19388 allow_undefined_flag=unsupported 19389 always_export_symbols=yes 19390 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' 19391 # Note: this linker hardcodes the directories in LIBPATH if there 19392 # are no directories specified by -L. 19393 hardcode_minus_L=yes 19394 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 19395 # Neither direct hardcoding nor static linking is supported with a 19396 # broken collect2. 19397 hardcode_direct=unsupported 19398 fi 19399 ;; 19400 19401 aix[4-9]*) 19402 if test ia64 = "$host_cpu"; then 19403 # On IA64, the linker does run time linking by default, so we don't 19404 # have to do anything special. 19405 aix_use_runtimelinking=no 19406 exp_sym_flag='-Bexport' 19407 no_entry_flag= 19408 else 19409 # If we're using GNU nm, then we don't want the "-C" option. 19410 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 19411 # Without the "-l" option, or with the "-B" option, AIX nm treats 19412 # weak defined symbols like other global defined symbols, whereas 19413 # GNU nm marks them as "W". 19414 # While the 'weak' keyword is ignored in the Export File, we need 19415 # it in the Import File for the 'aix-soname' feature, so we have 19416 # to replace the "-B" option with "-P" for AIX nm. 19417 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 19418 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' 19419 else 19420 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 == "L") || (\$ 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' 19421 fi 19422 aix_use_runtimelinking=no 19423 19424 # Test if we are trying to use run time linking or normal 19425 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 19426 # have runtime linking enabled, and use it for executables. 19427 # For shared libraries, we enable/disable runtime linking 19428 # depending on the kind of the shared library created - 19429 # when "with_aix_soname,aix_use_runtimelinking" is: 19430 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 19431 # "aix,yes" lib.so shared, rtl:yes, for executables 19432 # lib.a static archive 19433 # "both,no" lib.so.V(shr.o) shared, rtl:yes 19434 # lib.a(lib.so.V) shared, rtl:no, for executables 19435 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 19436 # lib.a(lib.so.V) shared, rtl:no 19437 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 19438 # lib.a static archive 19439 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 19440 for ld_flag in $LDFLAGS; do 19441 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 19442 aix_use_runtimelinking=yes 19443 break 19444 fi 19445 done 19446 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 19447 # With aix-soname=svr4, we create the lib.so.V shared archives only, 19448 # so we don't have lib.a shared libs to link our executables. 19449 # We have to force runtime linking in this case. 19450 aix_use_runtimelinking=yes 19451 LDFLAGS="$LDFLAGS -Wl,-brtl" 19452 fi 19453 ;; 19454 esac 19455 19456 exp_sym_flag='-bexport' 19457 no_entry_flag='-bnoentry' 19458 fi 19459 19460 # When large executables or shared objects are built, AIX ld can 19461 # have problems creating the table of contents. If linking a library 19462 # or program results in "error TOC overflow" add -mminimal-toc to 19463 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 19464 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 19465 19466 archive_cmds='' 19467 hardcode_direct=yes 19468 hardcode_direct_absolute=yes 19469 hardcode_libdir_separator=':' 19470 link_all_deplibs=yes 19471 file_list_spec='$wl-f,' 19472 case $with_aix_soname,$aix_use_runtimelinking in 19473 aix,*) ;; # traditional, no import file 19474 svr4,* | *,yes) # use import file 19475 # The Import File defines what to hardcode. 19476 hardcode_direct=no 19477 hardcode_direct_absolute=no 19478 ;; 19479 esac 19480 19481 if test yes = "$GCC"; then 19482 case $host_os in aix4.[012]|aix4.[012].*) 19483 # We only want to do this on AIX 4.2 and lower, the check 19484 # below for broken collect2 doesn't work under 4.3+ 19485 collect2name=`$CC -print-prog-name=collect2` 19486 if test -f "$collect2name" && 19487 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 19488 then 19489 # We have reworked collect2 19490 : 19491 else 19492 # We have old collect2 19493 hardcode_direct=unsupported 19494 # It fails to find uninstalled libraries when the uninstalled 19495 # path is not listed in the libpath. Setting hardcode_minus_L 19496 # to unsupported forces relinking 19497 hardcode_minus_L=yes 19498 hardcode_libdir_flag_spec='-L$libdir' 19499 hardcode_libdir_separator= 19500 fi 19501 ;; 19502 esac 19503 shared_flag='-shared' 19504 if test yes = "$aix_use_runtimelinking"; then 19505 shared_flag="$shared_flag "'$wl-G' 19506 fi 19507 # Need to ensure runtime linking is disabled for the traditional 19508 # shared library, or the linker may eventually find shared libraries 19509 # /with/ Import File - we do not want to mix them. 19510 shared_flag_aix='-shared' 19511 shared_flag_svr4='-shared $wl-G' 19512 else 19513 # not using gcc 19514 if test ia64 = "$host_cpu"; then 19515 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 19516 # chokes on -Wl,-G. The following line is correct: 19517 shared_flag='-G' 19518 else 19519 if test yes = "$aix_use_runtimelinking"; then 19520 shared_flag='$wl-G' 19521 else 19522 shared_flag='$wl-bM:SRE' 19523 fi 19524 shared_flag_aix='$wl-bM:SRE' 19525 shared_flag_svr4='$wl-G' 19526 fi 19527 fi 19528 19529 export_dynamic_flag_spec='$wl-bexpall' 19530 # It seems that -bexpall does not export symbols beginning with 19531 # underscore (_), so it is better to generate a list of symbols to export. 19532 always_export_symbols=yes 19533 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 19534 # Warning - without using the other runtime loading flags (-brtl), 19535 # -berok will link without error, but may produce a broken library. 19536 allow_undefined_flag='-berok' 19537 # Determine the default libpath from the value encoded in an 19538 # empty executable. 19539 if test set = "${lt_cv_aix_libpath+set}"; then 19540 aix_libpath=$lt_cv_aix_libpath 19541else 19542 if test ${lt_cv_aix_libpath_+y} 19543then : 19544 printf %s "(cached) " >&6 19545else $as_nop 19546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19547/* end confdefs.h. */ 19548 19549int 19550main (void) 19551{ 19552 19553 ; 19554 return 0; 19555} 19556_ACEOF 19557if ac_fn_c_try_link "$LINENO" 19558then : 19559 19560 lt_aix_libpath_sed=' 19561 /Import File Strings/,/^$/ { 19562 /^0/ { 19563 s/^0 *\([^ ]*\) *$/\1/ 19564 p 19565 } 19566 }' 19567 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 19568 # Check for a 64-bit object if we didn't find anything. 19569 if test -z "$lt_cv_aix_libpath_"; then 19570 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 19571 fi 19572fi 19573rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19574 conftest$ac_exeext conftest.$ac_ext 19575 if test -z "$lt_cv_aix_libpath_"; then 19576 lt_cv_aix_libpath_=/usr/lib:/lib 19577 fi 19578 19579fi 19580 19581 aix_libpath=$lt_cv_aix_libpath_ 19582fi 19583 19584 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 19585 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 19586 else 19587 if test ia64 = "$host_cpu"; then 19588 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 19589 allow_undefined_flag="-z nodefs" 19590 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" 19591 else 19592 # Determine the default libpath from the value encoded in an 19593 # empty executable. 19594 if test set = "${lt_cv_aix_libpath+set}"; then 19595 aix_libpath=$lt_cv_aix_libpath 19596else 19597 if test ${lt_cv_aix_libpath_+y} 19598then : 19599 printf %s "(cached) " >&6 19600else $as_nop 19601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19602/* end confdefs.h. */ 19603 19604int 19605main (void) 19606{ 19607 19608 ; 19609 return 0; 19610} 19611_ACEOF 19612if ac_fn_c_try_link "$LINENO" 19613then : 19614 19615 lt_aix_libpath_sed=' 19616 /Import File Strings/,/^$/ { 19617 /^0/ { 19618 s/^0 *\([^ ]*\) *$/\1/ 19619 p 19620 } 19621 }' 19622 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 19623 # Check for a 64-bit object if we didn't find anything. 19624 if test -z "$lt_cv_aix_libpath_"; then 19625 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 19626 fi 19627fi 19628rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19629 conftest$ac_exeext conftest.$ac_ext 19630 if test -z "$lt_cv_aix_libpath_"; then 19631 lt_cv_aix_libpath_=/usr/lib:/lib 19632 fi 19633 19634fi 19635 19636 aix_libpath=$lt_cv_aix_libpath_ 19637fi 19638 19639 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 19640 # Warning - without using the other run time loading flags, 19641 # -berok will link without error, but may produce a broken library. 19642 no_undefined_flag=' $wl-bernotok' 19643 allow_undefined_flag=' $wl-berok' 19644 if test yes = "$with_gnu_ld"; then 19645 # We only use this code for GNU lds that support --whole-archive. 19646 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 19647 else 19648 # Exported symbols can be pulled into shared objects from archives 19649 whole_archive_flag_spec='$convenience' 19650 fi 19651 archive_cmds_need_lc=yes 19652 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 19653 # -brtl affects multiple linker settings, -berok does not and is overridden later 19654 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 19655 if test svr4 != "$with_aix_soname"; then 19656 # This is similar to how AIX traditionally builds its shared libraries. 19657 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' 19658 fi 19659 if test aix != "$with_aix_soname"; then 19660 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' 19661 else 19662 # used by -dlpreopen to get the symbols 19663 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 19664 fi 19665 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 19666 fi 19667 fi 19668 ;; 19669 19670 amigaos*) 19671 case $host_cpu in 19672 powerpc) 19673 # see comment about AmigaOS4 .so support 19674 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19675 archive_expsym_cmds='' 19676 ;; 19677 m68k) 19678 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)' 19679 hardcode_libdir_flag_spec='-L$libdir' 19680 hardcode_minus_L=yes 19681 ;; 19682 esac 19683 ;; 19684 19685 bsdi[45]*) 19686 export_dynamic_flag_spec=-rdynamic 19687 ;; 19688 19689 cygwin* | mingw* | pw32* | cegcc*) 19690 # When not using gcc, we currently assume that we are using 19691 # Microsoft Visual C++ or Intel C++ Compiler. 19692 # hardcode_libdir_flag_spec is actually meaningless, as there is 19693 # no search path for DLLs. 19694 case $cc_basename in 19695 cl* | icl*) 19696 # Native MSVC or ICC 19697 hardcode_libdir_flag_spec=' ' 19698 allow_undefined_flag=unsupported 19699 always_export_symbols=yes 19700 file_list_spec='@' 19701 # Tell ltmain to make .lib files, not .a files. 19702 libext=lib 19703 # Tell ltmain to make .dll files, not .so files. 19704 shrext_cmds=.dll 19705 # FIXME: Setting linknames here is a bad hack. 19706 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 19707 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 19708 cp "$export_symbols" "$output_objdir/$soname.def"; 19709 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 19710 else 19711 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 19712 fi~ 19713 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 19714 linknames=' 19715 # The linker will not automatically build a static lib if we build a DLL. 19716 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 19717 enable_shared_with_static_runtimes=yes 19718 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 19719 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 19720 # Don't use ranlib 19721 old_postinstall_cmds='chmod 644 $oldlib' 19722 postlink_cmds='lt_outputfile="@OUTPUT@"~ 19723 lt_tool_outputfile="@TOOL_OUTPUT@"~ 19724 case $lt_outputfile in 19725 *.exe|*.EXE) ;; 19726 *) 19727 lt_outputfile=$lt_outputfile.exe 19728 lt_tool_outputfile=$lt_tool_outputfile.exe 19729 ;; 19730 esac~ 19731 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 19732 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 19733 $RM "$lt_outputfile.manifest"; 19734 fi' 19735 ;; 19736 *) 19737 # Assume MSVC and ICC wrapper 19738 hardcode_libdir_flag_spec=' ' 19739 allow_undefined_flag=unsupported 19740 # Tell ltmain to make .lib files, not .a files. 19741 libext=lib 19742 # Tell ltmain to make .dll files, not .so files. 19743 shrext_cmds=.dll 19744 # FIXME: Setting linknames here is a bad hack. 19745 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 19746 # The linker will automatically build a .lib file if we build a DLL. 19747 old_archive_from_new_cmds='true' 19748 # FIXME: Should let the user specify the lib program. 19749 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 19750 enable_shared_with_static_runtimes=yes 19751 ;; 19752 esac 19753 ;; 19754 19755 darwin* | rhapsody*) 19756 19757 19758 archive_cmds_need_lc=no 19759 hardcode_direct=no 19760 hardcode_automatic=yes 19761 hardcode_shlibpath_var=unsupported 19762 if test yes = "$lt_cv_ld_force_load"; then 19763 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\"`' 19764 19765 else 19766 whole_archive_flag_spec='' 19767 fi 19768 link_all_deplibs=yes 19769 allow_undefined_flag=$_lt_dar_allow_undefined 19770 case $cc_basename in 19771 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 19772 *) _lt_dar_can_shared=$GCC ;; 19773 esac 19774 if test yes = "$_lt_dar_can_shared"; then 19775 output_verbose_link_cmd=func_echo_all 19776 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 19777 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 19778 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" 19779 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" 19780 19781 else 19782 ld_shlibs=no 19783 fi 19784 19785 ;; 19786 19787 dgux*) 19788 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19789 hardcode_libdir_flag_spec='-L$libdir' 19790 hardcode_shlibpath_var=no 19791 ;; 19792 19793 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 19794 # support. Future versions do this automatically, but an explicit c++rt0.o 19795 # does not break anything, and helps significantly (at the cost of a little 19796 # extra space). 19797 freebsd2.2*) 19798 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 19799 hardcode_libdir_flag_spec='-R$libdir' 19800 hardcode_direct=yes 19801 hardcode_shlibpath_var=no 19802 ;; 19803 19804 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 19805 freebsd2.*) 19806 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 19807 hardcode_direct=yes 19808 hardcode_minus_L=yes 19809 hardcode_shlibpath_var=no 19810 ;; 19811 19812 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 19813 freebsd* | dragonfly* | midnightbsd*) 19814 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 19815 hardcode_libdir_flag_spec='-R$libdir' 19816 hardcode_direct=yes 19817 hardcode_shlibpath_var=no 19818 ;; 19819 19820 hpux9*) 19821 if test yes = "$GCC"; then 19822 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' 19823 else 19824 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' 19825 fi 19826 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 19827 hardcode_libdir_separator=: 19828 hardcode_direct=yes 19829 19830 # hardcode_minus_L: Not really in the search PATH, 19831 # but as the default location of the library. 19832 hardcode_minus_L=yes 19833 export_dynamic_flag_spec='$wl-E' 19834 ;; 19835 19836 hpux10*) 19837 if test yes,no = "$GCC,$with_gnu_ld"; then 19838 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 19839 else 19840 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 19841 fi 19842 if test no = "$with_gnu_ld"; then 19843 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 19844 hardcode_libdir_separator=: 19845 hardcode_direct=yes 19846 hardcode_direct_absolute=yes 19847 export_dynamic_flag_spec='$wl-E' 19848 # hardcode_minus_L: Not really in the search PATH, 19849 # but as the default location of the library. 19850 hardcode_minus_L=yes 19851 fi 19852 ;; 19853 19854 hpux11*) 19855 if test yes,no = "$GCC,$with_gnu_ld"; then 19856 case $host_cpu in 19857 hppa*64*) 19858 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 19859 ;; 19860 ia64*) 19861 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 19862 ;; 19863 *) 19864 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 19865 ;; 19866 esac 19867 else 19868 case $host_cpu in 19869 hppa*64*) 19870 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 19871 ;; 19872 ia64*) 19873 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 19874 ;; 19875 *) 19876 19877 # Older versions of the 11.00 compiler do not understand -b yet 19878 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 19879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 19880printf %s "checking if $CC understands -b... " >&6; } 19881if test ${lt_cv_prog_compiler__b+y} 19882then : 19883 printf %s "(cached) " >&6 19884else $as_nop 19885 lt_cv_prog_compiler__b=no 19886 save_LDFLAGS=$LDFLAGS 19887 LDFLAGS="$LDFLAGS -b" 19888 echo "$lt_simple_link_test_code" > conftest.$ac_ext 19889 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 19890 # The linker can only warn and ignore the option if not recognized 19891 # So say no if there are warnings 19892 if test -s conftest.err; then 19893 # Append any errors to the config.log. 19894 cat conftest.err 1>&5 19895 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 19896 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19897 if diff conftest.exp conftest.er2 >/dev/null; then 19898 lt_cv_prog_compiler__b=yes 19899 fi 19900 else 19901 lt_cv_prog_compiler__b=yes 19902 fi 19903 fi 19904 $RM -r conftest* 19905 LDFLAGS=$save_LDFLAGS 19906 19907fi 19908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 19909printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 19910 19911if test yes = "$lt_cv_prog_compiler__b"; then 19912 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 19913else 19914 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 19915fi 19916 19917 ;; 19918 esac 19919 fi 19920 if test no = "$with_gnu_ld"; then 19921 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 19922 hardcode_libdir_separator=: 19923 19924 case $host_cpu in 19925 hppa*64*|ia64*) 19926 hardcode_direct=no 19927 hardcode_shlibpath_var=no 19928 ;; 19929 *) 19930 hardcode_direct=yes 19931 hardcode_direct_absolute=yes 19932 export_dynamic_flag_spec='$wl-E' 19933 19934 # hardcode_minus_L: Not really in the search PATH, 19935 # but as the default location of the library. 19936 hardcode_minus_L=yes 19937 ;; 19938 esac 19939 fi 19940 ;; 19941 19942 irix5* | irix6* | nonstopux*) 19943 if test yes = "$GCC"; then 19944 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' 19945 # Try to use the -exported_symbol ld option, if it does not 19946 # work, assume that -exports_file does not work either and 19947 # implicitly export all symbols. 19948 # This should be the same for all languages, so no per-tag cache variable. 19949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 19950printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 19951if test ${lt_cv_irix_exported_symbol+y} 19952then : 19953 printf %s "(cached) " >&6 19954else $as_nop 19955 save_LDFLAGS=$LDFLAGS 19956 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 19957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19958/* end confdefs.h. */ 19959int foo (void) { return 0; } 19960_ACEOF 19961if ac_fn_c_try_link "$LINENO" 19962then : 19963 lt_cv_irix_exported_symbol=yes 19964else $as_nop 19965 lt_cv_irix_exported_symbol=no 19966fi 19967rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19968 conftest$ac_exeext conftest.$ac_ext 19969 LDFLAGS=$save_LDFLAGS 19970fi 19971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 19972printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 19973 if test yes = "$lt_cv_irix_exported_symbol"; then 19974 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' 19975 fi 19976 else 19977 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' 19978 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' 19979 fi 19980 archive_cmds_need_lc='no' 19981 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 19982 hardcode_libdir_separator=: 19983 inherit_rpath=yes 19984 link_all_deplibs=yes 19985 ;; 19986 19987 linux*) 19988 case $cc_basename in 19989 tcc*) 19990 # Fabrice Bellard et al's Tiny C Compiler 19991 ld_shlibs=yes 19992 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 19993 ;; 19994 esac 19995 ;; 19996 19997 netbsd*) 19998 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 19999 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 20000 else 20001 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 20002 fi 20003 hardcode_libdir_flag_spec='-R$libdir' 20004 hardcode_direct=yes 20005 hardcode_shlibpath_var=no 20006 ;; 20007 20008 newsos6) 20009 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20010 hardcode_direct=yes 20011 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 20012 hardcode_libdir_separator=: 20013 hardcode_shlibpath_var=no 20014 ;; 20015 20016 *nto* | *qnx*) 20017 ;; 20018 20019 openbsd* | bitrig*) 20020 if test -f /usr/libexec/ld.so; then 20021 hardcode_direct=yes 20022 hardcode_shlibpath_var=no 20023 hardcode_direct_absolute=yes 20024 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 20025 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 20026 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 20027 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 20028 export_dynamic_flag_spec='$wl-E' 20029 else 20030 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 20031 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 20032 fi 20033 else 20034 ld_shlibs=no 20035 fi 20036 ;; 20037 20038 os2*) 20039 hardcode_libdir_flag_spec='-L$libdir' 20040 hardcode_minus_L=yes 20041 allow_undefined_flag=unsupported 20042 shrext_cmds=.dll 20043 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 20044 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 20045 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 20046 $ECHO EXPORTS >> $output_objdir/$libname.def~ 20047 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 20048 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 20049 emximp -o $lib $output_objdir/$libname.def' 20050 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 20051 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 20052 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 20053 $ECHO EXPORTS >> $output_objdir/$libname.def~ 20054 prefix_cmds="$SED"~ 20055 if test EXPORTS = "`$SED 1q $export_symbols`"; then 20056 prefix_cmds="$prefix_cmds -e 1d"; 20057 fi~ 20058 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 20059 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 20060 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 20061 emximp -o $lib $output_objdir/$libname.def' 20062 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 20063 enable_shared_with_static_runtimes=yes 20064 file_list_spec='@' 20065 ;; 20066 20067 osf3*) 20068 if test yes = "$GCC"; then 20069 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 20070 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' 20071 else 20072 allow_undefined_flag=' -expect_unresolved \*' 20073 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' 20074 fi 20075 archive_cmds_need_lc='no' 20076 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 20077 hardcode_libdir_separator=: 20078 ;; 20079 20080 osf4* | osf5*) # as osf3* with the addition of -msym flag 20081 if test yes = "$GCC"; then 20082 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 20083 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' 20084 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 20085 else 20086 allow_undefined_flag=' -expect_unresolved \*' 20087 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' 20088 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~ 20089 $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' 20090 20091 # Both c and cxx compiler support -rpath directly 20092 hardcode_libdir_flag_spec='-rpath $libdir' 20093 fi 20094 archive_cmds_need_lc='no' 20095 hardcode_libdir_separator=: 20096 ;; 20097 20098 solaris*) 20099 no_undefined_flag=' -z defs' 20100 if test yes = "$GCC"; then 20101 wlarc='$wl' 20102 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 20103 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20104 $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' 20105 else 20106 case `$CC -V 2>&1` in 20107 *"Compilers 5.0"*) 20108 wlarc='' 20109 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 20110 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20111 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 20112 ;; 20113 *) 20114 wlarc='$wl' 20115 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 20116 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20117 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 20118 ;; 20119 esac 20120 fi 20121 hardcode_libdir_flag_spec='-R$libdir' 20122 hardcode_shlibpath_var=no 20123 case $host_os in 20124 solaris2.[0-5] | solaris2.[0-5].*) ;; 20125 *) 20126 # The compiler driver will combine and reorder linker options, 20127 # but understands '-z linker_flag'. GCC discards it without '$wl', 20128 # but is careful enough not to reorder. 20129 # Supported since Solaris 2.6 (maybe 2.5.1?) 20130 if test yes = "$GCC"; then 20131 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 20132 else 20133 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 20134 fi 20135 ;; 20136 esac 20137 link_all_deplibs=yes 20138 ;; 20139 20140 sunos4*) 20141 if test sequent = "$host_vendor"; then 20142 # Use $CC to link under sequent, because it throws in some extra .o 20143 # files that make .init and .fini sections work. 20144 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 20145 else 20146 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 20147 fi 20148 hardcode_libdir_flag_spec='-L$libdir' 20149 hardcode_direct=yes 20150 hardcode_minus_L=yes 20151 hardcode_shlibpath_var=no 20152 ;; 20153 20154 sysv4) 20155 case $host_vendor in 20156 sni) 20157 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20158 hardcode_direct=yes # is this really true??? 20159 ;; 20160 siemens) 20161 ## LD is ld it makes a PLAMLIB 20162 ## CC just makes a GrossModule. 20163 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 20164 reload_cmds='$CC -r -o $output$reload_objs' 20165 hardcode_direct=no 20166 ;; 20167 motorola) 20168 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20169 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 20170 ;; 20171 esac 20172 runpath_var='LD_RUN_PATH' 20173 hardcode_shlibpath_var=no 20174 ;; 20175 20176 sysv4.3*) 20177 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20178 hardcode_shlibpath_var=no 20179 export_dynamic_flag_spec='-Bexport' 20180 ;; 20181 20182 sysv4*MP*) 20183 if test -d /usr/nec; then 20184 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20185 hardcode_shlibpath_var=no 20186 runpath_var=LD_RUN_PATH 20187 hardcode_runpath_var=yes 20188 ld_shlibs=yes 20189 fi 20190 ;; 20191 20192 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 20193 no_undefined_flag='$wl-z,text' 20194 archive_cmds_need_lc=no 20195 hardcode_shlibpath_var=no 20196 runpath_var='LD_RUN_PATH' 20197 20198 if test yes = "$GCC"; then 20199 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20200 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20201 else 20202 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20203 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20204 fi 20205 ;; 20206 20207 sysv5* | sco3.2v5* | sco5v6*) 20208 # Note: We CANNOT use -z defs as we might desire, because we do not 20209 # link with -lc, and that would cause any symbols used from libc to 20210 # always be unresolved, which means just about no library would 20211 # ever link correctly. If we're not using GNU ld we use -z text 20212 # though, which does catch some bad symbols but isn't as heavy-handed 20213 # as -z defs. 20214 no_undefined_flag='$wl-z,text' 20215 allow_undefined_flag='$wl-z,nodefs' 20216 archive_cmds_need_lc=no 20217 hardcode_shlibpath_var=no 20218 hardcode_libdir_flag_spec='$wl-R,$libdir' 20219 hardcode_libdir_separator=':' 20220 link_all_deplibs=yes 20221 export_dynamic_flag_spec='$wl-Bexport' 20222 runpath_var='LD_RUN_PATH' 20223 20224 if test yes = "$GCC"; then 20225 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20226 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20227 else 20228 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20229 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20230 fi 20231 ;; 20232 20233 uts4*) 20234 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20235 hardcode_libdir_flag_spec='-L$libdir' 20236 hardcode_shlibpath_var=no 20237 ;; 20238 20239 *) 20240 ld_shlibs=no 20241 ;; 20242 esac 20243 20244 if test sni = "$host_vendor"; then 20245 case $host in 20246 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 20247 export_dynamic_flag_spec='$wl-Blargedynsym' 20248 ;; 20249 esac 20250 fi 20251 fi 20252 20253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 20254printf "%s\n" "$ld_shlibs" >&6; } 20255test no = "$ld_shlibs" && can_build_shared=no 20256 20257with_gnu_ld=$with_gnu_ld 20258 20259 20260 20261 20262 20263 20264 20265 20266 20267 20268 20269 20270 20271 20272 20273# 20274# Do we need to explicitly link libc? 20275# 20276case "x$archive_cmds_need_lc" in 20277x|xyes) 20278 # Assume -lc should be added 20279 archive_cmds_need_lc=yes 20280 20281 if test yes,yes = "$GCC,$enable_shared"; then 20282 case $archive_cmds in 20283 *'~'*) 20284 # FIXME: we may have to deal with multi-command sequences. 20285 ;; 20286 '$CC '*) 20287 # Test whether the compiler implicitly links with -lc since on some 20288 # systems, -lgcc has to come before -lc. If gcc already passes -lc 20289 # to ld, don't add -lc before -lgcc. 20290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 20291printf %s "checking whether -lc should be explicitly linked in... " >&6; } 20292if test ${lt_cv_archive_cmds_need_lc+y} 20293then : 20294 printf %s "(cached) " >&6 20295else $as_nop 20296 $RM conftest* 20297 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 20298 20299 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 20300 (eval $ac_compile) 2>&5 20301 ac_status=$? 20302 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20303 test $ac_status = 0; } 2>conftest.err; then 20304 soname=conftest 20305 lib=conftest 20306 libobjs=conftest.$ac_objext 20307 deplibs= 20308 wl=$lt_prog_compiler_wl 20309 pic_flag=$lt_prog_compiler_pic 20310 compiler_flags=-v 20311 linker_flags=-v 20312 verstring= 20313 output_objdir=. 20314 libname=conftest 20315 lt_save_allow_undefined_flag=$allow_undefined_flag 20316 allow_undefined_flag= 20317 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 20318 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 20319 ac_status=$? 20320 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20321 test $ac_status = 0; } 20322 then 20323 lt_cv_archive_cmds_need_lc=no 20324 else 20325 lt_cv_archive_cmds_need_lc=yes 20326 fi 20327 allow_undefined_flag=$lt_save_allow_undefined_flag 20328 else 20329 cat conftest.err 1>&5 20330 fi 20331 $RM conftest* 20332 20333fi 20334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 20335printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 20336 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 20337 ;; 20338 esac 20339 fi 20340 ;; 20341esac 20342 20343 20344 20345 20346 20347 20348 20349 20350 20351 20352 20353 20354 20355 20356 20357 20358 20359 20360 20361 20362 20363 20364 20365 20366 20367 20368 20369 20370 20371 20372 20373 20374 20375 20376 20377 20378 20379 20380 20381 20382 20383 20384 20385 20386 20387 20388 20389 20390 20391 20392 20393 20394 20395 20396 20397 20398 20399 20400 20401 20402 20403 20404 20405 20406 20407 20408 20409 20410 20411 20412 20413 20414 20415 20416 20417 20418 20419 20420 20421 20422 20423 20424 20425 20426 20427 20428 20429 20430 20431 20432 20433 20434 20435 20436 20437 20438 20439 20440 20441 20442 20443 20444 20445 20446 20447 20448 20449 20450 20451 20452 20453 20454 20455 20456 20457 20458 20459 20460 20461 20462 20463 20464 20465 20466 20467 20468 20469 20470 20471 20472 20473 20474 20475 20476 20477 20478 20479 20480 20481 20482 20483 20484 20485 20486 20487 20488 20489 20490 20491 20492 20493 20494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 20495printf %s "checking dynamic linker characteristics... " >&6; } 20496 20497if test yes = "$GCC"; then 20498 case $host_os in 20499 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 20500 *) lt_awk_arg='/^libraries:/' ;; 20501 esac 20502 case $host_os in 20503 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 20504 *) lt_sed_strip_eq='s|=/|/|g' ;; 20505 esac 20506 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 20507 case $lt_search_path_spec in 20508 *\;*) 20509 # if the path contains ";" then we assume it to be the separator 20510 # otherwise default to the standard path separator (i.e. ":") - it is 20511 # assumed that no part of a normal pathname contains ";" but that should 20512 # okay in the real world where ";" in dirpaths is itself problematic. 20513 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 20514 ;; 20515 *) 20516 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 20517 ;; 20518 esac 20519 # Ok, now we have the path, separated by spaces, we can step through it 20520 # and add multilib dir if necessary... 20521 lt_tmp_lt_search_path_spec= 20522 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 20523 # ...but if some path component already ends with the multilib dir we assume 20524 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 20525 case "$lt_multi_os_dir; $lt_search_path_spec " in 20526 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 20527 lt_multi_os_dir= 20528 ;; 20529 esac 20530 for lt_sys_path in $lt_search_path_spec; do 20531 if test -d "$lt_sys_path$lt_multi_os_dir"; then 20532 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 20533 elif test -n "$lt_multi_os_dir"; then 20534 test -d "$lt_sys_path" && \ 20535 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 20536 fi 20537 done 20538 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 20539BEGIN {RS = " "; FS = "/|\n";} { 20540 lt_foo = ""; 20541 lt_count = 0; 20542 for (lt_i = NF; lt_i > 0; lt_i--) { 20543 if ($lt_i != "" && $lt_i != ".") { 20544 if ($lt_i == "..") { 20545 lt_count++; 20546 } else { 20547 if (lt_count == 0) { 20548 lt_foo = "/" $lt_i lt_foo; 20549 } else { 20550 lt_count--; 20551 } 20552 } 20553 } 20554 } 20555 if (lt_foo != "") { lt_freq[lt_foo]++; } 20556 if (lt_freq[lt_foo] == 1) { print lt_foo; } 20557}'` 20558 # AWK program above erroneously prepends '/' to C:/dos/paths 20559 # for these hosts. 20560 case $host_os in 20561 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 20562 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 20563 esac 20564 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 20565else 20566 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 20567fi 20568library_names_spec= 20569libname_spec='lib$name' 20570soname_spec= 20571shrext_cmds=.so 20572postinstall_cmds= 20573postuninstall_cmds= 20574finish_cmds= 20575finish_eval= 20576shlibpath_var= 20577shlibpath_overrides_runpath=unknown 20578version_type=none 20579dynamic_linker="$host_os ld.so" 20580sys_lib_dlsearch_path_spec="/lib /usr/lib" 20581need_lib_prefix=unknown 20582hardcode_into_libs=no 20583 20584# when you set need_version to no, make sure it does not cause -set_version 20585# flags to be left without arguments 20586need_version=unknown 20587 20588 20589 20590case $host_os in 20591aix3*) 20592 version_type=linux # correct to gnu/linux during the next big refactor 20593 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 20594 shlibpath_var=LIBPATH 20595 20596 # AIX 3 has no versioning support, so we append a major version to the name. 20597 soname_spec='$libname$release$shared_ext$major' 20598 ;; 20599 20600aix[4-9]*) 20601 version_type=linux # correct to gnu/linux during the next big refactor 20602 need_lib_prefix=no 20603 need_version=no 20604 hardcode_into_libs=yes 20605 if test ia64 = "$host_cpu"; then 20606 # AIX 5 supports IA64 20607 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 20608 shlibpath_var=LD_LIBRARY_PATH 20609 else 20610 # With GCC up to 2.95.x, collect2 would create an import file 20611 # for dependence libraries. The import file would start with 20612 # the line '#! .'. This would cause the generated library to 20613 # depend on '.', always an invalid library. This was fixed in 20614 # development snapshots of GCC prior to 3.0. 20615 case $host_os in 20616 aix4 | aix4.[01] | aix4.[01].*) 20617 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 20618 echo ' yes ' 20619 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 20620 : 20621 else 20622 can_build_shared=no 20623 fi 20624 ;; 20625 esac 20626 # Using Import Files as archive members, it is possible to support 20627 # filename-based versioning of shared library archives on AIX. While 20628 # this would work for both with and without runtime linking, it will 20629 # prevent static linking of such archives. So we do filename-based 20630 # shared library versioning with .so extension only, which is used 20631 # when both runtime linking and shared linking is enabled. 20632 # Unfortunately, runtime linking may impact performance, so we do 20633 # not want this to be the default eventually. Also, we use the 20634 # versioned .so libs for executables only if there is the -brtl 20635 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 20636 # To allow for filename-based versioning support, we need to create 20637 # libNAME.so.V as an archive file, containing: 20638 # *) an Import File, referring to the versioned filename of the 20639 # archive as well as the shared archive member, telling the 20640 # bitwidth (32 or 64) of that shared object, and providing the 20641 # list of exported symbols of that shared object, eventually 20642 # decorated with the 'weak' keyword 20643 # *) the shared object with the F_LOADONLY flag set, to really avoid 20644 # it being seen by the linker. 20645 # At run time we better use the real file rather than another symlink, 20646 # but for link time we create the symlink libNAME.so -> libNAME.so.V 20647 20648 case $with_aix_soname,$aix_use_runtimelinking in 20649 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 20650 # soname into executable. Probably we can add versioning support to 20651 # collect2, so additional links can be useful in future. 20652 aix,yes) # traditional libtool 20653 dynamic_linker='AIX unversionable lib.so' 20654 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 20655 # instead of lib<name>.a to let people know that these are not 20656 # typical AIX shared libraries. 20657 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20658 ;; 20659 aix,no) # traditional AIX only 20660 dynamic_linker='AIX lib.a(lib.so.V)' 20661 # We preserve .a as extension for shared libraries through AIX4.2 20662 # and later when we are not doing run time linking. 20663 library_names_spec='$libname$release.a $libname.a' 20664 soname_spec='$libname$release$shared_ext$major' 20665 ;; 20666 svr4,*) # full svr4 only 20667 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 20668 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 20669 # We do not specify a path in Import Files, so LIBPATH fires. 20670 shlibpath_overrides_runpath=yes 20671 ;; 20672 *,yes) # both, prefer svr4 20673 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 20674 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 20675 # unpreferred sharedlib libNAME.a needs extra handling 20676 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"' 20677 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"' 20678 # We do not specify a path in Import Files, so LIBPATH fires. 20679 shlibpath_overrides_runpath=yes 20680 ;; 20681 *,no) # both, prefer aix 20682 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 20683 library_names_spec='$libname$release.a $libname.a' 20684 soname_spec='$libname$release$shared_ext$major' 20685 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 20686 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)' 20687 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"' 20688 ;; 20689 esac 20690 shlibpath_var=LIBPATH 20691 fi 20692 ;; 20693 20694amigaos*) 20695 case $host_cpu in 20696 powerpc) 20697 # Since July 2007 AmigaOS4 officially supports .so libraries. 20698 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 20699 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20700 ;; 20701 m68k) 20702 library_names_spec='$libname.ixlibrary $libname.a' 20703 # Create ${libname}_ixlibrary.a entries in /sys/libs. 20704 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' 20705 ;; 20706 esac 20707 ;; 20708 20709beos*) 20710 library_names_spec='$libname$shared_ext' 20711 dynamic_linker="$host_os ld.so" 20712 shlibpath_var=LIBRARY_PATH 20713 ;; 20714 20715bsdi[45]*) 20716 version_type=linux # correct to gnu/linux during the next big refactor 20717 need_version=no 20718 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20719 soname_spec='$libname$release$shared_ext$major' 20720 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 20721 shlibpath_var=LD_LIBRARY_PATH 20722 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 20723 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 20724 # the default ld.so.conf also contains /usr/contrib/lib and 20725 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 20726 # libtool to hard-code these into programs 20727 ;; 20728 20729cygwin* | mingw* | pw32* | cegcc*) 20730 version_type=windows 20731 shrext_cmds=.dll 20732 need_version=no 20733 need_lib_prefix=no 20734 20735 case $GCC,$cc_basename in 20736 yes,*) 20737 # gcc 20738 library_names_spec='$libname.dll.a' 20739 # DLL is installed to $(libdir)/../bin by postinstall_cmds 20740 postinstall_cmds='base_file=`basename \$file`~ 20741 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 20742 dldir=$destdir/`dirname \$dlpath`~ 20743 test -d \$dldir || mkdir -p \$dldir~ 20744 $install_prog $dir/$dlname \$dldir/$dlname~ 20745 chmod a+x \$dldir/$dlname~ 20746 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 20747 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 20748 fi' 20749 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 20750 dlpath=$dir/\$dldll~ 20751 $RM \$dlpath' 20752 shlibpath_overrides_runpath=yes 20753 20754 case $host_os in 20755 cygwin*) 20756 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 20757 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 20758 20759 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 20760 ;; 20761 mingw* | cegcc*) 20762 # MinGW DLLs use traditional 'lib' prefix 20763 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 20764 ;; 20765 pw32*) 20766 # pw32 DLLs use 'pw' prefix rather than 'lib' 20767 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 20768 ;; 20769 esac 20770 dynamic_linker='Win32 ld.exe' 20771 ;; 20772 20773 *,cl* | *,icl*) 20774 # Native MSVC or ICC 20775 libname_spec='$name' 20776 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 20777 library_names_spec='$libname.dll.lib' 20778 20779 case $build_os in 20780 mingw*) 20781 sys_lib_search_path_spec= 20782 lt_save_ifs=$IFS 20783 IFS=';' 20784 for lt_path in $LIB 20785 do 20786 IFS=$lt_save_ifs 20787 # Let DOS variable expansion print the short 8.3 style file name. 20788 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 20789 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 20790 done 20791 IFS=$lt_save_ifs 20792 # Convert to MSYS style. 20793 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 20794 ;; 20795 cygwin*) 20796 # Convert to unix form, then to dos form, then back to unix form 20797 # but this time dos style (no spaces!) so that the unix form looks 20798 # like /cygdrive/c/PROGRA~1:/cygdr... 20799 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 20800 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 20801 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 20802 ;; 20803 *) 20804 sys_lib_search_path_spec=$LIB 20805 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 20806 # It is most probably a Windows format PATH. 20807 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 20808 else 20809 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 20810 fi 20811 # FIXME: find the short name or the path components, as spaces are 20812 # common. (e.g. "Program Files" -> "PROGRA~1") 20813 ;; 20814 esac 20815 20816 # DLL is installed to $(libdir)/../bin by postinstall_cmds 20817 postinstall_cmds='base_file=`basename \$file`~ 20818 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 20819 dldir=$destdir/`dirname \$dlpath`~ 20820 test -d \$dldir || mkdir -p \$dldir~ 20821 $install_prog $dir/$dlname \$dldir/$dlname' 20822 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 20823 dlpath=$dir/\$dldll~ 20824 $RM \$dlpath' 20825 shlibpath_overrides_runpath=yes 20826 dynamic_linker='Win32 link.exe' 20827 ;; 20828 20829 *) 20830 # Assume MSVC and ICC wrapper 20831 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 20832 dynamic_linker='Win32 ld.exe' 20833 ;; 20834 esac 20835 # FIXME: first we should search . and the directory the executable is in 20836 shlibpath_var=PATH 20837 ;; 20838 20839darwin* | rhapsody*) 20840 dynamic_linker="$host_os dyld" 20841 version_type=darwin 20842 need_lib_prefix=no 20843 need_version=no 20844 library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext' 20845 soname_spec='$libname$release$major$shared_ext' 20846 shlibpath_overrides_runpath=yes 20847 shlibpath_var=DYLD_LIBRARY_PATH 20848 shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`' 20849 20850 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 20851 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 20852 ;; 20853 20854dgux*) 20855 version_type=linux # correct to gnu/linux during the next big refactor 20856 need_lib_prefix=no 20857 need_version=no 20858 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20859 soname_spec='$libname$release$shared_ext$major' 20860 shlibpath_var=LD_LIBRARY_PATH 20861 ;; 20862 20863freebsd* | dragonfly* | midnightbsd*) 20864 # DragonFly does not have aout. When/if they implement a new 20865 # versioning mechanism, adjust this. 20866 if test -x /usr/bin/objformat; then 20867 objformat=`/usr/bin/objformat` 20868 else 20869 case $host_os in 20870 freebsd[23].*) objformat=aout ;; 20871 *) objformat=elf ;; 20872 esac 20873 fi 20874 # Handle Gentoo/FreeBSD as it was Linux 20875 case $host_vendor in 20876 gentoo) 20877 version_type=linux ;; 20878 *) 20879 version_type=freebsd-$objformat ;; 20880 esac 20881 20882 case $version_type in 20883 freebsd-elf*) 20884 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20885 soname_spec='$libname$release$shared_ext$major' 20886 need_version=no 20887 need_lib_prefix=no 20888 ;; 20889 freebsd-*) 20890 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 20891 need_version=yes 20892 ;; 20893 linux) 20894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 20895 soname_spec='${libname}${release}${shared_ext}$major' 20896 need_lib_prefix=no 20897 need_version=no 20898 ;; 20899 esac 20900 shlibpath_var=LD_LIBRARY_PATH 20901 case $host_os in 20902 freebsd2.*) 20903 shlibpath_overrides_runpath=yes 20904 ;; 20905 freebsd3.[01]* | freebsdelf3.[01]*) 20906 shlibpath_overrides_runpath=yes 20907 hardcode_into_libs=yes 20908 ;; 20909 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 20910 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 20911 shlibpath_overrides_runpath=no 20912 hardcode_into_libs=yes 20913 ;; 20914 *) # from 4.6 on, and DragonFly 20915 shlibpath_overrides_runpath=yes 20916 hardcode_into_libs=yes 20917 ;; 20918 esac 20919 ;; 20920 20921haiku*) 20922 version_type=linux # correct to gnu/linux during the next big refactor 20923 need_lib_prefix=no 20924 need_version=no 20925 dynamic_linker="$host_os runtime_loader" 20926 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20927 soname_spec='$libname$release$shared_ext$major' 20928 shlibpath_var=LIBRARY_PATH 20929 shlibpath_overrides_runpath=no 20930 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 20931 hardcode_into_libs=yes 20932 ;; 20933 20934hpux9* | hpux10* | hpux11*) 20935 # Give a soname corresponding to the major version so that dld.sl refuses to 20936 # link against other versions. 20937 version_type=sunos 20938 need_lib_prefix=no 20939 need_version=no 20940 case $host_cpu in 20941 ia64*) 20942 shrext_cmds='.so' 20943 hardcode_into_libs=yes 20944 dynamic_linker="$host_os dld.so" 20945 shlibpath_var=LD_LIBRARY_PATH 20946 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 20947 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20948 soname_spec='$libname$release$shared_ext$major' 20949 if test 32 = "$HPUX_IA64_MODE"; then 20950 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 20951 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 20952 else 20953 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 20954 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 20955 fi 20956 ;; 20957 hppa*64*) 20958 shrext_cmds='.sl' 20959 hardcode_into_libs=yes 20960 dynamic_linker="$host_os dld.sl" 20961 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 20962 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 20963 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20964 soname_spec='$libname$release$shared_ext$major' 20965 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 20966 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 20967 ;; 20968 *) 20969 shrext_cmds='.sl' 20970 dynamic_linker="$host_os dld.sl" 20971 shlibpath_var=SHLIB_PATH 20972 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 20973 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20974 soname_spec='$libname$release$shared_ext$major' 20975 ;; 20976 esac 20977 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 20978 postinstall_cmds='chmod 555 $lib' 20979 # or fails outright, so override atomically: 20980 install_override_mode=555 20981 ;; 20982 20983interix[3-9]*) 20984 version_type=linux # correct to gnu/linux during the next big refactor 20985 need_lib_prefix=no 20986 need_version=no 20987 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20988 soname_spec='$libname$release$shared_ext$major' 20989 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 20990 shlibpath_var=LD_LIBRARY_PATH 20991 shlibpath_overrides_runpath=no 20992 hardcode_into_libs=yes 20993 ;; 20994 20995irix5* | irix6* | nonstopux*) 20996 case $host_os in 20997 nonstopux*) version_type=nonstopux ;; 20998 *) 20999 if test yes = "$lt_cv_prog_gnu_ld"; then 21000 version_type=linux # correct to gnu/linux during the next big refactor 21001 else 21002 version_type=irix 21003 fi ;; 21004 esac 21005 need_lib_prefix=no 21006 need_version=no 21007 soname_spec='$libname$release$shared_ext$major' 21008 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 21009 case $host_os in 21010 irix5* | nonstopux*) 21011 libsuff= shlibsuff= 21012 ;; 21013 *) 21014 case $LD in # libtool.m4 will add one of these switches to LD 21015 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 21016 libsuff= shlibsuff= libmagic=32-bit;; 21017 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 21018 libsuff=32 shlibsuff=N32 libmagic=N32;; 21019 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 21020 libsuff=64 shlibsuff=64 libmagic=64-bit;; 21021 *) libsuff= shlibsuff= libmagic=never-match;; 21022 esac 21023 ;; 21024 esac 21025 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 21026 shlibpath_overrides_runpath=no 21027 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 21028 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 21029 hardcode_into_libs=yes 21030 ;; 21031 21032# No shared lib support for Linux oldld, aout, or coff. 21033linux*oldld* | linux*aout* | linux*coff*) 21034 dynamic_linker=no 21035 ;; 21036 21037linux*android*) 21038 version_type=none # Android doesn't support versioned libraries. 21039 need_lib_prefix=no 21040 need_version=no 21041 library_names_spec='$libname$release$shared_ext' 21042 soname_spec='$libname$release$shared_ext' 21043 finish_cmds= 21044 shlibpath_var=LD_LIBRARY_PATH 21045 shlibpath_overrides_runpath=yes 21046 21047 # This implies no fast_install, which is unacceptable. 21048 # Some rework will be needed to allow for fast_install 21049 # before this can be enabled. 21050 hardcode_into_libs=yes 21051 21052 dynamic_linker='Android linker' 21053 # Don't embed -rpath directories since the linker doesn't support them. 21054 hardcode_libdir_flag_spec='-L$libdir' 21055 ;; 21056 21057# This must be glibc/ELF. 21058linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 21059 version_type=linux # correct to gnu/linux during the next big refactor 21060 need_lib_prefix=no 21061 need_version=no 21062 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21063 soname_spec='$libname$release$shared_ext$major' 21064 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 21065 shlibpath_var=LD_LIBRARY_PATH 21066 shlibpath_overrides_runpath=no 21067 21068 # Some binutils ld are patched to set DT_RUNPATH 21069 if test ${lt_cv_shlibpath_overrides_runpath+y} 21070then : 21071 printf %s "(cached) " >&6 21072else $as_nop 21073 lt_cv_shlibpath_overrides_runpath=no 21074 save_LDFLAGS=$LDFLAGS 21075 save_libdir=$libdir 21076 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 21077 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 21078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21079/* end confdefs.h. */ 21080 21081int 21082main (void) 21083{ 21084 21085 ; 21086 return 0; 21087} 21088_ACEOF 21089if ac_fn_c_try_link "$LINENO" 21090then : 21091 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 21092then : 21093 lt_cv_shlibpath_overrides_runpath=yes 21094fi 21095fi 21096rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21097 conftest$ac_exeext conftest.$ac_ext 21098 LDFLAGS=$save_LDFLAGS 21099 libdir=$save_libdir 21100 21101fi 21102 21103 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 21104 21105 # This implies no fast_install, which is unacceptable. 21106 # Some rework will be needed to allow for fast_install 21107 # before this can be enabled. 21108 hardcode_into_libs=yes 21109 21110 # Ideally, we could use ldconfig to report *all* directores which are 21111 # searched for libraries, however this is still not possible. Aside from not 21112 # being certain /sbin/ldconfig is available, command 21113 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 21114 # even though it is searched at run-time. Try to do the best guess by 21115 # appending ld.so.conf contents (and includes) to the search path. 21116 if test -f /etc/ld.so.conf; then 21117 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' ' '` 21118 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 21119 fi 21120 21121 # We used to test for /lib/ld.so.1 and disable shared libraries on 21122 # powerpc, because MkLinux only supported shared libraries with the 21123 # GNU dynamic linker. Since this was broken with cross compilers, 21124 # most powerpc-linux boxes support dynamic linking these days and 21125 # people can always --disable-shared, the test was removed, and we 21126 # assume the GNU/Linux dynamic linker is in use. 21127 dynamic_linker='GNU/Linux ld.so' 21128 ;; 21129 21130netbsd*) 21131 version_type=sunos 21132 need_lib_prefix=no 21133 need_version=no 21134 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 21135 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 21136 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 21137 dynamic_linker='NetBSD (a.out) ld.so' 21138 else 21139 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21140 soname_spec='$libname$release$shared_ext$major' 21141 dynamic_linker='NetBSD ld.elf_so' 21142 fi 21143 shlibpath_var=LD_LIBRARY_PATH 21144 shlibpath_overrides_runpath=yes 21145 hardcode_into_libs=yes 21146 ;; 21147 21148newsos6) 21149 version_type=linux # correct to gnu/linux during the next big refactor 21150 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21151 shlibpath_var=LD_LIBRARY_PATH 21152 shlibpath_overrides_runpath=yes 21153 ;; 21154 21155*nto* | *qnx*) 21156 version_type=qnx 21157 need_lib_prefix=no 21158 need_version=no 21159 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21160 soname_spec='$libname$release$shared_ext$major' 21161 shlibpath_var=LD_LIBRARY_PATH 21162 shlibpath_overrides_runpath=no 21163 hardcode_into_libs=yes 21164 dynamic_linker='ldqnx.so' 21165 ;; 21166 21167openbsd* | bitrig*) 21168 version_type=sunos 21169 sys_lib_dlsearch_path_spec=/usr/lib 21170 need_lib_prefix=no 21171 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 21172 need_version=no 21173 else 21174 need_version=yes 21175 fi 21176 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 21177 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 21178 shlibpath_var=LD_LIBRARY_PATH 21179 shlibpath_overrides_runpath=yes 21180 ;; 21181 21182os2*) 21183 libname_spec='$name' 21184 version_type=windows 21185 shrext_cmds=.dll 21186 need_version=no 21187 need_lib_prefix=no 21188 # OS/2 can only load a DLL with a base name of 8 characters or less. 21189 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 21190 v=$($ECHO $release$versuffix | tr -d .-); 21191 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 21192 $ECHO $n$v`$shared_ext' 21193 library_names_spec='${libname}_dll.$libext' 21194 dynamic_linker='OS/2 ld.exe' 21195 shlibpath_var=BEGINLIBPATH 21196 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 21197 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 21198 postinstall_cmds='base_file=`basename \$file`~ 21199 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 21200 dldir=$destdir/`dirname \$dlpath`~ 21201 test -d \$dldir || mkdir -p \$dldir~ 21202 $install_prog $dir/$dlname \$dldir/$dlname~ 21203 chmod a+x \$dldir/$dlname~ 21204 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 21205 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 21206 fi' 21207 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 21208 dlpath=$dir/\$dldll~ 21209 $RM \$dlpath' 21210 ;; 21211 21212osf3* | osf4* | osf5*) 21213 version_type=osf 21214 need_lib_prefix=no 21215 need_version=no 21216 soname_spec='$libname$release$shared_ext$major' 21217 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21218 shlibpath_var=LD_LIBRARY_PATH 21219 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 21220 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 21221 ;; 21222 21223rdos*) 21224 dynamic_linker=no 21225 ;; 21226 21227solaris*) 21228 version_type=linux # correct to gnu/linux during the next big refactor 21229 need_lib_prefix=no 21230 need_version=no 21231 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21232 soname_spec='$libname$release$shared_ext$major' 21233 shlibpath_var=LD_LIBRARY_PATH 21234 shlibpath_overrides_runpath=yes 21235 hardcode_into_libs=yes 21236 # ldd complains unless libraries are executable 21237 postinstall_cmds='chmod +x $lib' 21238 ;; 21239 21240sunos4*) 21241 version_type=sunos 21242 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 21243 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 21244 shlibpath_var=LD_LIBRARY_PATH 21245 shlibpath_overrides_runpath=yes 21246 if test yes = "$with_gnu_ld"; then 21247 need_lib_prefix=no 21248 fi 21249 need_version=yes 21250 ;; 21251 21252sysv4 | sysv4.3*) 21253 version_type=linux # correct to gnu/linux during the next big refactor 21254 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21255 soname_spec='$libname$release$shared_ext$major' 21256 shlibpath_var=LD_LIBRARY_PATH 21257 case $host_vendor in 21258 sni) 21259 shlibpath_overrides_runpath=no 21260 need_lib_prefix=no 21261 runpath_var=LD_RUN_PATH 21262 ;; 21263 siemens) 21264 need_lib_prefix=no 21265 ;; 21266 motorola) 21267 need_lib_prefix=no 21268 need_version=no 21269 shlibpath_overrides_runpath=no 21270 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 21271 ;; 21272 esac 21273 ;; 21274 21275sysv4*MP*) 21276 if test -d /usr/nec; then 21277 version_type=linux # correct to gnu/linux during the next big refactor 21278 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 21279 soname_spec='$libname$shared_ext.$major' 21280 shlibpath_var=LD_LIBRARY_PATH 21281 fi 21282 ;; 21283 21284sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 21285 version_type=sco 21286 need_lib_prefix=no 21287 need_version=no 21288 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 21289 soname_spec='$libname$release$shared_ext$major' 21290 shlibpath_var=LD_LIBRARY_PATH 21291 shlibpath_overrides_runpath=yes 21292 hardcode_into_libs=yes 21293 if test yes = "$with_gnu_ld"; then 21294 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 21295 else 21296 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 21297 case $host_os in 21298 sco3.2v5*) 21299 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 21300 ;; 21301 esac 21302 fi 21303 sys_lib_dlsearch_path_spec='/usr/lib' 21304 ;; 21305 21306tpf*) 21307 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 21308 version_type=linux # correct to gnu/linux during the next big refactor 21309 need_lib_prefix=no 21310 need_version=no 21311 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21312 shlibpath_var=LD_LIBRARY_PATH 21313 shlibpath_overrides_runpath=no 21314 hardcode_into_libs=yes 21315 ;; 21316 21317uts4*) 21318 version_type=linux # correct to gnu/linux during the next big refactor 21319 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21320 soname_spec='$libname$release$shared_ext$major' 21321 shlibpath_var=LD_LIBRARY_PATH 21322 ;; 21323 21324*) 21325 dynamic_linker=no 21326 ;; 21327esac 21328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 21329printf "%s\n" "$dynamic_linker" >&6; } 21330test no = "$dynamic_linker" && can_build_shared=no 21331 21332variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 21333if test yes = "$GCC"; then 21334 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 21335fi 21336 21337if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 21338 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 21339fi 21340 21341if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 21342 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 21343fi 21344 21345# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 21346configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 21347 21348# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 21349func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 21350 21351# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 21352configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 21353 21354 21355 21356 21357 21358 21359 21360 21361 21362 21363 21364 21365 21366 21367 21368 21369 21370 21371 21372 21373 21374 21375 21376 21377 21378 21379 21380 21381 21382 21383 21384 21385 21386 21387 21388 21389 21390 21391 21392 21393 21394 21395 21396 21397 21398 21399 21400 21401 21402 21403 21404 21405 21406 21407 21408 21409 21410 21411 21412 21413 21414 21415 21416 21417 21418 21419 21420 21421 21422 21423 21424 21425 21426 21427 21428 21429 21430 21431 21432 21433 21434 21435 21436 21437 21438 21439 21440 21441 21442 21443 21444 21445 21446 21447 21448 21449 21450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 21451printf %s "checking how to hardcode library paths into programs... " >&6; } 21452hardcode_action= 21453if test -n "$hardcode_libdir_flag_spec" || 21454 test -n "$runpath_var" || 21455 test yes = "$hardcode_automatic"; then 21456 21457 # We can hardcode non-existent directories. 21458 if test no != "$hardcode_direct" && 21459 # If the only mechanism to avoid hardcoding is shlibpath_var, we 21460 # have to relink, otherwise we might link with an installed library 21461 # when we should be linking with a yet-to-be-installed one 21462 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 21463 test no != "$hardcode_minus_L"; then 21464 # Linking always hardcodes the temporary library directory. 21465 hardcode_action=relink 21466 else 21467 # We can link without hardcoding, and we can hardcode nonexisting dirs. 21468 hardcode_action=immediate 21469 fi 21470else 21471 # We cannot hardcode anything, or else we can only hardcode existing 21472 # directories. 21473 hardcode_action=unsupported 21474fi 21475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 21476printf "%s\n" "$hardcode_action" >&6; } 21477 21478if test relink = "$hardcode_action" || 21479 test yes = "$inherit_rpath"; then 21480 # Fast installation is not supported 21481 enable_fast_install=no 21482elif test yes = "$shlibpath_overrides_runpath" || 21483 test no = "$enable_shared"; then 21484 # Fast installation is not necessary 21485 enable_fast_install=needless 21486fi 21487 21488 21489 21490 21491 21492 21493 if test yes != "$enable_dlopen"; then 21494 enable_dlopen=unknown 21495 enable_dlopen_self=unknown 21496 enable_dlopen_self_static=unknown 21497else 21498 lt_cv_dlopen=no 21499 lt_cv_dlopen_libs= 21500 21501 case $host_os in 21502 beos*) 21503 lt_cv_dlopen=load_add_on 21504 lt_cv_dlopen_libs= 21505 lt_cv_dlopen_self=yes 21506 ;; 21507 21508 mingw* | pw32* | cegcc*) 21509 lt_cv_dlopen=LoadLibrary 21510 lt_cv_dlopen_libs= 21511 ;; 21512 21513 cygwin*) 21514 lt_cv_dlopen=dlopen 21515 lt_cv_dlopen_libs= 21516 ;; 21517 21518 darwin*) 21519 # if libdl is installed we need to link against it 21520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 21521printf %s "checking for dlopen in -ldl... " >&6; } 21522if test ${ac_cv_lib_dl_dlopen+y} 21523then : 21524 printf %s "(cached) " >&6 21525else $as_nop 21526 ac_check_lib_save_LIBS=$LIBS 21527LIBS="-ldl $LIBS" 21528cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21529/* end confdefs.h. */ 21530 21531/* Override any GCC internal prototype to avoid an error. 21532 Use char because int might match the return type of a GCC 21533 builtin and then its argument prototype would still apply. 21534 The 'extern "C"' is for builds by C++ compilers; 21535 although this is not generally supported in C code supporting it here 21536 has little cost and some practical benefit (sr 110532). */ 21537#ifdef __cplusplus 21538extern "C" 21539#endif 21540char dlopen (void); 21541int 21542main (void) 21543{ 21544return dlopen (); 21545 ; 21546 return 0; 21547} 21548_ACEOF 21549if ac_fn_c_try_link "$LINENO" 21550then : 21551 ac_cv_lib_dl_dlopen=yes 21552else $as_nop 21553 ac_cv_lib_dl_dlopen=no 21554fi 21555rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21556 conftest$ac_exeext conftest.$ac_ext 21557LIBS=$ac_check_lib_save_LIBS 21558fi 21559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 21560printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 21561if test "x$ac_cv_lib_dl_dlopen" = xyes 21562then : 21563 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 21564else $as_nop 21565 21566 lt_cv_dlopen=dyld 21567 lt_cv_dlopen_libs= 21568 lt_cv_dlopen_self=yes 21569 21570fi 21571 21572 ;; 21573 21574 tpf*) 21575 # Don't try to run any link tests for TPF. We know it's impossible 21576 # because TPF is a cross-compiler, and we know how we open DSOs. 21577 lt_cv_dlopen=dlopen 21578 lt_cv_dlopen_libs= 21579 lt_cv_dlopen_self=no 21580 ;; 21581 21582 *) 21583 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 21584if test "x$ac_cv_func_shl_load" = xyes 21585then : 21586 lt_cv_dlopen=shl_load 21587else $as_nop 21588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 21589printf %s "checking for shl_load in -ldld... " >&6; } 21590if test ${ac_cv_lib_dld_shl_load+y} 21591then : 21592 printf %s "(cached) " >&6 21593else $as_nop 21594 ac_check_lib_save_LIBS=$LIBS 21595LIBS="-ldld $LIBS" 21596cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21597/* end confdefs.h. */ 21598 21599/* Override any GCC internal prototype to avoid an error. 21600 Use char because int might match the return type of a GCC 21601 builtin and then its argument prototype would still apply. 21602 The 'extern "C"' is for builds by C++ compilers; 21603 although this is not generally supported in C code supporting it here 21604 has little cost and some practical benefit (sr 110532). */ 21605#ifdef __cplusplus 21606extern "C" 21607#endif 21608char shl_load (void); 21609int 21610main (void) 21611{ 21612return shl_load (); 21613 ; 21614 return 0; 21615} 21616_ACEOF 21617if ac_fn_c_try_link "$LINENO" 21618then : 21619 ac_cv_lib_dld_shl_load=yes 21620else $as_nop 21621 ac_cv_lib_dld_shl_load=no 21622fi 21623rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21624 conftest$ac_exeext conftest.$ac_ext 21625LIBS=$ac_check_lib_save_LIBS 21626fi 21627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 21628printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 21629if test "x$ac_cv_lib_dld_shl_load" = xyes 21630then : 21631 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 21632else $as_nop 21633 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 21634if test "x$ac_cv_func_dlopen" = xyes 21635then : 21636 lt_cv_dlopen=dlopen 21637else $as_nop 21638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 21639printf %s "checking for dlopen in -ldl... " >&6; } 21640if test ${ac_cv_lib_dl_dlopen+y} 21641then : 21642 printf %s "(cached) " >&6 21643else $as_nop 21644 ac_check_lib_save_LIBS=$LIBS 21645LIBS="-ldl $LIBS" 21646cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21647/* end confdefs.h. */ 21648 21649/* Override any GCC internal prototype to avoid an error. 21650 Use char because int might match the return type of a GCC 21651 builtin and then its argument prototype would still apply. 21652 The 'extern "C"' is for builds by C++ compilers; 21653 although this is not generally supported in C code supporting it here 21654 has little cost and some practical benefit (sr 110532). */ 21655#ifdef __cplusplus 21656extern "C" 21657#endif 21658char dlopen (void); 21659int 21660main (void) 21661{ 21662return dlopen (); 21663 ; 21664 return 0; 21665} 21666_ACEOF 21667if ac_fn_c_try_link "$LINENO" 21668then : 21669 ac_cv_lib_dl_dlopen=yes 21670else $as_nop 21671 ac_cv_lib_dl_dlopen=no 21672fi 21673rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21674 conftest$ac_exeext conftest.$ac_ext 21675LIBS=$ac_check_lib_save_LIBS 21676fi 21677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 21678printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 21679if test "x$ac_cv_lib_dl_dlopen" = xyes 21680then : 21681 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 21682else $as_nop 21683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 21684printf %s "checking for dlopen in -lsvld... " >&6; } 21685if test ${ac_cv_lib_svld_dlopen+y} 21686then : 21687 printf %s "(cached) " >&6 21688else $as_nop 21689 ac_check_lib_save_LIBS=$LIBS 21690LIBS="-lsvld $LIBS" 21691cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21692/* end confdefs.h. */ 21693 21694/* Override any GCC internal prototype to avoid an error. 21695 Use char because int might match the return type of a GCC 21696 builtin and then its argument prototype would still apply. 21697 The 'extern "C"' is for builds by C++ compilers; 21698 although this is not generally supported in C code supporting it here 21699 has little cost and some practical benefit (sr 110532). */ 21700#ifdef __cplusplus 21701extern "C" 21702#endif 21703char dlopen (void); 21704int 21705main (void) 21706{ 21707return dlopen (); 21708 ; 21709 return 0; 21710} 21711_ACEOF 21712if ac_fn_c_try_link "$LINENO" 21713then : 21714 ac_cv_lib_svld_dlopen=yes 21715else $as_nop 21716 ac_cv_lib_svld_dlopen=no 21717fi 21718rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21719 conftest$ac_exeext conftest.$ac_ext 21720LIBS=$ac_check_lib_save_LIBS 21721fi 21722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 21723printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 21724if test "x$ac_cv_lib_svld_dlopen" = xyes 21725then : 21726 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 21727else $as_nop 21728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 21729printf %s "checking for dld_link in -ldld... " >&6; } 21730if test ${ac_cv_lib_dld_dld_link+y} 21731then : 21732 printf %s "(cached) " >&6 21733else $as_nop 21734 ac_check_lib_save_LIBS=$LIBS 21735LIBS="-ldld $LIBS" 21736cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21737/* end confdefs.h. */ 21738 21739/* Override any GCC internal prototype to avoid an error. 21740 Use char because int might match the return type of a GCC 21741 builtin and then its argument prototype would still apply. 21742 The 'extern "C"' is for builds by C++ compilers; 21743 although this is not generally supported in C code supporting it here 21744 has little cost and some practical benefit (sr 110532). */ 21745#ifdef __cplusplus 21746extern "C" 21747#endif 21748char dld_link (void); 21749int 21750main (void) 21751{ 21752return dld_link (); 21753 ; 21754 return 0; 21755} 21756_ACEOF 21757if ac_fn_c_try_link "$LINENO" 21758then : 21759 ac_cv_lib_dld_dld_link=yes 21760else $as_nop 21761 ac_cv_lib_dld_dld_link=no 21762fi 21763rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21764 conftest$ac_exeext conftest.$ac_ext 21765LIBS=$ac_check_lib_save_LIBS 21766fi 21767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 21768printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 21769if test "x$ac_cv_lib_dld_dld_link" = xyes 21770then : 21771 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 21772fi 21773 21774 21775fi 21776 21777 21778fi 21779 21780 21781fi 21782 21783 21784fi 21785 21786 21787fi 21788 21789 ;; 21790 esac 21791 21792 if test no = "$lt_cv_dlopen"; then 21793 enable_dlopen=no 21794 else 21795 enable_dlopen=yes 21796 fi 21797 21798 case $lt_cv_dlopen in 21799 dlopen) 21800 save_CPPFLAGS=$CPPFLAGS 21801 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 21802 21803 save_LDFLAGS=$LDFLAGS 21804 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 21805 21806 save_LIBS=$LIBS 21807 LIBS="$lt_cv_dlopen_libs $LIBS" 21808 21809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 21810printf %s "checking whether a program can dlopen itself... " >&6; } 21811if test ${lt_cv_dlopen_self+y} 21812then : 21813 printf %s "(cached) " >&6 21814else $as_nop 21815 if test yes = "$cross_compiling"; then : 21816 lt_cv_dlopen_self=cross 21817else 21818 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 21819 lt_status=$lt_dlunknown 21820 cat > conftest.$ac_ext <<_LT_EOF 21821#line $LINENO "configure" 21822#include "confdefs.h" 21823 21824#if HAVE_DLFCN_H 21825#include <dlfcn.h> 21826#endif 21827 21828#include <stdio.h> 21829 21830#ifdef RTLD_GLOBAL 21831# define LT_DLGLOBAL RTLD_GLOBAL 21832#else 21833# ifdef DL_GLOBAL 21834# define LT_DLGLOBAL DL_GLOBAL 21835# else 21836# define LT_DLGLOBAL 0 21837# endif 21838#endif 21839 21840/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 21841 find out it does not work in some platform. */ 21842#ifndef LT_DLLAZY_OR_NOW 21843# ifdef RTLD_LAZY 21844# define LT_DLLAZY_OR_NOW RTLD_LAZY 21845# else 21846# ifdef DL_LAZY 21847# define LT_DLLAZY_OR_NOW DL_LAZY 21848# else 21849# ifdef RTLD_NOW 21850# define LT_DLLAZY_OR_NOW RTLD_NOW 21851# else 21852# ifdef DL_NOW 21853# define LT_DLLAZY_OR_NOW DL_NOW 21854# else 21855# define LT_DLLAZY_OR_NOW 0 21856# endif 21857# endif 21858# endif 21859# endif 21860#endif 21861 21862/* When -fvisibility=hidden is used, assume the code has been annotated 21863 correspondingly for the symbols needed. */ 21864#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 21865int fnord () __attribute__((visibility("default"))); 21866#endif 21867 21868int fnord () { return 42; } 21869int main () 21870{ 21871 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 21872 int status = $lt_dlunknown; 21873 21874 if (self) 21875 { 21876 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 21877 else 21878 { 21879 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 21880 else puts (dlerror ()); 21881 } 21882 /* dlclose (self); */ 21883 } 21884 else 21885 puts (dlerror ()); 21886 21887 return status; 21888} 21889_LT_EOF 21890 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 21891 (eval $ac_link) 2>&5 21892 ac_status=$? 21893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21894 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 21895 (./conftest; exit; ) >&5 2>/dev/null 21896 lt_status=$? 21897 case x$lt_status in 21898 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 21899 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 21900 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 21901 esac 21902 else : 21903 # compilation failed 21904 lt_cv_dlopen_self=no 21905 fi 21906fi 21907rm -fr conftest* 21908 21909 21910fi 21911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 21912printf "%s\n" "$lt_cv_dlopen_self" >&6; } 21913 21914 if test yes = "$lt_cv_dlopen_self"; then 21915 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 21916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 21917printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 21918if test ${lt_cv_dlopen_self_static+y} 21919then : 21920 printf %s "(cached) " >&6 21921else $as_nop 21922 if test yes = "$cross_compiling"; then : 21923 lt_cv_dlopen_self_static=cross 21924else 21925 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 21926 lt_status=$lt_dlunknown 21927 cat > conftest.$ac_ext <<_LT_EOF 21928#line $LINENO "configure" 21929#include "confdefs.h" 21930 21931#if HAVE_DLFCN_H 21932#include <dlfcn.h> 21933#endif 21934 21935#include <stdio.h> 21936 21937#ifdef RTLD_GLOBAL 21938# define LT_DLGLOBAL RTLD_GLOBAL 21939#else 21940# ifdef DL_GLOBAL 21941# define LT_DLGLOBAL DL_GLOBAL 21942# else 21943# define LT_DLGLOBAL 0 21944# endif 21945#endif 21946 21947/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 21948 find out it does not work in some platform. */ 21949#ifndef LT_DLLAZY_OR_NOW 21950# ifdef RTLD_LAZY 21951# define LT_DLLAZY_OR_NOW RTLD_LAZY 21952# else 21953# ifdef DL_LAZY 21954# define LT_DLLAZY_OR_NOW DL_LAZY 21955# else 21956# ifdef RTLD_NOW 21957# define LT_DLLAZY_OR_NOW RTLD_NOW 21958# else 21959# ifdef DL_NOW 21960# define LT_DLLAZY_OR_NOW DL_NOW 21961# else 21962# define LT_DLLAZY_OR_NOW 0 21963# endif 21964# endif 21965# endif 21966# endif 21967#endif 21968 21969/* When -fvisibility=hidden is used, assume the code has been annotated 21970 correspondingly for the symbols needed. */ 21971#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 21972int fnord () __attribute__((visibility("default"))); 21973#endif 21974 21975int fnord () { return 42; } 21976int main () 21977{ 21978 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 21979 int status = $lt_dlunknown; 21980 21981 if (self) 21982 { 21983 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 21984 else 21985 { 21986 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 21987 else puts (dlerror ()); 21988 } 21989 /* dlclose (self); */ 21990 } 21991 else 21992 puts (dlerror ()); 21993 21994 return status; 21995} 21996_LT_EOF 21997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 21998 (eval $ac_link) 2>&5 21999 ac_status=$? 22000 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22001 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 22002 (./conftest; exit; ) >&5 2>/dev/null 22003 lt_status=$? 22004 case x$lt_status in 22005 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 22006 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 22007 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 22008 esac 22009 else : 22010 # compilation failed 22011 lt_cv_dlopen_self_static=no 22012 fi 22013fi 22014rm -fr conftest* 22015 22016 22017fi 22018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 22019printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 22020 fi 22021 22022 CPPFLAGS=$save_CPPFLAGS 22023 LDFLAGS=$save_LDFLAGS 22024 LIBS=$save_LIBS 22025 ;; 22026 esac 22027 22028 case $lt_cv_dlopen_self in 22029 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 22030 *) enable_dlopen_self=unknown ;; 22031 esac 22032 22033 case $lt_cv_dlopen_self_static in 22034 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 22035 *) enable_dlopen_self_static=unknown ;; 22036 esac 22037fi 22038 22039 22040 22041 22042 22043 22044 22045 22046 22047 22048 22049 22050 22051 22052 22053 22054 22055striplib= 22056old_striplib= 22057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 22058printf %s "checking whether stripping libraries is possible... " >&6; } 22059if test -z "$STRIP"; then 22060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22061printf "%s\n" "no" >&6; } 22062else 22063 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 22064 old_striplib="$STRIP --strip-debug" 22065 striplib="$STRIP --strip-unneeded" 22066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22067printf "%s\n" "yes" >&6; } 22068 else 22069 case $host_os in 22070 darwin*) 22071 # FIXME - insert some real tests, host_os isn't really good enough 22072 striplib="$STRIP -x" 22073 old_striplib="$STRIP -S" 22074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22075printf "%s\n" "yes" >&6; } 22076 ;; 22077 freebsd*) 22078 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 22079 old_striplib="$STRIP --strip-debug" 22080 striplib="$STRIP --strip-unneeded" 22081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22082printf "%s\n" "yes" >&6; } 22083 else 22084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22085printf "%s\n" "no" >&6; } 22086 fi 22087 ;; 22088 *) 22089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22090printf "%s\n" "no" >&6; } 22091 ;; 22092 esac 22093 fi 22094fi 22095 22096 22097 22098 22099 22100 22101 22102 22103 22104 22105 22106 22107 # Report what library types will actually be built 22108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 22109printf %s "checking if libtool supports shared libraries... " >&6; } 22110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 22111printf "%s\n" "$can_build_shared" >&6; } 22112 22113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 22114printf %s "checking whether to build shared libraries... " >&6; } 22115 test no = "$can_build_shared" && enable_shared=no 22116 22117 # On AIX, shared libraries and static libraries use the same namespace, and 22118 # are all built from PIC. 22119 case $host_os in 22120 aix3*) 22121 test yes = "$enable_shared" && enable_static=no 22122 if test -n "$RANLIB"; then 22123 archive_cmds="$archive_cmds~\$RANLIB \$lib" 22124 postinstall_cmds='$RANLIB $lib' 22125 fi 22126 ;; 22127 22128 aix[4-9]*) 22129 if test ia64 != "$host_cpu"; then 22130 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 22131 yes,aix,yes) ;; # shared object as lib.so file only 22132 yes,svr4,*) ;; # shared object as lib.so archive member only 22133 yes,*) enable_static=no ;; # shared object in lib.a archive as well 22134 esac 22135 fi 22136 ;; 22137 esac 22138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 22139printf "%s\n" "$enable_shared" >&6; } 22140 22141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 22142printf %s "checking whether to build static libraries... " >&6; } 22143 # Make sure either enable_shared or enable_static is yes. 22144 test yes = "$enable_shared" || enable_static=yes 22145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 22146printf "%s\n" "$enable_static" >&6; } 22147 22148 22149 22150 22151fi 22152ac_ext=c 22153ac_cpp='$CPP $CPPFLAGS' 22154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22156ac_compiler_gnu=$ac_cv_c_compiler_gnu 22157 22158CC=$lt_save_CC 22159 22160 22161 22162 22163 22164 22165 22166 22167 22168 22169 22170 22171 22172 22173 22174 ac_config_commands="$ac_config_commands libtool" 22175 22176 22177 22178 22179# Only expand once: 22180 22181 22182 22183 22184 22185 22186 22187 22188 22189if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 22190 if test -n "$ac_tool_prefix"; then 22191 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 22192set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 22193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22194printf %s "checking for $ac_word... " >&6; } 22195if test ${ac_cv_path_PKG_CONFIG+y} 22196then : 22197 printf %s "(cached) " >&6 22198else $as_nop 22199 case $PKG_CONFIG in 22200 [\\/]* | ?:[\\/]*) 22201 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 22202 ;; 22203 *) 22204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22205for as_dir in $PATH 22206do 22207 IFS=$as_save_IFS 22208 case $as_dir in #((( 22209 '') as_dir=./ ;; 22210 */) ;; 22211 *) as_dir=$as_dir/ ;; 22212 esac 22213 for ac_exec_ext in '' $ac_executable_extensions; do 22214 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 22215 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 22216 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 22217 break 2 22218 fi 22219done 22220 done 22221IFS=$as_save_IFS 22222 22223 ;; 22224esac 22225fi 22226PKG_CONFIG=$ac_cv_path_PKG_CONFIG 22227if test -n "$PKG_CONFIG"; then 22228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 22229printf "%s\n" "$PKG_CONFIG" >&6; } 22230else 22231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22232printf "%s\n" "no" >&6; } 22233fi 22234 22235 22236fi 22237if test -z "$ac_cv_path_PKG_CONFIG"; then 22238 ac_pt_PKG_CONFIG=$PKG_CONFIG 22239 # Extract the first word of "pkg-config", so it can be a program name with args. 22240set dummy pkg-config; ac_word=$2 22241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22242printf %s "checking for $ac_word... " >&6; } 22243if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 22244then : 22245 printf %s "(cached) " >&6 22246else $as_nop 22247 case $ac_pt_PKG_CONFIG in 22248 [\\/]* | ?:[\\/]*) 22249 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 22250 ;; 22251 *) 22252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22253for as_dir in $PATH 22254do 22255 IFS=$as_save_IFS 22256 case $as_dir in #((( 22257 '') as_dir=./ ;; 22258 */) ;; 22259 *) as_dir=$as_dir/ ;; 22260 esac 22261 for ac_exec_ext in '' $ac_executable_extensions; do 22262 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 22263 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 22264 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 22265 break 2 22266 fi 22267done 22268 done 22269IFS=$as_save_IFS 22270 22271 ;; 22272esac 22273fi 22274ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 22275if test -n "$ac_pt_PKG_CONFIG"; then 22276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 22277printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 22278else 22279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22280printf "%s\n" "no" >&6; } 22281fi 22282 22283 if test "x$ac_pt_PKG_CONFIG" = x; then 22284 PKG_CONFIG="" 22285 else 22286 case $cross_compiling:$ac_tool_warned in 22287yes:) 22288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 22289printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 22290ac_tool_warned=yes ;; 22291esac 22292 PKG_CONFIG=$ac_pt_PKG_CONFIG 22293 fi 22294else 22295 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 22296fi 22297 22298fi 22299if test -n "$PKG_CONFIG"; then 22300 _pkg_min_version=0.9.0 22301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 22302printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 22303 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 22304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22305printf "%s\n" "yes" >&6; } 22306 else 22307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22308printf "%s\n" "no" >&6; } 22309 PKG_CONFIG="" 22310 fi 22311fi 22312for ac_prog in flex lex 22313do 22314 # Extract the first word of "$ac_prog", so it can be a program name with args. 22315set dummy $ac_prog; ac_word=$2 22316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22317printf %s "checking for $ac_word... " >&6; } 22318if test ${ac_cv_prog_LEX+y} 22319then : 22320 printf %s "(cached) " >&6 22321else $as_nop 22322 if test -n "$LEX"; then 22323 ac_cv_prog_LEX="$LEX" # Let the user override the test. 22324else 22325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22326for as_dir in $PATH 22327do 22328 IFS=$as_save_IFS 22329 case $as_dir in #((( 22330 '') as_dir=./ ;; 22331 */) ;; 22332 *) as_dir=$as_dir/ ;; 22333 esac 22334 for ac_exec_ext in '' $ac_executable_extensions; do 22335 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 22336 ac_cv_prog_LEX="$ac_prog" 22337 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 22338 break 2 22339 fi 22340done 22341 done 22342IFS=$as_save_IFS 22343 22344fi 22345fi 22346LEX=$ac_cv_prog_LEX 22347if test -n "$LEX"; then 22348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 22349printf "%s\n" "$LEX" >&6; } 22350else 22351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22352printf "%s\n" "no" >&6; } 22353fi 22354 22355 22356 test -n "$LEX" && break 22357done 22358test -n "$LEX" || LEX=":" 22359 22360 if test "x$LEX" != "x:"; then 22361 cat >conftest.l <<_ACEOF 22362%{ 22363#ifdef __cplusplus 22364extern "C" 22365#endif 22366int yywrap(void); 22367%} 22368%% 22369a { ECHO; } 22370b { REJECT; } 22371c { yymore (); } 22372d { yyless (1); } 22373e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 22374#ifdef __cplusplus 22375 yyless ((yyinput () != 0)); 22376#else 22377 yyless ((input () != 0)); 22378#endif 22379 } 22380f { unput (yytext[0]); } 22381. { BEGIN INITIAL; } 22382%% 22383#ifdef YYTEXT_POINTER 22384extern char *yytext; 22385#endif 22386int 22387yywrap (void) 22388{ 22389 return 1; 22390} 22391int 22392main (void) 22393{ 22394 return ! yylex (); 22395} 22396_ACEOF 22397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5 22398printf %s "checking for lex output file root... " >&6; } 22399if test ${ac_cv_prog_lex_root+y} 22400then : 22401 printf %s "(cached) " >&6 22402else $as_nop 22403 22404ac_cv_prog_lex_root=unknown 22405{ { ac_try="$LEX conftest.l" 22406case "(($ac_try" in 22407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22408 *) ac_try_echo=$ac_try;; 22409esac 22410eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 22411printf "%s\n" "$ac_try_echo"; } >&5 22412 (eval "$LEX conftest.l") 2>&5 22413 ac_status=$? 22414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22415 test $ac_status = 0; } && 22416if test -f lex.yy.c; then 22417 ac_cv_prog_lex_root=lex.yy 22418elif test -f lexyy.c; then 22419 ac_cv_prog_lex_root=lexyy 22420fi 22421fi 22422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 22423printf "%s\n" "$ac_cv_prog_lex_root" >&6; } 22424if test "$ac_cv_prog_lex_root" = unknown 22425then : 22426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5 22427printf "%s\n" "$as_me: WARNING: cannot find output from $LEX; giving up on $LEX" >&2;} 22428 LEX=: LEXLIB= 22429fi 22430LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 22431 22432if test ${LEXLIB+y} 22433then : 22434 22435else $as_nop 22436 22437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5 22438printf %s "checking for lex library... " >&6; } 22439if test ${ac_cv_lib_lex+y} 22440then : 22441 printf %s "(cached) " >&6 22442else $as_nop 22443 22444 ac_save_LIBS="$LIBS" 22445 ac_found=false 22446 for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do 22447 case $ac_cv_lib_lex in #( 22448 'none needed') : 22449 ;; #( 22450 'not found') : 22451 break ;; #( 22452 *) : 22453 LIBS="$ac_cv_lib_lex $ac_save_LIBS" ;; #( 22454 *) : 22455 ;; 22456esac 22457 22458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22459/* end confdefs.h. */ 22460`cat $LEX_OUTPUT_ROOT.c` 22461_ACEOF 22462if ac_fn_c_try_link "$LINENO" 22463then : 22464 ac_found=: 22465fi 22466rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22467 conftest$ac_exeext conftest.$ac_ext 22468 if $ac_found; then 22469 break 22470 fi 22471 done 22472 LIBS="$ac_save_LIBS" 22473 22474fi 22475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 22476printf "%s\n" "$ac_cv_lib_lex" >&6; } 22477 if test "$ac_cv_lib_lex" = 'not found' 22478then : 22479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5 22480printf "%s\n" "$as_me: WARNING: required lex library not found; giving up on $LEX" >&2;} 22481 LEX=: LEXLIB= 22482elif test "$ac_cv_lib_lex" = 'none needed' 22483then : 22484 LEXLIB='' 22485else $as_nop 22486 LEXLIB=$ac_cv_lib_lex 22487fi 22488 ac_save_LIBS="$LIBS" 22489 LIBS= 22490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing yywrap" >&5 22491printf %s "checking for library containing yywrap... " >&6; } 22492if test ${ac_cv_search_yywrap+y} 22493then : 22494 printf %s "(cached) " >&6 22495else $as_nop 22496 ac_func_search_save_LIBS=$LIBS 22497cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22498/* end confdefs.h. */ 22499 22500/* Override any GCC internal prototype to avoid an error. 22501 Use char because int might match the return type of a GCC 22502 builtin and then its argument prototype would still apply. 22503 The 'extern "C"' is for builds by C++ compilers; 22504 although this is not generally supported in C code supporting it here 22505 has little cost and some practical benefit (sr 110532). */ 22506#ifdef __cplusplus 22507extern "C" 22508#endif 22509char yywrap (void); 22510int 22511main (void) 22512{ 22513return yywrap (); 22514 ; 22515 return 0; 22516} 22517_ACEOF 22518for ac_lib in '' fl l 22519do 22520 if test -z "$ac_lib"; then 22521 ac_res="none required" 22522 else 22523 ac_res=-l$ac_lib 22524 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22525 fi 22526 if ac_fn_c_try_link "$LINENO" 22527then : 22528 ac_cv_search_yywrap=$ac_res 22529fi 22530rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22531 conftest$ac_exeext 22532 if test ${ac_cv_search_yywrap+y} 22533then : 22534 break 22535fi 22536done 22537if test ${ac_cv_search_yywrap+y} 22538then : 22539 22540else $as_nop 22541 ac_cv_search_yywrap=no 22542fi 22543rm conftest.$ac_ext 22544LIBS=$ac_func_search_save_LIBS 22545fi 22546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_yywrap" >&5 22547printf "%s\n" "$ac_cv_search_yywrap" >&6; } 22548ac_res=$ac_cv_search_yywrap 22549if test "$ac_res" != no 22550then : 22551 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22552 LEXLIB="$LIBS" 22553fi 22554 22555 LIBS="$ac_save_LIBS" 22556fi 22557 22558 22559if test "$LEX" != : 22560then : 22561 22562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 22563printf %s "checking whether yytext is a pointer... " >&6; } 22564if test ${ac_cv_prog_lex_yytext_pointer+y} 22565then : 22566 printf %s "(cached) " >&6 22567else $as_nop 22568 # POSIX says lex can declare yytext either as a pointer or an array; the 22569# default is implementation-dependent. Figure out which it is, since 22570# not all implementations provide the %pointer and %array declarations. 22571ac_cv_prog_lex_yytext_pointer=no 22572cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22573/* end confdefs.h. */ 22574 22575 #define YYTEXT_POINTER 1 22576`cat $LEX_OUTPUT_ROOT.c` 22577_ACEOF 22578if ac_fn_c_try_compile "$LINENO" 22579then : 22580 ac_cv_prog_lex_yytext_pointer=yes 22581fi 22582rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22583 22584fi 22585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 22586printf "%s\n" "$ac_cv_prog_lex_yytext_pointer" >&6; } 22587if test $ac_cv_prog_lex_yytext_pointer = yes; then 22588 22589printf "%s\n" "#define YYTEXT_POINTER 1" >>confdefs.h 22590 22591fi 22592 22593fi 22594rm -f conftest.l $LEX_OUTPUT_ROOT.c 22595 22596fi 22597for ac_prog in 'bison -y' byacc 22598do 22599 # Extract the first word of "$ac_prog", so it can be a program name with args. 22600set dummy $ac_prog; ac_word=$2 22601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22602printf %s "checking for $ac_word... " >&6; } 22603if test ${ac_cv_prog_YACC+y} 22604then : 22605 printf %s "(cached) " >&6 22606else $as_nop 22607 if test -n "$YACC"; then 22608 ac_cv_prog_YACC="$YACC" # Let the user override the test. 22609else 22610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22611for as_dir in $PATH 22612do 22613 IFS=$as_save_IFS 22614 case $as_dir in #((( 22615 '') as_dir=./ ;; 22616 */) ;; 22617 *) as_dir=$as_dir/ ;; 22618 esac 22619 for ac_exec_ext in '' $ac_executable_extensions; do 22620 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 22621 ac_cv_prog_YACC="$ac_prog" 22622 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 22623 break 2 22624 fi 22625done 22626 done 22627IFS=$as_save_IFS 22628 22629fi 22630fi 22631YACC=$ac_cv_prog_YACC 22632if test -n "$YACC"; then 22633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 22634printf "%s\n" "$YACC" >&6; } 22635else 22636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22637printf "%s\n" "no" >&6; } 22638fi 22639 22640 22641 test -n "$YACC" && break 22642done 22643test -n "$YACC" || YACC="yacc" 22644 22645# Check whether --enable-largefile was given. 22646if test ${enable_largefile+y} 22647then : 22648 enableval=$enable_largefile; 22649fi 22650 22651if test "$enable_largefile" != no; then 22652 22653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 22654printf %s "checking for special C compiler options needed for large files... " >&6; } 22655if test ${ac_cv_sys_largefile_CC+y} 22656then : 22657 printf %s "(cached) " >&6 22658else $as_nop 22659 ac_cv_sys_largefile_CC=no 22660 if test "$GCC" != yes; then 22661 ac_save_CC=$CC 22662 while :; do 22663 # IRIX 6.2 and later do not support large files by default, 22664 # so use the C compiler's -n32 option if that helps. 22665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22666/* end confdefs.h. */ 22667#include <sys/types.h> 22668 /* Check that off_t can represent 2**63 - 1 correctly. 22669 We can't simply define LARGE_OFF_T to be 9223372036854775807, 22670 since some C++ compilers masquerading as C compilers 22671 incorrectly reject 9223372036854775807. */ 22672#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 22673 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 22674 && LARGE_OFF_T % 2147483647 == 1) 22675 ? 1 : -1]; 22676int 22677main (void) 22678{ 22679 22680 ; 22681 return 0; 22682} 22683_ACEOF 22684 if ac_fn_c_try_compile "$LINENO" 22685then : 22686 break 22687fi 22688rm -f core conftest.err conftest.$ac_objext conftest.beam 22689 CC="$CC -n32" 22690 if ac_fn_c_try_compile "$LINENO" 22691then : 22692 ac_cv_sys_largefile_CC=' -n32'; break 22693fi 22694rm -f core conftest.err conftest.$ac_objext conftest.beam 22695 break 22696 done 22697 CC=$ac_save_CC 22698 rm -f conftest.$ac_ext 22699 fi 22700fi 22701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 22702printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } 22703 if test "$ac_cv_sys_largefile_CC" != no; then 22704 CC=$CC$ac_cv_sys_largefile_CC 22705 fi 22706 22707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 22708printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 22709if test ${ac_cv_sys_file_offset_bits+y} 22710then : 22711 printf %s "(cached) " >&6 22712else $as_nop 22713 while :; do 22714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22715/* end confdefs.h. */ 22716#include <sys/types.h> 22717 /* Check that off_t can represent 2**63 - 1 correctly. 22718 We can't simply define LARGE_OFF_T to be 9223372036854775807, 22719 since some C++ compilers masquerading as C compilers 22720 incorrectly reject 9223372036854775807. */ 22721#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 22722 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 22723 && LARGE_OFF_T % 2147483647 == 1) 22724 ? 1 : -1]; 22725int 22726main (void) 22727{ 22728 22729 ; 22730 return 0; 22731} 22732_ACEOF 22733if ac_fn_c_try_compile "$LINENO" 22734then : 22735 ac_cv_sys_file_offset_bits=no; break 22736fi 22737rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22739/* end confdefs.h. */ 22740#define _FILE_OFFSET_BITS 64 22741#include <sys/types.h> 22742 /* Check that off_t can represent 2**63 - 1 correctly. 22743 We can't simply define LARGE_OFF_T to be 9223372036854775807, 22744 since some C++ compilers masquerading as C compilers 22745 incorrectly reject 9223372036854775807. */ 22746#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 22747 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 22748 && LARGE_OFF_T % 2147483647 == 1) 22749 ? 1 : -1]; 22750int 22751main (void) 22752{ 22753 22754 ; 22755 return 0; 22756} 22757_ACEOF 22758if ac_fn_c_try_compile "$LINENO" 22759then : 22760 ac_cv_sys_file_offset_bits=64; break 22761fi 22762rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22763 ac_cv_sys_file_offset_bits=unknown 22764 break 22765done 22766fi 22767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 22768printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } 22769case $ac_cv_sys_file_offset_bits in #( 22770 no | unknown) ;; 22771 *) 22772printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h 22773;; 22774esac 22775rm -rf conftest* 22776 if test $ac_cv_sys_file_offset_bits = unknown; then 22777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 22778printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } 22779if test ${ac_cv_sys_large_files+y} 22780then : 22781 printf %s "(cached) " >&6 22782else $as_nop 22783 while :; do 22784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22785/* end confdefs.h. */ 22786#include <sys/types.h> 22787 /* Check that off_t can represent 2**63 - 1 correctly. 22788 We can't simply define LARGE_OFF_T to be 9223372036854775807, 22789 since some C++ compilers masquerading as C compilers 22790 incorrectly reject 9223372036854775807. */ 22791#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 22792 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 22793 && LARGE_OFF_T % 2147483647 == 1) 22794 ? 1 : -1]; 22795int 22796main (void) 22797{ 22798 22799 ; 22800 return 0; 22801} 22802_ACEOF 22803if ac_fn_c_try_compile "$LINENO" 22804then : 22805 ac_cv_sys_large_files=no; break 22806fi 22807rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22809/* end confdefs.h. */ 22810#define _LARGE_FILES 1 22811#include <sys/types.h> 22812 /* Check that off_t can represent 2**63 - 1 correctly. 22813 We can't simply define LARGE_OFF_T to be 9223372036854775807, 22814 since some C++ compilers masquerading as C compilers 22815 incorrectly reject 9223372036854775807. */ 22816#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 22817 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 22818 && LARGE_OFF_T % 2147483647 == 1) 22819 ? 1 : -1]; 22820int 22821main (void) 22822{ 22823 22824 ; 22825 return 0; 22826} 22827_ACEOF 22828if ac_fn_c_try_compile "$LINENO" 22829then : 22830 ac_cv_sys_large_files=1; break 22831fi 22832rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22833 ac_cv_sys_large_files=unknown 22834 break 22835done 22836fi 22837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 22838printf "%s\n" "$ac_cv_sys_large_files" >&6; } 22839case $ac_cv_sys_large_files in #( 22840 no | unknown) ;; 22841 *) 22842printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h 22843;; 22844esac 22845rm -rf conftest* 22846 fi 22847fi 22848 22849ac_ext=c 22850ac_cpp='$CPP $CPPFLAGS' 22851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22853ac_compiler_gnu=$ac_cv_c_compiler_gnu 22854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 22855printf %s "checking how to run the C preprocessor... " >&6; } 22856# On Suns, sometimes $CPP names a directory. 22857if test -n "$CPP" && test -d "$CPP"; then 22858 CPP= 22859fi 22860if test -z "$CPP"; then 22861 if test ${ac_cv_prog_CPP+y} 22862then : 22863 printf %s "(cached) " >&6 22864else $as_nop 22865 # Double quotes because $CC needs to be expanded 22866 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 22867 do 22868 ac_preproc_ok=false 22869for ac_c_preproc_warn_flag in '' yes 22870do 22871 # Use a header file that comes with gcc, so configuring glibc 22872 # with a fresh cross-compiler works. 22873 # On the NeXT, cc -E runs the code through the compiler's parser, 22874 # not just through cpp. "Syntax error" is here to catch this case. 22875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22876/* end confdefs.h. */ 22877#include <limits.h> 22878 Syntax error 22879_ACEOF 22880if ac_fn_c_try_cpp "$LINENO" 22881then : 22882 22883else $as_nop 22884 # Broken: fails on valid input. 22885continue 22886fi 22887rm -f conftest.err conftest.i conftest.$ac_ext 22888 22889 # OK, works on sane cases. Now check whether nonexistent headers 22890 # can be detected and how. 22891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22892/* end confdefs.h. */ 22893#include <ac_nonexistent.h> 22894_ACEOF 22895if ac_fn_c_try_cpp "$LINENO" 22896then : 22897 # Broken: success on invalid input. 22898continue 22899else $as_nop 22900 # Passes both tests. 22901ac_preproc_ok=: 22902break 22903fi 22904rm -f conftest.err conftest.i conftest.$ac_ext 22905 22906done 22907# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 22908rm -f conftest.i conftest.err conftest.$ac_ext 22909if $ac_preproc_ok 22910then : 22911 break 22912fi 22913 22914 done 22915 ac_cv_prog_CPP=$CPP 22916 22917fi 22918 CPP=$ac_cv_prog_CPP 22919else 22920 ac_cv_prog_CPP=$CPP 22921fi 22922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 22923printf "%s\n" "$CPP" >&6; } 22924ac_preproc_ok=false 22925for ac_c_preproc_warn_flag in '' yes 22926do 22927 # Use a header file that comes with gcc, so configuring glibc 22928 # with a fresh cross-compiler works. 22929 # On the NeXT, cc -E runs the code through the compiler's parser, 22930 # not just through cpp. "Syntax error" is here to catch this case. 22931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22932/* end confdefs.h. */ 22933#include <limits.h> 22934 Syntax error 22935_ACEOF 22936if ac_fn_c_try_cpp "$LINENO" 22937then : 22938 22939else $as_nop 22940 # Broken: fails on valid input. 22941continue 22942fi 22943rm -f conftest.err conftest.i conftest.$ac_ext 22944 22945 # OK, works on sane cases. Now check whether nonexistent headers 22946 # can be detected and how. 22947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22948/* end confdefs.h. */ 22949#include <ac_nonexistent.h> 22950_ACEOF 22951if ac_fn_c_try_cpp "$LINENO" 22952then : 22953 # Broken: success on invalid input. 22954continue 22955else $as_nop 22956 # Passes both tests. 22957ac_preproc_ok=: 22958break 22959fi 22960rm -f conftest.err conftest.i conftest.$ac_ext 22961 22962done 22963# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 22964rm -f conftest.i conftest.err conftest.$ac_ext 22965if $ac_preproc_ok 22966then : 22967 22968else $as_nop 22969 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22970printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 22971as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 22972See \`config.log' for more details" "$LINENO" 5; } 22973fi 22974 22975ac_ext=c 22976ac_cpp='$CPP $CPPFLAGS' 22977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22979ac_compiler_gnu=$ac_cv_c_compiler_gnu 22980 22981 22982 22983if test -n "$ac_tool_prefix"; then 22984 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args. 22985set dummy ${ac_tool_prefix}cpp; ac_word=$2 22986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22987printf %s "checking for $ac_word... " >&6; } 22988if test ${ac_cv_path_RAWCPP+y} 22989then : 22990 printf %s "(cached) " >&6 22991else $as_nop 22992 case $RAWCPP in 22993 [\\/]* | ?:[\\/]*) 22994 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path. 22995 ;; 22996 *) 22997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22998as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 22999for as_dir in $as_dummy 23000do 23001 IFS=$as_save_IFS 23002 case $as_dir in #((( 23003 '') as_dir=./ ;; 23004 */) ;; 23005 *) as_dir=$as_dir/ ;; 23006 esac 23007 for ac_exec_ext in '' $ac_executable_extensions; do 23008 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 23009 ac_cv_path_RAWCPP="$as_dir$ac_word$ac_exec_ext" 23010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 23011 break 2 23012 fi 23013done 23014 done 23015IFS=$as_save_IFS 23016 23017 ;; 23018esac 23019fi 23020RAWCPP=$ac_cv_path_RAWCPP 23021if test -n "$RAWCPP"; then 23022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5 23023printf "%s\n" "$RAWCPP" >&6; } 23024else 23025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23026printf "%s\n" "no" >&6; } 23027fi 23028 23029 23030fi 23031if test -z "$ac_cv_path_RAWCPP"; then 23032 ac_pt_RAWCPP=$RAWCPP 23033 # Extract the first word of "cpp", so it can be a program name with args. 23034set dummy cpp; ac_word=$2 23035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23036printf %s "checking for $ac_word... " >&6; } 23037if test ${ac_cv_path_ac_pt_RAWCPP+y} 23038then : 23039 printf %s "(cached) " >&6 23040else $as_nop 23041 case $ac_pt_RAWCPP in 23042 [\\/]* | ?:[\\/]*) 23043 ac_cv_path_ac_pt_RAWCPP="$ac_pt_RAWCPP" # Let the user override the test with a path. 23044 ;; 23045 *) 23046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23047as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 23048for as_dir in $as_dummy 23049do 23050 IFS=$as_save_IFS 23051 case $as_dir in #((( 23052 '') as_dir=./ ;; 23053 */) ;; 23054 *) as_dir=$as_dir/ ;; 23055 esac 23056 for ac_exec_ext in '' $ac_executable_extensions; do 23057 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 23058 ac_cv_path_ac_pt_RAWCPP="$as_dir$ac_word$ac_exec_ext" 23059 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 23060 break 2 23061 fi 23062done 23063 done 23064IFS=$as_save_IFS 23065 23066 ;; 23067esac 23068fi 23069ac_pt_RAWCPP=$ac_cv_path_ac_pt_RAWCPP 23070if test -n "$ac_pt_RAWCPP"; then 23071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RAWCPP" >&5 23072printf "%s\n" "$ac_pt_RAWCPP" >&6; } 23073else 23074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23075printf "%s\n" "no" >&6; } 23076fi 23077 23078 if test "x$ac_pt_RAWCPP" = x; then 23079 RAWCPP="${CPP}" 23080 else 23081 case $cross_compiling:$ac_tool_warned in 23082yes:) 23083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 23084printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 23085ac_tool_warned=yes ;; 23086esac 23087 RAWCPP=$ac_pt_RAWCPP 23088 fi 23089else 23090 RAWCPP="$ac_cv_path_RAWCPP" 23091fi 23092 23093 23094# Check for flag to avoid builtin definitions - assumes unix is predefined, 23095# which is not the best choice for supporting other OS'es, but covers most 23096# of the ones we need for now. 23097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5 23098printf %s "checking if $RAWCPP requires -undef... " >&6; } 23099cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23100/* end confdefs.h. */ 23101Does cpp redefine unix ? 23102_ACEOF 23103if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 23104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23105printf "%s\n" "no" >&6; } 23106else 23107 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 23108 RAWCPPFLAGS=-undef 23109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23110printf "%s\n" "yes" >&6; } 23111 # under Cygwin unix is still defined even with -undef 23112 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 23113 RAWCPPFLAGS="-undef -ansi" 23114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5 23115printf "%s\n" "yes, with -ansi" >&6; } 23116 else 23117 as_fn_error $? "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5 23118 fi 23119fi 23120rm -f conftest.$ac_ext 23121 23122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5 23123printf %s "checking if $RAWCPP requires -traditional... " >&6; } 23124cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23125/* end confdefs.h. */ 23126Does cpp preserve "whitespace"? 23127_ACEOF 23128if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 23129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23130printf "%s\n" "no" >&6; } 23131else 23132 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 23133 TRADITIONALCPPFLAGS="-traditional" 23134 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 23135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23136printf "%s\n" "yes" >&6; } 23137 else 23138 as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5 23139 fi 23140fi 23141rm -f conftest.$ac_ext 23142 23143 23144 23145 23146# Quoted so that make will expand $(CWARNFLAGS) in makefiles to allow 23147# easier overrides at build time. 23148XSERVER_CFLAGS='$(CWARNFLAGS)' 23149 23150if test "x$GCC" = xyes ; then 23151 XSERVER_CFLAGS="$XSERVER_CFLAGS -fno-strict-aliasing" 23152fi 23153 23154 23155# Check whether --with-dtrace was given. 23156if test ${with_dtrace+y} 23157then : 23158 withval=$with_dtrace; WDTRACE=$withval 23159else $as_nop 23160 WDTRACE=auto 23161fi 23162 23163if test "x$WDTRACE" = "xyes" -o "x$WDTRACE" = "xauto" ; then 23164 # Extract the first word of "dtrace", so it can be a program name with args. 23165set dummy dtrace; ac_word=$2 23166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23167printf %s "checking for $ac_word... " >&6; } 23168if test ${ac_cv_path_DTRACE+y} 23169then : 23170 printf %s "(cached) " >&6 23171else $as_nop 23172 case $DTRACE in 23173 [\\/]* | ?:[\\/]*) 23174 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 23175 ;; 23176 *) 23177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23178as_dummy="$PATH:/usr/sbin" 23179for as_dir in $as_dummy 23180do 23181 IFS=$as_save_IFS 23182 case $as_dir in #((( 23183 '') as_dir=./ ;; 23184 */) ;; 23185 *) as_dir=$as_dir/ ;; 23186 esac 23187 for ac_exec_ext in '' $ac_executable_extensions; do 23188 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 23189 ac_cv_path_DTRACE="$as_dir$ac_word$ac_exec_ext" 23190 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 23191 break 2 23192 fi 23193done 23194 done 23195IFS=$as_save_IFS 23196 23197 test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not_found" 23198 ;; 23199esac 23200fi 23201DTRACE=$ac_cv_path_DTRACE 23202if test -n "$DTRACE"; then 23203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 23204printf "%s\n" "$DTRACE" >&6; } 23205else 23206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23207printf "%s\n" "no" >&6; } 23208fi 23209 23210 23211 if test "x$DTRACE" = "xnot_found" ; then 23212 if test "x$WDTRACE" = "xyes" ; then 23213 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23214printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 23215as_fn_error $? "dtrace requested but not found 23216See \`config.log' for more details" "$LINENO" 5; } 23217 fi 23218 WDTRACE="no" 23219 else 23220 ac_fn_c_check_header_compile "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default" 23221if test "x$ac_cv_header_sys_sdt_h" = xyes 23222then : 23223 HAS_SDT_H="yes" 23224else $as_nop 23225 HAS_SDT_H="no" 23226fi 23227 23228 if test "x$WDTRACE" = "xauto" -a "x$HAS_SDT_H" = "xno" ; then 23229 WDTRACE="no" 23230 fi 23231 fi 23232fi 23233if test "x$WDTRACE" != "xno" ; then 23234 23235printf "%s\n" "#define XSERVER_DTRACE 1" >>confdefs.h 23236 23237 23238# Solaris/OpenSolaris require dtrace -G to build dtrace probe information into 23239# object files, and require linking with those as relocatable objects, not .a 23240# archives. MacOS X handles all this in the normal compiler toolchain, and on 23241# some releases (like Tiger), will error out on dtrace -G. For now, other 23242# platforms with Dtrace ports are assumed to support -G (the FreeBSD and Linux 23243# ports appear to, based on my web searches, but have not yet been tested). 23244 case $host_os in 23245 darwin*) SPECIAL_DTRACE_OBJECTS=no ;; 23246 *) SPECIAL_DTRACE_OBJECTS=yes ;; 23247 esac 23248fi 23249 if test "x$WDTRACE" != "xno"; then 23250 XSERVER_DTRACE_TRUE= 23251 XSERVER_DTRACE_FALSE='#' 23252else 23253 XSERVER_DTRACE_TRUE='#' 23254 XSERVER_DTRACE_FALSE= 23255fi 23256 23257 if test "x$SPECIAL_DTRACE_OBJECTS" = "xyes"; then 23258 SPECIAL_DTRACE_OBJECTS_TRUE= 23259 SPECIAL_DTRACE_OBJECTS_FALSE='#' 23260else 23261 SPECIAL_DTRACE_OBJECTS_TRUE='#' 23262 SPECIAL_DTRACE_OBJECTS_FALSE= 23263fi 23264 23265 23266ac_header_dirent=no 23267for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 23268 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 23269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 23270printf %s "checking for $ac_hdr that defines DIR... " >&6; } 23271if eval test \${$as_ac_Header+y} 23272then : 23273 printf %s "(cached) " >&6 23274else $as_nop 23275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23276/* end confdefs.h. */ 23277#include <sys/types.h> 23278#include <$ac_hdr> 23279 23280int 23281main (void) 23282{ 23283if ((DIR *) 0) 23284return 0; 23285 ; 23286 return 0; 23287} 23288_ACEOF 23289if ac_fn_c_try_compile "$LINENO" 23290then : 23291 eval "$as_ac_Header=yes" 23292else $as_nop 23293 eval "$as_ac_Header=no" 23294fi 23295rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23296fi 23297eval ac_res=\$$as_ac_Header 23298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 23299printf "%s\n" "$ac_res" >&6; } 23300if eval test \"x\$"$as_ac_Header"\" = x"yes" 23301then : 23302 cat >>confdefs.h <<_ACEOF 23303#define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1 23304_ACEOF 23305 23306ac_header_dirent=$ac_hdr; break 23307fi 23308 23309done 23310# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 23311if test $ac_header_dirent = dirent.h; then 23312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 23313printf %s "checking for library containing opendir... " >&6; } 23314if test ${ac_cv_search_opendir+y} 23315then : 23316 printf %s "(cached) " >&6 23317else $as_nop 23318 ac_func_search_save_LIBS=$LIBS 23319cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23320/* end confdefs.h. */ 23321 23322/* Override any GCC internal prototype to avoid an error. 23323 Use char because int might match the return type of a GCC 23324 builtin and then its argument prototype would still apply. 23325 The 'extern "C"' is for builds by C++ compilers; 23326 although this is not generally supported in C code supporting it here 23327 has little cost and some practical benefit (sr 110532). */ 23328#ifdef __cplusplus 23329extern "C" 23330#endif 23331char opendir (void); 23332int 23333main (void) 23334{ 23335return opendir (); 23336 ; 23337 return 0; 23338} 23339_ACEOF 23340for ac_lib in '' dir 23341do 23342 if test -z "$ac_lib"; then 23343 ac_res="none required" 23344 else 23345 ac_res=-l$ac_lib 23346 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 23347 fi 23348 if ac_fn_c_try_link "$LINENO" 23349then : 23350 ac_cv_search_opendir=$ac_res 23351fi 23352rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23353 conftest$ac_exeext 23354 if test ${ac_cv_search_opendir+y} 23355then : 23356 break 23357fi 23358done 23359if test ${ac_cv_search_opendir+y} 23360then : 23361 23362else $as_nop 23363 ac_cv_search_opendir=no 23364fi 23365rm conftest.$ac_ext 23366LIBS=$ac_func_search_save_LIBS 23367fi 23368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 23369printf "%s\n" "$ac_cv_search_opendir" >&6; } 23370ac_res=$ac_cv_search_opendir 23371if test "$ac_res" != no 23372then : 23373 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 23374 23375fi 23376 23377else 23378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 23379printf %s "checking for library containing opendir... " >&6; } 23380if test ${ac_cv_search_opendir+y} 23381then : 23382 printf %s "(cached) " >&6 23383else $as_nop 23384 ac_func_search_save_LIBS=$LIBS 23385cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23386/* end confdefs.h. */ 23387 23388/* Override any GCC internal prototype to avoid an error. 23389 Use char because int might match the return type of a GCC 23390 builtin and then its argument prototype would still apply. 23391 The 'extern "C"' is for builds by C++ compilers; 23392 although this is not generally supported in C code supporting it here 23393 has little cost and some practical benefit (sr 110532). */ 23394#ifdef __cplusplus 23395extern "C" 23396#endif 23397char opendir (void); 23398int 23399main (void) 23400{ 23401return opendir (); 23402 ; 23403 return 0; 23404} 23405_ACEOF 23406for ac_lib in '' x 23407do 23408 if test -z "$ac_lib"; then 23409 ac_res="none required" 23410 else 23411 ac_res=-l$ac_lib 23412 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 23413 fi 23414 if ac_fn_c_try_link "$LINENO" 23415then : 23416 ac_cv_search_opendir=$ac_res 23417fi 23418rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23419 conftest$ac_exeext 23420 if test ${ac_cv_search_opendir+y} 23421then : 23422 break 23423fi 23424done 23425if test ${ac_cv_search_opendir+y} 23426then : 23427 23428else $as_nop 23429 ac_cv_search_opendir=no 23430fi 23431rm conftest.$ac_ext 23432LIBS=$ac_func_search_save_LIBS 23433fi 23434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 23435printf "%s\n" "$ac_cv_search_opendir" >&6; } 23436ac_res=$ac_cv_search_opendir 23437if test "$ac_res" != no 23438then : 23439 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 23440 23441fi 23442 23443fi 23444 23445# Autoupdate added the next two lines to ensure that your configure 23446# script's behavior did not change. They are probably safe to remove. 23447 23448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 23449printf %s "checking for egrep... " >&6; } 23450if test ${ac_cv_path_EGREP+y} 23451then : 23452 printf %s "(cached) " >&6 23453else $as_nop 23454 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 23455 then ac_cv_path_EGREP="$GREP -E" 23456 else 23457 if test -z "$EGREP"; then 23458 ac_path_EGREP_found=false 23459 # Loop through the user's path and test for each of PROGNAME-LIST 23460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23461for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 23462do 23463 IFS=$as_save_IFS 23464 case $as_dir in #((( 23465 '') as_dir=./ ;; 23466 */) ;; 23467 *) as_dir=$as_dir/ ;; 23468 esac 23469 for ac_prog in egrep 23470 do 23471 for ac_exec_ext in '' $ac_executable_extensions; do 23472 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 23473 as_fn_executable_p "$ac_path_EGREP" || continue 23474# Check for GNU ac_path_EGREP and select it if it is found. 23475 # Check for GNU $ac_path_EGREP 23476case `"$ac_path_EGREP" --version 2>&1` in 23477*GNU*) 23478 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 23479*) 23480 ac_count=0 23481 printf %s 0123456789 >"conftest.in" 23482 while : 23483 do 23484 cat "conftest.in" "conftest.in" >"conftest.tmp" 23485 mv "conftest.tmp" "conftest.in" 23486 cp "conftest.in" "conftest.nl" 23487 printf "%s\n" 'EGREP' >> "conftest.nl" 23488 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 23489 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 23490 as_fn_arith $ac_count + 1 && ac_count=$as_val 23491 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 23492 # Best one so far, save it but keep looking for a better one 23493 ac_cv_path_EGREP="$ac_path_EGREP" 23494 ac_path_EGREP_max=$ac_count 23495 fi 23496 # 10*(2^10) chars as input seems more than enough 23497 test $ac_count -gt 10 && break 23498 done 23499 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 23500esac 23501 23502 $ac_path_EGREP_found && break 3 23503 done 23504 done 23505 done 23506IFS=$as_save_IFS 23507 if test -z "$ac_cv_path_EGREP"; then 23508 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 23509 fi 23510else 23511 ac_cv_path_EGREP=$EGREP 23512fi 23513 23514 fi 23515fi 23516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 23517printf "%s\n" "$ac_cv_path_EGREP" >&6; } 23518 EGREP="$ac_cv_path_EGREP" 23519 23520 23521 23522ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" 23523if test "x$ac_cv_header_fcntl_h" = xyes 23524then : 23525 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h 23526 23527fi 23528ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 23529if test "x$ac_cv_header_stdlib_h" = xyes 23530then : 23531 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h 23532 23533fi 23534ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" 23535if test "x$ac_cv_header_string_h" = xyes 23536then : 23537 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h 23538 23539fi 23540ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 23541if test "x$ac_cv_header_unistd_h" = xyes 23542then : 23543 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h 23544 23545fi 23546ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 23547if test "x$ac_cv_header_dlfcn_h" = xyes 23548then : 23549 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 23550 23551fi 23552ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$ac_includes_default" 23553if test "x$ac_cv_header_stropts_h" = xyes 23554then : 23555 printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h 23556 23557fi 23558ac_fn_c_check_header_compile "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default" 23559if test "x$ac_cv_header_fnmatch_h" = xyes 23560then : 23561 printf "%s\n" "#define HAVE_FNMATCH_H 1" >>confdefs.h 23562 23563fi 23564ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" 23565if test "x$ac_cv_header_sys_mkdev_h" = xyes 23566then : 23567 printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h 23568 23569fi 23570ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" 23571if test "x$ac_cv_header_sys_sysmacros_h" = xyes 23572then : 23573 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h 23574 23575fi 23576ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default" 23577if test "x$ac_cv_header_sys_utsname_h" = xyes 23578then : 23579 printf "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h 23580 23581fi 23582 23583 23584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 23585printf %s "checking for an ANSI C-conforming const... " >&6; } 23586if test ${ac_cv_c_const+y} 23587then : 23588 printf %s "(cached) " >&6 23589else $as_nop 23590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23591/* end confdefs.h. */ 23592 23593int 23594main (void) 23595{ 23596 23597#ifndef __cplusplus 23598 /* Ultrix mips cc rejects this sort of thing. */ 23599 typedef int charset[2]; 23600 const charset cs = { 0, 0 }; 23601 /* SunOS 4.1.1 cc rejects this. */ 23602 char const *const *pcpcc; 23603 char **ppc; 23604 /* NEC SVR4.0.2 mips cc rejects this. */ 23605 struct point {int x, y;}; 23606 static struct point const zero = {0,0}; 23607 /* IBM XL C 1.02.0.0 rejects this. 23608 It does not let you subtract one const X* pointer from another in 23609 an arm of an if-expression whose if-part is not a constant 23610 expression */ 23611 const char *g = "string"; 23612 pcpcc = &g + (g ? g-g : 0); 23613 /* HPUX 7.0 cc rejects these. */ 23614 ++pcpcc; 23615 ppc = (char**) pcpcc; 23616 pcpcc = (char const *const *) ppc; 23617 { /* SCO 3.2v4 cc rejects this sort of thing. */ 23618 char tx; 23619 char *t = &tx; 23620 char const *s = 0 ? (char *) 0 : (char const *) 0; 23621 23622 *t++ = 0; 23623 if (s) return 0; 23624 } 23625 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 23626 int x[] = {25, 17}; 23627 const int *foo = &x[0]; 23628 ++foo; 23629 } 23630 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 23631 typedef const int *iptr; 23632 iptr p = 0; 23633 ++p; 23634 } 23635 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying 23636 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 23637 struct s { int j; const int *ap[3]; } bx; 23638 struct s *b = &bx; b->j = 5; 23639 } 23640 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 23641 const int foo = 10; 23642 if (!foo) return 0; 23643 } 23644 return !cs[0] && !zero.x; 23645#endif 23646 23647 ; 23648 return 0; 23649} 23650_ACEOF 23651if ac_fn_c_try_compile "$LINENO" 23652then : 23653 ac_cv_c_const=yes 23654else $as_nop 23655 ac_cv_c_const=no 23656fi 23657rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23658fi 23659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 23660printf "%s\n" "$ac_cv_c_const" >&6; } 23661if test $ac_cv_c_const = no; then 23662 23663printf "%s\n" "#define const /**/" >>confdefs.h 23664 23665fi 23666 23667 23668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for typeof syntax and keyword spelling" >&5 23669printf %s "checking for typeof syntax and keyword spelling... " >&6; } 23670if test ${ac_cv_c_typeof+y} 23671then : 23672 printf %s "(cached) " >&6 23673else $as_nop 23674 ac_cv_c_typeof=no 23675 for ac_kw in typeof __typeof__ no; do 23676 test $ac_kw = no && break 23677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23678/* end confdefs.h. */ 23679 23680int 23681main (void) 23682{ 23683 23684 int value; 23685 typedef struct { 23686 char a [1 23687 + ! (($ac_kw (value)) 23688 (($ac_kw (value)) 0 < ($ac_kw (value)) -1 23689 ? ($ac_kw (value)) - 1 23690 : ~ (~ ($ac_kw (value)) 0 23691 << sizeof ($ac_kw (value)))))]; } 23692 ac__typeof_type_; 23693 return 23694 (! ((void) ((ac__typeof_type_ *) 0), 0)); 23695 23696 ; 23697 return 0; 23698} 23699_ACEOF 23700if ac_fn_c_try_compile "$LINENO" 23701then : 23702 ac_cv_c_typeof=$ac_kw 23703fi 23704rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23705 test $ac_cv_c_typeof != no && break 23706 done 23707fi 23708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_typeof" >&5 23709printf "%s\n" "$ac_cv_c_typeof" >&6; } 23710 if test $ac_cv_c_typeof != no; then 23711 23712printf "%s\n" "#define HAVE_TYPEOF 1" >>confdefs.h 23713 23714 if test $ac_cv_c_typeof != typeof; then 23715 23716printf "%s\n" "#define typeof $ac_cv_c_typeof" >>confdefs.h 23717 23718 fi 23719 fi 23720 23721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 23722printf %s "checking whether byte ordering is bigendian... " >&6; } 23723if test ${ac_cv_c_bigendian+y} 23724then : 23725 printf %s "(cached) " >&6 23726else $as_nop 23727 ac_cv_c_bigendian=unknown 23728 # See if we're dealing with a universal compiler. 23729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23730/* end confdefs.h. */ 23731#ifndef __APPLE_CC__ 23732 not a universal capable compiler 23733 #endif 23734 typedef int dummy; 23735 23736_ACEOF 23737if ac_fn_c_try_compile "$LINENO" 23738then : 23739 23740 # Check for potential -arch flags. It is not universal unless 23741 # there are at least two -arch flags with different values. 23742 ac_arch= 23743 ac_prev= 23744 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 23745 if test -n "$ac_prev"; then 23746 case $ac_word in 23747 i?86 | x86_64 | ppc | ppc64) 23748 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 23749 ac_arch=$ac_word 23750 else 23751 ac_cv_c_bigendian=universal 23752 break 23753 fi 23754 ;; 23755 esac 23756 ac_prev= 23757 elif test "x$ac_word" = "x-arch"; then 23758 ac_prev=arch 23759 fi 23760 done 23761fi 23762rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23763 if test $ac_cv_c_bigendian = unknown; then 23764 # See if sys/param.h defines the BYTE_ORDER macro. 23765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23766/* end confdefs.h. */ 23767#include <sys/types.h> 23768 #include <sys/param.h> 23769 23770int 23771main (void) 23772{ 23773#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 23774 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 23775 && LITTLE_ENDIAN) 23776 bogus endian macros 23777 #endif 23778 23779 ; 23780 return 0; 23781} 23782_ACEOF 23783if ac_fn_c_try_compile "$LINENO" 23784then : 23785 # It does; now see whether it defined to BIG_ENDIAN or not. 23786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23787/* end confdefs.h. */ 23788#include <sys/types.h> 23789 #include <sys/param.h> 23790 23791int 23792main (void) 23793{ 23794#if BYTE_ORDER != BIG_ENDIAN 23795 not big endian 23796 #endif 23797 23798 ; 23799 return 0; 23800} 23801_ACEOF 23802if ac_fn_c_try_compile "$LINENO" 23803then : 23804 ac_cv_c_bigendian=yes 23805else $as_nop 23806 ac_cv_c_bigendian=no 23807fi 23808rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23809fi 23810rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23811 fi 23812 if test $ac_cv_c_bigendian = unknown; then 23813 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 23814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23815/* end confdefs.h. */ 23816#include <limits.h> 23817 23818int 23819main (void) 23820{ 23821#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 23822 bogus endian macros 23823 #endif 23824 23825 ; 23826 return 0; 23827} 23828_ACEOF 23829if ac_fn_c_try_compile "$LINENO" 23830then : 23831 # It does; now see whether it defined to _BIG_ENDIAN or not. 23832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23833/* end confdefs.h. */ 23834#include <limits.h> 23835 23836int 23837main (void) 23838{ 23839#ifndef _BIG_ENDIAN 23840 not big endian 23841 #endif 23842 23843 ; 23844 return 0; 23845} 23846_ACEOF 23847if ac_fn_c_try_compile "$LINENO" 23848then : 23849 ac_cv_c_bigendian=yes 23850else $as_nop 23851 ac_cv_c_bigendian=no 23852fi 23853rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23854fi 23855rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23856 fi 23857 if test $ac_cv_c_bigendian = unknown; then 23858 # Compile a test program. 23859 if test "$cross_compiling" = yes 23860then : 23861 # Try to guess by grepping values from an object file. 23862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23863/* end confdefs.h. */ 23864unsigned short int ascii_mm[] = 23865 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 23866 unsigned short int ascii_ii[] = 23867 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 23868 int use_ascii (int i) { 23869 return ascii_mm[i] + ascii_ii[i]; 23870 } 23871 unsigned short int ebcdic_ii[] = 23872 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 23873 unsigned short int ebcdic_mm[] = 23874 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 23875 int use_ebcdic (int i) { 23876 return ebcdic_mm[i] + ebcdic_ii[i]; 23877 } 23878 int 23879 main (int argc, char **argv) 23880 { 23881 /* Intimidate the compiler so that it does not 23882 optimize the arrays away. */ 23883 char *p = argv[0]; 23884 ascii_mm[1] = *p++; ebcdic_mm[1] = *p++; 23885 ascii_ii[1] = *p++; ebcdic_ii[1] = *p++; 23886 return use_ascii (argc) == use_ebcdic (*p); 23887 } 23888_ACEOF 23889if ac_fn_c_try_link "$LINENO" 23890then : 23891 if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then 23892 ac_cv_c_bigendian=yes 23893 fi 23894 if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then 23895 if test "$ac_cv_c_bigendian" = unknown; then 23896 ac_cv_c_bigendian=no 23897 else 23898 # finding both strings is unlikely to happen, but who knows? 23899 ac_cv_c_bigendian=unknown 23900 fi 23901 fi 23902fi 23903rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23904 conftest$ac_exeext conftest.$ac_ext 23905else $as_nop 23906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23907/* end confdefs.h. */ 23908$ac_includes_default 23909int 23910main (void) 23911{ 23912 23913 /* Are we little or big endian? From Harbison&Steele. */ 23914 union 23915 { 23916 long int l; 23917 char c[sizeof (long int)]; 23918 } u; 23919 u.l = 1; 23920 return u.c[sizeof (long int) - 1] == 1; 23921 23922 ; 23923 return 0; 23924} 23925_ACEOF 23926if ac_fn_c_try_run "$LINENO" 23927then : 23928 ac_cv_c_bigendian=no 23929else $as_nop 23930 ac_cv_c_bigendian=yes 23931fi 23932rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23933 conftest.$ac_objext conftest.beam conftest.$ac_ext 23934fi 23935 23936 fi 23937fi 23938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 23939printf "%s\n" "$ac_cv_c_bigendian" >&6; } 23940 case $ac_cv_c_bigendian in #( 23941 yes) 23942 23943printf "%s\n" "#define X_BYTE_ORDER X_BIG_ENDIAN" >>confdefs.h 23944;; #( 23945 no) 23946 23947printf "%s\n" "#define X_BYTE_ORDER X_LITTLE_ENDIAN" >>confdefs.h 23948 ;; #( 23949 universal) 23950 23951printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 23952 23953 ;; #( 23954 *) 23955 as_fn_error $? "unknown endianness 23956 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 23957 esac 23958 23959 23960# The cast to long int works around a bug in the HP C Compiler 23961# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23962# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23963# This bug is HP SR number 8606223364. 23964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 23965printf %s "checking size of unsigned long... " >&6; } 23966if test ${ac_cv_sizeof_unsigned_long+y} 23967then : 23968 printf %s "(cached) " >&6 23969else $as_nop 23970 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default" 23971then : 23972 23973else $as_nop 23974 if test "$ac_cv_type_unsigned_long" = yes; then 23975 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23976printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 23977as_fn_error 77 "cannot compute sizeof (unsigned long) 23978See \`config.log' for more details" "$LINENO" 5; } 23979 else 23980 ac_cv_sizeof_unsigned_long=0 23981 fi 23982fi 23983 23984fi 23985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 23986printf "%s\n" "$ac_cv_sizeof_unsigned_long" >&6; } 23987 23988 23989 23990printf "%s\n" "#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long" >>confdefs.h 23991 23992 23993if test "$ac_cv_sizeof_unsigned_long" = 8; then 23994 23995printf "%s\n" "#define _XSERVER64 1" >>confdefs.h 23996 23997fi 23998 23999 24000 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default 24001" 24002if test "x$ac_cv_type_pid_t" = xyes 24003then : 24004 24005else $as_nop 24006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24007/* end confdefs.h. */ 24008 24009 #if defined _WIN64 && !defined __CYGWIN__ 24010 LLP64 24011 #endif 24012 24013int 24014main (void) 24015{ 24016 24017 ; 24018 return 0; 24019} 24020 24021_ACEOF 24022if ac_fn_c_try_compile "$LINENO" 24023then : 24024 ac_pid_type='int' 24025else $as_nop 24026 ac_pid_type='__int64' 24027fi 24028rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24029 24030printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h 24031 24032 24033fi 24034 24035 24036 24037ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 24038if test "x$ac_cv_func_dlopen" = xyes 24039then : 24040 24041else $as_nop 24042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 24043printf %s "checking for dlopen in -ldl... " >&6; } 24044if test ${ac_cv_lib_dl_dlopen+y} 24045then : 24046 printf %s "(cached) " >&6 24047else $as_nop 24048 ac_check_lib_save_LIBS=$LIBS 24049LIBS="-ldl $LIBS" 24050cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24051/* end confdefs.h. */ 24052 24053/* Override any GCC internal prototype to avoid an error. 24054 Use char because int might match the return type of a GCC 24055 builtin and then its argument prototype would still apply. 24056 The 'extern "C"' is for builds by C++ compilers; 24057 although this is not generally supported in C code supporting it here 24058 has little cost and some practical benefit (sr 110532). */ 24059#ifdef __cplusplus 24060extern "C" 24061#endif 24062char dlopen (void); 24063int 24064main (void) 24065{ 24066return dlopen (); 24067 ; 24068 return 0; 24069} 24070_ACEOF 24071if ac_fn_c_try_link "$LINENO" 24072then : 24073 ac_cv_lib_dl_dlopen=yes 24074else $as_nop 24075 ac_cv_lib_dl_dlopen=no 24076fi 24077rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24078 conftest$ac_exeext conftest.$ac_ext 24079LIBS=$ac_check_lib_save_LIBS 24080fi 24081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 24082printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 24083if test "x$ac_cv_lib_dl_dlopen" = xyes 24084then : 24085 DLOPEN_LIBS="-ldl" 24086fi 24087 24088fi 24089 24090 24091 24092ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace" 24093if test "x$ac_cv_func_backtrace" = xyes 24094then : 24095 printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h 24096 24097fi 24098ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid" 24099if test "x$ac_cv_func_geteuid" = xyes 24100then : 24101 printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h 24102 24103fi 24104ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid" 24105if test "x$ac_cv_func_getuid" = xyes 24106then : 24107 printf "%s\n" "#define HAVE_GETUID 1" >>confdefs.h 24108 24109fi 24110ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid" 24111if test "x$ac_cv_func_issetugid" = xyes 24112then : 24113 printf "%s\n" "#define HAVE_ISSETUGID 1" >>confdefs.h 24114 24115fi 24116ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid" 24117if test "x$ac_cv_func_getresuid" = xyes 24118then : 24119 printf "%s\n" "#define HAVE_GETRESUID 1" >>confdefs.h 24120 24121fi 24122ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize" 24123if test "x$ac_cv_func_getdtablesize" = xyes 24124then : 24125 printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h 24126 24127fi 24128ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 24129if test "x$ac_cv_func_getifaddrs" = xyes 24130then : 24131 printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h 24132 24133fi 24134ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid" 24135if test "x$ac_cv_func_getpeereid" = xyes 24136then : 24137 printf "%s\n" "#define HAVE_GETPEEREID 1" >>confdefs.h 24138 24139fi 24140ac_fn_c_check_func "$LINENO" "getpeerucred" "ac_cv_func_getpeerucred" 24141if test "x$ac_cv_func_getpeerucred" = xyes 24142then : 24143 printf "%s\n" "#define HAVE_GETPEERUCRED 1" >>confdefs.h 24144 24145fi 24146ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname" 24147if test "x$ac_cv_func_getprogname" = xyes 24148then : 24149 printf "%s\n" "#define HAVE_GETPROGNAME 1" >>confdefs.h 24150 24151fi 24152ac_fn_c_check_func "$LINENO" "getzoneid" "ac_cv_func_getzoneid" 24153if test "x$ac_cv_func_getzoneid" = xyes 24154then : 24155 printf "%s\n" "#define HAVE_GETZONEID 1" >>confdefs.h 24156 24157fi 24158ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" 24159if test "x$ac_cv_func_mmap" = xyes 24160then : 24161 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h 24162 24163fi 24164ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate" 24165if test "x$ac_cv_func_posix_fallocate" = xyes 24166then : 24167 printf "%s\n" "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h 24168 24169fi 24170ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid" 24171if test "x$ac_cv_func_seteuid" = xyes 24172then : 24173 printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h 24174 24175fi 24176ac_fn_c_check_func "$LINENO" "shmctl64" "ac_cv_func_shmctl64" 24177if test "x$ac_cv_func_shmctl64" = xyes 24178then : 24179 printf "%s\n" "#define HAVE_SHMCTL64 1" >>confdefs.h 24180 24181fi 24182ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp" 24183if test "x$ac_cv_func_strncasecmp" = xyes 24184then : 24185 printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h 24186 24187fi 24188ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" 24189if test "x$ac_cv_func_vasprintf" = xyes 24190then : 24191 printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h 24192 24193fi 24194ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf" 24195if test "x$ac_cv_func_vsnprintf" = xyes 24196then : 24197 printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h 24198 24199fi 24200ac_fn_c_check_func "$LINENO" "walkcontext" "ac_cv_func_walkcontext" 24201if test "x$ac_cv_func_walkcontext" = xyes 24202then : 24203 printf "%s\n" "#define HAVE_WALKCONTEXT 1" >>confdefs.h 24204 24205fi 24206ac_fn_c_check_func "$LINENO" "setitimer" "ac_cv_func_setitimer" 24207if test "x$ac_cv_func_setitimer" = xyes 24208then : 24209 printf "%s\n" "#define HAVE_SETITIMER 1" >>confdefs.h 24210 24211fi 24212ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 24213if test "x$ac_cv_func_poll" = xyes 24214then : 24215 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h 24216 24217fi 24218ac_fn_c_check_func "$LINENO" "epoll_create1" "ac_cv_func_epoll_create1" 24219if test "x$ac_cv_func_epoll_create1" = xyes 24220then : 24221 printf "%s\n" "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h 24222 24223fi 24224ac_fn_c_check_func "$LINENO" "mkostemp" "ac_cv_func_mkostemp" 24225if test "x$ac_cv_func_mkostemp" = xyes 24226then : 24227 printf "%s\n" "#define HAVE_MKOSTEMP 1" >>confdefs.h 24228 24229fi 24230ac_fn_c_check_func "$LINENO" "memfd_create" "ac_cv_func_memfd_create" 24231if test "x$ac_cv_func_memfd_create" = xyes 24232then : 24233 printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h 24234 24235fi 24236ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask" 24237if test "x$ac_cv_func_sigprocmask" = xyes 24238then : 24239 printf "%s\n" "#define HAVE_SIGPROCMASK 1" >>confdefs.h 24240 24241fi 24242ac_fn_c_check_func "$LINENO" "isastream" "ac_cv_func_isastream" 24243if test "x$ac_cv_func_isastream" = xyes 24244then : 24245 printf "%s\n" "#define HAVE_ISASTREAM 1" >>confdefs.h 24246 24247fi 24248 24249 24250ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray" 24251if test "x$ac_cv_func_reallocarray" = xyes 24252then : 24253 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h 24254 24255else $as_nop 24256 case " $LIBOBJS " in 24257 *" reallocarray.$ac_objext "* ) ;; 24258 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext" 24259 ;; 24260esac 24261 24262fi 24263ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 24264if test "x$ac_cv_func_strcasecmp" = xyes 24265then : 24266 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 24267 24268else $as_nop 24269 case " $LIBOBJS " in 24270 *" strcasecmp.$ac_objext "* ) ;; 24271 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" 24272 ;; 24273esac 24274 24275fi 24276ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr" 24277if test "x$ac_cv_func_strcasestr" = xyes 24278then : 24279 printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h 24280 24281else $as_nop 24282 case " $LIBOBJS " in 24283 *" strcasestr.$ac_objext "* ) ;; 24284 *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext" 24285 ;; 24286esac 24287 24288fi 24289ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 24290if test "x$ac_cv_func_strlcat" = xyes 24291then : 24292 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h 24293 24294else $as_nop 24295 case " $LIBOBJS " in 24296 *" strlcat.$ac_objext "* ) ;; 24297 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 24298 ;; 24299esac 24300 24301fi 24302ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 24303if test "x$ac_cv_func_strlcpy" = xyes 24304then : 24305 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 24306 24307else $as_nop 24308 case " $LIBOBJS " in 24309 *" strlcpy.$ac_objext "* ) ;; 24310 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 24311 ;; 24312esac 24313 24314fi 24315ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup" 24316if test "x$ac_cv_func_strndup" = xyes 24317then : 24318 printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h 24319 24320else $as_nop 24321 case " $LIBOBJS " in 24322 *" strndup.$ac_objext "* ) ;; 24323 *) LIBOBJS="$LIBOBJS strndup.$ac_objext" 24324 ;; 24325esac 24326 24327fi 24328ac_fn_c_check_func "$LINENO" "timingsafe_memcmp" "ac_cv_func_timingsafe_memcmp" 24329if test "x$ac_cv_func_timingsafe_memcmp" = xyes 24330then : 24331 printf "%s\n" "#define HAVE_TIMINGSAFE_MEMCMP 1" >>confdefs.h 24332 24333else $as_nop 24334 case " $LIBOBJS " in 24335 *" timingsafe_memcmp.$ac_objext "* ) ;; 24336 *) LIBOBJS="$LIBOBJS timingsafe_memcmp.$ac_objext" 24337 ;; 24338esac 24339 24340fi 24341 24342 if test "x$ac_cv_func_poll" = "xyes"; then 24343 POLL_TRUE= 24344 POLL_FALSE='#' 24345else 24346 POLL_TRUE='#' 24347 POLL_FALSE= 24348fi 24349 24350 24351# Checks for non-standard functions and fallback to libbsd if we can 24352# We only check for arc4random_buf, because if we have that, we don't 24353# need/use getentropy. 24354cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24355/* end confdefs.h. */ 24356 24357/* Override any GCC internal prototype to avoid an error. 24358 Use char because int might match the return type of a GCC 24359 builtin and then its argument prototype would still apply. 24360 The 'extern "C"' is for builds by C++ compilers; 24361 although this is not generally supported in C code supporting it here 24362 has little cost and some practical benefit (sr 110532). */ 24363#ifdef __cplusplus 24364extern "C" 24365#endif 24366char arc4random_buf (void); 24367int 24368main (void) 24369{ 24370return arc4random_buf (); 24371 ; 24372 return 0; 24373} 24374_ACEOF 24375if ac_fn_c_try_link "$LINENO" 24376then : 24377 TRY_LIBBSD="no" 24378else $as_nop 24379 TRY_LIBBSD="yes" 24380fi 24381rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24382 conftest$ac_exeext conftest.$ac_ext 24383if test "x$TRY_LIBBSD" = "xyes" 24384then : 24385 24386pkg_failed=no 24387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbsd-overlay" >&5 24388printf %s "checking for libbsd-overlay... " >&6; } 24389 24390if test -n "$LIBBSD_CFLAGS"; then 24391 pkg_cv_LIBBSD_CFLAGS="$LIBBSD_CFLAGS" 24392 elif test -n "$PKG_CONFIG"; then 24393 if test -n "$PKG_CONFIG" && \ 24394 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd-overlay\""; } >&5 24395 ($PKG_CONFIG --exists --print-errors "libbsd-overlay") 2>&5 24396 ac_status=$? 24397 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24398 test $ac_status = 0; }; then 24399 pkg_cv_LIBBSD_CFLAGS=`$PKG_CONFIG --cflags "libbsd-overlay" 2>/dev/null` 24400 test "x$?" != "x0" && pkg_failed=yes 24401else 24402 pkg_failed=yes 24403fi 24404 else 24405 pkg_failed=untried 24406fi 24407if test -n "$LIBBSD_LIBS"; then 24408 pkg_cv_LIBBSD_LIBS="$LIBBSD_LIBS" 24409 elif test -n "$PKG_CONFIG"; then 24410 if test -n "$PKG_CONFIG" && \ 24411 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd-overlay\""; } >&5 24412 ($PKG_CONFIG --exists --print-errors "libbsd-overlay") 2>&5 24413 ac_status=$? 24414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24415 test $ac_status = 0; }; then 24416 pkg_cv_LIBBSD_LIBS=`$PKG_CONFIG --libs "libbsd-overlay" 2>/dev/null` 24417 test "x$?" != "x0" && pkg_failed=yes 24418else 24419 pkg_failed=yes 24420fi 24421 else 24422 pkg_failed=untried 24423fi 24424 24425 24426 24427if test $pkg_failed = yes; then 24428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24429printf "%s\n" "no" >&6; } 24430 24431if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 24432 _pkg_short_errors_supported=yes 24433else 24434 _pkg_short_errors_supported=no 24435fi 24436 if test $_pkg_short_errors_supported = yes; then 24437 LIBBSD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libbsd-overlay" 2>&1` 24438 else 24439 LIBBSD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libbsd-overlay" 2>&1` 24440 fi 24441 # Put the nasty error message in config.log where it belongs 24442 echo "$LIBBSD_PKG_ERRORS" >&5 24443 24444 : 24445elif test $pkg_failed = untried; then 24446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24447printf "%s\n" "no" >&6; } 24448 : 24449else 24450 LIBBSD_CFLAGS=$pkg_cv_LIBBSD_CFLAGS 24451 LIBBSD_LIBS=$pkg_cv_LIBBSD_LIBS 24452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24453printf "%s\n" "yes" >&6; } 24454 24455 CFLAGS="$CFLAGS $LIBBSD_CFLAGS" 24456 LIBS="$LIBS $LIBBSD_LIBS" 24457 24458fi 24459fi 24460 24461ac_fn_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h> 24462" "$ac_c_undeclared_builtin_options" "CFLAGS" 24463if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes 24464then : 24465 ac_have_decl=1 24466else $as_nop 24467 ac_have_decl=0 24468fi 24469printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl" >>confdefs.h 24470 24471 24472 24473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SO_PEERCRED in sys/socket.h" >&5 24474printf %s "checking for SO_PEERCRED in sys/socket.h... " >&6; } 24475if test ${xorg_cv_sys_have_so_peercred+y} 24476then : 24477 printf %s "(cached) " >&6 24478else $as_nop 24479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24480/* end confdefs.h. */ 24481 24482#include <sys/types.h> 24483#include <sys/socket.h> 24484#ifdef SO_PEERCRED 24485yes_have_so_peercred 24486#endif 24487 24488_ACEOF 24489if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 24490 $EGREP "yes_have_so_peercred" >/dev/null 2>&1 24491then : 24492 xorg_cv_sys_have_so_peercred=yes 24493else $as_nop 24494 xorg_cv_sys_have_so_peercred=no 24495fi 24496rm -rf conftest* 24497 24498fi 24499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_sys_have_so_peercred" >&5 24500printf "%s\n" "$xorg_cv_sys_have_so_peercred" >&6; } 24501 24502if test "x$ac_cv_func_getpeereid" = xno && test "x$ac_cv_func_getpeerucred" = xno && test "x$xorg_cv_sys_have_so_peercred" = xno ; then 24503 24504printf "%s\n" "#define NO_LOCAL_CLIENT_CRED 1" >>confdefs.h 24505 24506fi 24507 24508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 24509printf %s "checking for sqrt in -lm... " >&6; } 24510if test ${ac_cv_lib_m_sqrt+y} 24511then : 24512 printf %s "(cached) " >&6 24513else $as_nop 24514 ac_check_lib_save_LIBS=$LIBS 24515LIBS="-lm $LIBS" 24516cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24517/* end confdefs.h. */ 24518 24519/* Override any GCC internal prototype to avoid an error. 24520 Use char because int might match the return type of a GCC 24521 builtin and then its argument prototype would still apply. 24522 The 'extern "C"' is for builds by C++ compilers; 24523 although this is not generally supported in C code supporting it here 24524 has little cost and some practical benefit (sr 110532). */ 24525#ifdef __cplusplus 24526extern "C" 24527#endif 24528char sqrt (void); 24529int 24530main (void) 24531{ 24532return sqrt (); 24533 ; 24534 return 0; 24535} 24536_ACEOF 24537if ac_fn_c_try_link "$LINENO" 24538then : 24539 ac_cv_lib_m_sqrt=yes 24540else $as_nop 24541 ac_cv_lib_m_sqrt=no 24542fi 24543rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24544 conftest$ac_exeext conftest.$ac_ext 24545LIBS=$ac_check_lib_save_LIBS 24546fi 24547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 24548printf "%s\n" "$ac_cv_lib_m_sqrt" >&6; } 24549if test "x$ac_cv_lib_m_sqrt" = xyes 24550then : 24551 printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h 24552 24553 LIBS="-lm $LIBS" 24554 24555fi 24556 24557ac_fn_c_check_func "$LINENO" "cbrt" "ac_cv_func_cbrt" 24558if test "x$ac_cv_func_cbrt" = xyes 24559then : 24560 printf "%s\n" "#define HAVE_CBRT 1" >>confdefs.h 24561 24562fi 24563 24564 24565# Check whether --enable-agp was given. 24566if test ${enable_agp+y} 24567then : 24568 enableval=$enable_agp; AGP=$enableval 24569else $as_nop 24570 AGP=auto 24571fi 24572 24573if test "x$AGP" = "xauto" ; then 24574 for ac_header in linux/agpgart.h sys/agpio.h sys/agpgart.h 24575do : 24576 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh` 24577ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 24578if eval test \"x\$"$as_ac_Header"\" = x"yes" 24579then : 24580 cat >>confdefs.h <<_ACEOF 24581#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1 24582_ACEOF 24583 AGP=yes 24584fi 24585 24586done 24587fi 24588 if test "x$AGP" = xyes; then 24589 AGP_TRUE= 24590 AGP_FALSE='#' 24591else 24592 AGP_TRUE='#' 24593 AGP_FALSE= 24594fi 24595 24596 24597 for ac_header in linux/fb.h 24598do : 24599 ac_fn_c_check_header_compile "$LINENO" "linux/fb.h" "ac_cv_header_linux_fb_h" "$ac_includes_default" 24600if test "x$ac_cv_header_linux_fb_h" = xyes 24601then : 24602 printf "%s\n" "#define HAVE_LINUX_FB_H 1" >>confdefs.h 24603 FBDEV=yes 24604fi 24605 24606done 24607 if test "x$FBDEV" = xyes; then 24608 FBDEVHW_TRUE= 24609 FBDEVHW_FALSE='#' 24610else 24611 FBDEVHW_TRUE='#' 24612 FBDEVHW_FALSE= 24613fi 24614 24615 24616 for ac_header in sys/linker.h 24617do : 24618 ac_fn_c_check_header_compile "$LINENO" "sys/linker.h" "ac_cv_header_sys_linker_h" "#include <sys/param.h> 24619" 24620if test "x$ac_cv_header_sys_linker_h" = xyes 24621then : 24622 printf "%s\n" "#define HAVE_SYS_LINKER_H 1" >>confdefs.h 24623 ac_cv_sys_linker_h=yes 24624else $as_nop 24625 ac_cv_sys_linker_h=no 24626fi 24627 24628done 24629 if test "x$ac_cv_sys_linker_h" = xyes; then 24630 FREEBSD_KLDLOAD_TRUE= 24631 FREEBSD_KLDLOAD_FALSE='#' 24632else 24633 FREEBSD_KLDLOAD_TRUE='#' 24634 FREEBSD_KLDLOAD_FALSE= 24635fi 24636 24637 24638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SYSV IPC" >&5 24639printf %s "checking for SYSV IPC... " >&6; } 24640if test ${ac_cv_sysv_ipc+y} 24641then : 24642 printf %s "(cached) " >&6 24643else $as_nop 24644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24645/* end confdefs.h. */ 24646 24647#include <sys/types.h> 24648#include <sys/ipc.h> 24649#include <sys/shm.h> 24650#include <sys/stat.h> 24651 24652int 24653main (void) 24654{ 24655 24656{ 24657 int id; 24658 id = shmget(IPC_PRIVATE, 512, S_IRUSR | S_IWUSR); 24659 if (id < 0) return -1; 24660 return shmctl(id, IPC_RMID, 0); 24661} 24662 ; 24663 return 0; 24664} 24665_ACEOF 24666if ac_fn_c_try_link "$LINENO" 24667then : 24668 ac_cv_sysv_ipc=yes 24669else $as_nop 24670 ac_cv_sysv_ipc=no 24671fi 24672rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24673 conftest$ac_exeext conftest.$ac_ext 24674fi 24675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_ipc" >&5 24676printf "%s\n" "$ac_cv_sysv_ipc" >&6; } 24677if test "x$ac_cv_sysv_ipc" = xyes; then 24678 24679printf "%s\n" "#define HAVE_SYSV_IPC 1" >>confdefs.h 24680 24681fi 24682 24683if test -c /dev/xf86 ; then 24684 24685printf "%s\n" "#define HAS_APERTURE_DRV 1" >>confdefs.h 24686 24687fi 24688 24689ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default" 24690if test "x$ac_cv_header_execinfo_h" = xyes 24691then : 24692 24693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lc" >&5 24694printf %s "checking for backtrace in -lc... " >&6; } 24695if test ${ac_cv_lib_c_backtrace+y} 24696then : 24697 printf %s "(cached) " >&6 24698else $as_nop 24699 ac_check_lib_save_LIBS=$LIBS 24700LIBS="-lc $LIBS" 24701cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24702/* end confdefs.h. */ 24703 24704/* Override any GCC internal prototype to avoid an error. 24705 Use char because int might match the return type of a GCC 24706 builtin and then its argument prototype would still apply. 24707 The 'extern "C"' is for builds by C++ compilers; 24708 although this is not generally supported in C code supporting it here 24709 has little cost and some practical benefit (sr 110532). */ 24710#ifdef __cplusplus 24711extern "C" 24712#endif 24713char backtrace (void); 24714int 24715main (void) 24716{ 24717return backtrace (); 24718 ; 24719 return 0; 24720} 24721_ACEOF 24722if ac_fn_c_try_link "$LINENO" 24723then : 24724 ac_cv_lib_c_backtrace=yes 24725else $as_nop 24726 ac_cv_lib_c_backtrace=no 24727fi 24728rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24729 conftest$ac_exeext conftest.$ac_ext 24730LIBS=$ac_check_lib_save_LIBS 24731fi 24732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_backtrace" >&5 24733printf "%s\n" "$ac_cv_lib_c_backtrace" >&6; } 24734if test "x$ac_cv_lib_c_backtrace" = xyes 24735then : 24736 24737 24738printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h 24739 24740 24741printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h 24742 24743 24744fi 24745 24746 24747fi 24748 24749 24750DEFAULT_INT10="x86emu" 24751 24752 24753case $host_cpu in 24754 alpha*) 24755 ALPHA_VIDEO=yes 24756 case $host_os in 24757 *freebsd*) SYS_LIBS=-lio ;; 24758 *netbsd*) 24759printf "%s\n" "#define USE_ALPHA_PIO 1" >>confdefs.h 24760 ;; 24761 esac 24762 GLX_ARCH_DEFINES="-D__GLX_ALIGN64 -mieee" 24763 ;; 24764 arm*) 24765 ARM_VIDEO=yes 24766 DEFAULT_INT10="stub" 24767 ;; 24768 i*86) 24769 I386_VIDEO=yes 24770 case $host_os in 24771 *freebsd*) printf "%s\n" "#define USE_DEV_IO 1" >>confdefs.h 24772 ;; 24773 *dragonfly*) printf "%s\n" "#define USE_DEV_IO 1" >>confdefs.h 24774 ;; 24775 *netbsd*) printf "%s\n" "#define USE_I386_IOPL 1" >>confdefs.h 24776 24777 SYS_LIBS=-li386 24778 ;; 24779 *openbsd*) printf "%s\n" "#define USE_I386_IOPL 1" >>confdefs.h 24780 24781 SYS_LIBS=-li386 24782 ;; 24783 esac 24784 ;; 24785 powerpc*) 24786 PPC_VIDEO=yes 24787 case $host_os in 24788 *freebsd*) DEFAULT_INT10=stub ;; 24789 esac 24790 ;; 24791 sparc*) 24792 SPARC64_VIDEO=yes 24793 BSD_ARCH_SOURCES="sparc64_video.c ioperm_noop.c" 24794 GLX_ARCH_DEFINES="-D__GLX_ALIGN64" 24795 ;; 24796 x86_64*|amd64*) 24797 I386_VIDEO=yes 24798 case $host_os in 24799 *freebsd*) 24800printf "%s\n" "#define USE_DEV_IO 1" >>confdefs.h 24801 ;; 24802 *dragonfly*) 24803printf "%s\n" "#define USE_DEV_IO 1" >>confdefs.h 24804 ;; 24805 *netbsd*) 24806printf "%s\n" "#define USE_I386_IOPL 1" >>confdefs.h 24807 24808 SYS_LIBS=-lx86_64 24809 ;; 24810 *openbsd*) 24811printf "%s\n" "#define USE_AMD64_IOPL 1" >>confdefs.h 24812 24813 SYS_LIBS=-lamd64 24814 ;; 24815 esac 24816 GLX_ARCH_DEFINES="-D__GLX_ALIGN64" 24817 ;; 24818 ia64*) 24819 GLX_ARCH_DEFINES="-D__GLX_ALIGN64" 24820 ;; 24821 s390*) 24822 GLX_ARCH_DEFINES="-D__GLX_ALIGN64" 24823 ;; 24824esac 24825 24826 24827 if test "x$ALPHA_VIDEO" = xyes; then 24828 ALPHA_VIDEO_TRUE= 24829 ALPHA_VIDEO_FALSE='#' 24830else 24831 ALPHA_VIDEO_TRUE='#' 24832 ALPHA_VIDEO_FALSE= 24833fi 24834 24835 if test "x$ARM_VIDEO" = xyes; then 24836 ARM_VIDEO_TRUE= 24837 ARM_VIDEO_FALSE='#' 24838else 24839 ARM_VIDEO_TRUE='#' 24840 ARM_VIDEO_FALSE= 24841fi 24842 24843 if test "x$I386_VIDEO" = xyes; then 24844 I386_VIDEO_TRUE= 24845 I386_VIDEO_FALSE='#' 24846else 24847 I386_VIDEO_TRUE='#' 24848 I386_VIDEO_FALSE= 24849fi 24850 24851 if test "x$PPC_VIDEO" = xyes; then 24852 PPC_VIDEO_TRUE= 24853 PPC_VIDEO_FALSE='#' 24854else 24855 PPC_VIDEO_TRUE='#' 24856 PPC_VIDEO_FALSE= 24857fi 24858 24859 if test "x$SPARC64_VIDEO" = xyes; then 24860 SPARC64_VIDEO_TRUE= 24861 SPARC64_VIDEO_FALSE='#' 24862else 24863 SPARC64_VIDEO_TRUE='#' 24864 SPARC64_VIDEO_FALSE= 24865fi 24866 24867 24868DRI=no 24869case $host_os in 24870 *freebsd* | *dragonfly*) 24871 case $host_os in 24872 kfreebsd*-gnu) ;; 24873 *) 24874printf "%s\n" "#define CSRG_BASED 1" >>confdefs.h 24875 ;; 24876 esac 24877 24878printf "%s\n" "#define PCCONS_SUPPORT 1" >>confdefs.h 24879 24880 24881printf "%s\n" "#define PCVT_SUPPORT 1" >>confdefs.h 24882 24883 24884printf "%s\n" "#define SYSCONS_SUPPORT 1" >>confdefs.h 24885 24886 DRI=yes 24887 ;; 24888 *netbsd*) 24889 24890printf "%s\n" "#define CSRG_BASED 1" >>confdefs.h 24891 24892 24893printf "%s\n" "#define PCCONS_SUPPORT 1" >>confdefs.h 24894 24895 24896printf "%s\n" "#define PCVT_SUPPORT 1" >>confdefs.h 24897 24898 24899printf "%s\n" "#define WSCONS_SUPPORT 1" >>confdefs.h 24900 24901 DRI=yes 24902 ;; 24903 *openbsd*) 24904 24905printf "%s\n" "#define CSRG_BASED 1" >>confdefs.h 24906 24907 24908printf "%s\n" "#define PCVT_SUPPORT 1" >>confdefs.h 24909 24910 24911printf "%s\n" "#define WSCONS_SUPPORT 1" >>confdefs.h 24912 24913 ;; 24914 *linux*) 24915 DRI=yes 24916 ;; 24917 *solaris*) 24918 DRI=yes 24919 ;; 24920 darwin*) 24921 24922printf "%s\n" "#define CSRG_BASED 1" >>confdefs.h 24923 24924 ;; 24925 cygwin*|mingw*) 24926 CFLAGS="$CFLAGS -DFD_SETSIZE=512" 24927 ;; 24928esac 24929 24930PVMAJOR=`echo $PACKAGE_VERSION | cut -d . -f 1` 24931 24932VENDOR_RELEASE="((10000000) + (($PVMAJOR) * 100000) + (($PVM) * 1000) + $PVP)" 24933VENDOR_MAN_VERSION="Version ${PACKAGE_VERSION}" 24934 24935VENDOR_NAME="The X.Org Foundation" 24936VENDOR_NAME_SHORT="X.Org" 24937VENDOR_WEB="http://wiki.x.org" 24938 24939# Check whether --enable-werror was given. 24940if test ${enable_werror+y} 24941then : 24942 enableval=$enable_werror; as_fn_error $? "--enable-werror has been replaced by --enable-strict-compilation" "$LINENO" 5 24943fi 24944 24945 24946# Check whether --enable-debug was given. 24947if test ${enable_debug+y} 24948then : 24949 enableval=$enable_debug; DEBUGGING=$enableval 24950else $as_nop 24951 DEBUGGING=no 24952fi 24953 24954 24955# Check whether --with-int10 was given. 24956if test ${with_int10+y} 24957then : 24958 withval=$with_int10; INT10="$withval" 24959else $as_nop 24960 INT10="$DEFAULT_INT10" 24961fi 24962 24963 24964# Check whether --with-vendor-name was given. 24965if test ${with_vendor_name+y} 24966then : 24967 withval=$with_vendor_name; VENDOR_NAME="$withval" 24968fi 24969 24970 24971# Check whether --with-vendor-name-short was given. 24972if test ${with_vendor_name_short+y} 24973then : 24974 withval=$with_vendor_name_short; VENDOR_NAME_SHORT="$withval" 24975fi 24976 24977 24978# Check whether --with-vendor-web was given. 24979if test ${with_vendor_web+y} 24980then : 24981 withval=$with_vendor_web; VENDOR_WEB="$withval" 24982fi 24983 24984 24985# Check whether --with-module-dir was given. 24986if test ${with_module_dir+y} 24987then : 24988 withval=$with_module_dir; moduledir="$withval" 24989else $as_nop 24990 moduledir="${libdir}/xorg/modules" 24991fi 24992 24993 24994# Check whether --with-log-dir was given. 24995if test ${with_log_dir+y} 24996then : 24997 withval=$with_log_dir; logdir="$withval" 24998else $as_nop 24999 logdir="$localstatedir/log" 25000fi 25001 25002 25003# Check whether --with-builder-addr was given. 25004if test ${with_builder_addr+y} 25005then : 25006 withval=$with_builder_addr; BUILDERADDR="$withval" 25007else $as_nop 25008 BUILDERADDR="xorg@lists.freedesktop.org" 25009fi 25010 25011 25012# Check whether --with-builderstring was given. 25013if test ${with_builderstring+y} 25014then : 25015 withval=$with_builderstring; BUILDERSTRING="$withval" 25016 25017fi 25018 25019# Check whether --enable-listen-tcp was given. 25020if test ${enable_listen_tcp+y} 25021then : 25022 enableval=$enable_listen_tcp; LISTEN_TCP=$enableval 25023else $as_nop 25024 LISTEN_TCP=no 25025fi 25026 25027# Check whether --enable-listen-unix was given. 25028if test ${enable_listen_unix+y} 25029then : 25030 enableval=$enable_listen_unix; LISTEN_UNIX=$enableval 25031else $as_nop 25032 LISTEN_UNIX=yes 25033fi 25034 25035 25036# Check whether --enable-listen-local was given. 25037if test ${enable_listen_local+y} 25038then : 25039 enableval=$enable_listen_local; LISTEN_LOCAL=$enableval 25040else $as_nop 25041 LISTEN_LOCAL=yes 25042fi 25043 25044 25045case $host_os in 25046 linux*) 25047 FALLBACK_INPUT_DRIVER="libinput" 25048 ;; 25049 *) 25050 FALLBACK_INPUT_DRIVER="" 25051 ;; 25052esac 25053 25054# Check whether --with-fallback-input-driver was given. 25055if test ${with_fallback_input_driver+y} 25056then : 25057 withval=$with_fallback_input_driver; FALLBACK_INPUT_DRIVER=$withval 25058fi 25059 25060if test "x$FALLBACK_INPUT_DRIVER" = "xno"; then 25061 FALLBACK_INPUT_DRIVER="" 25062fi 25063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fallback input driver" >&5 25064printf %s "checking for fallback input driver... " >&6; } 25065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FALLBACK_INPUT_DRIVER" >&5 25066printf "%s\n" "$FALLBACK_INPUT_DRIVER" >&6; } 25067 25068printf "%s\n" "#define FALLBACK_INPUT_DRIVER \"$FALLBACK_INPUT_DRIVER\"" >>confdefs.h 25069 25070 25071 25072 25073 25074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5 25075printf %s "checking for root directory for font files... " >&6; } 25076 25077# Check whether --with-fontrootdir was given. 25078if test ${with_fontrootdir+y} 25079then : 25080 withval=$with_fontrootdir; FONTROOTDIR="$withval" 25081fi 25082 25083 # if --with-fontrootdir not specified... 25084 if test "x${FONTROOTDIR}" = "x"; then 25085 FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil` 25086 fi 25087 # ...and if pkg-config didn't find fontdir in fontutil.pc... 25088 if test "x${FONTROOTDIR}" = "x"; then 25089 FONTROOTDIR="${datadir}/fonts/X11" 25090 fi 25091 25092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5 25093printf "%s\n" "${FONTROOTDIR}" >&6; } 25094 25095 25096 25097 25098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for misc files" >&5 25099printf %s "checking for directory for misc files... " >&6; } 25100 25101# Check whether --with-fontmiscdir was given. 25102if test ${with_fontmiscdir+y} 25103then : 25104 withval=$with_fontmiscdir; FONTMISCDIR="${withval}" 25105else $as_nop 25106 FONTMISCDIR='${FONTROOTDIR}/misc' 25107fi 25108 25109 25110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTMISCDIR}" >&5 25111printf "%s\n" "${FONTMISCDIR}" >&6; } 25112 25113 25114 25115 25116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for OTF files" >&5 25117printf %s "checking for directory for OTF files... " >&6; } 25118 25119# Check whether --with-fontotfdir was given. 25120if test ${with_fontotfdir+y} 25121then : 25122 withval=$with_fontotfdir; FONTOTFDIR="${withval}" 25123else $as_nop 25124 FONTOTFDIR='${FONTROOTDIR}/OTF' 25125fi 25126 25127 25128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTOTFDIR}" >&5 25129printf "%s\n" "${FONTOTFDIR}" >&6; } 25130 25131 25132 25133 25134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for TTF files" >&5 25135printf %s "checking for directory for TTF files... " >&6; } 25136 25137# Check whether --with-fontttfdir was given. 25138if test ${with_fontttfdir+y} 25139then : 25140 withval=$with_fontttfdir; FONTTTFDIR="${withval}" 25141else $as_nop 25142 FONTTTFDIR='${FONTROOTDIR}/TTF' 25143fi 25144 25145 25146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTTTFDIR}" >&5 25147printf "%s\n" "${FONTTTFDIR}" >&6; } 25148 25149 25150 25151 25152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for Type1 files" >&5 25153printf %s "checking for directory for Type1 files... " >&6; } 25154 25155# Check whether --with-fonttype1dir was given. 25156if test ${with_fonttype1dir+y} 25157then : 25158 withval=$with_fonttype1dir; FONTTYPE1DIR="${withval}" 25159else $as_nop 25160 FONTTYPE1DIR='${FONTROOTDIR}/Type1' 25161fi 25162 25163 25164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTTYPE1DIR}" >&5 25165printf "%s\n" "${FONTTYPE1DIR}" >&6; } 25166 25167 25168 25169 25170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for 75dpi files" >&5 25171printf %s "checking for directory for 75dpi files... " >&6; } 25172 25173# Check whether --with-font75dpidir was given. 25174if test ${with_font75dpidir+y} 25175then : 25176 withval=$with_font75dpidir; FONT75DPIDIR="${withval}" 25177else $as_nop 25178 FONT75DPIDIR='${FONTROOTDIR}/75dpi' 25179fi 25180 25181 25182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONT75DPIDIR}" >&5 25183printf "%s\n" "${FONT75DPIDIR}" >&6; } 25184 25185 25186 25187 25188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for 100dpi files" >&5 25189printf %s "checking for directory for 100dpi files... " >&6; } 25190 25191# Check whether --with-font100dpidir was given. 25192if test ${with_font100dpidir+y} 25193then : 25194 withval=$with_font100dpidir; FONT100DPIDIR="${withval}" 25195else $as_nop 25196 FONT100DPIDIR='${FONTROOTDIR}/100dpi' 25197fi 25198 25199 25200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONT100DPIDIR}" >&5 25201printf "%s\n" "${FONT100DPIDIR}" >&6; } 25202 25203 25204DEFAULT_FONT_PATH="${FONTMISCDIR}/,${FONTTTFDIR}/,${FONTOTFDIR}/,${FONTTYPE1DIR}/,${FONT100DPIDIR}/,${FONT75DPIDIR}/" 25205case $host_os in 25206 darwin*) DEFAULT_FONT_PATH="${DEFAULT_FONT_PATH},/Library/Fonts,/System/Library/Fonts" ;; 25207esac 25208 25209 25210# Check whether --with-default-font-path was given. 25211if test ${with_default_font_path+y} 25212then : 25213 withval=$with_default_font_path; FONTPATH="$withval" 25214else $as_nop 25215 FONTPATH="${DEFAULT_FONT_PATH}" 25216fi 25217 25218 25219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default font path" >&5 25220printf %s "checking for default font path... " >&6; } 25221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FONTPATH" >&5 25222printf "%s\n" "$FONTPATH" >&6; } 25223 25224 25225# Check whether --with-xkb-path was given. 25226if test ${with_xkb_path+y} 25227then : 25228 withval=$with_xkb_path; XKBPATH="$withval" 25229else $as_nop 25230 XKBPATH="auto" 25231fi 25232 25233 25234# Check whether --with-xkb-output was given. 25235if test ${with_xkb_output+y} 25236then : 25237 withval=$with_xkb_output; XKBOUTPUT="$withval" 25238else $as_nop 25239 XKBOUTPUT="compiled" 25240fi 25241 25242 25243# Check whether --with-default-xkb-rules was given. 25244if test ${with_default_xkb_rules+y} 25245then : 25246 withval=$with_default_xkb_rules; XKB_DFLT_RULES="$withval" 25247else $as_nop 25248 XKB_DFLT_RULES="" 25249fi 25250 25251 25252# Check whether --with-default-xkb-model was given. 25253if test ${with_default_xkb_model+y} 25254then : 25255 withval=$with_default_xkb_model; XKB_DFLT_MODEL="$withval" 25256else $as_nop 25257 XKB_DFLT_MODEL="pc105" 25258fi 25259 25260 25261# Check whether --with-default-xkb-layout was given. 25262if test ${with_default_xkb_layout+y} 25263then : 25264 withval=$with_default_xkb_layout; XKB_DFLT_LAYOUT="$withval" 25265else $as_nop 25266 XKB_DFLT_LAYOUT="us" 25267fi 25268 25269 25270# Check whether --with-default-xkb-variant was given. 25271if test ${with_default_xkb_variant+y} 25272then : 25273 withval=$with_default_xkb_variant; XKB_DFLT_VARIANT="$withval" 25274else $as_nop 25275 XKB_DFLT_VARIANT="" 25276fi 25277 25278 25279# Check whether --with-default-xkb-options was given. 25280if test ${with_default_xkb_options+y} 25281then : 25282 withval=$with_default_xkb_options; XKB_DFLT_OPTIONS="$withval" 25283else $as_nop 25284 XKB_DFLT_OPTIONS="" 25285fi 25286 25287 25288# Check whether --with-serverconfig-path was given. 25289if test ${with_serverconfig_path+y} 25290then : 25291 withval=$with_serverconfig_path; SERVERCONFIG="$withval" 25292else $as_nop 25293 SERVERCONFIG="${libdir}/xorg" 25294fi 25295 25296 25297# Check whether --with-apple-applications-dir was given. 25298if test ${with_apple_applications_dir+y} 25299then : 25300 withval=$with_apple_applications_dir; APPLE_APPLICATIONS_DIR="${withval}" 25301else $as_nop 25302 APPLE_APPLICATIONS_DIR="/Applications/Utilities" 25303fi 25304 25305 25306 25307# Check whether --with-apple-application-name was given. 25308if test ${with_apple_application_name+y} 25309then : 25310 withval=$with_apple_application_name; APPLE_APPLICATION_NAME="${withval}" 25311else $as_nop 25312 APPLE_APPLICATION_NAME="X11" 25313fi 25314 25315 25316 25317# Check whether --with-bundle-id-prefix was given. 25318if test ${with_bundle_id_prefix+y} 25319then : 25320 withval=$with_bundle_id_prefix; BUNDLE_ID_PREFIX="${withval}" 25321fi 25322 25323 25324 25325printf "%s\n" "#define BUNDLE_ID_PREFIX \"$BUNDLE_ID_PREFIX\"" >>confdefs.h 25326 25327 25328 25329# Check whether --with-bundle-version was given. 25330if test ${with_bundle_version+y} 25331then : 25332 withval=$with_bundle_version; BUNDLE_VERSION="${withval}" 25333else $as_nop 25334 BUNDLE_VERSION="21.1.13" 25335fi 25336 25337 25338 25339# Check whether --with-bundle-version-string was given. 25340if test ${with_bundle_version_string+y} 25341then : 25342 withval=$with_bundle_version_string; BUNDLE_VERSION_STRING="${withval}" 25343else $as_nop 25344 BUNDLE_VERSION_STRING="${PACKAGE_VERSION}" 25345fi 25346 25347 25348# Check whether --enable-sparkle was given. 25349if test ${enable_sparkle+y} 25350then : 25351 enableval=$enable_sparkle; XQUARTZ_SPARKLE="${enableval}" 25352else $as_nop 25353 XQUARTZ_SPARKLE="no" 25354fi 25355 25356 25357 25358# Check whether --with-sparkle-feed-url was given. 25359if test ${with_sparkle_feed_url+y} 25360then : 25361 withval=$with_sparkle_feed_url; XQUARTZ_SPARKLE_FEED_URL="${withval}" 25362else $as_nop 25363 XQUARTZ_SPARKLE_FEED_URL="https://www.xquartz.org/releases/sparkle/release.xml" 25364fi 25365 25366 25367# Check whether --enable-visibility was given. 25368if test ${enable_visibility+y} 25369then : 25370 enableval=$enable_visibility; SYMBOL_VISIBILITY=$enableval 25371else $as_nop 25372 SYMBOL_VISIBILITY=auto 25373fi 25374 25375 25376 25377# Check whether --with-khronos-spec-dir was given. 25378if test ${with_khronos_spec_dir+y} 25379then : 25380 withval=$with_khronos_spec_dir; KHRONOS_SPEC_DIR="${withval}" 25381else $as_nop 25382 KHRONOS_SPEC_DIR=auto 25383fi 25384 25385 25386# Check whether --enable-composite was given. 25387if test ${enable_composite+y} 25388then : 25389 enableval=$enable_composite; COMPOSITE=$enableval 25390else $as_nop 25391 COMPOSITE=yes 25392fi 25393 25394# Check whether --enable-mitshm was given. 25395if test ${enable_mitshm+y} 25396then : 25397 enableval=$enable_mitshm; MITSHM=$enableval 25398else $as_nop 25399 MITSHM=auto 25400fi 25401 25402# Check whether --enable-xres was given. 25403if test ${enable_xres+y} 25404then : 25405 enableval=$enable_xres; RES=$enableval 25406else $as_nop 25407 RES=yes 25408fi 25409 25410# Check whether --enable-record was given. 25411if test ${enable_record+y} 25412then : 25413 enableval=$enable_record; RECORD=$enableval 25414else $as_nop 25415 RECORD=yes 25416fi 25417 25418# Check whether --enable-xv was given. 25419if test ${enable_xv+y} 25420then : 25421 enableval=$enable_xv; XV=$enableval 25422else $as_nop 25423 XV=yes 25424fi 25425 25426# Check whether --enable-xvmc was given. 25427if test ${enable_xvmc+y} 25428then : 25429 enableval=$enable_xvmc; XVMC=$enableval 25430else $as_nop 25431 XVMC=yes 25432fi 25433 25434# Check whether --enable-dga was given. 25435if test ${enable_dga+y} 25436then : 25437 enableval=$enable_dga; DGA=$enableval 25438else $as_nop 25439 DGA=auto 25440fi 25441 25442# Check whether --enable-screensaver was given. 25443if test ${enable_screensaver+y} 25444then : 25445 enableval=$enable_screensaver; SCREENSAVER=$enableval 25446else $as_nop 25447 SCREENSAVER=yes 25448fi 25449 25450# Check whether --enable-xdmcp was given. 25451if test ${enable_xdmcp+y} 25452then : 25453 enableval=$enable_xdmcp; XDMCP=$enableval 25454else $as_nop 25455 XDMCP=auto 25456fi 25457 25458# Check whether --enable-xdm-auth-1 was given. 25459if test ${enable_xdm_auth_1+y} 25460then : 25461 enableval=$enable_xdm_auth_1; XDMAUTH=$enableval 25462else $as_nop 25463 XDMAUTH=auto 25464fi 25465 25466# Check whether --enable-glx was given. 25467if test ${enable_glx+y} 25468then : 25469 enableval=$enable_glx; GLX=$enableval 25470else $as_nop 25471 GLX=yes 25472fi 25473 25474# Check whether --enable-dri was given. 25475if test ${enable_dri+y} 25476then : 25477 enableval=$enable_dri; DRI=$enableval 25478fi 25479 25480# Check whether --enable-dri2 was given. 25481if test ${enable_dri2+y} 25482then : 25483 enableval=$enable_dri2; DRI2=$enableval 25484else $as_nop 25485 DRI2=auto 25486fi 25487 25488# Check whether --enable-dri3 was given. 25489if test ${enable_dri3+y} 25490then : 25491 enableval=$enable_dri3; DRI3=$enableval 25492else $as_nop 25493 DRI3=auto 25494fi 25495 25496# Check whether --enable-present was given. 25497if test ${enable_present+y} 25498then : 25499 enableval=$enable_present; PRESENT=$enableval 25500else $as_nop 25501 PRESENT=yes 25502fi 25503 25504# Check whether --enable-xinerama was given. 25505if test ${enable_xinerama+y} 25506then : 25507 enableval=$enable_xinerama; XINERAMA=$enableval 25508else $as_nop 25509 XINERAMA=yes 25510fi 25511 25512# Check whether --enable-xf86vidmode was given. 25513if test ${enable_xf86vidmode+y} 25514then : 25515 enableval=$enable_xf86vidmode; XF86VIDMODE=$enableval 25516else $as_nop 25517 XF86VIDMODE=auto 25518fi 25519 25520# Check whether --enable-xace was given. 25521if test ${enable_xace+y} 25522then : 25523 enableval=$enable_xace; XACE=$enableval 25524else $as_nop 25525 XACE=yes 25526fi 25527 25528# Check whether --enable-xselinux was given. 25529if test ${enable_xselinux+y} 25530then : 25531 enableval=$enable_xselinux; XSELINUX=$enableval 25532else $as_nop 25533 XSELINUX=no 25534fi 25535 25536# Check whether --enable-xcsecurity was given. 25537if test ${enable_xcsecurity+y} 25538then : 25539 enableval=$enable_xcsecurity; XCSECURITY=$enableval 25540else $as_nop 25541 XCSECURITY=no 25542fi 25543 25544# Check whether --enable-dbe was given. 25545if test ${enable_dbe+y} 25546then : 25547 enableval=$enable_dbe; DBE=$enableval 25548else $as_nop 25549 DBE=yes 25550fi 25551 25552# Check whether --enable-xf86bigfont was given. 25553if test ${enable_xf86bigfont+y} 25554then : 25555 enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval 25556else $as_nop 25557 XF86BIGFONT=no 25558fi 25559 25560# Check whether --enable-dpms was given. 25561if test ${enable_dpms+y} 25562then : 25563 enableval=$enable_dpms; DPMSExtension=$enableval 25564else $as_nop 25565 DPMSExtension=yes 25566fi 25567 25568# Check whether --enable-config-udev was given. 25569if test ${enable_config_udev+y} 25570then : 25571 enableval=$enable_config_udev; CONFIG_UDEV=$enableval 25572else $as_nop 25573 CONFIG_UDEV=auto 25574fi 25575 25576# Check whether --enable-config-udev-kms was given. 25577if test ${enable_config_udev_kms+y} 25578then : 25579 enableval=$enable_config_udev_kms; CONFIG_UDEV_KMS=$enableval 25580else $as_nop 25581 CONFIG_UDEV_KMS=auto 25582fi 25583 25584# Check whether --enable-config-hal was given. 25585if test ${enable_config_hal+y} 25586then : 25587 enableval=$enable_config_hal; CONFIG_HAL=$enableval 25588else $as_nop 25589 CONFIG_HAL=auto 25590fi 25591 25592# Check whether --enable-config-wscons was given. 25593if test ${enable_config_wscons+y} 25594then : 25595 enableval=$enable_config_wscons; CONFIG_WSCONS=$enableval 25596else $as_nop 25597 CONFIG_WSCONS=auto 25598fi 25599 25600# Check whether --enable-xfree86-utils was given. 25601if test ${enable_xfree86_utils+y} 25602then : 25603 enableval=$enable_xfree86_utils; XF86UTILS=$enableval 25604else $as_nop 25605 XF86UTILS=yes 25606fi 25607 25608# Check whether --enable-vgahw was given. 25609if test ${enable_vgahw+y} 25610then : 25611 enableval=$enable_vgahw; VGAHW=$enableval 25612else $as_nop 25613 VGAHW=yes 25614fi 25615 25616# Check whether --enable-int10-module was given. 25617if test ${enable_int10_module+y} 25618then : 25619 enableval=$enable_int10_module; INT10MODULE=$enableval 25620else $as_nop 25621 INT10MODULE=yes 25622fi 25623 25624# Check whether --enable-windowsdri was given. 25625if test ${enable_windowsdri+y} 25626then : 25627 enableval=$enable_windowsdri; WINDOWSDRI=$enableval 25628else $as_nop 25629 WINDOWSDRI=auto 25630fi 25631 25632# Check whether --enable-libdrm was given. 25633if test ${enable_libdrm+y} 25634then : 25635 enableval=$enable_libdrm; DRM=$enableval 25636else $as_nop 25637 DRM=yes 25638fi 25639 25640# Check whether --enable-clientids was given. 25641if test ${enable_clientids+y} 25642then : 25643 enableval=$enable_clientids; CLIENTIDS=$enableval 25644else $as_nop 25645 CLIENTIDS=yes 25646fi 25647 25648# Check whether --enable-pciaccess was given. 25649if test ${enable_pciaccess+y} 25650then : 25651 enableval=$enable_pciaccess; PCI=$enableval 25652else $as_nop 25653 PCI=yes 25654fi 25655 25656# Check whether --enable-linux_acpi was given. 25657if test ${enable_linux_acpi+y} 25658then : 25659 enableval=$enable_linux_acpi; enable_linux_acpi=$enableval 25660else $as_nop 25661 enable_linux_acpi=yes 25662fi 25663 25664# Check whether --enable-linux_apm was given. 25665if test ${enable_linux_apm+y} 25666then : 25667 enableval=$enable_linux_apm; enable_linux_apm=$enableval 25668else $as_nop 25669 enable_linux_apm=yes 25670fi 25671 25672# Check whether --enable-systemd-logind was given. 25673if test ${enable_systemd_logind+y} 25674then : 25675 enableval=$enable_systemd_logind; SYSTEMD_LOGIND=$enableval 25676else $as_nop 25677 SYSTEMD_LOGIND=auto 25678fi 25679 25680# Check whether --enable-suid-wrapper was given. 25681if test ${enable_suid_wrapper+y} 25682then : 25683 enableval=$enable_suid_wrapper; SUID_WRAPPER=$enableval 25684else $as_nop 25685 SUID_WRAPPER=no 25686fi 25687 25688 25689# Check whether --enable-xorg was given. 25690if test ${enable_xorg+y} 25691then : 25692 enableval=$enable_xorg; XORG=$enableval 25693else $as_nop 25694 XORG=auto 25695fi 25696 25697# Check whether --enable-xvfb was given. 25698if test ${enable_xvfb+y} 25699then : 25700 enableval=$enable_xvfb; XVFB=$enableval 25701else $as_nop 25702 XVFB=yes 25703fi 25704 25705# Check whether --enable-xnest was given. 25706if test ${enable_xnest+y} 25707then : 25708 enableval=$enable_xnest; XNEST=$enableval 25709else $as_nop 25710 XNEST=auto 25711fi 25712 25713# Check whether --enable-xquartz was given. 25714if test ${enable_xquartz+y} 25715then : 25716 enableval=$enable_xquartz; XQUARTZ=$enableval 25717else $as_nop 25718 XQUARTZ=auto 25719fi 25720 25721# Check whether --enable-standalone-xpbproxy was given. 25722if test ${enable_standalone_xpbproxy+y} 25723then : 25724 enableval=$enable_standalone_xpbproxy; STANDALONE_XPBPROXY=$enableval 25725else $as_nop 25726 STANDALONE_XPBPROXY=no 25727fi 25728 25729# Check whether --enable-xwin was given. 25730if test ${enable_xwin+y} 25731then : 25732 enableval=$enable_xwin; XWIN=$enableval 25733else $as_nop 25734 XWIN=auto 25735fi 25736 25737# Check whether --enable-glamor was given. 25738if test ${enable_glamor+y} 25739then : 25740 enableval=$enable_glamor; GLAMOR=$enableval 25741else $as_nop 25742 GLAMOR=auto 25743fi 25744 25745# Check whether --enable-xf86-input-inputtest was given. 25746if test ${enable_xf86_input_inputtest+y} 25747then : 25748 enableval=$enable_xf86_input_inputtest; XORG_DRIVER_INPUT_INPUTTEST=$enableval 25749else $as_nop 25750 XORG_DRIVER_INPUT_INPUTTEST=yes 25751fi 25752 25753# Check whether --enable-kdrive was given. 25754if test ${enable_kdrive+y} 25755then : 25756 enableval=$enable_kdrive; KDRIVE=$enableval 25757else $as_nop 25758 KDRIVE=no 25759fi 25760 25761# Check whether --enable-xephyr was given. 25762if test ${enable_xephyr+y} 25763then : 25764 enableval=$enable_xephyr; XEPHYR=$enableval 25765else $as_nop 25766 XEPHYR=auto 25767fi 25768 25769# Check whether --enable-libunwind was given. 25770if test ${enable_libunwind+y} 25771then : 25772 enableval=$enable_libunwind; LIBUNWIND="$enableval" 25773else $as_nop 25774 LIBUNWIND="auto" 25775fi 25776 25777# Check whether --enable-xshmfence was given. 25778if test ${enable_xshmfence+y} 25779then : 25780 enableval=$enable_xshmfence; XSHMFENCE="$enableval" 25781else $as_nop 25782 XSHMFENCE="auto" 25783fi 25784 25785 25786 25787# Check whether --enable-install-setuid was given. 25788if test ${enable_install_setuid+y} 25789then : 25790 enableval=$enable_install_setuid; SETUID=$enableval 25791else $as_nop 25792 SETUID=auto 25793fi 25794 25795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if we can install the Xorg server as root" >&5 25796printf %s "checking to see if we can install the Xorg server as root... " >&6; } 25797if test "x$SETUID" = "xauto" ; then 25798 case $host_os in 25799 cygwin*) SETUID="no" ;; 25800 mingw*) SETUID="no" ;; 25801 darwin*) SETUID="no" ;; 25802 *) 25803 case $host_cpu in 25804 sparc) SETUID="no" ;; 25805 *) SETUID="yes" ;; 25806 esac 25807 esac 25808 if test "x$SETUID" = xyes; then 25809 touch testfile 25810 chown root testfile > /dev/null 2>&1 || SETUID="no" 25811 rm -f testfile 25812 fi 25813fi 25814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SETUID" >&5 25815printf "%s\n" "$SETUID" >&6; } 25816 if test "x$SETUID" = "xyes"; then 25817 INSTALL_SETUID_TRUE= 25818 INSTALL_SETUID_FALSE='#' 25819else 25820 INSTALL_SETUID_TRUE='#' 25821 INSTALL_SETUID_FALSE= 25822fi 25823 25824 25825 25826 25827# Transport selection macro from xtrans.m4 25828 25829 25830 case $host_os in 25831 mingw*) unixdef="no" ;; 25832 *) unixdef="yes" ;; 25833 esac 25834 # Check whether --enable-unix-transport was given. 25835if test ${enable_unix_transport+y} 25836then : 25837 enableval=$enable_unix_transport; UNIXCONN=$enableval 25838else $as_nop 25839 UNIXCONN=$unixdef 25840fi 25841 25842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 25843printf %s "checking if Xtrans should support UNIX socket connections... " >&6; } 25844 if test "$UNIXCONN" = "yes"; then 25845 25846printf "%s\n" "#define UNIXCONN 1" >>confdefs.h 25847 25848 fi 25849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 25850printf "%s\n" "$UNIXCONN" >&6; } 25851 # Check whether --enable-tcp-transport was given. 25852if test ${enable_tcp_transport+y} 25853then : 25854 enableval=$enable_tcp_transport; TCPCONN=$enableval 25855else $as_nop 25856 TCPCONN=yes 25857fi 25858 25859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 25860printf %s "checking if Xtrans should support TCP socket connections... " >&6; } 25861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 25862printf "%s\n" "$TCPCONN" >&6; } 25863 if test "$TCPCONN" = "yes"; then 25864 25865printf "%s\n" "#define TCPCONN 1" >>confdefs.h 25866 25867 25868 # SVR4 hides these in libraries other than libc 25869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 25870printf %s "checking for library containing socket... " >&6; } 25871if test ${ac_cv_search_socket+y} 25872then : 25873 printf %s "(cached) " >&6 25874else $as_nop 25875 ac_func_search_save_LIBS=$LIBS 25876cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25877/* end confdefs.h. */ 25878 25879/* Override any GCC internal prototype to avoid an error. 25880 Use char because int might match the return type of a GCC 25881 builtin and then its argument prototype would still apply. 25882 The 'extern "C"' is for builds by C++ compilers; 25883 although this is not generally supported in C code supporting it here 25884 has little cost and some practical benefit (sr 110532). */ 25885#ifdef __cplusplus 25886extern "C" 25887#endif 25888char socket (void); 25889int 25890main (void) 25891{ 25892return socket (); 25893 ; 25894 return 0; 25895} 25896_ACEOF 25897for ac_lib in '' socket 25898do 25899 if test -z "$ac_lib"; then 25900 ac_res="none required" 25901 else 25902 ac_res=-l$ac_lib 25903 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 25904 fi 25905 if ac_fn_c_try_link "$LINENO" 25906then : 25907 ac_cv_search_socket=$ac_res 25908fi 25909rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25910 conftest$ac_exeext 25911 if test ${ac_cv_search_socket+y} 25912then : 25913 break 25914fi 25915done 25916if test ${ac_cv_search_socket+y} 25917then : 25918 25919else $as_nop 25920 ac_cv_search_socket=no 25921fi 25922rm conftest.$ac_ext 25923LIBS=$ac_func_search_save_LIBS 25924fi 25925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 25926printf "%s\n" "$ac_cv_search_socket" >&6; } 25927ac_res=$ac_cv_search_socket 25928if test "$ac_res" != no 25929then : 25930 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 25931 25932fi 25933 25934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 25935printf %s "checking for library containing gethostbyname... " >&6; } 25936if test ${ac_cv_search_gethostbyname+y} 25937then : 25938 printf %s "(cached) " >&6 25939else $as_nop 25940 ac_func_search_save_LIBS=$LIBS 25941cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25942/* end confdefs.h. */ 25943 25944/* Override any GCC internal prototype to avoid an error. 25945 Use char because int might match the return type of a GCC 25946 builtin and then its argument prototype would still apply. 25947 The 'extern "C"' is for builds by C++ compilers; 25948 although this is not generally supported in C code supporting it here 25949 has little cost and some practical benefit (sr 110532). */ 25950#ifdef __cplusplus 25951extern "C" 25952#endif 25953char gethostbyname (void); 25954int 25955main (void) 25956{ 25957return gethostbyname (); 25958 ; 25959 return 0; 25960} 25961_ACEOF 25962for ac_lib in '' nsl 25963do 25964 if test -z "$ac_lib"; then 25965 ac_res="none required" 25966 else 25967 ac_res=-l$ac_lib 25968 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 25969 fi 25970 if ac_fn_c_try_link "$LINENO" 25971then : 25972 ac_cv_search_gethostbyname=$ac_res 25973fi 25974rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25975 conftest$ac_exeext 25976 if test ${ac_cv_search_gethostbyname+y} 25977then : 25978 break 25979fi 25980done 25981if test ${ac_cv_search_gethostbyname+y} 25982then : 25983 25984else $as_nop 25985 ac_cv_search_gethostbyname=no 25986fi 25987rm conftest.$ac_ext 25988LIBS=$ac_func_search_save_LIBS 25989fi 25990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 25991printf "%s\n" "$ac_cv_search_gethostbyname" >&6; } 25992ac_res=$ac_cv_search_gethostbyname 25993if test "$ac_res" != no 25994then : 25995 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 25996 25997fi 25998 25999 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 26000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 26001printf %s "checking for main in -lws2_32... " >&6; } 26002if test ${ac_cv_lib_ws2_32_main+y} 26003then : 26004 printf %s "(cached) " >&6 26005else $as_nop 26006 ac_check_lib_save_LIBS=$LIBS 26007LIBS="-lws2_32 $LIBS" 26008cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26009/* end confdefs.h. */ 26010 26011 26012int 26013main (void) 26014{ 26015return main (); 26016 ; 26017 return 0; 26018} 26019_ACEOF 26020if ac_fn_c_try_link "$LINENO" 26021then : 26022 ac_cv_lib_ws2_32_main=yes 26023else $as_nop 26024 ac_cv_lib_ws2_32_main=no 26025fi 26026rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26027 conftest$ac_exeext conftest.$ac_ext 26028LIBS=$ac_check_lib_save_LIBS 26029fi 26030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 26031printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; } 26032if test "x$ac_cv_lib_ws2_32_main" = xyes 26033then : 26034 printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h 26035 26036 LIBS="-lws2_32 $LIBS" 26037 26038fi 26039 26040 fi 26041 26042 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 26043 # Check whether --enable-ipv6 was given. 26044if test ${enable_ipv6+y} 26045then : 26046 enableval=$enable_ipv6; IPV6CONN=$enableval 26047else $as_nop 26048 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 26049if test "x$ac_cv_func_getaddrinfo" = xyes 26050then : 26051 IPV6CONN=yes 26052else $as_nop 26053 IPV6CONN=no 26054fi 26055 26056fi 26057 26058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 26059printf %s "checking if IPv6 support should be built... " >&6; } 26060 if test "$IPV6CONN" = "yes"; then 26061 26062printf "%s\n" "#define IPv6 1" >>confdefs.h 26063 26064 fi 26065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 26066printf "%s\n" "$IPV6CONN" >&6; } 26067 26068 # 4.3BSD-Reno added a new member to struct sockaddr_in 26069 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 26070#include <sys/types.h> 26071#include <sys/socket.h> 26072#include <netinet/in.h> 26073 26074" 26075if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes 26076then : 26077 26078printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h 26079 26080fi 26081 26082 26083 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 26084 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 26085$ac_includes_default 26086#include <sys/socket.h> 26087" 26088if test "x$ac_cv_type_socklen_t" = xyes 26089then : 26090 26091printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h 26092 26093 26094fi 26095 26096 26097 # XPG4v2/UNIX95 added msg_control - check to see if we need to define 26098 # _XOPEN_SOURCE to get it (such as on Solaris) 26099 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 26100$ac_includes_default 26101#include <sys/socket.h> 26102 26103" 26104if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 26105then : 26106 26107fi 26108 26109 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03 26110 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 26111 unset ac_cv_member_struct_msghdr_msg_control 26112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5 26113printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;} 26114 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 26115#define _XOPEN_SOURCE 600 26116$ac_includes_default 26117#include <sys/socket.h> 26118 26119" 26120if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 26121then : 26122 26123printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h 26124 26125 26126fi 26127 26128 fi 26129 # If that didn't work, fall back to XPG5/UNIX98 with C89 26130 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 26131 unset ac_cv_member_struct_msghdr_msg_control 26132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5 26133printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;} 26134 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 26135#define _XOPEN_SOURCE 500 26136$ac_includes_default 26137#include <sys/socket.h> 26138 26139" 26140if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 26141then : 26142 26143printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 26144 26145 26146fi 26147 26148 fi 26149 26150 26151 26152 fi 26153 case $host_os in 26154 solaris*) localdef="yes" ;; 26155 *) localdef="no" ;; 26156 esac 26157 # Check whether --enable-local-transport was given. 26158if test ${enable_local_transport+y} 26159then : 26160 enableval=$enable_local_transport; LOCALCONN=$enableval 26161else $as_nop 26162 LOCALCONN=$localdef 26163fi 26164 26165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 26166printf %s "checking if Xtrans should support os-specific local connections... " >&6; } 26167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 26168printf "%s\n" "$LOCALCONN" >&6; } 26169 if test "$LOCALCONN" = "yes"; then 26170 26171printf "%s\n" "#define LOCALCONN 1" >>confdefs.h 26172 26173 fi 26174 26175 # Other functions Xtrans may need 26176 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 26177if test "x$ac_cv_func_strcasecmp" = xyes 26178then : 26179 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 26180 26181fi 26182ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 26183if test "x$ac_cv_func_strlcpy" = xyes 26184then : 26185 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 26186 26187fi 26188 26189 26190 26191 26192# Secure RPC detection macro from xtrans.m4 26193 26194 # Check whether --enable-secure-rpc was given. 26195if test ${enable_secure_rpc+y} 26196then : 26197 enableval=$enable_secure_rpc; SECURE_RPC=$enableval 26198else $as_nop 26199 SECURE_RPC="try" 26200fi 26201 26202 26203 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then 26204 FOUND_SECURE_RPC="no" 26205 26206 for ac_func in authdes_seccreate authdes_create 26207do : 26208 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh` 26209ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 26210if eval test \"x\$"$as_ac_var"\" = x"yes" 26211then : 26212 cat >>confdefs.h <<_ACEOF 26213#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 26214_ACEOF 26215 FOUND_SECURE_RPC="yes" 26216fi 26217 26218done 26219 if test "x$FOUND_SECURE_RPC" = "xno" ; then 26220 if test "x$SECURE_RPC" = "xyes" ; then 26221 as_fn_error $? "Secure RPC requested, but required functions not found" "$LINENO" 5 26222 fi 26223 SECURE_RPC="no" 26224 else 26225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5 26226printf %s "checking for library containing getsecretkey... " >&6; } 26227if test ${ac_cv_search_getsecretkey+y} 26228then : 26229 printf %s "(cached) " >&6 26230else $as_nop 26231 ac_func_search_save_LIBS=$LIBS 26232cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26233/* end confdefs.h. */ 26234 26235/* Override any GCC internal prototype to avoid an error. 26236 Use char because int might match the return type of a GCC 26237 builtin and then its argument prototype would still apply. 26238 The 'extern "C"' is for builds by C++ compilers; 26239 although this is not generally supported in C code supporting it here 26240 has little cost and some practical benefit (sr 110532). */ 26241#ifdef __cplusplus 26242extern "C" 26243#endif 26244char getsecretkey (void); 26245int 26246main (void) 26247{ 26248return getsecretkey (); 26249 ; 26250 return 0; 26251} 26252_ACEOF 26253for ac_lib in '' rpcsvc 26254do 26255 if test -z "$ac_lib"; then 26256 ac_res="none required" 26257 else 26258 ac_res=-l$ac_lib 26259 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 26260 fi 26261 if ac_fn_c_try_link "$LINENO" 26262then : 26263 ac_cv_search_getsecretkey=$ac_res 26264fi 26265rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26266 conftest$ac_exeext 26267 if test ${ac_cv_search_getsecretkey+y} 26268then : 26269 break 26270fi 26271done 26272if test ${ac_cv_search_getsecretkey+y} 26273then : 26274 26275else $as_nop 26276 ac_cv_search_getsecretkey=no 26277fi 26278rm conftest.$ac_ext 26279LIBS=$ac_func_search_save_LIBS 26280fi 26281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5 26282printf "%s\n" "$ac_cv_search_getsecretkey" >&6; } 26283ac_res=$ac_cv_search_getsecretkey 26284if test "$ac_res" != no 26285then : 26286 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 26287 26288fi 26289 26290 SECURE_RPC="yes" 26291 fi 26292 fi 26293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5 26294printf %s "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; } 26295 if test "x$SECURE_RPC" = "xyes" ; then 26296 26297printf "%s\n" "#define SECURE_RPC 1" >>confdefs.h 26298 26299 fi 26300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5 26301printf "%s\n" "$SECURE_RPC" >&6; } 26302 26303 if test "x$SECURE_RPC" = xyes; then 26304 SECURE_RPC_TRUE= 26305 SECURE_RPC_FALSE='#' 26306else 26307 SECURE_RPC_TRUE='#' 26308 SECURE_RPC_FALSE= 26309fi 26310 26311 26312 if test "x$INT10" = xvm86; then 26313 INT10_VM86_TRUE= 26314 INT10_VM86_FALSE='#' 26315else 26316 INT10_VM86_TRUE='#' 26317 INT10_VM86_FALSE= 26318fi 26319 26320 if test "x$INT10" = xx86emu; then 26321 INT10_X86EMU_TRUE= 26322 INT10_X86EMU_FALSE='#' 26323else 26324 INT10_X86EMU_TRUE='#' 26325 INT10_X86EMU_FALSE= 26326fi 26327 26328 if test "x$INT10" = xstub; then 26329 INT10_STUB_TRUE= 26330 INT10_STUB_FALSE='#' 26331else 26332 INT10_STUB_TRUE='#' 26333 INT10_STUB_FALSE= 26334fi 26335 26336 26337case $host_os in 26338 cygwin* | mingw*) 26339 CONFIG_HAL=no 26340 CONFIG_UDEV=no 26341 CONFIG_UDEV_KMS=no 26342 DGA=no 26343 DRM=no 26344 DRI2=no 26345 DRI3=no 26346 INT10MODULE=no 26347 PCI=no 26348 VGAHW=no 26349 XF86UTILS=no 26350 XF86VIDMODE=no 26351 XSELINUX=no 26352 SYMBOL_VISIBILITY=no 26353 ;; 26354 darwin*) 26355 PCI=no 26356 INT10MODULE=no 26357 VGAHW=no 26358 DRM=no 26359 DRI2=no 26360 DRI3=no 26361 26362 if test x$XQUARTZ = xauto; then 26363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build Xquartz" >&5 26364printf %s "checking whether to build Xquartz... " >&6; } 26365if test ${xorg_cv_Carbon_framework+y} 26366then : 26367 printf %s "(cached) " >&6 26368else $as_nop 26369 26370 save_LDFLAGS=$LDFLAGS 26371 LDFLAGS="$LDFLAGS -framework Carbon" 26372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26373/* end confdefs.h. */ 26374char FSFindFolder(); int main() { FSFindFolder(); return 0;} 26375_ACEOF 26376if ac_fn_c_try_link "$LINENO" 26377then : 26378 xorg_cv_Carbon_framework=yes 26379else $as_nop 26380 xorg_cv_Carbon_framework=no 26381fi 26382rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26383 conftest$ac_exeext conftest.$ac_ext 26384 LDFLAGS=$save_LDFLAGS 26385fi 26386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_Carbon_framework" >&5 26387printf "%s\n" "$xorg_cv_Carbon_framework" >&6; } 26388 26389 if test "X$xorg_cv_Carbon_framework" = Xyes; then 26390 XQUARTZ=yes 26391 else 26392 XQUARTZ=no 26393 fi 26394 fi 26395 26396 if test "x$XQUARTZ" = xyes ; then 26397 XQUARTZ=yes 26398 XVFB=no 26399 XNEST=no 26400 26401 DGA=no 26402 DPMSExtension=no 26403 XF86VIDMODE=no 26404 fi 26405 ;; 26406 gnu*) 26407 DRM=no 26408 DRI2=no 26409 DRI3=no 26410 ;; 26411 *) XQUARTZ=no ;; 26412esac 26413 26414XEXT_INC='-I$(top_srcdir)/Xext' 26415XEXT_LIB='$(top_builddir)/Xext/libXext.la' 26416 26417VIDEOPROTO="videoproto" 26418COMPOSITEPROTO="compositeproto >= 0.4" 26419RECORDPROTO="recordproto >= 1.13.99.1" 26420SCRNSAVERPROTO="scrnsaverproto >= 1.1" 26421RESOURCEPROTO="resourceproto >= 1.2.0" 26422DRIPROTO="xf86driproto >= 2.1.0" 26423DRI2PROTO="dri2proto >= 2.8" 26424DRI3PROTO="dri3proto >= 1.2" 26425XINERAMAPROTO="xineramaproto" 26426BIGFONTPROTO="xf86bigfontproto >= 1.2.0" 26427DGAPROTO="xf86dgaproto >= 2.0.99.1" 26428GLPROTO="glproto >= 1.4.17" 26429VIDMODEPROTO="xf86vidmodeproto >= 2.2.99.1" 26430APPLEWMPROTO="applewmproto >= 1.4" 26431LIBXSHMFENCE="xshmfence >= 1.1" 26432 26433XPROTO="xproto >= 7.0.31" 26434RANDRPROTO="randrproto >= 1.6.0" 26435RENDERPROTO="renderproto >= 0.11" 26436XEXTPROTO="xextproto >= 7.2.99.901" 26437INPUTPROTO="inputproto >= 2.3.99.1" 26438KBPROTO="kbproto >= 1.0.3" 26439FONTSPROTO="fontsproto >= 2.1.3" 26440FIXESPROTO="fixesproto >= 6.0" 26441DAMAGEPROTO="damageproto >= 1.1" 26442XCMISCPROTO="xcmiscproto >= 1.2.0" 26443BIGREQSPROTO="bigreqsproto >= 1.1.0" 26444XTRANS="xtrans >= 1.3.5" 26445PRESENTPROTO="presentproto >= 1.2" 26446 26447LIBAPPLEWM="applewm >= 1.4" 26448LIBDRI="dri >= 7.8.0" 26449LIBDRM="libdrm >= 2.4.89" 26450LIBEGL="egl" 26451LIBGBM="gbm >= 10.2.0" 26452LIBGL="gl >= 1.2" 26453LIBXEXT="xext >= 1.0.99.4" 26454LIBXFONT="xfont2 >= 2.0.0" 26455LIBXI="xi >= 1.2.99.1" 26456LIBXTST="xtst >= 1.0.99.2" 26457LIBPCIACCESS="pciaccess >= 0.12.901" 26458LIBUDEV="libudev >= 143" 26459LIBSELINUX="libselinux >= 2.0.86" 26460LIBDBUS="dbus-1 >= 1.0" 26461LIBPIXMAN="pixman-1 >= 0.27.2" 26462LIBXCVT="libxcvt" 26463 26464 26465pkg_failed=no 26466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBPIXMAN" >&5 26467printf %s "checking for $LIBPIXMAN... " >&6; } 26468 26469if test -n "$PIXMAN_CFLAGS"; then 26470 pkg_cv_PIXMAN_CFLAGS="$PIXMAN_CFLAGS" 26471 elif test -n "$PKG_CONFIG"; then 26472 if test -n "$PKG_CONFIG" && \ 26473 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPIXMAN\""; } >&5 26474 ($PKG_CONFIG --exists --print-errors "$LIBPIXMAN") 2>&5 26475 ac_status=$? 26476 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26477 test $ac_status = 0; }; then 26478 pkg_cv_PIXMAN_CFLAGS=`$PKG_CONFIG --cflags "$LIBPIXMAN" 2>/dev/null` 26479 test "x$?" != "x0" && pkg_failed=yes 26480else 26481 pkg_failed=yes 26482fi 26483 else 26484 pkg_failed=untried 26485fi 26486if test -n "$PIXMAN_LIBS"; then 26487 pkg_cv_PIXMAN_LIBS="$PIXMAN_LIBS" 26488 elif test -n "$PKG_CONFIG"; then 26489 if test -n "$PKG_CONFIG" && \ 26490 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPIXMAN\""; } >&5 26491 ($PKG_CONFIG --exists --print-errors "$LIBPIXMAN") 2>&5 26492 ac_status=$? 26493 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26494 test $ac_status = 0; }; then 26495 pkg_cv_PIXMAN_LIBS=`$PKG_CONFIG --libs "$LIBPIXMAN" 2>/dev/null` 26496 test "x$?" != "x0" && pkg_failed=yes 26497else 26498 pkg_failed=yes 26499fi 26500 else 26501 pkg_failed=untried 26502fi 26503 26504 26505 26506if test $pkg_failed = yes; then 26507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26508printf "%s\n" "no" >&6; } 26509 26510if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 26511 _pkg_short_errors_supported=yes 26512else 26513 _pkg_short_errors_supported=no 26514fi 26515 if test $_pkg_short_errors_supported = yes; then 26516 PIXMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBPIXMAN" 2>&1` 26517 else 26518 PIXMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBPIXMAN" 2>&1` 26519 fi 26520 # Put the nasty error message in config.log where it belongs 26521 echo "$PIXMAN_PKG_ERRORS" >&5 26522 26523 as_fn_error $? "Package requirements ($LIBPIXMAN) were not met: 26524 26525$PIXMAN_PKG_ERRORS 26526 26527Consider adjusting the PKG_CONFIG_PATH environment variable if you 26528installed software in a non-standard prefix. 26529 26530Alternatively, you may set the environment variables PIXMAN_CFLAGS 26531and PIXMAN_LIBS to avoid the need to call pkg-config. 26532See the pkg-config man page for more details." "$LINENO" 5 26533elif test $pkg_failed = untried; then 26534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26535printf "%s\n" "no" >&6; } 26536 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26537printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 26538as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 26539is in your PATH or set the PKG_CONFIG environment variable to the full 26540path to pkg-config. 26541 26542Alternatively, you may set the environment variables PIXMAN_CFLAGS 26543and PIXMAN_LIBS to avoid the need to call pkg-config. 26544See the pkg-config man page for more details. 26545 26546To get pkg-config, see <http://pkg-config.freedesktop.org/>. 26547See \`config.log' for more details" "$LINENO" 5; } 26548else 26549 PIXMAN_CFLAGS=$pkg_cv_PIXMAN_CFLAGS 26550 PIXMAN_LIBS=$pkg_cv_PIXMAN_LIBS 26551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26552printf "%s\n" "yes" >&6; } 26553 26554fi 26555REQUIRED_LIBS="$REQUIRED_LIBS $LIBPIXMAN $LIBXFONT xau" 26556 26557SDK_REQUIRED_MODULES="$XPROTO $RANDRPROTO $RENDERPROTO $XEXTPROTO $INPUTPROTO $KBPROTO $FONTSPROTO $LIBPIXMAN $LIBXCVT" 26558# Make SDK_REQUIRED_MODULES available for inclusion in xorg-server.pc 26559 26560 26561ac_fn_check_decl "$LINENO" "PTHREAD_MUTEX_RECURSIVE" "ac_cv_have_decl_PTHREAD_MUTEX_RECURSIVE" "#include <pthread.h> 26562" "$ac_c_undeclared_builtin_options" "CFLAGS" 26563if test "x$ac_cv_have_decl_PTHREAD_MUTEX_RECURSIVE" = xyes 26564then : 26565 HAVE_RECURSIVE_MUTEX=yes 26566else $as_nop 26567 HAVE_RECURSIVE_MUTEX=no 26568fi 26569 26570THREAD_DEFAULT=no 26571 26572if test "x$HAVE_RECURSIVE_MUTEX" = "xyes" ; then 26573 THREAD_DEFAULT=yes 26574fi 26575 26576case $host_os in 26577 mingw*) THREAD_DEFAULT=no ;; 26578 *) 26579esac 26580 26581# Check whether --enable-input-thread was given. 26582if test ${enable_input_thread+y} 26583then : 26584 enableval=$enable_input_thread; INPUTTHREAD=$enableval 26585else $as_nop 26586 INPUTTHREAD=$THREAD_DEFAULT 26587fi 26588 26589 26590if test "x$INPUTTHREAD" = "xyes" ; then 26591 26592 26593ac_ext=c 26594ac_cpp='$CPP $CPPFLAGS' 26595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26597ac_compiler_gnu=$ac_cv_c_compiler_gnu 26598 26599ax_pthread_ok=no 26600 26601# We used to check for pthread.h first, but this fails if pthread.h 26602# requires special compiler flags (e.g. on True64 or Sequent). 26603# It gets checked for in the link test anyway. 26604 26605# First of all, check if the user has set any of the PTHREAD_LIBS, 26606# etcetera environment variables, and if threads linking works using 26607# them: 26608if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 26609 save_CFLAGS="$CFLAGS" 26610 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 26611 save_LIBS="$LIBS" 26612 LIBS="$PTHREAD_LIBS $LIBS" 26613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 26614printf %s "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 26615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26616/* end confdefs.h. */ 26617 26618/* Override any GCC internal prototype to avoid an error. 26619 Use char because int might match the return type of a GCC 26620 builtin and then its argument prototype would still apply. 26621 The 'extern "C"' is for builds by C++ compilers; 26622 although this is not generally supported in C code supporting it here 26623 has little cost and some practical benefit (sr 110532). */ 26624#ifdef __cplusplus 26625extern "C" 26626#endif 26627char pthread_join (void); 26628int 26629main (void) 26630{ 26631return pthread_join (); 26632 ; 26633 return 0; 26634} 26635_ACEOF 26636if ac_fn_c_try_link "$LINENO" 26637then : 26638 ax_pthread_ok=yes 26639fi 26640rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26641 conftest$ac_exeext conftest.$ac_ext 26642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 26643printf "%s\n" "$ax_pthread_ok" >&6; } 26644 if test x"$ax_pthread_ok" = xno; then 26645 PTHREAD_LIBS="" 26646 PTHREAD_CFLAGS="" 26647 fi 26648 LIBS="$save_LIBS" 26649 CFLAGS="$save_CFLAGS" 26650fi 26651 26652# We must check for the threads library under a number of different 26653# names; the ordering is very important because some systems 26654# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 26655# libraries is broken (non-POSIX). 26656 26657# Create a list of thread flags to try. Items starting with a "-" are 26658# C compiler flags, and other items are library names, except for "none" 26659# which indicates that we try without any flags at all, and "pthread-config" 26660# which is a program returning the flags for the Pth emulation library. 26661 26662ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 26663 26664# The ordering *is* (sometimes) important. Some notes on the 26665# individual items follow: 26666 26667# pthreads: AIX (must check this before -lpthread) 26668# none: in case threads are in libc; should be tried before -Kthread and 26669# other compiler flags to prevent continual compiler warnings 26670# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 26671# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 26672# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 26673# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 26674# -pthreads: Solaris/gcc 26675# -mthreads: Mingw32/gcc, Lynx/gcc 26676# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 26677# doesn't hurt to check since this sometimes defines pthreads too; 26678# also defines -D_REENTRANT) 26679# ... -mt is also the pthreads flag for HP/aCC 26680# pthread: Linux, etcetera 26681# --thread-safe: KAI C++ 26682# pthread-config: use pthread-config program (for GNU Pth library) 26683 26684case ${host_os} in 26685 solaris*) 26686 26687 # On Solaris (at least, for some versions), libc contains stubbed 26688 # (non-functional) versions of the pthreads routines, so link-based 26689 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 26690 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 26691 # a function called by this macro, so we could check for that, but 26692 # who knows whether they'll stub that too in a future libc.) So, 26693 # we'll just look for -pthreads and -lpthread first: 26694 26695 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 26696 ;; 26697 26698 darwin*) 26699 ax_pthread_flags="-pthread $ax_pthread_flags" 26700 ;; 26701 netbsd*) 26702 # use libc stubs, don't link against libpthread, to allow 26703 # dynamic loading 26704 ax_pthread_flags="" 26705 ;; 26706esac 26707 26708# Clang doesn't consider unrecognized options an error unless we specify 26709# -Werror. We throw in some extra Clang-specific options to ensure that 26710# this doesn't happen for GCC, which also accepts -Werror. 26711 26712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5 26713printf %s "checking if compiler needs -Werror to reject unknown flags... " >&6; } 26714save_CFLAGS="$CFLAGS" 26715ax_pthread_extra_flags="-Werror" 26716CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument" 26717cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26718/* end confdefs.h. */ 26719int foo(void); 26720int 26721main (void) 26722{ 26723foo() 26724 ; 26725 return 0; 26726} 26727_ACEOF 26728if ac_fn_c_try_compile "$LINENO" 26729then : 26730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26731printf "%s\n" "yes" >&6; } 26732else $as_nop 26733 ax_pthread_extra_flags= 26734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26735printf "%s\n" "no" >&6; } 26736fi 26737rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26738CFLAGS="$save_CFLAGS" 26739 26740if test x"$ax_pthread_ok" = xno; then 26741for flag in $ax_pthread_flags; do 26742 26743 case $flag in 26744 none) 26745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 26746printf %s "checking whether pthreads work without any flags... " >&6; } 26747 ;; 26748 26749 -*) 26750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 26751printf %s "checking whether pthreads work with $flag... " >&6; } 26752 PTHREAD_CFLAGS="$flag" 26753 ;; 26754 26755 pthread-config) 26756 # Extract the first word of "pthread-config", so it can be a program name with args. 26757set dummy pthread-config; ac_word=$2 26758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26759printf %s "checking for $ac_word... " >&6; } 26760if test ${ac_cv_prog_ax_pthread_config+y} 26761then : 26762 printf %s "(cached) " >&6 26763else $as_nop 26764 if test -n "$ax_pthread_config"; then 26765 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 26766else 26767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26768for as_dir in $PATH 26769do 26770 IFS=$as_save_IFS 26771 case $as_dir in #((( 26772 '') as_dir=./ ;; 26773 */) ;; 26774 *) as_dir=$as_dir/ ;; 26775 esac 26776 for ac_exec_ext in '' $ac_executable_extensions; do 26777 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 26778 ac_cv_prog_ax_pthread_config="yes" 26779 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 26780 break 2 26781 fi 26782done 26783 done 26784IFS=$as_save_IFS 26785 26786 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 26787fi 26788fi 26789ax_pthread_config=$ac_cv_prog_ax_pthread_config 26790if test -n "$ax_pthread_config"; then 26791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 26792printf "%s\n" "$ax_pthread_config" >&6; } 26793else 26794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26795printf "%s\n" "no" >&6; } 26796fi 26797 26798 26799 if test x"$ax_pthread_config" = xno; then continue; fi 26800 PTHREAD_CFLAGS="`pthread-config --cflags`" 26801 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 26802 ;; 26803 26804 *) 26805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 26806printf %s "checking for the pthreads library -l$flag... " >&6; } 26807 PTHREAD_LIBS="-l$flag" 26808 ;; 26809 esac 26810 26811 save_LIBS="$LIBS" 26812 save_CFLAGS="$CFLAGS" 26813 LIBS="$PTHREAD_LIBS $LIBS" 26814 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags" 26815 26816 # Check for various functions. We must include pthread.h, 26817 # since some functions may be macros. (On the Sequent, we 26818 # need a special flag -Kthread to make this header compile.) 26819 # We check for pthread_join because it is in -lpthread on IRIX 26820 # while pthread_create is in libc. We check for pthread_attr_init 26821 # due to DEC craziness with -lpthreads. We check for 26822 # pthread_cleanup_push because it is one of the few pthread 26823 # functions on Solaris that doesn't have a non-functional libc stub. 26824 # We try pthread_create on general principles. 26825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26826/* end confdefs.h. */ 26827#include <pthread.h> 26828 static void routine(void *a) { a = 0; } 26829 static void *start_routine(void *a) { return a; } 26830int 26831main (void) 26832{ 26833pthread_t th; pthread_attr_t attr; 26834 pthread_create(&th, 0, start_routine, 0); 26835 pthread_join(th, 0); 26836 pthread_attr_init(&attr); 26837 pthread_cleanup_push(routine, 0); 26838 pthread_cleanup_pop(0) /* ; */ 26839 ; 26840 return 0; 26841} 26842_ACEOF 26843if ac_fn_c_try_link "$LINENO" 26844then : 26845 ax_pthread_ok=yes 26846fi 26847rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26848 conftest$ac_exeext conftest.$ac_ext 26849 26850 LIBS="$save_LIBS" 26851 CFLAGS="$save_CFLAGS" 26852 26853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 26854printf "%s\n" "$ax_pthread_ok" >&6; } 26855 if test "x$ax_pthread_ok" = xyes; then 26856 break; 26857 fi 26858 26859 PTHREAD_LIBS="" 26860 PTHREAD_CFLAGS="" 26861done 26862fi 26863 26864# Various other checks: 26865if test "x$ax_pthread_ok" = xyes; then 26866 save_LIBS="$LIBS" 26867 LIBS="$PTHREAD_LIBS $LIBS" 26868 save_CFLAGS="$CFLAGS" 26869 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 26870 26871 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 26872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 26873printf %s "checking for joinable pthread attribute... " >&6; } 26874 attr_name=unknown 26875 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 26876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26877/* end confdefs.h. */ 26878#include <pthread.h> 26879int 26880main (void) 26881{ 26882int attr = $attr; return attr /* ; */ 26883 ; 26884 return 0; 26885} 26886_ACEOF 26887if ac_fn_c_try_link "$LINENO" 26888then : 26889 attr_name=$attr; break 26890fi 26891rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26892 conftest$ac_exeext conftest.$ac_ext 26893 done 26894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 26895printf "%s\n" "$attr_name" >&6; } 26896 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 26897 26898printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $attr_name" >>confdefs.h 26899 26900 fi 26901 26902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 26903printf %s "checking if more special flags are required for pthreads... " >&6; } 26904 flag=no 26905 case ${host_os} in 26906 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; 26907 osf* | hpux*) flag="-D_REENTRANT";; 26908 solaris*) 26909 if test "$GCC" = "yes"; then 26910 flag="-D_REENTRANT" 26911 else 26912 # TODO: What about Clang on Solaris? 26913 flag="-mt -D_REENTRANT" 26914 fi 26915 ;; 26916 esac 26917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $flag" >&5 26918printf "%s\n" "$flag" >&6; } 26919 if test "x$flag" != xno; then 26920 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 26921 fi 26922 26923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 26924printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; } 26925if test ${ax_cv_PTHREAD_PRIO_INHERIT+y} 26926then : 26927 printf %s "(cached) " >&6 26928else $as_nop 26929 26930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26931/* end confdefs.h. */ 26932#include <pthread.h> 26933int 26934main (void) 26935{ 26936int i = PTHREAD_PRIO_INHERIT; 26937 ; 26938 return 0; 26939} 26940_ACEOF 26941if ac_fn_c_try_link "$LINENO" 26942then : 26943 ax_cv_PTHREAD_PRIO_INHERIT=yes 26944else $as_nop 26945 ax_cv_PTHREAD_PRIO_INHERIT=no 26946fi 26947rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26948 conftest$ac_exeext conftest.$ac_ext 26949 26950fi 26951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 26952printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 26953 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" 26954then : 26955 26956printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 26957 26958fi 26959 26960 LIBS="$save_LIBS" 26961 CFLAGS="$save_CFLAGS" 26962 26963 # More AIX lossage: compile with *_r variant 26964 if test "x$GCC" != xyes; then 26965 case $host_os in 26966 aix*) 26967 case "x/$CC" in #( 26968 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 26969 #handle absolute path differently from PATH based program lookup 26970 case "x$CC" in #( 26971 x/*) : 26972 if as_fn_executable_p ${CC}_r 26973then : 26974 PTHREAD_CC="${CC}_r" 26975fi ;; #( 26976 *) : 26977 for ac_prog in ${CC}_r 26978do 26979 # Extract the first word of "$ac_prog", so it can be a program name with args. 26980set dummy $ac_prog; ac_word=$2 26981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26982printf %s "checking for $ac_word... " >&6; } 26983if test ${ac_cv_prog_PTHREAD_CC+y} 26984then : 26985 printf %s "(cached) " >&6 26986else $as_nop 26987 if test -n "$PTHREAD_CC"; then 26988 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 26989else 26990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26991for as_dir in $PATH 26992do 26993 IFS=$as_save_IFS 26994 case $as_dir in #((( 26995 '') as_dir=./ ;; 26996 */) ;; 26997 *) as_dir=$as_dir/ ;; 26998 esac 26999 for ac_exec_ext in '' $ac_executable_extensions; do 27000 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 27001 ac_cv_prog_PTHREAD_CC="$ac_prog" 27002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 27003 break 2 27004 fi 27005done 27006 done 27007IFS=$as_save_IFS 27008 27009fi 27010fi 27011PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 27012if test -n "$PTHREAD_CC"; then 27013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 27014printf "%s\n" "$PTHREAD_CC" >&6; } 27015else 27016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27017printf "%s\n" "no" >&6; } 27018fi 27019 27020 27021 test -n "$PTHREAD_CC" && break 27022done 27023test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 27024 ;; 27025esac ;; #( 27026 *) : 27027 ;; 27028esac 27029 ;; 27030 esac 27031 fi 27032fi 27033 27034test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 27035 27036 27037 27038 27039 27040# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 27041if test x"$ax_pthread_ok" = xyes; then 27042 27043printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h 27044 27045 : 27046else 27047 ax_pthread_ok=no 27048 as_fn_error $? "threaded input requested but no pthread support has been found" "$LINENO" 5 27049fi 27050ac_ext=c 27051ac_cpp='$CPP $CPPFLAGS' 27052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27054ac_compiler_gnu=$ac_cv_c_compiler_gnu 27055 27056 27057 SYS_LIBS="$SYS_LIBS $PTHREAD_LIBS" 27058 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 27059 27060printf "%s\n" "#define INPUTTHREAD 1" >>confdefs.h 27061 27062 27063 save_LIBS="$LIBS" 27064 LIBS="$LIBS $SYS_LIBS" 27065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np(const char*)" >&5 27066printf %s "checking for pthread_setname_np(const char*)... " >&6; } 27067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27068/* end confdefs.h. */ 27069#include <pthread.h> 27070int 27071main (void) 27072{ 27073pthread_setname_np("example") 27074 ; 27075 return 0; 27076} 27077_ACEOF 27078if ac_fn_c_try_link "$LINENO" 27079then : 27080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27081printf "%s\n" "yes" >&6; } 27082 27083printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP_WITHOUT_TID 1" >>confdefs.h 27084 27085else $as_nop 27086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27087printf "%s\n" "no" >&6; } 27088fi 27089rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27090 conftest$ac_exeext conftest.$ac_ext 27091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np(pthread_t, const char*)" >&5 27092printf %s "checking for pthread_setname_np(pthread_t, const char*)... " >&6; } 27093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27094/* end confdefs.h. */ 27095#include <pthread.h> 27096int 27097main (void) 27098{ 27099pthread_setname_np(pthread_self(), "example") 27100 ; 27101 return 0; 27102} 27103_ACEOF 27104if ac_fn_c_try_link "$LINENO" 27105then : 27106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27107printf "%s\n" "yes" >&6; } 27108 27109printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP_WITH_TID 1" >>confdefs.h 27110 27111else $as_nop 27112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27113printf "%s\n" "no" >&6; } 27114fi 27115rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27116 conftest$ac_exeext conftest.$ac_ext 27117 LIBS="$save_LIBS" 27118fi 27119 27120REQUIRED_MODULES="$FIXESPROTO $DAMAGEPROTO $XCMISCPROTO $XTRANS $BIGREQSPROTO $SDK_REQUIRED_MODULES" 27121 27122LIBSYSTEMD="libsystemd >= 209" 27123 27124# Check whether --with-systemd-daemon was given. 27125if test ${with_systemd_daemon+y} 27126then : 27127 withval=$with_systemd_daemon; WITH_SYSTEMD_DAEMON=$withval 27128else $as_nop 27129 WITH_SYSTEMD_DAEMON=auto 27130fi 27131 27132if test "x$WITH_SYSTEMD_DAEMON" = "xyes" -o "x$WITH_SYSTEMD_DAEMON" = "xauto" ; then 27133 27134pkg_failed=no 27135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBSYSTEMD" >&5 27136printf %s "checking for $LIBSYSTEMD... " >&6; } 27137 27138if test -n "$SYSTEMD_DAEMON_CFLAGS"; then 27139 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS" 27140 elif test -n "$PKG_CONFIG"; then 27141 if test -n "$PKG_CONFIG" && \ 27142 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSYSTEMD\""; } >&5 27143 ($PKG_CONFIG --exists --print-errors "$LIBSYSTEMD") 2>&5 27144 ac_status=$? 27145 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27146 test $ac_status = 0; }; then 27147 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "$LIBSYSTEMD" 2>/dev/null` 27148 test "x$?" != "x0" && pkg_failed=yes 27149else 27150 pkg_failed=yes 27151fi 27152 else 27153 pkg_failed=untried 27154fi 27155if test -n "$SYSTEMD_DAEMON_LIBS"; then 27156 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS" 27157 elif test -n "$PKG_CONFIG"; then 27158 if test -n "$PKG_CONFIG" && \ 27159 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSYSTEMD\""; } >&5 27160 ($PKG_CONFIG --exists --print-errors "$LIBSYSTEMD") 2>&5 27161 ac_status=$? 27162 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27163 test $ac_status = 0; }; then 27164 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "$LIBSYSTEMD" 2>/dev/null` 27165 test "x$?" != "x0" && pkg_failed=yes 27166else 27167 pkg_failed=yes 27168fi 27169 else 27170 pkg_failed=untried 27171fi 27172 27173 27174 27175if test $pkg_failed = yes; then 27176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27177printf "%s\n" "no" >&6; } 27178 27179if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 27180 _pkg_short_errors_supported=yes 27181else 27182 _pkg_short_errors_supported=no 27183fi 27184 if test $_pkg_short_errors_supported = yes; then 27185 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBSYSTEMD" 2>&1` 27186 else 27187 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBSYSTEMD" 2>&1` 27188 fi 27189 # Put the nasty error message in config.log where it belongs 27190 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5 27191 27192 27193pkg_failed=no 27194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd-daemon" >&5 27195printf %s "checking for libsystemd-daemon... " >&6; } 27196 27197if test -n "$SYSTEMD_DAEMON_CFLAGS"; then 27198 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS" 27199 elif test -n "$PKG_CONFIG"; then 27200 if test -n "$PKG_CONFIG" && \ 27201 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 27202 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 27203 ac_status=$? 27204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27205 test $ac_status = 0; }; then 27206 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null` 27207 test "x$?" != "x0" && pkg_failed=yes 27208else 27209 pkg_failed=yes 27210fi 27211 else 27212 pkg_failed=untried 27213fi 27214if test -n "$SYSTEMD_DAEMON_LIBS"; then 27215 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS" 27216 elif test -n "$PKG_CONFIG"; then 27217 if test -n "$PKG_CONFIG" && \ 27218 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 27219 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 27220 ac_status=$? 27221 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27222 test $ac_status = 0; }; then 27223 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null` 27224 test "x$?" != "x0" && pkg_failed=yes 27225else 27226 pkg_failed=yes 27227fi 27228 else 27229 pkg_failed=untried 27230fi 27231 27232 27233 27234if test $pkg_failed = yes; then 27235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27236printf "%s\n" "no" >&6; } 27237 27238if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 27239 _pkg_short_errors_supported=yes 27240else 27241 _pkg_short_errors_supported=no 27242fi 27243 if test $_pkg_short_errors_supported = yes; then 27244 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 27245 else 27246 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 27247 fi 27248 # Put the nasty error message in config.log where it belongs 27249 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5 27250 27251 HAVE_SYSTEMD_DAEMON=no 27252elif test $pkg_failed = untried; then 27253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27254printf "%s\n" "no" >&6; } 27255 HAVE_SYSTEMD_DAEMON=no 27256else 27257 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS 27258 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS 27259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27260printf "%s\n" "yes" >&6; } 27261 HAVE_SYSTEMD_DAEMON=yes; 27262 LIBSYSTEMD_DAEMON=libsystemd-daemon 27263fi 27264elif test $pkg_failed = untried; then 27265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27266printf "%s\n" "no" >&6; } 27267 27268pkg_failed=no 27269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd-daemon" >&5 27270printf %s "checking for libsystemd-daemon... " >&6; } 27271 27272if test -n "$SYSTEMD_DAEMON_CFLAGS"; then 27273 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS" 27274 elif test -n "$PKG_CONFIG"; then 27275 if test -n "$PKG_CONFIG" && \ 27276 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 27277 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 27278 ac_status=$? 27279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27280 test $ac_status = 0; }; then 27281 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null` 27282 test "x$?" != "x0" && pkg_failed=yes 27283else 27284 pkg_failed=yes 27285fi 27286 else 27287 pkg_failed=untried 27288fi 27289if test -n "$SYSTEMD_DAEMON_LIBS"; then 27290 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS" 27291 elif test -n "$PKG_CONFIG"; then 27292 if test -n "$PKG_CONFIG" && \ 27293 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 27294 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 27295 ac_status=$? 27296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27297 test $ac_status = 0; }; then 27298 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null` 27299 test "x$?" != "x0" && pkg_failed=yes 27300else 27301 pkg_failed=yes 27302fi 27303 else 27304 pkg_failed=untried 27305fi 27306 27307 27308 27309if test $pkg_failed = yes; then 27310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27311printf "%s\n" "no" >&6; } 27312 27313if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 27314 _pkg_short_errors_supported=yes 27315else 27316 _pkg_short_errors_supported=no 27317fi 27318 if test $_pkg_short_errors_supported = yes; then 27319 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 27320 else 27321 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 27322 fi 27323 # Put the nasty error message in config.log where it belongs 27324 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5 27325 27326 HAVE_SYSTEMD_DAEMON=no 27327elif test $pkg_failed = untried; then 27328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27329printf "%s\n" "no" >&6; } 27330 HAVE_SYSTEMD_DAEMON=no 27331else 27332 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS 27333 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS 27334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27335printf "%s\n" "yes" >&6; } 27336 HAVE_SYSTEMD_DAEMON=yes; 27337 LIBSYSTEMD_DAEMON=libsystemd-daemon 27338fi 27339else 27340 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS 27341 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS 27342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27343printf "%s\n" "yes" >&6; } 27344 HAVE_SYSTEMD_DAEMON=yes; 27345 LIBSYSTEMD_DAEMON="$LIBSYSTEMD" 27346fi 27347 if test "x$HAVE_SYSTEMD_DAEMON" = xyes; then 27348 27349printf "%s\n" "#define HAVE_SYSTEMD_DAEMON 1" >>confdefs.h 27350 27351 REQUIRED_LIBS="$REQUIRED_LIBS $LIBSYSTEMD_DAEMON" 27352 elif test "x$WITH_SYSTEMD_DAEMON" = xyes; then 27353 as_fn_error $? "systemd support requested but no library has been found" "$LINENO" 5 27354 fi 27355fi 27356 if test "x$HAVE_SYSTEMD_DAEMON" = "xyes"; then 27357 HAVE_SYSTEMD_DAEMON_TRUE= 27358 HAVE_SYSTEMD_DAEMON_FALSE='#' 27359else 27360 HAVE_SYSTEMD_DAEMON_TRUE='#' 27361 HAVE_SYSTEMD_DAEMON_FALSE= 27362fi 27363 27364 27365if test "x$CONFIG_UDEV" = xyes && test "x$CONFIG_HAL" = xyes; then 27366 as_fn_error $? "Hotplugging through both libudev and hal not allowed" "$LINENO" 5 27367fi 27368 27369 27370pkg_failed=no 27371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBUDEV" >&5 27372printf %s "checking for $LIBUDEV... " >&6; } 27373 27374if test -n "$UDEV_CFLAGS"; then 27375 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS" 27376 elif test -n "$PKG_CONFIG"; then 27377 if test -n "$PKG_CONFIG" && \ 27378 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBUDEV\""; } >&5 27379 ($PKG_CONFIG --exists --print-errors "$LIBUDEV") 2>&5 27380 ac_status=$? 27381 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27382 test $ac_status = 0; }; then 27383 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "$LIBUDEV" 2>/dev/null` 27384 test "x$?" != "x0" && pkg_failed=yes 27385else 27386 pkg_failed=yes 27387fi 27388 else 27389 pkg_failed=untried 27390fi 27391if test -n "$UDEV_LIBS"; then 27392 pkg_cv_UDEV_LIBS="$UDEV_LIBS" 27393 elif test -n "$PKG_CONFIG"; then 27394 if test -n "$PKG_CONFIG" && \ 27395 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBUDEV\""; } >&5 27396 ($PKG_CONFIG --exists --print-errors "$LIBUDEV") 2>&5 27397 ac_status=$? 27398 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27399 test $ac_status = 0; }; then 27400 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "$LIBUDEV" 2>/dev/null` 27401 test "x$?" != "x0" && pkg_failed=yes 27402else 27403 pkg_failed=yes 27404fi 27405 else 27406 pkg_failed=untried 27407fi 27408 27409 27410 27411if test $pkg_failed = yes; then 27412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27413printf "%s\n" "no" >&6; } 27414 27415if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 27416 _pkg_short_errors_supported=yes 27417else 27418 _pkg_short_errors_supported=no 27419fi 27420 if test $_pkg_short_errors_supported = yes; then 27421 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBUDEV" 2>&1` 27422 else 27423 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBUDEV" 2>&1` 27424 fi 27425 # Put the nasty error message in config.log where it belongs 27426 echo "$UDEV_PKG_ERRORS" >&5 27427 27428 HAVE_LIBUDEV=no 27429elif test $pkg_failed = untried; then 27430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27431printf "%s\n" "no" >&6; } 27432 HAVE_LIBUDEV=no 27433else 27434 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS 27435 UDEV_LIBS=$pkg_cv_UDEV_LIBS 27436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27437printf "%s\n" "yes" >&6; } 27438 HAVE_LIBUDEV=yes 27439fi 27440if test "x$CONFIG_UDEV" = xauto; then 27441 CONFIG_UDEV="$HAVE_LIBUDEV" 27442fi 27443 if test "x$CONFIG_UDEV" = xyes; then 27444 CONFIG_UDEV_TRUE= 27445 CONFIG_UDEV_FALSE='#' 27446else 27447 CONFIG_UDEV_TRUE='#' 27448 CONFIG_UDEV_FALSE= 27449fi 27450 27451if test "x$CONFIG_UDEV" = xyes; then 27452 CONFIG_HAL=no 27453 if test "x$CONFIG_UDEV_KMS" = xauto; then 27454 CONFIG_UDEV_KMS="$HAVE_LIBUDEV" 27455 fi 27456 if ! test "x$HAVE_LIBUDEV" = xyes; then 27457 as_fn_error $? "udev configuration API requested, but libudev is not installed" "$LINENO" 5 27458 fi 27459 27460printf "%s\n" "#define CONFIG_UDEV 1" >>confdefs.h 27461 27462 if test "x$CONFIG_UDEV_KMS" = xyes; then 27463 27464printf "%s\n" "#define CONFIG_UDEV_KMS 1" >>confdefs.h 27465 27466 fi 27467 SAVE_LIBS=$LIBS 27468 SAVE_CFLAGS=$CFLAGS 27469 CFLAGS="$CFLAGS $UDEV_CFLAGS" 27470 LIBS=$UDEV_LIBS 27471 ac_fn_c_check_func "$LINENO" "udev_monitor_filter_add_match_tag" "ac_cv_func_udev_monitor_filter_add_match_tag" 27472if test "x$ac_cv_func_udev_monitor_filter_add_match_tag" = xyes 27473then : 27474 printf "%s\n" "#define HAVE_UDEV_MONITOR_FILTER_ADD_MATCH_TAG 1" >>confdefs.h 27475 27476fi 27477 27478 ac_fn_c_check_func "$LINENO" "udev_enumerate_add_match_tag" "ac_cv_func_udev_enumerate_add_match_tag" 27479if test "x$ac_cv_func_udev_enumerate_add_match_tag" = xyes 27480then : 27481 printf "%s\n" "#define HAVE_UDEV_ENUMERATE_ADD_MATCH_TAG 1" >>confdefs.h 27482 27483fi 27484 27485 LIBS=$SAVE_LIBS 27486 CFLAGS=$SAVE_CFLAGS 27487fi 27488 if test "x$CONFIG_UDEV_KMS" = xyes; then 27489 CONFIG_UDEV_KMS_TRUE= 27490 CONFIG_UDEV_KMS_FALSE='#' 27491else 27492 CONFIG_UDEV_KMS_TRUE='#' 27493 CONFIG_UDEV_KMS_FALSE= 27494fi 27495 27496 27497 27498pkg_failed=no 27499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBDBUS" >&5 27500printf %s "checking for $LIBDBUS... " >&6; } 27501 27502if test -n "$DBUS_CFLAGS"; then 27503 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS" 27504 elif test -n "$PKG_CONFIG"; then 27505 if test -n "$PKG_CONFIG" && \ 27506 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDBUS\""; } >&5 27507 ($PKG_CONFIG --exists --print-errors "$LIBDBUS") 2>&5 27508 ac_status=$? 27509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27510 test $ac_status = 0; }; then 27511 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "$LIBDBUS" 2>/dev/null` 27512 test "x$?" != "x0" && pkg_failed=yes 27513else 27514 pkg_failed=yes 27515fi 27516 else 27517 pkg_failed=untried 27518fi 27519if test -n "$DBUS_LIBS"; then 27520 pkg_cv_DBUS_LIBS="$DBUS_LIBS" 27521 elif test -n "$PKG_CONFIG"; then 27522 if test -n "$PKG_CONFIG" && \ 27523 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDBUS\""; } >&5 27524 ($PKG_CONFIG --exists --print-errors "$LIBDBUS") 2>&5 27525 ac_status=$? 27526 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27527 test $ac_status = 0; }; then 27528 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "$LIBDBUS" 2>/dev/null` 27529 test "x$?" != "x0" && pkg_failed=yes 27530else 27531 pkg_failed=yes 27532fi 27533 else 27534 pkg_failed=untried 27535fi 27536 27537 27538 27539if test $pkg_failed = yes; then 27540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27541printf "%s\n" "no" >&6; } 27542 27543if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 27544 _pkg_short_errors_supported=yes 27545else 27546 _pkg_short_errors_supported=no 27547fi 27548 if test $_pkg_short_errors_supported = yes; then 27549 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDBUS" 2>&1` 27550 else 27551 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDBUS" 2>&1` 27552 fi 27553 # Put the nasty error message in config.log where it belongs 27554 echo "$DBUS_PKG_ERRORS" >&5 27555 27556 HAVE_DBUS=no 27557elif test $pkg_failed = untried; then 27558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27559printf "%s\n" "no" >&6; } 27560 HAVE_DBUS=no 27561else 27562 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS 27563 DBUS_LIBS=$pkg_cv_DBUS_LIBS 27564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27565printf "%s\n" "yes" >&6; } 27566 HAVE_DBUS=yes 27567fi 27568if test "x$HAVE_DBUS" = xyes; then 27569 27570printf "%s\n" "#define HAVE_DBUS 1" >>confdefs.h 27571 27572fi 27573 if test "x$HAVE_DBUS" = xyes; then 27574 HAVE_DBUS_TRUE= 27575 HAVE_DBUS_FALSE='#' 27576else 27577 HAVE_DBUS_TRUE='#' 27578 HAVE_DBUS_FALSE= 27579fi 27580 27581 27582 27583pkg_failed=no 27584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hal" >&5 27585printf %s "checking for hal... " >&6; } 27586 27587if test -n "$HAL_CFLAGS"; then 27588 pkg_cv_HAL_CFLAGS="$HAL_CFLAGS" 27589 elif test -n "$PKG_CONFIG"; then 27590 if test -n "$PKG_CONFIG" && \ 27591 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal\""; } >&5 27592 ($PKG_CONFIG --exists --print-errors "hal") 2>&5 27593 ac_status=$? 27594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27595 test $ac_status = 0; }; then 27596 pkg_cv_HAL_CFLAGS=`$PKG_CONFIG --cflags "hal" 2>/dev/null` 27597 test "x$?" != "x0" && pkg_failed=yes 27598else 27599 pkg_failed=yes 27600fi 27601 else 27602 pkg_failed=untried 27603fi 27604if test -n "$HAL_LIBS"; then 27605 pkg_cv_HAL_LIBS="$HAL_LIBS" 27606 elif test -n "$PKG_CONFIG"; then 27607 if test -n "$PKG_CONFIG" && \ 27608 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal\""; } >&5 27609 ($PKG_CONFIG --exists --print-errors "hal") 2>&5 27610 ac_status=$? 27611 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27612 test $ac_status = 0; }; then 27613 pkg_cv_HAL_LIBS=`$PKG_CONFIG --libs "hal" 2>/dev/null` 27614 test "x$?" != "x0" && pkg_failed=yes 27615else 27616 pkg_failed=yes 27617fi 27618 else 27619 pkg_failed=untried 27620fi 27621 27622 27623 27624if test $pkg_failed = yes; then 27625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27626printf "%s\n" "no" >&6; } 27627 27628if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 27629 _pkg_short_errors_supported=yes 27630else 27631 _pkg_short_errors_supported=no 27632fi 27633 if test $_pkg_short_errors_supported = yes; then 27634 HAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "hal" 2>&1` 27635 else 27636 HAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "hal" 2>&1` 27637 fi 27638 # Put the nasty error message in config.log where it belongs 27639 echo "$HAL_PKG_ERRORS" >&5 27640 27641 HAVE_HAL=no 27642elif test $pkg_failed = untried; then 27643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27644printf "%s\n" "no" >&6; } 27645 HAVE_HAL=no 27646else 27647 HAL_CFLAGS=$pkg_cv_HAL_CFLAGS 27648 HAL_LIBS=$pkg_cv_HAL_LIBS 27649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27650printf "%s\n" "yes" >&6; } 27651 HAVE_HAL=yes 27652fi 27653if test "x$CONFIG_HAL" = xauto; then 27654 CONFIG_HAL="$HAVE_HAL" 27655fi 27656if test "x$CONFIG_HAL" = xyes; then 27657 if ! test "x$HAVE_HAL" = xyes; then 27658 as_fn_error $? "HAL hotplug API requested, but HAL is not installed." "$LINENO" 5 27659 fi 27660 27661 27662printf "%s\n" "#define CONFIG_HAL 1" >>confdefs.h 27663 27664 NEED_DBUS="yes" 27665fi 27666 if test "x$CONFIG_HAL" = xyes; then 27667 CONFIG_HAL_TRUE= 27668 CONFIG_HAL_FALSE='#' 27669else 27670 CONFIG_HAL_TRUE='#' 27671 CONFIG_HAL_FALSE= 27672fi 27673 27674 27675if test "x$SYSTEMD_LOGIND" = xauto; then 27676 if test "x$HAVE_DBUS" = xyes -a "x$CONFIG_UDEV" = xyes ; then 27677 SYSTEMD_LOGIND=yes 27678 else 27679 SYSTEMD_LOGIND=no 27680 fi 27681fi 27682if test "x$SYSTEMD_LOGIND" = xyes; then 27683 if ! test "x$HAVE_DBUS" = xyes; then 27684 as_fn_error $? "systemd-logind requested, but D-Bus is not installed." "$LINENO" 5 27685 fi 27686 if ! test "x$CONFIG_UDEV" = xyes ; then 27687 as_fn_error $? "systemd-logind is only supported in combination with udev configuration." "$LINENO" 5 27688 fi 27689 27690 27691printf "%s\n" "#define SYSTEMD_LOGIND 1" >>confdefs.h 27692 27693 NEED_DBUS="yes" 27694fi 27695 if test "x$SYSTEMD_LOGIND" = xyes; then 27696 SYSTEMD_LOGIND_TRUE= 27697 SYSTEMD_LOGIND_FALSE='#' 27698else 27699 SYSTEMD_LOGIND_TRUE='#' 27700 SYSTEMD_LOGIND_FALSE= 27701fi 27702 27703 27704if test "x$SUID_WRAPPER" = xyes; then 27705 27706 prefix_NONE= 27707 exec_prefix_NONE= 27708 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 27709 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 27710 eval ac_define_dir="\"$libexecdir\"" 27711 eval ac_define_dir="\"$ac_define_dir\"" 27712 SUID_WRAPPER_DIR="$ac_define_dir" 27713 27714 27715printf "%s\n" "#define SUID_WRAPPER_DIR \"$ac_define_dir\"" >>confdefs.h 27716 27717 test "$prefix_NONE" && prefix=NONE 27718 test "$exec_prefix_NONE" && exec_prefix=NONE 27719 27720 SETUID="no" 27721fi 27722 if test "x$SUID_WRAPPER" = xyes; then 27723 SUID_WRAPPER_TRUE= 27724 SUID_WRAPPER_FALSE='#' 27725else 27726 SUID_WRAPPER_TRUE='#' 27727 SUID_WRAPPER_FALSE= 27728fi 27729 27730 27731if test "x$NEED_DBUS" = xyes; then 27732 27733printf "%s\n" "#define NEED_DBUS 1" >>confdefs.h 27734 27735fi 27736 if test "x$NEED_DBUS" = xyes; then 27737 NEED_DBUS_TRUE= 27738 NEED_DBUS_FALSE='#' 27739else 27740 NEED_DBUS_TRUE='#' 27741 NEED_DBUS_FALSE= 27742fi 27743 27744 27745if test "x$CONFIG_WSCONS" = xauto; then 27746 case $host_os in 27747 *openbsd*) 27748 CONFIG_WSCONS=yes; 27749 ;; 27750 *) 27751 CONFIG_WSCONS=no; 27752 ;; 27753 esac 27754fi 27755 if test "x$CONFIG_WSCONS" = xyes; then 27756 CONFIG_WSCONS_TRUE= 27757 CONFIG_WSCONS_FALSE='#' 27758else 27759 CONFIG_WSCONS_TRUE='#' 27760 CONFIG_WSCONS_FALSE= 27761fi 27762 27763if test "x$CONFIG_WSCONS" = xyes; then 27764 27765printf "%s\n" "#define CONFIG_WSCONS 1" >>confdefs.h 27766 27767fi 27768 27769 27770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glibc..." >&5 27771printf %s "checking for glibc...... " >&6; } 27772cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27773/* end confdefs.h. */ 27774 27775#include <features.h> 27776#ifndef __GLIBC__ 27777#error 27778#endif 27779 27780_ACEOF 27781if ac_fn_c_try_cpp "$LINENO" 27782then : 27783 glibc=yes 27784else $as_nop 27785 glibc=no 27786fi 27787rm -f conftest.err conftest.i conftest.$ac_ext 27788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $glibc" >&5 27789printf "%s\n" "$glibc" >&6; } 27790 27791 27792 for ac_func in clock_gettime 27793do : 27794 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 27795if test "x$ac_cv_func_clock_gettime" = xyes 27796then : 27797 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 27798 have_clock_gettime=yes 27799else $as_nop 27800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 27801printf %s "checking for clock_gettime in -lrt... " >&6; } 27802if test ${ac_cv_lib_rt_clock_gettime+y} 27803then : 27804 printf %s "(cached) " >&6 27805else $as_nop 27806 ac_check_lib_save_LIBS=$LIBS 27807LIBS="-lrt $LIBS" 27808cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27809/* end confdefs.h. */ 27810 27811/* Override any GCC internal prototype to avoid an error. 27812 Use char because int might match the return type of a GCC 27813 builtin and then its argument prototype would still apply. 27814 The 'extern "C"' is for builds by C++ compilers; 27815 although this is not generally supported in C code supporting it here 27816 has little cost and some practical benefit (sr 110532). */ 27817#ifdef __cplusplus 27818extern "C" 27819#endif 27820char clock_gettime (void); 27821int 27822main (void) 27823{ 27824return clock_gettime (); 27825 ; 27826 return 0; 27827} 27828_ACEOF 27829if ac_fn_c_try_link "$LINENO" 27830then : 27831 ac_cv_lib_rt_clock_gettime=yes 27832else $as_nop 27833 ac_cv_lib_rt_clock_gettime=no 27834fi 27835rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27836 conftest$ac_exeext conftest.$ac_ext 27837LIBS=$ac_check_lib_save_LIBS 27838fi 27839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 27840printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; } 27841if test "x$ac_cv_lib_rt_clock_gettime" = xyes 27842then : 27843 have_clock_gettime=-lrt 27844else $as_nop 27845 have_clock_gettime=no 27846fi 27847 27848fi 27849 27850done 27851 27852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a useful monotonic clock ..." >&5 27853printf %s "checking for a useful monotonic clock ...... " >&6; } 27854 27855if ! test "x$have_clock_gettime" = xno; then 27856 if ! test "x$have_clock_gettime" = xyes; then 27857 CLOCK_LIBS="$have_clock_gettime" 27858 else 27859 CLOCK_LIBS="" 27860 fi 27861 27862 LIBS_SAVE="$LIBS" 27863 LIBS="$CLOCK_LIBS" 27864 CPPFLAGS_SAVE="$CPPFLAGS" 27865 27866 if test x"$glibc" = xyes; then 27867 CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE=200112L" 27868 fi 27869 27870 if test "$cross_compiling" = yes 27871then : 27872 MONOTONIC_CLOCK="cross compiling" 27873else $as_nop 27874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27875/* end confdefs.h. */ 27876 27877#include <time.h> 27878 27879int main(int argc, char *argv[]) { 27880 struct timespec tp; 27881 27882 if (clock_gettime(CLOCK_MONOTONIC, &tp) == 0) 27883 return 0; 27884 else 27885 return 1; 27886} 27887 27888_ACEOF 27889if ac_fn_c_try_run "$LINENO" 27890then : 27891 MONOTONIC_CLOCK=yes 27892else $as_nop 27893 MONOTONIC_CLOCK=no 27894fi 27895rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27896 conftest.$ac_objext conftest.beam conftest.$ac_ext 27897fi 27898 27899 27900 if test "$MONOTONIC_CLOCK" = "cross compiling"; then 27901 ac_fn_check_decl "$LINENO" "CLOCK_MONOTONIC" "ac_cv_have_decl_CLOCK_MONOTONIC" "#include <time.h> 27902" "$ac_c_undeclared_builtin_options" "CFLAGS" 27903if test "x$ac_cv_have_decl_CLOCK_MONOTONIC" = xyes 27904then : 27905 MONOTONIC_CLOCK="guessing yes" 27906else $as_nop 27907 MONOTONIC_CLOCK=no 27908fi 27909 fi 27910 27911 LIBS="$LIBS_SAVE" 27912 CPPFLAGS="$CPPFLAGS_SAVE" 27913else 27914 MONOTONIC_CLOCK=no 27915fi 27916 27917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MONOTONIC_CLOCK" >&5 27918printf "%s\n" "$MONOTONIC_CLOCK" >&6; } 27919if test "$MONOTONIC_CLOCK" = "guessing yes"; then 27920 MONOTONIC_CLOCK=yes 27921fi 27922 27923if test "x$MONOTONIC_CLOCK" = xyes; then 27924 27925printf "%s\n" "#define MONOTONIC_CLOCK 1" >>confdefs.h 27926 27927 LIBS="$LIBS $CLOCK_LIBS" 27928fi 27929 27930 if test "x$XV" = xyes; then 27931 XV_TRUE= 27932 XV_FALSE='#' 27933else 27934 XV_TRUE='#' 27935 XV_FALSE= 27936fi 27937 27938if test "x$XV" = xyes; then 27939 27940printf "%s\n" "#define XV 1" >>confdefs.h 27941 27942 27943printf "%s\n" "#define XvExtension 1" >>confdefs.h 27944 27945 REQUIRED_MODULES="$REQUIRED_MODULES $VIDEOPROTO" 27946 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $VIDEOPROTO" 27947else 27948 XVMC=no 27949fi 27950 27951 if test "x$XVMC" = xyes; then 27952 XVMC_TRUE= 27953 XVMC_FALSE='#' 27954else 27955 XVMC_TRUE='#' 27956 XVMC_FALSE= 27957fi 27958 27959if test "x$XVMC" = xyes; then 27960 27961printf "%s\n" "#define XvMCExtension 1" >>confdefs.h 27962 27963fi 27964 27965 if test "x$COMPOSITE" = xyes; then 27966 COMPOSITE_TRUE= 27967 COMPOSITE_FALSE='#' 27968else 27969 COMPOSITE_TRUE='#' 27970 COMPOSITE_FALSE= 27971fi 27972 27973if test "x$COMPOSITE" = xyes; then 27974 27975printf "%s\n" "#define COMPOSITE 1" >>confdefs.h 27976 27977 REQUIRED_MODULES="$REQUIRED_MODULES $COMPOSITEPROTO" 27978 COMPOSITE_LIB='$(top_builddir)/composite/libcomposite.la' 27979 COMPOSITE_INC='-I$(top_srcdir)/composite' 27980fi 27981 27982if test "x$MITSHM" = xauto; then 27983 MITSHM="$ac_cv_sysv_ipc" 27984fi 27985 if test "x$MITSHM" = xyes; then 27986 MITSHM_TRUE= 27987 MITSHM_FALSE='#' 27988else 27989 MITSHM_TRUE='#' 27990 MITSHM_FALSE= 27991fi 27992 27993if test "x$MITSHM" = xyes; then 27994 27995printf "%s\n" "#define MITSHM 1" >>confdefs.h 27996 27997 27998printf "%s\n" "#define HAS_SHM 1" >>confdefs.h 27999 28000fi 28001 28002 if test "x$RECORD" = xyes; then 28003 RECORD_TRUE= 28004 RECORD_FALSE='#' 28005else 28006 RECORD_TRUE='#' 28007 RECORD_FALSE= 28008fi 28009 28010if test "x$RECORD" = xyes; then 28011 28012printf "%s\n" "#define XRECORD 1" >>confdefs.h 28013 28014 REQUIRED_MODULES="$REQUIRED_MODULES $RECORDPROTO" 28015 RECORD_LIB='$(top_builddir)/record/librecord.la' 28016fi 28017 28018 if test "x$SCREENSAVER" = xyes; then 28019 SCREENSAVER_TRUE= 28020 SCREENSAVER_FALSE='#' 28021else 28022 SCREENSAVER_TRUE='#' 28023 SCREENSAVER_FALSE= 28024fi 28025 28026if test "x$SCREENSAVER" = xyes; then 28027 28028printf "%s\n" "#define SCREENSAVER 1" >>confdefs.h 28029 28030 REQUIRED_MODULES="$REQUIRED_MODULES $SCRNSAVERPROTO" 28031 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $SCRNSAVERPROTO" 28032fi 28033 28034HASHTABLE=no 28035 if test "x$RES" = xyes; then 28036 RES_TRUE= 28037 RES_FALSE='#' 28038else 28039 RES_TRUE='#' 28040 RES_FALSE= 28041fi 28042 28043if test "x$RES" = xyes; then 28044 28045printf "%s\n" "#define RES 1" >>confdefs.h 28046 28047 HASHTABLE=yes 28048 REQUIRED_MODULES="$REQUIRED_MODULES $RESOURCEPROTO" 28049 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $RESOURCEPROTO" 28050fi 28051 28052if test "x$LISTEN_TCP" = xyes; then 28053 28054printf "%s\n" "#define LISTEN_TCP 1" >>confdefs.h 28055 28056fi 28057if test "x$LISTEN_UNIX" = xyes; then 28058 28059printf "%s\n" "#define LISTEN_UNIX 1" >>confdefs.h 28060 28061fi 28062if test "x$LISTEN_LOCAL" = xyes; then 28063 28064printf "%s\n" "#define LISTEN_LOCAL 1" >>confdefs.h 28065 28066fi 28067 28068# The XRes extension may support client ID tracking only if it has 28069# been specifically enabled. Client ID tracking is implicitly not 28070# supported if XRes extension is disabled. 28071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to track client ids" >&5 28072printf %s "checking whether to track client ids... " >&6; } 28073if test "x$RES" = xyes && test "x$CLIENTIDS" = xyes; then 28074 28075printf "%s\n" "#define CLIENTIDS 1" >>confdefs.h 28076 28077else 28078 CLIENTIDS=no 28079fi 28080if test "x$CLIENTIDS" = xyes; then 28081 case $host_os in 28082 openbsd*) 28083 SYS_LIBS="$SYS_LIBS -lkvm" 28084 ;; 28085 esac 28086fi 28087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CLIENTIDS" >&5 28088printf "%s\n" "$CLIENTIDS" >&6; } 28089 if test "x$CLIENTIDS" = xyes; then 28090 CLIENTIDS_TRUE= 28091 CLIENTIDS_FALSE='#' 28092else 28093 CLIENTIDS_TRUE='#' 28094 CLIENTIDS_FALSE= 28095fi 28096 28097 28098 if test "x$DRI" = xyes; then 28099 DRI_TRUE= 28100 DRI_FALSE='#' 28101else 28102 DRI_TRUE='#' 28103 DRI_FALSE= 28104fi 28105 28106if test "x$DRI" = xyes; then 28107 28108printf "%s\n" "#define XF86DRI 1" >>confdefs.h 28109 28110 REQUIRED_MODULES="$REQUIRED_MODULES $DRIPROTO $GLPROTO $LIBDRI" 28111 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRIPROTO $GLPROTO $LIBDRI" 28112fi 28113 28114 28115pkg_failed=no 28116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $DRI2PROTO" >&5 28117printf %s "checking for $DRI2PROTO... " >&6; } 28118 28119if test -n "$DRI2PROTO_CFLAGS"; then 28120 pkg_cv_DRI2PROTO_CFLAGS="$DRI2PROTO_CFLAGS" 28121 elif test -n "$PKG_CONFIG"; then 28122 if test -n "$PKG_CONFIG" && \ 28123 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI2PROTO\""; } >&5 28124 ($PKG_CONFIG --exists --print-errors "$DRI2PROTO") 2>&5 28125 ac_status=$? 28126 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28127 test $ac_status = 0; }; then 28128 pkg_cv_DRI2PROTO_CFLAGS=`$PKG_CONFIG --cflags "$DRI2PROTO" 2>/dev/null` 28129 test "x$?" != "x0" && pkg_failed=yes 28130else 28131 pkg_failed=yes 28132fi 28133 else 28134 pkg_failed=untried 28135fi 28136if test -n "$DRI2PROTO_LIBS"; then 28137 pkg_cv_DRI2PROTO_LIBS="$DRI2PROTO_LIBS" 28138 elif test -n "$PKG_CONFIG"; then 28139 if test -n "$PKG_CONFIG" && \ 28140 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI2PROTO\""; } >&5 28141 ($PKG_CONFIG --exists --print-errors "$DRI2PROTO") 2>&5 28142 ac_status=$? 28143 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28144 test $ac_status = 0; }; then 28145 pkg_cv_DRI2PROTO_LIBS=`$PKG_CONFIG --libs "$DRI2PROTO" 2>/dev/null` 28146 test "x$?" != "x0" && pkg_failed=yes 28147else 28148 pkg_failed=yes 28149fi 28150 else 28151 pkg_failed=untried 28152fi 28153 28154 28155 28156if test $pkg_failed = yes; then 28157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28158printf "%s\n" "no" >&6; } 28159 28160if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28161 _pkg_short_errors_supported=yes 28162else 28163 _pkg_short_errors_supported=no 28164fi 28165 if test $_pkg_short_errors_supported = yes; then 28166 DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DRI2PROTO" 2>&1` 28167 else 28168 DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DRI2PROTO" 2>&1` 28169 fi 28170 # Put the nasty error message in config.log where it belongs 28171 echo "$DRI2PROTO_PKG_ERRORS" >&5 28172 28173 HAVE_DRI2PROTO=no 28174elif test $pkg_failed = untried; then 28175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28176printf "%s\n" "no" >&6; } 28177 HAVE_DRI2PROTO=no 28178else 28179 DRI2PROTO_CFLAGS=$pkg_cv_DRI2PROTO_CFLAGS 28180 DRI2PROTO_LIBS=$pkg_cv_DRI2PROTO_LIBS 28181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28182printf "%s\n" "yes" >&6; } 28183 HAVE_DRI2PROTO=yes 28184fi 28185case "$DRI2,$HAVE_DRI2PROTO" in 28186 yes,no) 28187 as_fn_error $? "DRI2 requested, but dri2proto not found." "$LINENO" 5 28188 ;; 28189 yes,yes | auto,yes) 28190 28191printf "%s\n" "#define DRI2 1" >>confdefs.h 28192 28193 DRI2=yes 28194 LIBGL="gl >= 1.2" 28195 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRI2PROTO" 28196 ;; 28197esac 28198 if test "x$DRI2" = xyes; then 28199 DRI2_TRUE= 28200 DRI2_FALSE='#' 28201else 28202 DRI2_TRUE='#' 28203 DRI2_FALSE= 28204fi 28205 28206 28207# Check whether --enable-xtrans-send-fds was given. 28208if test ${enable_xtrans_send_fds+y} 28209then : 28210 enableval=$enable_xtrans_send_fds; XTRANS_SEND_FDS=$enableval 28211else $as_nop 28212 XTRANS_SEND_FDS=auto 28213fi 28214 28215 28216case "x$XTRANS_SEND_FDS" in 28217xauto) 28218 case "$host_os" in 28219 linux*|solaris*|freebsd*|dragonfly*|openbsd*) 28220 XTRANS_SEND_FDS=yes 28221 ;; 28222 *) 28223 XTRANS_SEND_FDS=no 28224 ;; 28225 esac 28226esac 28227 28228case "x$XTRANS_SEND_FDS" in 28229xyes) 28230 28231printf "%s\n" "#define XTRANS_SEND_FDS 1" >>confdefs.h 28232 28233 ;; 28234esac 28235 28236case "$DRI3,$XTRANS_SEND_FDS" in 28237 yes,yes | auto,yes) 28238 ;; 28239 yes,no) 28240 as_fn_error $? "DRI3 requested, but xtrans fd passing support not found." "$LINENO" 5 28241 DRI3=no 28242 ;; 28243 no,*) 28244 ;; 28245 *) 28246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: DRI3 disabled because xtrans fd passing support not found." >&5 28247printf "%s\n" "$as_me: DRI3 disabled because xtrans fd passing support not found." >&6;} 28248 DRI3=no 28249 ;; 28250esac 28251 28252 28253pkg_failed=no 28254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $DRI3PROTO" >&5 28255printf %s "checking for $DRI3PROTO... " >&6; } 28256 28257if test -n "$DRI3PROTO_CFLAGS"; then 28258 pkg_cv_DRI3PROTO_CFLAGS="$DRI3PROTO_CFLAGS" 28259 elif test -n "$PKG_CONFIG"; then 28260 if test -n "$PKG_CONFIG" && \ 28261 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI3PROTO\""; } >&5 28262 ($PKG_CONFIG --exists --print-errors "$DRI3PROTO") 2>&5 28263 ac_status=$? 28264 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28265 test $ac_status = 0; }; then 28266 pkg_cv_DRI3PROTO_CFLAGS=`$PKG_CONFIG --cflags "$DRI3PROTO" 2>/dev/null` 28267 test "x$?" != "x0" && pkg_failed=yes 28268else 28269 pkg_failed=yes 28270fi 28271 else 28272 pkg_failed=untried 28273fi 28274if test -n "$DRI3PROTO_LIBS"; then 28275 pkg_cv_DRI3PROTO_LIBS="$DRI3PROTO_LIBS" 28276 elif test -n "$PKG_CONFIG"; then 28277 if test -n "$PKG_CONFIG" && \ 28278 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI3PROTO\""; } >&5 28279 ($PKG_CONFIG --exists --print-errors "$DRI3PROTO") 2>&5 28280 ac_status=$? 28281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28282 test $ac_status = 0; }; then 28283 pkg_cv_DRI3PROTO_LIBS=`$PKG_CONFIG --libs "$DRI3PROTO" 2>/dev/null` 28284 test "x$?" != "x0" && pkg_failed=yes 28285else 28286 pkg_failed=yes 28287fi 28288 else 28289 pkg_failed=untried 28290fi 28291 28292 28293 28294if test $pkg_failed = yes; then 28295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28296printf "%s\n" "no" >&6; } 28297 28298if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28299 _pkg_short_errors_supported=yes 28300else 28301 _pkg_short_errors_supported=no 28302fi 28303 if test $_pkg_short_errors_supported = yes; then 28304 DRI3PROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DRI3PROTO" 2>&1` 28305 else 28306 DRI3PROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DRI3PROTO" 2>&1` 28307 fi 28308 # Put the nasty error message in config.log where it belongs 28309 echo "$DRI3PROTO_PKG_ERRORS" >&5 28310 28311 HAVE_DRI3PROTO=no 28312elif test $pkg_failed = untried; then 28313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28314printf "%s\n" "no" >&6; } 28315 HAVE_DRI3PROTO=no 28316else 28317 DRI3PROTO_CFLAGS=$pkg_cv_DRI3PROTO_CFLAGS 28318 DRI3PROTO_LIBS=$pkg_cv_DRI3PROTO_LIBS 28319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28320printf "%s\n" "yes" >&6; } 28321 HAVE_DRI3PROTO=yes 28322fi 28323 28324case "$DRI3,$HAVE_DRI3PROTO" in 28325 yes,yes | auto,yes) 28326 REQUIRED_MODULES="$REQUIRED_MODULES dri3proto" 28327 ;; 28328 yes,no) 28329 as_fn_error $? "DRI3 requested, but dri3proto not found." "$LINENO" 5 28330 DRI3=no 28331 ;; 28332 no,*) 28333 ;; 28334 *) 28335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: DRI3 disabled because dri3proto not found." >&5 28336printf "%s\n" "$as_me: DRI3 disabled because dri3proto not found." >&6;} 28337 DRI3=no 28338 ;; 28339esac 28340 28341ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" 28342if test "x$ac_cv_func_sigaction" = xyes 28343then : 28344 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h 28345 28346fi 28347 28348 28349BUSFAULT=no 28350 28351case x"$ac_cv_func_sigaction" in 28352 xyes) 28353 28354printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h 28355 28356 BUSFAULT=yes 28357 ;; 28358esac 28359 28360case x"$BUSFAULT" in 28361 xyes) 28362 28363printf "%s\n" "#define BUSFAULT 1" >>confdefs.h 28364 28365 ;; 28366esac 28367 28368 if test x"$BUSFAULT" = xyes; then 28369 BUSFAULT_TRUE= 28370 BUSFAULT_FALSE='#' 28371else 28372 BUSFAULT_TRUE='#' 28373 BUSFAULT_FALSE= 28374fi 28375 28376 28377 28378 28379pkg_failed=no 28380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBXSHMFENCE" >&5 28381printf %s "checking for $LIBXSHMFENCE... " >&6; } 28382 28383if test -n "$XSHMFENCE_CFLAGS"; then 28384 pkg_cv_XSHMFENCE_CFLAGS="$XSHMFENCE_CFLAGS" 28385 elif test -n "$PKG_CONFIG"; then 28386 if test -n "$PKG_CONFIG" && \ 28387 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXSHMFENCE\""; } >&5 28388 ($PKG_CONFIG --exists --print-errors "$LIBXSHMFENCE") 2>&5 28389 ac_status=$? 28390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28391 test $ac_status = 0; }; then 28392 pkg_cv_XSHMFENCE_CFLAGS=`$PKG_CONFIG --cflags "$LIBXSHMFENCE" 2>/dev/null` 28393 test "x$?" != "x0" && pkg_failed=yes 28394else 28395 pkg_failed=yes 28396fi 28397 else 28398 pkg_failed=untried 28399fi 28400if test -n "$XSHMFENCE_LIBS"; then 28401 pkg_cv_XSHMFENCE_LIBS="$XSHMFENCE_LIBS" 28402 elif test -n "$PKG_CONFIG"; then 28403 if test -n "$PKG_CONFIG" && \ 28404 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXSHMFENCE\""; } >&5 28405 ($PKG_CONFIG --exists --print-errors "$LIBXSHMFENCE") 2>&5 28406 ac_status=$? 28407 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28408 test $ac_status = 0; }; then 28409 pkg_cv_XSHMFENCE_LIBS=`$PKG_CONFIG --libs "$LIBXSHMFENCE" 2>/dev/null` 28410 test "x$?" != "x0" && pkg_failed=yes 28411else 28412 pkg_failed=yes 28413fi 28414 else 28415 pkg_failed=untried 28416fi 28417 28418 28419 28420if test $pkg_failed = yes; then 28421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28422printf "%s\n" "no" >&6; } 28423 28424if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28425 _pkg_short_errors_supported=yes 28426else 28427 _pkg_short_errors_supported=no 28428fi 28429 if test $_pkg_short_errors_supported = yes; then 28430 XSHMFENCE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXSHMFENCE" 2>&1` 28431 else 28432 XSHMFENCE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXSHMFENCE" 2>&1` 28433 fi 28434 # Put the nasty error message in config.log where it belongs 28435 echo "$XSHMFENCE_PKG_ERRORS" >&5 28436 28437 HAVE_XSHMFENCE=no 28438elif test $pkg_failed = untried; then 28439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28440printf "%s\n" "no" >&6; } 28441 HAVE_XSHMFENCE=no 28442else 28443 XSHMFENCE_CFLAGS=$pkg_cv_XSHMFENCE_CFLAGS 28444 XSHMFENCE_LIBS=$pkg_cv_XSHMFENCE_LIBS 28445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28446printf "%s\n" "yes" >&6; } 28447 HAVE_XSHMFENCE=yes 28448fi 28449if test "x$XSHMFENCE" = "xauto"; then 28450 XSHMFENCE="$HAVE_XSHMFENCE" 28451fi 28452 28453if test "x$XSHMFENCE" = "xyes"; then 28454 if test "x$HAVE_XSHMFENCE" != "xyes"; then 28455 as_fn_error $? "xshmfence requested but not installed." "$LINENO" 5 28456 fi 28457 28458printf "%s\n" "#define HAVE_XSHMFENCE 1" >>confdefs.h 28459 28460 REQUIRED_LIBS="$REQUIRED_LIBS $LIBXSHMFENCE" 28461fi 28462 28463 if test "x$XSHMFENCE" = xyes; then 28464 XSHMFENCE_TRUE= 28465 XSHMFENCE_FALSE='#' 28466else 28467 XSHMFENCE_TRUE='#' 28468 XSHMFENCE_FALSE= 28469fi 28470 28471 28472case "$DRI3,$XSHMFENCE" in 28473 yes,yes | auto,yes) 28474 ;; 28475 yes,no) 28476 as_fn_error $? "DRI3 requested, but xshmfence not found." "$LINENO" 5 28477 DRI3=no 28478 ;; 28479 no,*) 28480 ;; 28481 *) 28482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: DRI3 disabled because xshmfence not found." >&5 28483printf "%s\n" "$as_me: DRI3 disabled because xshmfence not found." >&6;} 28484 DRI3=no 28485 ;; 28486esac 28487 28488case x"$DRI3" in 28489 xyes|xauto) 28490 DRI3=yes 28491 28492printf "%s\n" "#define DRI3 1" >>confdefs.h 28493 28494 DRI3_LIB='$(top_builddir)/dri3/libdri3.la' 28495 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRI3PROTO" 28496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: DRI3 enabled" >&5 28497printf "%s\n" "$as_me: DRI3 enabled" >&6;}; 28498 ;; 28499esac 28500 28501 if test "x$DRI3" = xyes; then 28502 DRI3_TRUE= 28503 DRI3_FALSE='#' 28504else 28505 DRI3_TRUE='#' 28506 DRI3_FALSE= 28507fi 28508 28509 28510if test "x$DRI" = xyes || test "x$DRI2" = xyes || test "x$DRI3" = xyes || test "x$CONFIG_UDEV_KMS" = xyes || test "x$XORG" = xyes; then 28511 if test "x$DRM" = xyes; then 28512 28513printf "%s\n" "#define WITH_LIBDRM 1" >>confdefs.h 28514 28515 28516pkg_failed=no 28517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBDRM" >&5 28518printf %s "checking for $LIBDRM... " >&6; } 28519 28520if test -n "$LIBDRM_CFLAGS"; then 28521 pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS" 28522 elif test -n "$PKG_CONFIG"; then 28523 if test -n "$PKG_CONFIG" && \ 28524 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDRM\""; } >&5 28525 ($PKG_CONFIG --exists --print-errors "$LIBDRM") 2>&5 28526 ac_status=$? 28527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28528 test $ac_status = 0; }; then 28529 pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "$LIBDRM" 2>/dev/null` 28530 test "x$?" != "x0" && pkg_failed=yes 28531else 28532 pkg_failed=yes 28533fi 28534 else 28535 pkg_failed=untried 28536fi 28537if test -n "$LIBDRM_LIBS"; then 28538 pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS" 28539 elif test -n "$PKG_CONFIG"; then 28540 if test -n "$PKG_CONFIG" && \ 28541 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDRM\""; } >&5 28542 ($PKG_CONFIG --exists --print-errors "$LIBDRM") 2>&5 28543 ac_status=$? 28544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28545 test $ac_status = 0; }; then 28546 pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "$LIBDRM" 2>/dev/null` 28547 test "x$?" != "x0" && pkg_failed=yes 28548else 28549 pkg_failed=yes 28550fi 28551 else 28552 pkg_failed=untried 28553fi 28554 28555 28556 28557if test $pkg_failed = yes; then 28558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28559printf "%s\n" "no" >&6; } 28560 28561if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28562 _pkg_short_errors_supported=yes 28563else 28564 _pkg_short_errors_supported=no 28565fi 28566 if test $_pkg_short_errors_supported = yes; then 28567 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDRM" 2>&1` 28568 else 28569 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDRM" 2>&1` 28570 fi 28571 # Put the nasty error message in config.log where it belongs 28572 echo "$LIBDRM_PKG_ERRORS" >&5 28573 28574 as_fn_error $? "Package requirements ($LIBDRM) were not met: 28575 28576$LIBDRM_PKG_ERRORS 28577 28578Consider adjusting the PKG_CONFIG_PATH environment variable if you 28579installed software in a non-standard prefix. 28580 28581Alternatively, you may set the environment variables LIBDRM_CFLAGS 28582and LIBDRM_LIBS to avoid the need to call pkg-config. 28583See the pkg-config man page for more details." "$LINENO" 5 28584elif test $pkg_failed = untried; then 28585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28586printf "%s\n" "no" >&6; } 28587 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28588printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 28589as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 28590is in your PATH or set the PKG_CONFIG environment variable to the full 28591path to pkg-config. 28592 28593Alternatively, you may set the environment variables LIBDRM_CFLAGS 28594and LIBDRM_LIBS to avoid the need to call pkg-config. 28595See the pkg-config man page for more details. 28596 28597To get pkg-config, see <http://pkg-config.freedesktop.org/>. 28598See \`config.log' for more details" "$LINENO" 5; } 28599else 28600 LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS 28601 LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS 28602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28603printf "%s\n" "yes" >&6; } 28604 28605fi 28606 fi 28607fi 28608 28609if test "x$GLX" = xyes; then 28610 28611pkg_failed=no 28612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x11" >&5 28613printf %s "checking for x11... " >&6; } 28614 28615if test -n "$XLIB_CFLAGS"; then 28616 pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS" 28617 elif test -n "$PKG_CONFIG"; then 28618 if test -n "$PKG_CONFIG" && \ 28619 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 28620 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 28621 ac_status=$? 28622 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28623 test $ac_status = 0; }; then 28624 pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null` 28625 test "x$?" != "x0" && pkg_failed=yes 28626else 28627 pkg_failed=yes 28628fi 28629 else 28630 pkg_failed=untried 28631fi 28632if test -n "$XLIB_LIBS"; then 28633 pkg_cv_XLIB_LIBS="$XLIB_LIBS" 28634 elif test -n "$PKG_CONFIG"; then 28635 if test -n "$PKG_CONFIG" && \ 28636 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 28637 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 28638 ac_status=$? 28639 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28640 test $ac_status = 0; }; then 28641 pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null` 28642 test "x$?" != "x0" && pkg_failed=yes 28643else 28644 pkg_failed=yes 28645fi 28646 else 28647 pkg_failed=untried 28648fi 28649 28650 28651 28652if test $pkg_failed = yes; then 28653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28654printf "%s\n" "no" >&6; } 28655 28656if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28657 _pkg_short_errors_supported=yes 28658else 28659 _pkg_short_errors_supported=no 28660fi 28661 if test $_pkg_short_errors_supported = yes; then 28662 XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1` 28663 else 28664 XLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1` 28665 fi 28666 # Put the nasty error message in config.log where it belongs 28667 echo "$XLIB_PKG_ERRORS" >&5 28668 28669 as_fn_error $? "Package requirements (x11) were not met: 28670 28671$XLIB_PKG_ERRORS 28672 28673Consider adjusting the PKG_CONFIG_PATH environment variable if you 28674installed software in a non-standard prefix. 28675 28676Alternatively, you may set the environment variables XLIB_CFLAGS 28677and XLIB_LIBS to avoid the need to call pkg-config. 28678See the pkg-config man page for more details." "$LINENO" 5 28679elif test $pkg_failed = untried; then 28680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28681printf "%s\n" "no" >&6; } 28682 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28683printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 28684as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 28685is in your PATH or set the PKG_CONFIG environment variable to the full 28686path to pkg-config. 28687 28688Alternatively, you may set the environment variables XLIB_CFLAGS 28689and XLIB_LIBS to avoid the need to call pkg-config. 28690See the pkg-config man page for more details. 28691 28692To get pkg-config, see <http://pkg-config.freedesktop.org/>. 28693See \`config.log' for more details" "$LINENO" 5; } 28694else 28695 XLIB_CFLAGS=$pkg_cv_XLIB_CFLAGS 28696 XLIB_LIBS=$pkg_cv_XLIB_LIBS 28697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28698printf "%s\n" "yes" >&6; } 28699 28700fi 28701 28702pkg_failed=no 28703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $GLPROTO $LIBGL" >&5 28704printf %s "checking for $GLPROTO $LIBGL... " >&6; } 28705 28706if test -n "$GL_CFLAGS"; then 28707 pkg_cv_GL_CFLAGS="$GL_CFLAGS" 28708 elif test -n "$PKG_CONFIG"; then 28709 if test -n "$PKG_CONFIG" && \ 28710 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBGL\""; } >&5 28711 ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBGL") 2>&5 28712 ac_status=$? 28713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28714 test $ac_status = 0; }; then 28715 pkg_cv_GL_CFLAGS=`$PKG_CONFIG --cflags "$GLPROTO $LIBGL" 2>/dev/null` 28716 test "x$?" != "x0" && pkg_failed=yes 28717else 28718 pkg_failed=yes 28719fi 28720 else 28721 pkg_failed=untried 28722fi 28723if test -n "$GL_LIBS"; then 28724 pkg_cv_GL_LIBS="$GL_LIBS" 28725 elif test -n "$PKG_CONFIG"; then 28726 if test -n "$PKG_CONFIG" && \ 28727 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBGL\""; } >&5 28728 ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBGL") 2>&5 28729 ac_status=$? 28730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28731 test $ac_status = 0; }; then 28732 pkg_cv_GL_LIBS=`$PKG_CONFIG --libs "$GLPROTO $LIBGL" 2>/dev/null` 28733 test "x$?" != "x0" && pkg_failed=yes 28734else 28735 pkg_failed=yes 28736fi 28737 else 28738 pkg_failed=untried 28739fi 28740 28741 28742 28743if test $pkg_failed = yes; then 28744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28745printf "%s\n" "no" >&6; } 28746 28747if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28748 _pkg_short_errors_supported=yes 28749else 28750 _pkg_short_errors_supported=no 28751fi 28752 if test $_pkg_short_errors_supported = yes; then 28753 GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GLPROTO $LIBGL" 2>&1` 28754 else 28755 GL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GLPROTO $LIBGL" 2>&1` 28756 fi 28757 # Put the nasty error message in config.log where it belongs 28758 echo "$GL_PKG_ERRORS" >&5 28759 28760 as_fn_error $? "Package requirements ($GLPROTO $LIBGL) were not met: 28761 28762$GL_PKG_ERRORS 28763 28764Consider adjusting the PKG_CONFIG_PATH environment variable if you 28765installed software in a non-standard prefix. 28766 28767Alternatively, you may set the environment variables GL_CFLAGS 28768and GL_LIBS to avoid the need to call pkg-config. 28769See the pkg-config man page for more details." "$LINENO" 5 28770elif test $pkg_failed = untried; then 28771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28772printf "%s\n" "no" >&6; } 28773 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28774printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 28775as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 28776is in your PATH or set the PKG_CONFIG environment variable to the full 28777path to pkg-config. 28778 28779Alternatively, you may set the environment variables GL_CFLAGS 28780and GL_LIBS to avoid the need to call pkg-config. 28781See the pkg-config man page for more details. 28782 28783To get pkg-config, see <http://pkg-config.freedesktop.org/>. 28784See \`config.log' for more details" "$LINENO" 5; } 28785else 28786 GL_CFLAGS=$pkg_cv_GL_CFLAGS 28787 GL_LIBS=$pkg_cv_GL_LIBS 28788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28789printf "%s\n" "yes" >&6; } 28790 28791fi 28792 28793 28794printf "%s\n" "#define GLXEXT 1" >>confdefs.h 28795 28796 HASHTABLE=yes 28797 GLX_LIBS='$(top_builddir)/glx/libglx.la $(top_builddir)/glx/libglxvnd.la' 28798 GLX_SYS_LIBS="$GLX_SYS_LIBS $GL_LIBS" 28799else 28800 GLX=no 28801fi 28802 if test "x$GLX" = xyes; then 28803 GLX_TRUE= 28804 GLX_FALSE='#' 28805else 28806 GLX_TRUE='#' 28807 GLX_FALSE= 28808fi 28809 28810 28811 if test "x$HASHTABLE" = xyes; then 28812 HASHTABLE_TRUE= 28813 HASHTABLE_FALSE='#' 28814else 28815 HASHTABLE_TRUE='#' 28816 HASHTABLE_FALSE= 28817fi 28818 28819 28820 28821 28822 28823 if test "x$PRESENT" = xyes; then 28824 PRESENT_TRUE= 28825 PRESENT_FALSE='#' 28826else 28827 PRESENT_TRUE='#' 28828 PRESENT_FALSE= 28829fi 28830 28831if test "x$PRESENT" = xyes; then 28832 28833printf "%s\n" "#define PRESENT 1" >>confdefs.h 28834 28835 REQUIRED_MODULES="$REQUIRED_MODULES $PRESENTPROTO" 28836 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $PRESENTPROTO" 28837 PRESENT_INC='-I$(top_srcdir)/present' 28838 PRESENT_LIB='$(top_builddir)/present/libpresent.la' 28839fi 28840 28841 if test "x$XINERAMA" = xyes; then 28842 XINERAMA_TRUE= 28843 XINERAMA_FALSE='#' 28844else 28845 XINERAMA_TRUE='#' 28846 XINERAMA_FALSE= 28847fi 28848 28849if test "x$XINERAMA" = xyes; then 28850 28851printf "%s\n" "#define XINERAMA 1" >>confdefs.h 28852 28853 28854printf "%s\n" "#define PANORAMIX 1" >>confdefs.h 28855 28856 REQUIRED_MODULES="$REQUIRED_MODULES $XINERAMAPROTO" 28857 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $XINERAMAPROTO" 28858fi 28859 28860 if test "x$XACE" = xyes; then 28861 XACE_TRUE= 28862 XACE_FALSE='#' 28863else 28864 XACE_TRUE='#' 28865 XACE_FALSE= 28866fi 28867 28868if test "x$XACE" = xyes; then 28869 28870printf "%s\n" "#define XACE 1" >>confdefs.h 28871 28872fi 28873 28874 if test "x$XSELINUX" = xyes; then 28875 XSELINUX_TRUE= 28876 XSELINUX_FALSE='#' 28877else 28878 XSELINUX_TRUE='#' 28879 XSELINUX_FALSE= 28880fi 28881 28882if test "x$XSELINUX" = xyes; then 28883 if test "x$XACE" != xyes; then 28884 as_fn_error $? "cannot build SELinux extension without X-ACE" "$LINENO" 5 28885 fi 28886 for ac_header in libaudit.h 28887do : 28888 ac_fn_c_check_header_compile "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default" 28889if test "x$ac_cv_header_libaudit_h" = xyes 28890then : 28891 printf "%s\n" "#define HAVE_LIBAUDIT_H 1" >>confdefs.h 28892 28893else $as_nop 28894 as_fn_error $? "SELinux extension requires audit system headers" "$LINENO" 5 28895fi 28896 28897done 28898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for audit_open in -laudit" >&5 28899printf %s "checking for audit_open in -laudit... " >&6; } 28900if test ${ac_cv_lib_audit_audit_open+y} 28901then : 28902 printf %s "(cached) " >&6 28903else $as_nop 28904 ac_check_lib_save_LIBS=$LIBS 28905LIBS="-laudit $LIBS" 28906cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28907/* end confdefs.h. */ 28908 28909/* Override any GCC internal prototype to avoid an error. 28910 Use char because int might match the return type of a GCC 28911 builtin and then its argument prototype would still apply. 28912 The 'extern "C"' is for builds by C++ compilers; 28913 although this is not generally supported in C code supporting it here 28914 has little cost and some practical benefit (sr 110532). */ 28915#ifdef __cplusplus 28916extern "C" 28917#endif 28918char audit_open (void); 28919int 28920main (void) 28921{ 28922return audit_open (); 28923 ; 28924 return 0; 28925} 28926_ACEOF 28927if ac_fn_c_try_link "$LINENO" 28928then : 28929 ac_cv_lib_audit_audit_open=yes 28930else $as_nop 28931 ac_cv_lib_audit_audit_open=no 28932fi 28933rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28934 conftest$ac_exeext conftest.$ac_ext 28935LIBS=$ac_check_lib_save_LIBS 28936fi 28937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_open" >&5 28938printf "%s\n" "$ac_cv_lib_audit_audit_open" >&6; } 28939if test "x$ac_cv_lib_audit_audit_open" = xyes 28940then : 28941 printf "%s\n" "#define HAVE_LIBAUDIT 1" >>confdefs.h 28942 28943 LIBS="-laudit $LIBS" 28944 28945else $as_nop 28946 as_fn_error $? "SELinux extension requires audit system library" "$LINENO" 5 28947fi 28948 28949 28950pkg_failed=no 28951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBSELINUX" >&5 28952printf %s "checking for $LIBSELINUX... " >&6; } 28953 28954if test -n "$SELINUX_CFLAGS"; then 28955 pkg_cv_SELINUX_CFLAGS="$SELINUX_CFLAGS" 28956 elif test -n "$PKG_CONFIG"; then 28957 if test -n "$PKG_CONFIG" && \ 28958 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSELINUX\""; } >&5 28959 ($PKG_CONFIG --exists --print-errors "$LIBSELINUX") 2>&5 28960 ac_status=$? 28961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28962 test $ac_status = 0; }; then 28963 pkg_cv_SELINUX_CFLAGS=`$PKG_CONFIG --cflags "$LIBSELINUX" 2>/dev/null` 28964 test "x$?" != "x0" && pkg_failed=yes 28965else 28966 pkg_failed=yes 28967fi 28968 else 28969 pkg_failed=untried 28970fi 28971if test -n "$SELINUX_LIBS"; then 28972 pkg_cv_SELINUX_LIBS="$SELINUX_LIBS" 28973 elif test -n "$PKG_CONFIG"; then 28974 if test -n "$PKG_CONFIG" && \ 28975 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSELINUX\""; } >&5 28976 ($PKG_CONFIG --exists --print-errors "$LIBSELINUX") 2>&5 28977 ac_status=$? 28978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28979 test $ac_status = 0; }; then 28980 pkg_cv_SELINUX_LIBS=`$PKG_CONFIG --libs "$LIBSELINUX" 2>/dev/null` 28981 test "x$?" != "x0" && pkg_failed=yes 28982else 28983 pkg_failed=yes 28984fi 28985 else 28986 pkg_failed=untried 28987fi 28988 28989 28990 28991if test $pkg_failed = yes; then 28992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28993printf "%s\n" "no" >&6; } 28994 28995if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28996 _pkg_short_errors_supported=yes 28997else 28998 _pkg_short_errors_supported=no 28999fi 29000 if test $_pkg_short_errors_supported = yes; then 29001 SELINUX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBSELINUX" 2>&1` 29002 else 29003 SELINUX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBSELINUX" 2>&1` 29004 fi 29005 # Put the nasty error message in config.log where it belongs 29006 echo "$SELINUX_PKG_ERRORS" >&5 29007 29008 as_fn_error $? "Package requirements ($LIBSELINUX) were not met: 29009 29010$SELINUX_PKG_ERRORS 29011 29012Consider adjusting the PKG_CONFIG_PATH environment variable if you 29013installed software in a non-standard prefix. 29014 29015Alternatively, you may set the environment variables SELINUX_CFLAGS 29016and SELINUX_LIBS to avoid the need to call pkg-config. 29017See the pkg-config man page for more details." "$LINENO" 5 29018elif test $pkg_failed = untried; then 29019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29020printf "%s\n" "no" >&6; } 29021 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29022printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 29023as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 29024is in your PATH or set the PKG_CONFIG environment variable to the full 29025path to pkg-config. 29026 29027Alternatively, you may set the environment variables SELINUX_CFLAGS 29028and SELINUX_LIBS to avoid the need to call pkg-config. 29029See the pkg-config man page for more details. 29030 29031To get pkg-config, see <http://pkg-config.freedesktop.org/>. 29032See \`config.log' for more details" "$LINENO" 5; } 29033else 29034 SELINUX_CFLAGS=$pkg_cv_SELINUX_CFLAGS 29035 SELINUX_LIBS=$pkg_cv_SELINUX_LIBS 29036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29037printf "%s\n" "yes" >&6; } 29038 29039fi 29040 SELINUX_LIBS="$SELINUX_LIBS -laudit" 29041 29042printf "%s\n" "#define XSELINUX 1" >>confdefs.h 29043 29044fi 29045 29046 if test "x$XCSECURITY" = xyes; then 29047 XCSECURITY_TRUE= 29048 XCSECURITY_FALSE='#' 29049else 29050 XCSECURITY_TRUE='#' 29051 XCSECURITY_FALSE= 29052fi 29053 29054if test "x$XCSECURITY" = xyes; then 29055 if test "x$XACE" != xyes; then 29056 as_fn_error $? "cannot build Security extension without X-ACE" "$LINENO" 5 29057 fi 29058 29059printf "%s\n" "#define XCSECURITY 1" >>confdefs.h 29060 29061fi 29062 29063 if test "x$DBE" = xyes; then 29064 DBE_TRUE= 29065 DBE_FALSE='#' 29066else 29067 DBE_TRUE='#' 29068 DBE_FALSE= 29069fi 29070 29071if test "x$DBE" = xyes; then 29072 29073printf "%s\n" "#define DBE 1" >>confdefs.h 29074 29075 DBE_LIB='$(top_builddir)/dbe/libdbe.la' 29076 DBE_INC='-I$(top_srcdir)/dbe' 29077fi 29078 29079 if test "x$XF86BIGFONT" = xyes; then 29080 XF86BIGFONT_TRUE= 29081 XF86BIGFONT_FALSE='#' 29082else 29083 XF86BIGFONT_TRUE='#' 29084 XF86BIGFONT_FALSE= 29085fi 29086 29087if test "x$XF86BIGFONT" = xyes; then 29088 29089printf "%s\n" "#define XF86BIGFONT 1" >>confdefs.h 29090 29091 REQUIRED_MODULES="$REQUIRED_MODULES $BIGFONTPROTO" 29092 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $BIGFONTPROTO" 29093fi 29094 29095 if test "x$DPMSExtension" = xyes; then 29096 DPMSExtension_TRUE= 29097 DPMSExtension_FALSE='#' 29098else 29099 DPMSExtension_TRUE='#' 29100 DPMSExtension_FALSE= 29101fi 29102 29103if test "x$DPMSExtension" = xyes; then 29104 29105printf "%s\n" "#define DPMSExtension 1" >>confdefs.h 29106 29107fi 29108 29109 29110printf "%s\n" "#define RENDER 1" >>confdefs.h 29111 29112RENDER_LIB='$(top_builddir)/render/librender.la' 29113RENDER_INC='-I$(top_srcdir)/render' 29114 29115 29116printf "%s\n" "#define RANDR 1" >>confdefs.h 29117 29118RANDR_LIB='$(top_builddir)/randr/librandr.la' 29119RANDR_INC='-I$(top_srcdir)/randr' 29120 29121 29122printf "%s\n" "#define XFIXES 1" >>confdefs.h 29123 29124FIXES_LIB='$(top_builddir)/xfixes/libxfixes.la' 29125FIXES_INC='-I$(top_srcdir)/xfixes' 29126 29127 29128printf "%s\n" "#define DAMAGE 1" >>confdefs.h 29129 29130DAMAGE_LIB='$(top_builddir)/damageext/libdamageext.la' 29131DAMAGE_INC='-I$(top_srcdir)/damageext' 29132MIEXT_DAMAGE_LIB='$(top_builddir)/miext/damage/libdamage.la' 29133MIEXT_DAMAGE_INC='-I$(top_srcdir)/miext/damage' 29134 29135# XINPUT extension is integral part of the server 29136 29137printf "%s\n" "#define XINPUT 1" >>confdefs.h 29138 29139XI_LIB='$(top_builddir)/Xi/libXi.la' 29140XI_INC='-I$(top_srcdir)/Xi' 29141 29142 if test "x$XF86UTILS" = xyes; then 29143 XF86UTILS_TRUE= 29144 XF86UTILS_FALSE='#' 29145else 29146 XF86UTILS_TRUE='#' 29147 XF86UTILS_FALSE= 29148fi 29149 29150 if test "x$VGAHW" = xyes; then 29151 VGAHW_TRUE= 29152 VGAHW_FALSE='#' 29153else 29154 VGAHW_TRUE='#' 29155 VGAHW_FALSE= 29156fi 29157 29158 if test "x$INT10MODULE" = xyes; then 29159 INT10MODULE_TRUE= 29160 INT10MODULE_FALSE='#' 29161else 29162 INT10MODULE_TRUE='#' 29163 INT10MODULE_FALSE= 29164fi 29165 29166 29167 29168printf "%s\n" "#define SHAPE 1" >>confdefs.h 29169 29170 29171if test "x$XKBPATH" = "xauto"; then 29172 XKBPATH=$(pkg-config --variable datadir xkbcomp || echo ${datadir})/X11/xkb 29173fi 29174 29175 29176 prefix_NONE= 29177 exec_prefix_NONE= 29178 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29179 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29180 eval ac_define_dir="\"$XKBPATH\"" 29181 eval ac_define_dir="\"$ac_define_dir\"" 29182 XKB_BASE_DIRECTORY="$ac_define_dir" 29183 29184 29185printf "%s\n" "#define XKB_BASE_DIRECTORY \"$ac_define_dir\"" >>confdefs.h 29186 29187 test "$prefix_NONE" && prefix=NONE 29188 test "$exec_prefix_NONE" && exec_prefix=NONE 29189 29190 29191# Check whether --with-xkb-bin-directory was given. 29192if test ${with_xkb_bin_directory+y} 29193then : 29194 withval=$with_xkb_bin_directory; XKB_BIN_DIRECTORY="$withval" 29195else $as_nop 29196 XKB_BIN_DIRECTORY="auto" 29197fi 29198 29199 29200if test "x$XKB_BIN_DIRECTORY" = "xauto"; then 29201 XKB_BIN_DIRECTORY=$(pkg-config --variable bindir xkbcomp) 29202 if test -z $XKB_BIN_DIRECTORY; then 29203 XKB_BIN_DIRECTORY="$bindir" 29204 fi 29205fi 29206 29207 29208 prefix_NONE= 29209 exec_prefix_NONE= 29210 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29211 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29212 eval ac_define_dir="\"$XKB_BIN_DIRECTORY\"" 29213 eval ac_define_dir="\"$ac_define_dir\"" 29214 XKB_BIN_DIRECTORY="$ac_define_dir" 29215 29216 29217printf "%s\n" "#define XKB_BIN_DIRECTORY \"$ac_define_dir\"" >>confdefs.h 29218 29219 test "$prefix_NONE" && prefix=NONE 29220 test "$exec_prefix_NONE" && exec_prefix=NONE 29221 29222 29223XKBOUTPUT_FIRSTCHAR=`echo $XKBOUTPUT | cut -b 1` 29224if [ x$XKBOUTPUT_FIRSTCHAR != x/ -a x$XKBOUTPUT_FIRSTCHAR != 'x$' ] ; then 29225 XKBOUTPUT="$XKB_BASE_DIRECTORY/$XKBOUTPUT" 29226fi 29227 29228 29229XKBOUTPUT=`echo $XKBOUTPUT/ | $SED 's|/*$|/|'` 29230XKB_COMPILED_DIR=`echo $XKBOUTPUT | $SED 's|/*$||'` 29231 29232 prefix_NONE= 29233 exec_prefix_NONE= 29234 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29235 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29236 eval ac_define_dir="\"$XKBOUTPUT\"" 29237 eval ac_define_dir="\"$ac_define_dir\"" 29238 XKM_OUTPUT_DIR="$ac_define_dir" 29239 29240 29241printf "%s\n" "#define XKM_OUTPUT_DIR \"$ac_define_dir\"" >>confdefs.h 29242 29243 test "$prefix_NONE" && prefix=NONE 29244 test "$exec_prefix_NONE" && exec_prefix=NONE 29245 29246 29247 29248if test "x$XKB_DFLT_RULES" = x; then 29249 case $host_os in 29250 linux*) 29251 XKB_DFLT_RULES="evdev" 29252 ;; 29253 *) 29254 XKB_DFLT_RULES="base" 29255 ;; 29256 esac 29257fi 29258 29259printf "%s\n" "#define XKB_DFLT_RULES \"$XKB_DFLT_RULES\"" >>confdefs.h 29260 29261 29262printf "%s\n" "#define XKB_DFLT_MODEL \"$XKB_DFLT_MODEL\"" >>confdefs.h 29263 29264 29265printf "%s\n" "#define XKB_DFLT_LAYOUT \"$XKB_DFLT_LAYOUT\"" >>confdefs.h 29266 29267 29268printf "%s\n" "#define XKB_DFLT_VARIANT \"$XKB_DFLT_VARIANT\"" >>confdefs.h 29269 29270 29271printf "%s\n" "#define XKB_DFLT_OPTIONS \"$XKB_DFLT_OPTIONS\"" >>confdefs.h 29272 29273 29274 29275 29276 29277 29278 29279XKB_LIB='$(top_builddir)/xkb/libxkb.la' 29280XKB_STUB_LIB='$(top_builddir)/xkb/libxkbstubs.la' 29281REQUIRED_MODULES="$REQUIRED_MODULES xkbfile" 29282 29283 29284pkg_failed=no 29285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xdmcp" >&5 29286printf %s "checking for xdmcp... " >&6; } 29287 29288if test -n "$XDMCP_CFLAGS"; then 29289 pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS" 29290 elif test -n "$PKG_CONFIG"; then 29291 if test -n "$PKG_CONFIG" && \ 29292 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 29293 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 29294 ac_status=$? 29295 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29296 test $ac_status = 0; }; then 29297 pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null` 29298 test "x$?" != "x0" && pkg_failed=yes 29299else 29300 pkg_failed=yes 29301fi 29302 else 29303 pkg_failed=untried 29304fi 29305if test -n "$XDMCP_LIBS"; then 29306 pkg_cv_XDMCP_LIBS="$XDMCP_LIBS" 29307 elif test -n "$PKG_CONFIG"; then 29308 if test -n "$PKG_CONFIG" && \ 29309 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 29310 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 29311 ac_status=$? 29312 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29313 test $ac_status = 0; }; then 29314 pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null` 29315 test "x$?" != "x0" && pkg_failed=yes 29316else 29317 pkg_failed=yes 29318fi 29319 else 29320 pkg_failed=untried 29321fi 29322 29323 29324 29325if test $pkg_failed = yes; then 29326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29327printf "%s\n" "no" >&6; } 29328 29329if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29330 _pkg_short_errors_supported=yes 29331else 29332 _pkg_short_errors_supported=no 29333fi 29334 if test $_pkg_short_errors_supported = yes; then 29335 XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xdmcp" 2>&1` 29336 else 29337 XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xdmcp" 2>&1` 29338 fi 29339 # Put the nasty error message in config.log where it belongs 29340 echo "$XDMCP_PKG_ERRORS" >&5 29341 29342 have_libxdmcp="no" 29343elif test $pkg_failed = untried; then 29344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29345printf "%s\n" "no" >&6; } 29346 have_libxdmcp="no" 29347else 29348 XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS 29349 XDMCP_LIBS=$pkg_cv_XDMCP_LIBS 29350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29351printf "%s\n" "yes" >&6; } 29352 have_libxdmcp="yes" 29353fi 29354if test "x$XDMCP" = xauto; then 29355 if test "x$have_libxdmcp" = xyes; then 29356 XDMCP=yes 29357 else 29358 XDMCP=no 29359 fi 29360fi 29361if test "x$XDMAUTH" = xauto; then 29362 if test "x$have_libxdmcp" = xyes; then 29363 XDMAUTH=yes 29364 else 29365 XDMAUTH=no 29366 fi 29367fi 29368 29369 if test "x$XDMCP" = xyes; then 29370 XDMCP_TRUE= 29371 XDMCP_FALSE='#' 29372else 29373 XDMCP_TRUE='#' 29374 XDMCP_FALSE= 29375fi 29376 29377if test "x$XDMCP" = xyes; then 29378 29379printf "%s\n" "#define XDMCP 1" >>confdefs.h 29380 29381 REQUIRED_LIBS="$REQUIRED_LIBS xdmcp" 29382 XDMCP_MODULES="xdmcp" 29383fi 29384 29385 if test "x$XDMAUTH" = xyes; then 29386 XDMAUTH_TRUE= 29387 XDMAUTH_FALSE='#' 29388else 29389 XDMAUTH_TRUE='#' 29390 XDMAUTH_FALSE= 29391fi 29392 29393if test "x$XDMAUTH" = xyes; then 29394 29395printf "%s\n" "#define HASXDMAUTH 1" >>confdefs.h 29396 29397 if ! test "x$XDMCP" = xyes; then 29398 REQUIRED_LIBS="$REQUIRED_LIBS xdmcp" 29399 XDMCP_MODULES="xdmcp" 29400 fi 29401fi 29402 29403if test "x$XF86VIDMODE" = xauto; then 29404 if test -n "$PKG_CONFIG" && \ 29405 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$VIDMODEPROTO\""; } >&5 29406 ($PKG_CONFIG --exists --print-errors "$VIDMODEPROTO") 2>&5 29407 ac_status=$? 29408 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29409 test $ac_status = 0; }; then 29410 XF86VIDMODE=yes 29411else 29412 XF86VIDMODE=no 29413fi 29414fi 29415if test "x$XF86VIDMODE" = xyes; then 29416 29417printf "%s\n" "#define XF86VIDMODE 1" >>confdefs.h 29418 29419fi 29420 if test "x$XF86VIDMODE" = xyes; then 29421 XF86VIDMODE_TRUE= 29422 XF86VIDMODE_FALSE='#' 29423else 29424 XF86VIDMODE_TRUE='#' 29425 XF86VIDMODE_FALSE= 29426fi 29427 29428 29429 29430 prefix_NONE= 29431 exec_prefix_NONE= 29432 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29433 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29434 eval ac_define_dir="\"$FONTPATH\"" 29435 eval ac_define_dir="\"$ac_define_dir\"" 29436 COMPILEDDEFAULTFONTPATH="$ac_define_dir" 29437 29438 29439printf "%s\n" "#define COMPILEDDEFAULTFONTPATH \"$ac_define_dir\"" >>confdefs.h 29440 29441 test "$prefix_NONE" && prefix=NONE 29442 test "$exec_prefix_NONE" && exec_prefix=NONE 29443 29444 29445 prefix_NONE= 29446 exec_prefix_NONE= 29447 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29448 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29449 eval ac_define_dir="\"$SERVERCONFIG\"" 29450 eval ac_define_dir="\"$ac_define_dir\"" 29451 SERVER_MISC_CONFIG_PATH="$ac_define_dir" 29452 29453 29454printf "%s\n" "#define SERVER_MISC_CONFIG_PATH \"$ac_define_dir\"" >>confdefs.h 29455 29456 test "$prefix_NONE" && prefix=NONE 29457 test "$exec_prefix_NONE" && exec_prefix=NONE 29458 29459 29460 prefix_NONE= 29461 exec_prefix_NONE= 29462 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29463 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29464 eval ac_define_dir="\"$FONTROOTDIR\"" 29465 eval ac_define_dir="\"$ac_define_dir\"" 29466 BASE_FONT_PATH="$ac_define_dir" 29467 29468 29469printf "%s\n" "#define BASE_FONT_PATH \"$ac_define_dir\"" >>confdefs.h 29470 29471 test "$prefix_NONE" && prefix=NONE 29472 test "$exec_prefix_NONE" && exec_prefix=NONE 29473 29474dridriverdir=`$PKG_CONFIG --variable=dridriverdir dri` 29475 29476 prefix_NONE= 29477 exec_prefix_NONE= 29478 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29479 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29480 eval ac_define_dir="\"$dridriverdir\"" 29481 eval ac_define_dir="\"$ac_define_dir\"" 29482 DRI_DRIVER_PATH="$ac_define_dir" 29483 29484 29485printf "%s\n" "#define DRI_DRIVER_PATH \"$ac_define_dir\"" >>confdefs.h 29486 29487 test "$prefix_NONE" && prefix=NONE 29488 test "$exec_prefix_NONE" && exec_prefix=NONE 29489 29490 29491printf "%s\n" "#define XVENDORNAME \"$VENDOR_NAME\"" >>confdefs.h 29492 29493 29494printf "%s\n" "#define XVENDORNAMESHORT \"$VENDOR_NAME_SHORT\"" >>confdefs.h 29495 29496 29497printf "%s\n" "#define XORG_MAN_VERSION \"$VENDOR_MAN_VERSION\"" >>confdefs.h 29498 29499 29500printf "%s\n" "#define BUILDERADDR \"$BUILDERADDR\"" >>confdefs.h 29501 29502 29503 29504printf "%s\n" "#define BUILDERSTRING \"$BUILDERSTRING\"" >>confdefs.h 29505 29506 29507 29508 29509printf "%s\n" "#define VENDOR_NAME \"$VENDOR_NAME\"" >>confdefs.h 29510 29511 29512printf "%s\n" "#define VENDOR_NAME_SHORT \"$VENDOR_NAME_SHORT\"" >>confdefs.h 29513 29514 29515printf "%s\n" "#define VENDOR_RELEASE $VENDOR_RELEASE" >>confdefs.h 29516 29517 29518printf "%s\n" "#define VENDOR_MAN_VERSION \"$VENDOR_MAN_VERSION\"" >>confdefs.h 29519 29520 29521if test "x$DEBUGGING" = xyes; then 29522 29523printf "%s\n" "#define DEBUG 1" >>confdefs.h 29524 29525fi 29526 if test "x$DEBUGGING" = xyes; then 29527 DEBUG_TRUE= 29528 DEBUG_FALSE='#' 29529else 29530 DEBUG_TRUE='#' 29531 DEBUG_FALSE= 29532fi 29533 29534 29535 29536printf "%s\n" "#define XTEST 1" >>confdefs.h 29537 29538 29539printf "%s\n" "#define XSYNC 1" >>confdefs.h 29540 29541 29542printf "%s\n" "#define XCMISC 1" >>confdefs.h 29543 29544 29545printf "%s\n" "#define BIGREQS 1" >>confdefs.h 29546 29547 29548if test "x$SPECIAL_DTRACE_OBJECTS" = "xyes" ; then 29549 DIX_LIB='$(top_builddir)/dix/dix.O' 29550 OS_LIB='$(top_builddir)/os/os.O $(SHA1_LIBS) $(DLOPEN_LIBS) $(LIBUNWIND_LIBS)' 29551else 29552 DIX_LIB='$(top_builddir)/dix/libdix.la' 29553 OS_LIB='$(top_builddir)/os/libos.la' 29554fi 29555 29556 29557 29558MAIN_LIB='$(top_builddir)/dix/libmain.la' 29559 29560 29561MI_LIB='$(top_builddir)/mi/libmi.la' 29562MI_EXT_LIB='$(top_builddir)/mi/libmiext.la' 29563MI_INC='-I$(top_srcdir)/mi' 29564FB_LIB='$(top_builddir)/fb/libfb.la' 29565FB_INC='-I$(top_srcdir)/fb' 29566MIEXT_SHADOW_INC='-I$(top_srcdir)/miext/shadow' 29567MIEXT_SHADOW_LIB='$(top_builddir)/miext/shadow/libshadow.la' 29568MIEXT_SYNC_INC='-I$(top_srcdir)/miext/sync' 29569MIEXT_SYNC_LIB='$(top_builddir)/miext/sync/libsync.la' 29570CORE_INCS='-I$(top_srcdir)/include -I$(top_builddir)/include' 29571 29572# SHA1 hashing 29573 29574# Check whether --with-sha1 was given. 29575if test ${with_sha1+y} 29576then : 29577 withval=$with_sha1; 29578fi 29579 29580ac_fn_c_check_func "$LINENO" "SHA1Init" "ac_cv_func_SHA1Init" 29581if test "x$ac_cv_func_SHA1Init" = xyes 29582then : 29583 HAVE_SHA1_IN_LIBC=yes 29584fi 29585 29586if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_LIBC" = xyes; then 29587 with_sha1=libc 29588fi 29589if test "x$with_sha1" = xlibc && test "x$HAVE_SHA1_IN_LIBC" != xyes; then 29590 as_fn_error $? "libc requested but not found" "$LINENO" 5 29591fi 29592if test "x$with_sha1" = xlibc; then 29593 29594printf "%s\n" "#define HAVE_SHA1_IN_LIBC 1" >>confdefs.h 29595 29596 SHA1_LIBS="" 29597fi 29598ac_fn_c_check_func "$LINENO" "CC_SHA1_Init" "ac_cv_func_CC_SHA1_Init" 29599if test "x$ac_cv_func_CC_SHA1_Init" = xyes 29600then : 29601 HAVE_SHA1_IN_COMMONCRYPTO=yes 29602fi 29603 29604if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_COMMONCRYPTO" = xyes; then 29605 with_sha1=CommonCrypto 29606fi 29607if test "x$with_sha1" = xCommonCrypto && test "x$HAVE_SHA1_IN_COMMONCRYPTO" != xyes; then 29608 as_fn_error $? "CommonCrypto requested but not found" "$LINENO" 5 29609fi 29610if test "x$with_sha1" = xCommonCrypto; then 29611 29612printf "%s\n" "#define HAVE_SHA1_IN_COMMONCRYPTO 1" >>confdefs.h 29613 29614 SHA1_LIBS="" 29615fi 29616ac_fn_c_check_header_compile "$LINENO" "wincrypt.h" "ac_cv_header_wincrypt_h" "#include <windows.h> 29617" 29618if test "x$ac_cv_header_wincrypt_h" = xyes 29619then : 29620 HAVE_SHA1_IN_CRYPTOAPI=yes 29621fi 29622 29623if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_CRYPTOAPI" = xyes; then 29624 with_sha1=CryptoAPI 29625fi 29626if test "x$with_sha1" = xCryptoAPI && test "x$HAVE_SHA1_IN_CRYPTOAPI" != xyes; then 29627 as_fn_error $? "CryptoAPI requested but not found" "$LINENO" 5 29628fi 29629if test "x$with_sha1" = xCryptoAPI; then 29630 29631printf "%s\n" "#define HAVE_SHA1_IN_CRYPTOAPI 1" >>confdefs.h 29632 29633 SHA1_LIBS="" 29634fi 29635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SHA1Init in -lmd" >&5 29636printf %s "checking for SHA1Init in -lmd... " >&6; } 29637if test ${ac_cv_lib_md_SHA1Init+y} 29638then : 29639 printf %s "(cached) " >&6 29640else $as_nop 29641 ac_check_lib_save_LIBS=$LIBS 29642LIBS="-lmd $LIBS" 29643cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29644/* end confdefs.h. */ 29645 29646/* Override any GCC internal prototype to avoid an error. 29647 Use char because int might match the return type of a GCC 29648 builtin and then its argument prototype would still apply. 29649 The 'extern "C"' is for builds by C++ compilers; 29650 although this is not generally supported in C code supporting it here 29651 has little cost and some practical benefit (sr 110532). */ 29652#ifdef __cplusplus 29653extern "C" 29654#endif 29655char SHA1Init (void); 29656int 29657main (void) 29658{ 29659return SHA1Init (); 29660 ; 29661 return 0; 29662} 29663_ACEOF 29664if ac_fn_c_try_link "$LINENO" 29665then : 29666 ac_cv_lib_md_SHA1Init=yes 29667else $as_nop 29668 ac_cv_lib_md_SHA1Init=no 29669fi 29670rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29671 conftest$ac_exeext conftest.$ac_ext 29672LIBS=$ac_check_lib_save_LIBS 29673fi 29674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_md_SHA1Init" >&5 29675printf "%s\n" "$ac_cv_lib_md_SHA1Init" >&6; } 29676if test "x$ac_cv_lib_md_SHA1Init" = xyes 29677then : 29678 HAVE_LIBMD=yes 29679fi 29680 29681if test "x$with_sha1" = x && test "x$HAVE_LIBMD" = xyes; then 29682 with_sha1=libmd 29683fi 29684if test "x$with_sha1" = xlibmd && test "x$HAVE_LIBMD" != xyes; then 29685 as_fn_error $? "libmd requested but not found" "$LINENO" 5 29686fi 29687if test "x$with_sha1" = xlibmd; then 29688 29689printf "%s\n" "#define HAVE_SHA1_IN_LIBMD 1" >>confdefs.h 29690 29691 SHA1_LIBS=-lmd 29692fi 29693 29694pkg_failed=no 29695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsha1" >&5 29696printf %s "checking for libsha1... " >&6; } 29697 29698if test -n "$LIBSHA1_CFLAGS"; then 29699 pkg_cv_LIBSHA1_CFLAGS="$LIBSHA1_CFLAGS" 29700 elif test -n "$PKG_CONFIG"; then 29701 if test -n "$PKG_CONFIG" && \ 29702 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsha1\""; } >&5 29703 ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5 29704 ac_status=$? 29705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29706 test $ac_status = 0; }; then 29707 pkg_cv_LIBSHA1_CFLAGS=`$PKG_CONFIG --cflags "libsha1" 2>/dev/null` 29708 test "x$?" != "x0" && pkg_failed=yes 29709else 29710 pkg_failed=yes 29711fi 29712 else 29713 pkg_failed=untried 29714fi 29715if test -n "$LIBSHA1_LIBS"; then 29716 pkg_cv_LIBSHA1_LIBS="$LIBSHA1_LIBS" 29717 elif test -n "$PKG_CONFIG"; then 29718 if test -n "$PKG_CONFIG" && \ 29719 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsha1\""; } >&5 29720 ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5 29721 ac_status=$? 29722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29723 test $ac_status = 0; }; then 29724 pkg_cv_LIBSHA1_LIBS=`$PKG_CONFIG --libs "libsha1" 2>/dev/null` 29725 test "x$?" != "x0" && pkg_failed=yes 29726else 29727 pkg_failed=yes 29728fi 29729 else 29730 pkg_failed=untried 29731fi 29732 29733 29734 29735if test $pkg_failed = yes; then 29736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29737printf "%s\n" "no" >&6; } 29738 29739if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29740 _pkg_short_errors_supported=yes 29741else 29742 _pkg_short_errors_supported=no 29743fi 29744 if test $_pkg_short_errors_supported = yes; then 29745 LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsha1" 2>&1` 29746 else 29747 LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsha1" 2>&1` 29748 fi 29749 # Put the nasty error message in config.log where it belongs 29750 echo "$LIBSHA1_PKG_ERRORS" >&5 29751 29752 HAVE_LIBSHA1=no 29753elif test $pkg_failed = untried; then 29754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29755printf "%s\n" "no" >&6; } 29756 HAVE_LIBSHA1=no 29757else 29758 LIBSHA1_CFLAGS=$pkg_cv_LIBSHA1_CFLAGS 29759 LIBSHA1_LIBS=$pkg_cv_LIBSHA1_LIBS 29760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29761printf "%s\n" "yes" >&6; } 29762 HAVE_LIBSHA1=yes 29763fi 29764if test "x$with_sha1" = x && test "x$HAVE_LIBSHA1" = xyes; then 29765 with_sha1=libsha1 29766fi 29767if test "x$with_sha1" = xlibsha1 && test "x$HAVE_LIBSHA1" != xyes; then 29768 as_fn_error $? "libsha1 requested but not found" "$LINENO" 5 29769fi 29770if test "x$with_sha1" = xlibsha1; then 29771 29772printf "%s\n" "#define HAVE_SHA1_IN_LIBSHA1 1" >>confdefs.h 29773 29774 SHA1_LIBS=-lsha1 29775fi 29776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nettle_sha1_init in -lnettle" >&5 29777printf %s "checking for nettle_sha1_init in -lnettle... " >&6; } 29778if test ${ac_cv_lib_nettle_nettle_sha1_init+y} 29779then : 29780 printf %s "(cached) " >&6 29781else $as_nop 29782 ac_check_lib_save_LIBS=$LIBS 29783LIBS="-lnettle $LIBS" 29784cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29785/* end confdefs.h. */ 29786 29787/* Override any GCC internal prototype to avoid an error. 29788 Use char because int might match the return type of a GCC 29789 builtin and then its argument prototype would still apply. 29790 The 'extern "C"' is for builds by C++ compilers; 29791 although this is not generally supported in C code supporting it here 29792 has little cost and some practical benefit (sr 110532). */ 29793#ifdef __cplusplus 29794extern "C" 29795#endif 29796char nettle_sha1_init (void); 29797int 29798main (void) 29799{ 29800return nettle_sha1_init (); 29801 ; 29802 return 0; 29803} 29804_ACEOF 29805if ac_fn_c_try_link "$LINENO" 29806then : 29807 ac_cv_lib_nettle_nettle_sha1_init=yes 29808else $as_nop 29809 ac_cv_lib_nettle_nettle_sha1_init=no 29810fi 29811rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29812 conftest$ac_exeext conftest.$ac_ext 29813LIBS=$ac_check_lib_save_LIBS 29814fi 29815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_sha1_init" >&5 29816printf "%s\n" "$ac_cv_lib_nettle_nettle_sha1_init" >&6; } 29817if test "x$ac_cv_lib_nettle_nettle_sha1_init" = xyes 29818then : 29819 HAVE_LIBNETTLE=yes 29820fi 29821 29822if test "x$with_sha1" = x && test "x$HAVE_LIBNETTLE" = xyes; then 29823 with_sha1=libnettle 29824fi 29825if test "x$with_sha1" = xlibnettle && test "x$HAVE_LIBNETTLE" != xyes; then 29826 as_fn_error $? "libnettle requested but not found" "$LINENO" 5 29827fi 29828if test "x$with_sha1" = xlibnettle; then 29829 29830printf "%s\n" "#define HAVE_SHA1_IN_LIBNETTLE 1" >>confdefs.h 29831 29832 SHA1_LIBS=-lnettle 29833fi 29834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcry_md_open in -lgcrypt" >&5 29835printf %s "checking for gcry_md_open in -lgcrypt... " >&6; } 29836if test ${ac_cv_lib_gcrypt_gcry_md_open+y} 29837then : 29838 printf %s "(cached) " >&6 29839else $as_nop 29840 ac_check_lib_save_LIBS=$LIBS 29841LIBS="-lgcrypt $LIBS" 29842cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29843/* end confdefs.h. */ 29844 29845/* Override any GCC internal prototype to avoid an error. 29846 Use char because int might match the return type of a GCC 29847 builtin and then its argument prototype would still apply. 29848 The 'extern "C"' is for builds by C++ compilers; 29849 although this is not generally supported in C code supporting it here 29850 has little cost and some practical benefit (sr 110532). */ 29851#ifdef __cplusplus 29852extern "C" 29853#endif 29854char gcry_md_open (void); 29855int 29856main (void) 29857{ 29858return gcry_md_open (); 29859 ; 29860 return 0; 29861} 29862_ACEOF 29863if ac_fn_c_try_link "$LINENO" 29864then : 29865 ac_cv_lib_gcrypt_gcry_md_open=yes 29866else $as_nop 29867 ac_cv_lib_gcrypt_gcry_md_open=no 29868fi 29869rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29870 conftest$ac_exeext conftest.$ac_ext 29871LIBS=$ac_check_lib_save_LIBS 29872fi 29873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_md_open" >&5 29874printf "%s\n" "$ac_cv_lib_gcrypt_gcry_md_open" >&6; } 29875if test "x$ac_cv_lib_gcrypt_gcry_md_open" = xyes 29876then : 29877 HAVE_LIBGCRYPT=yes 29878fi 29879 29880if test "x$with_sha1" = x && test "x$HAVE_LIBGCRYPT" = xyes; then 29881 with_sha1=libgcrypt 29882fi 29883if test "x$with_sha1" = xlibgcrypt && test "x$HAVE_LIBGCRYPT" != xyes; then 29884 as_fn_error $? "libgcrypt requested but not found" "$LINENO" 5 29885fi 29886if test "x$with_sha1" = xlibgcrypt; then 29887 29888printf "%s\n" "#define HAVE_SHA1_IN_LIBGCRYPT 1" >>confdefs.h 29889 29890 SHA1_LIBS=-lgcrypt 29891fi 29892# We don't need all of the OpenSSL libraries, just libcrypto 29893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SHA1_Init in -lcrypto" >&5 29894printf %s "checking for SHA1_Init in -lcrypto... " >&6; } 29895if test ${ac_cv_lib_crypto_SHA1_Init+y} 29896then : 29897 printf %s "(cached) " >&6 29898else $as_nop 29899 ac_check_lib_save_LIBS=$LIBS 29900LIBS="-lcrypto $LIBS" 29901cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29902/* end confdefs.h. */ 29903 29904/* Override any GCC internal prototype to avoid an error. 29905 Use char because int might match the return type of a GCC 29906 builtin and then its argument prototype would still apply. 29907 The 'extern "C"' is for builds by C++ compilers; 29908 although this is not generally supported in C code supporting it here 29909 has little cost and some practical benefit (sr 110532). */ 29910#ifdef __cplusplus 29911extern "C" 29912#endif 29913char SHA1_Init (void); 29914int 29915main (void) 29916{ 29917return SHA1_Init (); 29918 ; 29919 return 0; 29920} 29921_ACEOF 29922if ac_fn_c_try_link "$LINENO" 29923then : 29924 ac_cv_lib_crypto_SHA1_Init=yes 29925else $as_nop 29926 ac_cv_lib_crypto_SHA1_Init=no 29927fi 29928rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29929 conftest$ac_exeext conftest.$ac_ext 29930LIBS=$ac_check_lib_save_LIBS 29931fi 29932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1_Init" >&5 29933printf "%s\n" "$ac_cv_lib_crypto_SHA1_Init" >&6; } 29934if test "x$ac_cv_lib_crypto_SHA1_Init" = xyes 29935then : 29936 HAVE_LIBCRYPTO=yes 29937fi 29938 29939 29940pkg_failed=no 29941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl" >&5 29942printf %s "checking for openssl... " >&6; } 29943 29944if test -n "$OPENSSL_CFLAGS"; then 29945 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS" 29946 elif test -n "$PKG_CONFIG"; then 29947 if test -n "$PKG_CONFIG" && \ 29948 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 29949 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 29950 ac_status=$? 29951 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29952 test $ac_status = 0; }; then 29953 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null` 29954 test "x$?" != "x0" && pkg_failed=yes 29955else 29956 pkg_failed=yes 29957fi 29958 else 29959 pkg_failed=untried 29960fi 29961if test -n "$OPENSSL_LIBS"; then 29962 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS" 29963 elif test -n "$PKG_CONFIG"; then 29964 if test -n "$PKG_CONFIG" && \ 29965 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 29966 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 29967 ac_status=$? 29968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29969 test $ac_status = 0; }; then 29970 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null` 29971 test "x$?" != "x0" && pkg_failed=yes 29972else 29973 pkg_failed=yes 29974fi 29975 else 29976 pkg_failed=untried 29977fi 29978 29979 29980 29981if test $pkg_failed = yes; then 29982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29983printf "%s\n" "no" >&6; } 29984 29985if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29986 _pkg_short_errors_supported=yes 29987else 29988 _pkg_short_errors_supported=no 29989fi 29990 if test $_pkg_short_errors_supported = yes; then 29991 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1` 29992 else 29993 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1` 29994 fi 29995 # Put the nasty error message in config.log where it belongs 29996 echo "$OPENSSL_PKG_ERRORS" >&5 29997 29998 HAVE_OPENSSL_PKC=no 29999elif test $pkg_failed = untried; then 30000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30001printf "%s\n" "no" >&6; } 30002 HAVE_OPENSSL_PKC=no 30003else 30004 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS 30005 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS 30006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30007printf "%s\n" "yes" >&6; } 30008 HAVE_OPENSSL_PKC=yes 30009fi 30010if test "x$HAVE_LIBCRYPTO" = xyes || test "x$HAVE_OPENSSL_PKC" = xyes; then 30011 if test "x$with_sha1" = x; then 30012 with_sha1=libcrypto 30013 fi 30014else 30015 if test "x$with_sha1" = xlibcrypto; then 30016 as_fn_error $? "OpenSSL libcrypto requested but not found" "$LINENO" 5 30017 fi 30018fi 30019if test "x$with_sha1" = xlibcrypto; then 30020 if test "x$HAVE_LIBCRYPTO" = xyes; then 30021 SHA1_LIBS=-lcrypto 30022 else 30023 SHA1_LIBS="$OPENSSL_LIBS" 30024 SHA1_CFLAGS="$OPENSSL_CFLAGS" 30025 fi 30026fi 30027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SHA1 implementation" >&5 30028printf %s "checking for SHA1 implementation... " >&6; } 30029if test "x$with_sha1" = x; then 30030 as_fn_error $? "No suitable SHA1 implementation found" "$LINENO" 5 30031fi 30032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sha1" >&5 30033printf "%s\n" "$with_sha1" >&6; } 30034 30035 30036 30037 30038pkg_failed=no 30039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $REQUIRED_MODULES $REQUIRED_LIBS" >&5 30040printf %s "checking for $REQUIRED_MODULES $REQUIRED_LIBS... " >&6; } 30041 30042if test -n "$XSERVERCFLAGS_CFLAGS"; then 30043 pkg_cv_XSERVERCFLAGS_CFLAGS="$XSERVERCFLAGS_CFLAGS" 30044 elif test -n "$PKG_CONFIG"; then 30045 if test -n "$PKG_CONFIG" && \ 30046 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\""; } >&5 30047 ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5 30048 ac_status=$? 30049 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30050 test $ac_status = 0; }; then 30051 pkg_cv_XSERVERCFLAGS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null` 30052 test "x$?" != "x0" && pkg_failed=yes 30053else 30054 pkg_failed=yes 30055fi 30056 else 30057 pkg_failed=untried 30058fi 30059if test -n "$XSERVERCFLAGS_LIBS"; then 30060 pkg_cv_XSERVERCFLAGS_LIBS="$XSERVERCFLAGS_LIBS" 30061 elif test -n "$PKG_CONFIG"; then 30062 if test -n "$PKG_CONFIG" && \ 30063 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\""; } >&5 30064 ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5 30065 ac_status=$? 30066 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30067 test $ac_status = 0; }; then 30068 pkg_cv_XSERVERCFLAGS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null` 30069 test "x$?" != "x0" && pkg_failed=yes 30070else 30071 pkg_failed=yes 30072fi 30073 else 30074 pkg_failed=untried 30075fi 30076 30077 30078 30079if test $pkg_failed = yes; then 30080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30081printf "%s\n" "no" >&6; } 30082 30083if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30084 _pkg_short_errors_supported=yes 30085else 30086 _pkg_short_errors_supported=no 30087fi 30088 if test $_pkg_short_errors_supported = yes; then 30089 XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>&1` 30090 else 30091 XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>&1` 30092 fi 30093 # Put the nasty error message in config.log where it belongs 30094 echo "$XSERVERCFLAGS_PKG_ERRORS" >&5 30095 30096 as_fn_error $? "Package requirements ($REQUIRED_MODULES $REQUIRED_LIBS) were not met: 30097 30098$XSERVERCFLAGS_PKG_ERRORS 30099 30100Consider adjusting the PKG_CONFIG_PATH environment variable if you 30101installed software in a non-standard prefix. 30102 30103Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS 30104and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config. 30105See the pkg-config man page for more details." "$LINENO" 5 30106elif test $pkg_failed = untried; then 30107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30108printf "%s\n" "no" >&6; } 30109 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30110printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 30111as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 30112is in your PATH or set the PKG_CONFIG environment variable to the full 30113path to pkg-config. 30114 30115Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS 30116and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config. 30117See the pkg-config man page for more details. 30118 30119To get pkg-config, see <http://pkg-config.freedesktop.org/>. 30120See \`config.log' for more details" "$LINENO" 5; } 30121else 30122 XSERVERCFLAGS_CFLAGS=$pkg_cv_XSERVERCFLAGS_CFLAGS 30123 XSERVERCFLAGS_LIBS=$pkg_cv_XSERVERCFLAGS_LIBS 30124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30125printf "%s\n" "yes" >&6; } 30126 30127fi 30128 30129pkg_failed=no 30130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $REQUIRED_LIBS" >&5 30131printf %s "checking for $REQUIRED_LIBS... " >&6; } 30132 30133if test -n "$XSERVERLIBS_CFLAGS"; then 30134 pkg_cv_XSERVERLIBS_CFLAGS="$XSERVERLIBS_CFLAGS" 30135 elif test -n "$PKG_CONFIG"; then 30136 if test -n "$PKG_CONFIG" && \ 30137 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\""; } >&5 30138 ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5 30139 ac_status=$? 30140 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30141 test $ac_status = 0; }; then 30142 pkg_cv_XSERVERLIBS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_LIBS" 2>/dev/null` 30143 test "x$?" != "x0" && pkg_failed=yes 30144else 30145 pkg_failed=yes 30146fi 30147 else 30148 pkg_failed=untried 30149fi 30150if test -n "$XSERVERLIBS_LIBS"; then 30151 pkg_cv_XSERVERLIBS_LIBS="$XSERVERLIBS_LIBS" 30152 elif test -n "$PKG_CONFIG"; then 30153 if test -n "$PKG_CONFIG" && \ 30154 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\""; } >&5 30155 ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5 30156 ac_status=$? 30157 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30158 test $ac_status = 0; }; then 30159 pkg_cv_XSERVERLIBS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_LIBS" 2>/dev/null` 30160 test "x$?" != "x0" && pkg_failed=yes 30161else 30162 pkg_failed=yes 30163fi 30164 else 30165 pkg_failed=untried 30166fi 30167 30168 30169 30170if test $pkg_failed = yes; then 30171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30172printf "%s\n" "no" >&6; } 30173 30174if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30175 _pkg_short_errors_supported=yes 30176else 30177 _pkg_short_errors_supported=no 30178fi 30179 if test $_pkg_short_errors_supported = yes; then 30180 XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$REQUIRED_LIBS" 2>&1` 30181 else 30182 XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$REQUIRED_LIBS" 2>&1` 30183 fi 30184 # Put the nasty error message in config.log where it belongs 30185 echo "$XSERVERLIBS_PKG_ERRORS" >&5 30186 30187 as_fn_error $? "Package requirements ($REQUIRED_LIBS) were not met: 30188 30189$XSERVERLIBS_PKG_ERRORS 30190 30191Consider adjusting the PKG_CONFIG_PATH environment variable if you 30192installed software in a non-standard prefix. 30193 30194Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS 30195and XSERVERLIBS_LIBS to avoid the need to call pkg-config. 30196See the pkg-config man page for more details." "$LINENO" 5 30197elif test $pkg_failed = untried; then 30198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30199printf "%s\n" "no" >&6; } 30200 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30201printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 30202as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 30203is in your PATH or set the PKG_CONFIG environment variable to the full 30204path to pkg-config. 30205 30206Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS 30207and XSERVERLIBS_LIBS to avoid the need to call pkg-config. 30208See the pkg-config man page for more details. 30209 30210To get pkg-config, see <http://pkg-config.freedesktop.org/>. 30211See \`config.log' for more details" "$LINENO" 5; } 30212else 30213 XSERVERLIBS_CFLAGS=$pkg_cv_XSERVERLIBS_CFLAGS 30214 XSERVERLIBS_LIBS=$pkg_cv_XSERVERLIBS_LIBS 30215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30216printf "%s\n" "yes" >&6; } 30217 30218fi 30219 30220 30221pkg_failed=no 30222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libunwind" >&5 30223printf %s "checking for libunwind... " >&6; } 30224 30225if test -n "$LIBUNWIND_CFLAGS"; then 30226 pkg_cv_LIBUNWIND_CFLAGS="$LIBUNWIND_CFLAGS" 30227 elif test -n "$PKG_CONFIG"; then 30228 if test -n "$PKG_CONFIG" && \ 30229 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5 30230 ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5 30231 ac_status=$? 30232 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30233 test $ac_status = 0; }; then 30234 pkg_cv_LIBUNWIND_CFLAGS=`$PKG_CONFIG --cflags "libunwind" 2>/dev/null` 30235 test "x$?" != "x0" && pkg_failed=yes 30236else 30237 pkg_failed=yes 30238fi 30239 else 30240 pkg_failed=untried 30241fi 30242if test -n "$LIBUNWIND_LIBS"; then 30243 pkg_cv_LIBUNWIND_LIBS="$LIBUNWIND_LIBS" 30244 elif test -n "$PKG_CONFIG"; then 30245 if test -n "$PKG_CONFIG" && \ 30246 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5 30247 ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5 30248 ac_status=$? 30249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30250 test $ac_status = 0; }; then 30251 pkg_cv_LIBUNWIND_LIBS=`$PKG_CONFIG --libs "libunwind" 2>/dev/null` 30252 test "x$?" != "x0" && pkg_failed=yes 30253else 30254 pkg_failed=yes 30255fi 30256 else 30257 pkg_failed=untried 30258fi 30259 30260 30261 30262if test $pkg_failed = yes; then 30263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30264printf "%s\n" "no" >&6; } 30265 30266if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30267 _pkg_short_errors_supported=yes 30268else 30269 _pkg_short_errors_supported=no 30270fi 30271 if test $_pkg_short_errors_supported = yes; then 30272 LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libunwind" 2>&1` 30273 else 30274 LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libunwind" 2>&1` 30275 fi 30276 # Put the nasty error message in config.log where it belongs 30277 echo "$LIBUNWIND_PKG_ERRORS" >&5 30278 30279 HAVE_LIBUNWIND=no 30280elif test $pkg_failed = untried; then 30281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30282printf "%s\n" "no" >&6; } 30283 HAVE_LIBUNWIND=no 30284else 30285 LIBUNWIND_CFLAGS=$pkg_cv_LIBUNWIND_CFLAGS 30286 LIBUNWIND_LIBS=$pkg_cv_LIBUNWIND_LIBS 30287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30288printf "%s\n" "yes" >&6; } 30289 HAVE_LIBUNWIND=yes 30290fi 30291if test "x$LIBUNWIND" = "xauto"; then 30292 LIBUNWIND="$HAVE_LIBUNWIND" 30293fi 30294 30295if test "x$LIBUNWIND" = "xyes"; then 30296 if test "x$HAVE_LIBUNWIND" != "xyes"; then 30297 as_fn_error $? "libunwind requested but not installed." "$LINENO" 5 30298 fi 30299 30300printf "%s\n" "#define HAVE_LIBUNWIND 1" >>confdefs.h 30301 30302fi 30303 30304 if test "x$LIBUNWIND" = xyes; then 30305 HAVE_LIBUNWIND_TRUE= 30306 HAVE_LIBUNWIND_FALSE='#' 30307else 30308 HAVE_LIBUNWIND_TRUE='#' 30309 HAVE_LIBUNWIND_FALSE= 30310fi 30311 30312 30313# Autotools has some unfortunate issues with library handling. In order to 30314# get a server to rebuild when a dependency in the tree is changed, it must 30315# be listed in SERVERNAME_DEPENDENCIES. However, no system libraries may be 30316# listed there, or some versions of autotools will break (especially if a -L 30317# is required to find the library). So, we keep two sets of libraries 30318# detected: NAMESPACE_LIBS for in-tree libraries to be linked against, which 30319# will go into the _DEPENDENCIES and _LDADD of the server, and 30320# NAMESPACE_SYS_LIBS which will go into only the _LDADD. The 30321# NAMESPACEMODULES_LIBS detected from pkgconfig should always go in 30322# NAMESPACE_SYS_LIBS. 30323# 30324# XSERVER_LIBS is the set of in-tree libraries which all servers require. 30325# XSERVER_SYS_LIBS is the set of out-of-tree libraries which all servers 30326# require. 30327# 30328XSERVER_CFLAGS="${XSERVER_CFLAGS} ${XSERVERCFLAGS_CFLAGS}" 30329XSERVER_LIBS="$DIX_LIB $MI_LIB $OS_LIB" 30330XSERVER_SYS_LIBS="${XSERVERLIBS_LIBS} ${SYS_LIBS} ${LIBS}" 30331 30332 30333 30334UTILS_SYS_LIBS="${SYS_LIBS}" 30335 30336 30337# The Xorg binary needs to export symbols so that they can be used from modules 30338# Some platforms require extra flags to do this. libtool should set the 30339# necessary flags for each platform when -export-dynamic is passed to it. 30340LD_EXPORT_SYMBOLS_FLAG="-export-dynamic" 30341LD_NO_UNDEFINED_FLAG= 30342XORG_DRIVER_LIBS= 30343case "$host_os" in 30344 cygwin*) 30345 LD_EXPORT_SYMBOLS_FLAG="-Wl,--export-all,--out-implib,lib\$@.a" 30346 LD_NO_UNDEFINED_FLAG="-no-undefined -Wl,\$(top_builddir)/hw/xfree86/libXorg.exe.a" 30347 XORG_DRIVER_LIBS="-lXorg.exe -L\${moduledir} -lshadow -lfb -no-undefined" 30348 CYGWIN=yes 30349 ;; 30350 solaris*) 30351 # We use AC_LINK_IFELSE to generate a temporary program conftest$EXEEXT 30352 # that we can link against for testing if the system linker is new 30353 # enough to support -z parent=<program> for verifying loadable modules 30354 # are only calling functions defined in either the loading program or 30355 # the libraries they're linked with. 30356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30357/* end confdefs.h. */ 30358int main(int argc, char **argv) { return 0; } 30359_ACEOF 30360if ac_fn_c_try_link "$LINENO" 30361then : 30362 mv conftest$EXEEXT conftest.parent 30363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,parent=conftest.parent -G" >&5 30364printf %s "checking whether the linker accepts -Wl,-z,parent=conftest.parent -G... " >&6; } 30365if test ${xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G+y} 30366then : 30367 printf %s "(cached) " >&6 30368else $as_nop 30369 30370 ax_save_FLAGS=$LDFLAGS 30371 LDFLAGS="-Wl,-z,parent=conftest.parent -G" 30372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30373/* end confdefs.h. */ 30374extern int main(int argc, char **argv); 30375 int call_main(void) { return main(0, (void *)0); } 30376_ACEOF 30377if ac_fn_c_try_link "$LINENO" 30378then : 30379 xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G=yes 30380else $as_nop 30381 xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G=no 30382fi 30383rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30384 conftest$ac_exeext conftest.$ac_ext 30385 LDFLAGS=$ax_save_FLAGS 30386fi 30387 30388eval xorg_check_linker_flags=$xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G 30389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_check_linker_flags" >&5 30390printf "%s\n" "$xorg_check_linker_flags" >&6; } 30391if test "x$xorg_check_linker_flags" = xyes; then 30392 LD_NO_UNDEFINED_FLAG="-Wl,-z,defs -Wl,-z,parent=\$(top_builddir)/hw/xfree86/Xorg" 30393# Not set yet, since this gets exported in xorg-server.pc to all the drivers, 30394# and they're not all fixed to build correctly with it yet. 30395# XORG_DRIVER_LIBS="-Wl,-z,defs -Wl,-z,parent=${bindir}/Xorg" 30396 30397else 30398 : 30399fi 30400 30401 rm -f conftest.parent 30402 30403fi 30404rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30405 conftest$ac_exeext conftest.$ac_ext 30406 ;; 30407esac 30408 30409 30410 30411 if test x"$CYGWIN" = xyes; then 30412 CYGWIN_TRUE= 30413 CYGWIN_FALSE='#' 30414else 30415 CYGWIN_TRUE='#' 30416 CYGWIN_FALSE= 30417fi 30418 30419 if test x"$LD_NO_UNDEFINED_FLAG" != x; then 30420 NO_UNDEFINED_TRUE= 30421 NO_UNDEFINED_FALSE='#' 30422else 30423 NO_UNDEFINED_TRUE='#' 30424 NO_UNDEFINED_FALSE= 30425fi 30426 30427 30428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if SVR4 needs to be defined" >&5 30429printf %s "checking if SVR4 needs to be defined... " >&6; } 30430cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30431/* end confdefs.h. */ 30432 30433#if defined(SVR4) || defined(__svr4__) || defined(__SVR4) 30434 I_AM_SVR4 30435#endif 30436 30437_ACEOF 30438if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 30439 $EGREP "I_AM_SVR4" >/dev/null 2>&1 30440then : 30441 30442 30443printf "%s\n" "#define SVR4 1" >>confdefs.h 30444 30445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30446printf "%s\n" "yes" >&6; } 30447else $as_nop 30448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30449printf "%s\n" "no" >&6; } 30450fi 30451rm -rf conftest* 30452 30453 30454XSERVER_CFLAGS="$XSERVER_CFLAGS $CORE_INCS $XEXT_INC $COMPOSITE_INC $DAMAGE_INC $FIXES_INC $XI_INC $MI_INC $MIEXT_SYNC_INC $MIEXT_SHADOW_INC $MIEXT_LAYER_INC $MIEXT_DAMAGE_INC $RENDER_INC $RANDR_INC $FB_INC $DBE_INC $PRESENT_INC" 30455 30456 30457 30458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build Xvfb DDX" >&5 30459printf %s "checking whether to build Xvfb DDX... " >&6; } 30460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XVFB" >&5 30461printf "%s\n" "$XVFB" >&6; } 30462 if test "x$XVFB" = xyes; then 30463 XVFB_TRUE= 30464 XVFB_FALSE='#' 30465else 30466 XVFB_TRUE='#' 30467 XVFB_FALSE= 30468fi 30469 30470 30471if test "x$XVFB" = xyes; then 30472 XVFB_LIBS="$FB_LIB $FIXES_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $GLX_LIBS $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $DRI3_LIB $PRESENT_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB" 30473 XVFB_SYS_LIBS="$XVFBMODULES_LIBS $GLX_SYS_LIBS" 30474 30475 30476fi 30477 30478 30479 30480 30481pkg_failed=no 30482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBXEXT x11 xau $XDMCP_MODULES" >&5 30483printf %s "checking for $LIBXEXT x11 xau $XDMCP_MODULES... " >&6; } 30484 30485if test -n "$XNESTMODULES_CFLAGS"; then 30486 pkg_cv_XNESTMODULES_CFLAGS="$XNESTMODULES_CFLAGS" 30487 elif test -n "$PKG_CONFIG"; then 30488 if test -n "$PKG_CONFIG" && \ 30489 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11 xau \$XDMCP_MODULES\""; } >&5 30490 ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES") 2>&5 30491 ac_status=$? 30492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30493 test $ac_status = 0; }; then 30494 pkg_cv_XNESTMODULES_CFLAGS=`$PKG_CONFIG --cflags "$LIBXEXT x11 xau $XDMCP_MODULES" 2>/dev/null` 30495 test "x$?" != "x0" && pkg_failed=yes 30496else 30497 pkg_failed=yes 30498fi 30499 else 30500 pkg_failed=untried 30501fi 30502if test -n "$XNESTMODULES_LIBS"; then 30503 pkg_cv_XNESTMODULES_LIBS="$XNESTMODULES_LIBS" 30504 elif test -n "$PKG_CONFIG"; then 30505 if test -n "$PKG_CONFIG" && \ 30506 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11 xau \$XDMCP_MODULES\""; } >&5 30507 ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES") 2>&5 30508 ac_status=$? 30509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30510 test $ac_status = 0; }; then 30511 pkg_cv_XNESTMODULES_LIBS=`$PKG_CONFIG --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>/dev/null` 30512 test "x$?" != "x0" && pkg_failed=yes 30513else 30514 pkg_failed=yes 30515fi 30516 else 30517 pkg_failed=untried 30518fi 30519 30520 30521 30522if test $pkg_failed = yes; then 30523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30524printf "%s\n" "no" >&6; } 30525 30526if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30527 _pkg_short_errors_supported=yes 30528else 30529 _pkg_short_errors_supported=no 30530fi 30531 if test $_pkg_short_errors_supported = yes; then 30532 XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>&1` 30533 else 30534 XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>&1` 30535 fi 30536 # Put the nasty error message in config.log where it belongs 30537 echo "$XNESTMODULES_PKG_ERRORS" >&5 30538 30539 have_xnest=no 30540elif test $pkg_failed = untried; then 30541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30542printf "%s\n" "no" >&6; } 30543 have_xnest=no 30544else 30545 XNESTMODULES_CFLAGS=$pkg_cv_XNESTMODULES_CFLAGS 30546 XNESTMODULES_LIBS=$pkg_cv_XNESTMODULES_LIBS 30547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30548printf "%s\n" "yes" >&6; } 30549 have_xnest=yes 30550fi 30551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build Xnest DDX" >&5 30552printf %s "checking whether to build Xnest DDX... " >&6; } 30553if test "x$XNEST" = xauto; then 30554 XNEST="$have_xnest" 30555fi 30556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XNEST" >&5 30557printf "%s\n" "$XNEST" >&6; } 30558 if test "x$XNEST" = xyes; then 30559 XNEST_TRUE= 30560 XNEST_FALSE='#' 30561else 30562 XNEST_TRUE='#' 30563 XNEST_FALSE= 30564fi 30565 30566 30567if test "x$XNEST" = xyes; then 30568 if test "x$have_xnest" = xno; then 30569 as_fn_error $? "Xnest build explicitly requested, but required modules not found." "$LINENO" 5 30570 fi 30571 XNEST_LIBS="$FB_LIB $FIXES_LIB $MI_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $GLX_LIBS $RANDR_LIB $DAMAGE_LIB $DRI3_LIB $PRESENT_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $RENDER_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $MAIN_LIB $DIX_LIB $OS_LIB" 30572 XNEST_SYS_LIBS="$XNESTMODULES_LIBS $GLX_SYS_LIBS" 30573 30574 30575fi 30576 30577 30578 30579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build Xorg DDX" >&5 30580printf %s "checking whether to build Xorg DDX... " >&6; } 30581if test "x$XORG" = xauto; then 30582 XORG="yes" 30583 case $host_os in 30584 cygwin*) XORG="no" ;; 30585 mingw*) XORG="no" ;; 30586 darwin*) XORG="no" ;; 30587 esac 30588fi 30589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG" >&5 30590printf "%s\n" "$XORG" >&6; } 30591 30592if test "x$XORG" = xyes; then 30593 30594pkg_failed=no 30595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBXCVT" >&5 30596printf %s "checking for $LIBXCVT... " >&6; } 30597 30598if test -n "$LIBXCVT_CFLAGS"; then 30599 pkg_cv_LIBXCVT_CFLAGS="$LIBXCVT_CFLAGS" 30600 elif test -n "$PKG_CONFIG"; then 30601 if test -n "$PKG_CONFIG" && \ 30602 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXCVT\""; } >&5 30603 ($PKG_CONFIG --exists --print-errors "$LIBXCVT") 2>&5 30604 ac_status=$? 30605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30606 test $ac_status = 0; }; then 30607 pkg_cv_LIBXCVT_CFLAGS=`$PKG_CONFIG --cflags "$LIBXCVT" 2>/dev/null` 30608 test "x$?" != "x0" && pkg_failed=yes 30609else 30610 pkg_failed=yes 30611fi 30612 else 30613 pkg_failed=untried 30614fi 30615if test -n "$LIBXCVT_LIBS"; then 30616 pkg_cv_LIBXCVT_LIBS="$LIBXCVT_LIBS" 30617 elif test -n "$PKG_CONFIG"; then 30618 if test -n "$PKG_CONFIG" && \ 30619 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXCVT\""; } >&5 30620 ($PKG_CONFIG --exists --print-errors "$LIBXCVT") 2>&5 30621 ac_status=$? 30622 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30623 test $ac_status = 0; }; then 30624 pkg_cv_LIBXCVT_LIBS=`$PKG_CONFIG --libs "$LIBXCVT" 2>/dev/null` 30625 test "x$?" != "x0" && pkg_failed=yes 30626else 30627 pkg_failed=yes 30628fi 30629 else 30630 pkg_failed=untried 30631fi 30632 30633 30634 30635if test $pkg_failed = yes; then 30636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30637printf "%s\n" "no" >&6; } 30638 30639if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30640 _pkg_short_errors_supported=yes 30641else 30642 _pkg_short_errors_supported=no 30643fi 30644 if test $_pkg_short_errors_supported = yes; then 30645 LIBXCVT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXCVT" 2>&1` 30646 else 30647 LIBXCVT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXCVT" 2>&1` 30648 fi 30649 # Put the nasty error message in config.log where it belongs 30650 echo "$LIBXCVT_PKG_ERRORS" >&5 30651 30652 as_fn_error $? "Package requirements ($LIBXCVT) were not met: 30653 30654$LIBXCVT_PKG_ERRORS 30655 30656Consider adjusting the PKG_CONFIG_PATH environment variable if you 30657installed software in a non-standard prefix. 30658 30659Alternatively, you may set the environment variables LIBXCVT_CFLAGS 30660and LIBXCVT_LIBS to avoid the need to call pkg-config. 30661See the pkg-config man page for more details." "$LINENO" 5 30662elif test $pkg_failed = untried; then 30663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30664printf "%s\n" "no" >&6; } 30665 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30666printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 30667as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 30668is in your PATH or set the PKG_CONFIG environment variable to the full 30669path to pkg-config. 30670 30671Alternatively, you may set the environment variables LIBXCVT_CFLAGS 30672and LIBXCVT_LIBS to avoid the need to call pkg-config. 30673See the pkg-config man page for more details. 30674 30675To get pkg-config, see <http://pkg-config.freedesktop.org/>. 30676See \`config.log' for more details" "$LINENO" 5; } 30677else 30678 LIBXCVT_CFLAGS=$pkg_cv_LIBXCVT_CFLAGS 30679 LIBXCVT_LIBS=$pkg_cv_LIBXCVT_LIBS 30680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30681printf "%s\n" "yes" >&6; } 30682 30683fi 30684 30685 XORG_DDXINCS='-I$(top_srcdir)/hw/xfree86 -I$(top_srcdir)/hw/xfree86/include -I$(top_srcdir)/hw/xfree86/common' 30686 XORG_OSINCS='-I$(top_srcdir)/hw/xfree86/os-support -I$(top_srcdir)/hw/xfree86/os-support/bus -I$(top_srcdir)/os' 30687 XORG_INCS="$XORG_DDXINCS $XORG_OSINCS" 30688 XORG_CFLAGS="$XORGSERVER_CFLAGS $LIBXCVT_CFLAGS -DHAVE_XORG_CONFIG_H" 30689 XORG_LIBS="$COMPOSITE_LIB $FIXES_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $DRI3_LIB $PRESENT_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $XI_LIB $XKB_LIB" 30690 XORG_SYS_LIBS="$XORG_SYS_LIBS $LIBXCVT_LIBS" 30691 30692 symbol_visibility= 30693 have_visibility=disabled 30694 if test x$SYMBOL_VISIBILITY != xno; then 30695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for symbol visibility support" >&5 30696printf %s "checking for symbol visibility support... " >&6; } 30697 if test x$GCC = xyes; then 30698 VISIBILITY_CFLAGS="-fvisibility=hidden" 30699 else 30700 if test x$SUNCC = xyes; then 30701 VISIBILITY_CFLAGS="-xldscope=hidden" 30702 else 30703 have_visibility=no 30704 fi 30705 fi 30706 if test x$have_visibility != xno; then 30707 save_CFLAGS="$CFLAGS" 30708 proto_inc=`$PKG_CONFIG --cflags xproto` 30709 CFLAGS="$CFLAGS $VISIBILITY_CFLAGS $proto_inc" 30710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30711/* end confdefs.h. */ 30712 30713 #include <X11/Xfuncproto.h> 30714 extern _X_HIDDEN int hidden_int; 30715 extern _X_EXPORT int public_int; 30716 extern _X_HIDDEN int hidden_int_func(void); 30717 extern _X_EXPORT int public_int_func(void); 30718int 30719main (void) 30720{ 30721 30722 ; 30723 return 0; 30724} 30725_ACEOF 30726if ac_fn_c_try_compile "$LINENO" 30727then : 30728 have_visibility=yes 30729else $as_nop 30730 have_visibility=no 30731fi 30732rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 30733 CFLAGS=$save_CFLAGS 30734 fi 30735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_visibility" >&5 30736printf "%s\n" "$have_visibility" >&6; } 30737 if test x$have_visibility != xno; then 30738 symbol_visibility=$VISIBILITY_CFLAGS 30739 XORG_CFLAGS="$XORG_CFLAGS $VISIBILITY_CFLAGS" 30740 XSERVER_CFLAGS="$XSERVER_CFLAGS $VISIBILITY_CFLAGS" 30741 fi 30742 fi 30743 30744 30745 xorg_bus_bsdpci=no 30746 xorg_bus_sparc=no 30747 30748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build Xorg PCI functions" >&5 30749printf %s "checking whether to build Xorg PCI functions... " >&6; } 30750 if test "x$PCI" = xyes; then 30751 30752pkg_failed=no 30753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBPCIACCESS" >&5 30754printf %s "checking for $LIBPCIACCESS... " >&6; } 30755 30756if test -n "$PCIACCESS_CFLAGS"; then 30757 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 30758 elif test -n "$PKG_CONFIG"; then 30759 if test -n "$PKG_CONFIG" && \ 30760 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPCIACCESS\""; } >&5 30761 ($PKG_CONFIG --exists --print-errors "$LIBPCIACCESS") 2>&5 30762 ac_status=$? 30763 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30764 test $ac_status = 0; }; then 30765 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "$LIBPCIACCESS" 2>/dev/null` 30766 test "x$?" != "x0" && pkg_failed=yes 30767else 30768 pkg_failed=yes 30769fi 30770 else 30771 pkg_failed=untried 30772fi 30773if test -n "$PCIACCESS_LIBS"; then 30774 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 30775 elif test -n "$PKG_CONFIG"; then 30776 if test -n "$PKG_CONFIG" && \ 30777 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPCIACCESS\""; } >&5 30778 ($PKG_CONFIG --exists --print-errors "$LIBPCIACCESS") 2>&5 30779 ac_status=$? 30780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30781 test $ac_status = 0; }; then 30782 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "$LIBPCIACCESS" 2>/dev/null` 30783 test "x$?" != "x0" && pkg_failed=yes 30784else 30785 pkg_failed=yes 30786fi 30787 else 30788 pkg_failed=untried 30789fi 30790 30791 30792 30793if test $pkg_failed = yes; then 30794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30795printf "%s\n" "no" >&6; } 30796 30797if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30798 _pkg_short_errors_supported=yes 30799else 30800 _pkg_short_errors_supported=no 30801fi 30802 if test $_pkg_short_errors_supported = yes; then 30803 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBPCIACCESS" 2>&1` 30804 else 30805 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBPCIACCESS" 2>&1` 30806 fi 30807 # Put the nasty error message in config.log where it belongs 30808 echo "$PCIACCESS_PKG_ERRORS" >&5 30809 30810 as_fn_error $? "Package requirements ($LIBPCIACCESS) were not met: 30811 30812$PCIACCESS_PKG_ERRORS 30813 30814Consider adjusting the PKG_CONFIG_PATH environment variable if you 30815installed software in a non-standard prefix. 30816 30817Alternatively, you may set the environment variables PCIACCESS_CFLAGS 30818and PCIACCESS_LIBS to avoid the need to call pkg-config. 30819See the pkg-config man page for more details." "$LINENO" 5 30820elif test $pkg_failed = untried; then 30821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30822printf "%s\n" "no" >&6; } 30823 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30824printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 30825as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 30826is in your PATH or set the PKG_CONFIG environment variable to the full 30827path to pkg-config. 30828 30829Alternatively, you may set the environment variables PCIACCESS_CFLAGS 30830and PCIACCESS_LIBS to avoid the need to call pkg-config. 30831See the pkg-config man page for more details. 30832 30833To get pkg-config, see <http://pkg-config.freedesktop.org/>. 30834See \`config.log' for more details" "$LINENO" 5; } 30835else 30836 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 30837 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 30838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30839printf "%s\n" "yes" >&6; } 30840 30841fi 30842 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $LIBPCIACCESS" 30843 XORG_SYS_LIBS="$XORG_SYS_LIBS $PCIACCESS_LIBS $LIBDRM_LIBS" 30844 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS $LIBDRM_CFLAGS" 30845 30846 30847printf "%s\n" "#define XSERVER_LIBPCIACCESS 1" >>confdefs.h 30848 30849 30850 prefix_NONE= 30851 exec_prefix_NONE= 30852 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 30853 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 30854 eval ac_define_dir="\"$PCI_TXT_IDS_DIR\"" 30855 eval ac_define_dir="\"$ac_define_dir\"" 30856 PCI_TXT_IDS_PATH="$ac_define_dir" 30857 30858 30859printf "%s\n" "#define PCI_TXT_IDS_PATH \"$ac_define_dir\"" >>confdefs.h 30860 30861 test "$prefix_NONE" && prefix=NONE 30862 test "$exec_prefix_NONE" && exec_prefix=NONE 30863 30864 case $host_os in 30865 gnu* | freebsd* | kfreebsd*-gnu | netbsd* | openbsd* | solaris* | dragonfly*) 30866 xorg_bus_bsdpci="yes" 30867 ;; 30868 esac 30869 case $host_cpu in 30870 sparc*) 30871 xorg_bus_sparc="yes" 30872 ;; 30873 esac 30874 else 30875 if test "x$CONFIG_UDEV_KMS" = xyes; then 30876 as_fn_error $? "Platform device enumeration requires libpciaccess" "$LINENO" 5 30877 fi 30878 if test "x$INT10MODULE" = xyes && test "x$INT10" != xstub; then 30879 as_fn_error $? "Cannot build int10 without libpciaccess" "$LINENO" 5 30880 fi 30881 fi 30882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PCI" >&5 30883printf "%s\n" "$PCI" >&6; } 30884 30885 if test "x$CONFIG_UDEV_KMS" = xyes; then 30886 30887printf "%s\n" "#define XSERVER_PLATFORM_BUS 1" >>confdefs.h 30888 30889 fi 30890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSERVER_PLATFORM_BUS" >&5 30891printf "%s\n" "$XSERVER_PLATFORM_BUS" >&6; } 30892 30893 case $host_os in 30894 linux*) 30895 XORG_OS_SUBDIR="linux" 30896 linux_acpi="no" 30897 case $host_cpu in 30898 i*86|amd64*|x86_64*|ia64*) 30899 linux_acpi=$enable_linux_acpi 30900 ;; 30901 *) 30902 ;; 30903 esac 30904 for ac_header in linux/apm_bios.h 30905do : 30906 ac_fn_c_check_header_compile "$LINENO" "linux/apm_bios.h" "ac_cv_header_linux_apm_bios_h" "$ac_includes_default" 30907if test "x$ac_cv_header_linux_apm_bios_h" = xyes 30908then : 30909 printf "%s\n" "#define HAVE_LINUX_APM_BIOS_H 1" >>confdefs.h 30910 linux_apm=$enable_linux_apm 30911fi 30912 30913done 30914 ;; 30915 freebsd* | kfreebsd*-gnu | dragonfly*) 30916 XORG_OS_SUBDIR="bsd" 30917 ;; 30918 netbsd*) 30919 XORG_OS_SUBDIR="bsd" 30920 ;; 30921 openbsd*) 30922 XORG_OS_SUBDIR="bsd" 30923 ;; 30924 solaris*) 30925 XORG_OS_SUBDIR="solaris" 30926 ac_fn_c_check_header_compile "$LINENO" "sys/kd.h" "ac_cv_header_sys_kd_h" "$ac_includes_default" 30927if test "x$ac_cv_header_sys_kd_h" = xyes 30928then : 30929 printf "%s\n" "#define HAVE_SYS_KD_H 1" >>confdefs.h 30930 30931fi 30932 30933 for ac_header in sys/vt.h 30934do : 30935 ac_fn_c_check_header_compile "$LINENO" "sys/vt.h" "ac_cv_header_sys_vt_h" "$ac_includes_default" 30936if test "x$ac_cv_header_sys_vt_h" = xyes 30937then : 30938 printf "%s\n" "#define HAVE_SYS_VT_H 1" >>confdefs.h 30939 solaris_vt=yes 30940else $as_nop 30941 solaris_vt=no 30942fi 30943 30944done 30945 # Check for minimum supported release 30946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Solaris version" >&5 30947printf %s "checking Solaris version... " >&6; } 30948 OS_MINOR=`echo ${host_os}|$SED -e 's/^.*solaris2\.//' -e s'/\..*$//'` 30949 if test "${OS_MINOR}" -ge 7 ; then 30950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Solaris ${OS_MINOR}" >&5 30951printf "%s\n" "Solaris ${OS_MINOR}" >&6; } 30952 else 30953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Solaris \`echo ${host_os}|$SED -e 's/^.*solaris//\`" >&5 30954printf "%s\n" "Solaris \`echo ${host_os}|$SED -e 's/^.*solaris//\`" >&6; } 30955 fi 30956 if test "${OS_MINOR}" -lt 8 ; then 30957 as_fn_error $? "This release no longer supports Solaris versions older than Solaris 8." "$LINENO" 5 30958 fi 30959 ac_fn_check_decl "$LINENO" "_LP64" "ac_cv_have_decl__LP64" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 30960if test "x$ac_cv_have_decl__LP64" = xyes 30961then : 30962 SOLARIS_64="yes" 30963else $as_nop 30964 SOLARIS_64="no" 30965fi 30966 30967 case $host_cpu in 30968 sparc*) 30969 SOLARIS_INOUT_ARCH="sparcv8plus" 30970 ;; 30971 i*86|x86_64*) 30972 if test x$SOLARIS_64 = xyes ; then 30973 SOLARIS_INOUT_ARCH="amd64" 30974 else 30975 SOLARIS_INOUT_ARCH="ia32" 30976 fi 30977 ;; 30978 *) 30979 as_fn_error $? "Unsupported Solaris platform. Only SPARC & x86 \ 30980 are supported on Solaris in this release. If you are \ 30981 interested in porting Xorg to your platform, please email \ 30982 xorg@lists.freedesktop.org." "$LINENO" 5 ;; 30983 esac 30984 30985 ;; 30986 gnu*) 30987 XORG_OS_SUBDIR="hurd" 30988 ;; 30989 cygwin*) 30990 XORG_OS_SUBDIR="stub" 30991 ;; 30992 *) 30993 XORG_OS_SUBDIR="stub" 30994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Your OS is unknown. If you are interested in porting Xorg to your platform, 30995please email xorg@lists.freedesktop.org." >&5 30996printf "%s\n" "$as_me: Your OS is unknown. If you are interested in porting Xorg to your platform, 30997please email xorg@lists.freedesktop.org." >&6;} 30998 ;; 30999 esac 31000 31001 if test "x$DGA" = xauto; then 31002 31003pkg_failed=no 31004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $DGAPROTO" >&5 31005printf %s "checking for $DGAPROTO... " >&6; } 31006 31007if test -n "$DGA_CFLAGS"; then 31008 pkg_cv_DGA_CFLAGS="$DGA_CFLAGS" 31009 elif test -n "$PKG_CONFIG"; then 31010 if test -n "$PKG_CONFIG" && \ 31011 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5 31012 ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5 31013 ac_status=$? 31014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31015 test $ac_status = 0; }; then 31016 pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "$DGAPROTO" 2>/dev/null` 31017 test "x$?" != "x0" && pkg_failed=yes 31018else 31019 pkg_failed=yes 31020fi 31021 else 31022 pkg_failed=untried 31023fi 31024if test -n "$DGA_LIBS"; then 31025 pkg_cv_DGA_LIBS="$DGA_LIBS" 31026 elif test -n "$PKG_CONFIG"; then 31027 if test -n "$PKG_CONFIG" && \ 31028 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5 31029 ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5 31030 ac_status=$? 31031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31032 test $ac_status = 0; }; then 31033 pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "$DGAPROTO" 2>/dev/null` 31034 test "x$?" != "x0" && pkg_failed=yes 31035else 31036 pkg_failed=yes 31037fi 31038 else 31039 pkg_failed=untried 31040fi 31041 31042 31043 31044if test $pkg_failed = yes; then 31045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31046printf "%s\n" "no" >&6; } 31047 31048if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31049 _pkg_short_errors_supported=yes 31050else 31051 _pkg_short_errors_supported=no 31052fi 31053 if test $_pkg_short_errors_supported = yes; then 31054 DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DGAPROTO" 2>&1` 31055 else 31056 DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DGAPROTO" 2>&1` 31057 fi 31058 # Put the nasty error message in config.log where it belongs 31059 echo "$DGA_PKG_ERRORS" >&5 31060 31061 DGA=no 31062elif test $pkg_failed = untried; then 31063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31064printf "%s\n" "no" >&6; } 31065 DGA=no 31066else 31067 DGA_CFLAGS=$pkg_cv_DGA_CFLAGS 31068 DGA_LIBS=$pkg_cv_DGA_LIBS 31069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31070printf "%s\n" "yes" >&6; } 31071 DGA=yes 31072fi 31073 fi 31074 if test "x$DGA" = xyes; then 31075 XORG_MODULES="$XORG_MODULES $DGAPROTO" 31076 31077pkg_failed=no 31078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $DGAPROTO" >&5 31079printf %s "checking for $DGAPROTO... " >&6; } 31080 31081if test -n "$DGA_CFLAGS"; then 31082 pkg_cv_DGA_CFLAGS="$DGA_CFLAGS" 31083 elif test -n "$PKG_CONFIG"; then 31084 if test -n "$PKG_CONFIG" && \ 31085 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5 31086 ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5 31087 ac_status=$? 31088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31089 test $ac_status = 0; }; then 31090 pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "$DGAPROTO" 2>/dev/null` 31091 test "x$?" != "x0" && pkg_failed=yes 31092else 31093 pkg_failed=yes 31094fi 31095 else 31096 pkg_failed=untried 31097fi 31098if test -n "$DGA_LIBS"; then 31099 pkg_cv_DGA_LIBS="$DGA_LIBS" 31100 elif test -n "$PKG_CONFIG"; then 31101 if test -n "$PKG_CONFIG" && \ 31102 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5 31103 ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5 31104 ac_status=$? 31105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31106 test $ac_status = 0; }; then 31107 pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "$DGAPROTO" 2>/dev/null` 31108 test "x$?" != "x0" && pkg_failed=yes 31109else 31110 pkg_failed=yes 31111fi 31112 else 31113 pkg_failed=untried 31114fi 31115 31116 31117 31118if test $pkg_failed = yes; then 31119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31120printf "%s\n" "no" >&6; } 31121 31122if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31123 _pkg_short_errors_supported=yes 31124else 31125 _pkg_short_errors_supported=no 31126fi 31127 if test $_pkg_short_errors_supported = yes; then 31128 DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DGAPROTO" 2>&1` 31129 else 31130 DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DGAPROTO" 2>&1` 31131 fi 31132 # Put the nasty error message in config.log where it belongs 31133 echo "$DGA_PKG_ERRORS" >&5 31134 31135 as_fn_error $? "Package requirements ($DGAPROTO) were not met: 31136 31137$DGA_PKG_ERRORS 31138 31139Consider adjusting the PKG_CONFIG_PATH environment variable if you 31140installed software in a non-standard prefix. 31141 31142Alternatively, you may set the environment variables DGA_CFLAGS 31143and DGA_LIBS to avoid the need to call pkg-config. 31144See the pkg-config man page for more details." "$LINENO" 5 31145elif test $pkg_failed = untried; then 31146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31147printf "%s\n" "no" >&6; } 31148 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31149printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 31150as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 31151is in your PATH or set the PKG_CONFIG environment variable to the full 31152path to pkg-config. 31153 31154Alternatively, you may set the environment variables DGA_CFLAGS 31155and DGA_LIBS to avoid the need to call pkg-config. 31156See the pkg-config man page for more details. 31157 31158To get pkg-config, see <http://pkg-config.freedesktop.org/>. 31159See \`config.log' for more details" "$LINENO" 5; } 31160else 31161 DGA_CFLAGS=$pkg_cv_DGA_CFLAGS 31162 DGA_LIBS=$pkg_cv_DGA_LIBS 31163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31164printf "%s\n" "yes" >&6; } 31165 31166fi 31167 31168printf "%s\n" "#define DGA 1" >>confdefs.h 31169 31170 31171printf "%s\n" "#define XFreeXDGA 1" >>confdefs.h 31172 31173 fi 31174 31175 if test "x$XF86VIDMODE" = xyes; then 31176 XORG_MODULES="$XORG_MODULES $VIDMODEPROTO" 31177 fi 31178 31179 if test -n "$XORG_MODULES"; then 31180 31181pkg_failed=no 31182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $XORG_MODULES" >&5 31183printf %s "checking for $XORG_MODULES... " >&6; } 31184 31185if test -n "$XORG_MODULES_CFLAGS"; then 31186 pkg_cv_XORG_MODULES_CFLAGS="$XORG_MODULES_CFLAGS" 31187 elif test -n "$PKG_CONFIG"; then 31188 if test -n "$PKG_CONFIG" && \ 31189 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\""; } >&5 31190 ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5 31191 ac_status=$? 31192 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31193 test $ac_status = 0; }; then 31194 pkg_cv_XORG_MODULES_CFLAGS=`$PKG_CONFIG --cflags "$XORG_MODULES" 2>/dev/null` 31195 test "x$?" != "x0" && pkg_failed=yes 31196else 31197 pkg_failed=yes 31198fi 31199 else 31200 pkg_failed=untried 31201fi 31202if test -n "$XORG_MODULES_LIBS"; then 31203 pkg_cv_XORG_MODULES_LIBS="$XORG_MODULES_LIBS" 31204 elif test -n "$PKG_CONFIG"; then 31205 if test -n "$PKG_CONFIG" && \ 31206 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\""; } >&5 31207 ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5 31208 ac_status=$? 31209 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31210 test $ac_status = 0; }; then 31211 pkg_cv_XORG_MODULES_LIBS=`$PKG_CONFIG --libs "$XORG_MODULES" 2>/dev/null` 31212 test "x$?" != "x0" && pkg_failed=yes 31213else 31214 pkg_failed=yes 31215fi 31216 else 31217 pkg_failed=untried 31218fi 31219 31220 31221 31222if test $pkg_failed = yes; then 31223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31224printf "%s\n" "no" >&6; } 31225 31226if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31227 _pkg_short_errors_supported=yes 31228else 31229 _pkg_short_errors_supported=no 31230fi 31231 if test $_pkg_short_errors_supported = yes; then 31232 XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XORG_MODULES" 2>&1` 31233 else 31234 XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XORG_MODULES" 2>&1` 31235 fi 31236 # Put the nasty error message in config.log where it belongs 31237 echo "$XORG_MODULES_PKG_ERRORS" >&5 31238 31239 as_fn_error $? "Package requirements ($XORG_MODULES) were not met: 31240 31241$XORG_MODULES_PKG_ERRORS 31242 31243Consider adjusting the PKG_CONFIG_PATH environment variable if you 31244installed software in a non-standard prefix. 31245 31246Alternatively, you may set the environment variables XORG_MODULES_CFLAGS 31247and XORG_MODULES_LIBS to avoid the need to call pkg-config. 31248See the pkg-config man page for more details." "$LINENO" 5 31249elif test $pkg_failed = untried; then 31250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31251printf "%s\n" "no" >&6; } 31252 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31253printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 31254as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 31255is in your PATH or set the PKG_CONFIG environment variable to the full 31256path to pkg-config. 31257 31258Alternatively, you may set the environment variables XORG_MODULES_CFLAGS 31259and XORG_MODULES_LIBS to avoid the need to call pkg-config. 31260See the pkg-config man page for more details. 31261 31262To get pkg-config, see <http://pkg-config.freedesktop.org/>. 31263See \`config.log' for more details" "$LINENO" 5; } 31264else 31265 XORG_MODULES_CFLAGS=$pkg_cv_XORG_MODULES_CFLAGS 31266 XORG_MODULES_LIBS=$pkg_cv_XORG_MODULES_LIBS 31267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31268printf "%s\n" "yes" >&6; } 31269 31270fi 31271 XORG_CFLAGS="$XORG_CFLAGS $XORG_MODULES_CFLAGS" 31272 XORG_SYS_LIBS="$XORG_SYS_LIBS $XORG_MODULES_LIBS" 31273 fi 31274 31275 if test "x$DRM" = xyes -a "x$DRI2" = xyes; then 31276 XORG_DRIVER_MODESETTING=yes 31277 fi 31278 31279 31280 31281 31282 31283 31284 31285 XF86CONFIGFILE="xorg.conf" 31286 XF86CONFIGDIR="xorg.conf.d" 31287 31288 LOGPREFIX="Xorg." 31289 XDG_DATA_HOME=".local/share" 31290 XDG_DATA_HOME_LOGDIR="xorg" 31291 31292printf "%s\n" "#define XORG_SERVER 1" >>confdefs.h 31293 31294 31295printf "%s\n" "#define XORGSERVER 1" >>confdefs.h 31296 31297 31298printf "%s\n" "#define XFree86Server 1" >>confdefs.h 31299 31300 31301printf "%s\n" "#define XORG_VERSION_CURRENT $VENDOR_RELEASE" >>confdefs.h 31302 31303 31304printf "%s\n" "#define NEED_XF86_TYPES 1" >>confdefs.h 31305 31306 31307printf "%s\n" "#define NEED_XF86_PROTOTYPES 1" >>confdefs.h 31308 31309 31310printf "%s\n" "#define __XSERVERNAME__ \"Xorg\"" >>confdefs.h 31311 31312 31313 prefix_NONE= 31314 exec_prefix_NONE= 31315 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 31316 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 31317 eval ac_define_dir="\"$XF86CONFIGFILE\"" 31318 eval ac_define_dir="\"$ac_define_dir\"" 31319 XCONFIGFILE="$ac_define_dir" 31320 31321 31322printf "%s\n" "#define XCONFIGFILE \"$ac_define_dir\"" >>confdefs.h 31323 31324 test "$prefix_NONE" && prefix=NONE 31325 test "$exec_prefix_NONE" && exec_prefix=NONE 31326 31327 31328 prefix_NONE= 31329 exec_prefix_NONE= 31330 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 31331 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 31332 eval ac_define_dir="\"$XF86CONFIGFILE\"" 31333 eval ac_define_dir="\"$ac_define_dir\"" 31334 XF86CONFIGFILE="$ac_define_dir" 31335 31336 31337printf "%s\n" "#define XF86CONFIGFILE \"$ac_define_dir\"" >>confdefs.h 31338 31339 test "$prefix_NONE" && prefix=NONE 31340 test "$exec_prefix_NONE" && exec_prefix=NONE 31341 31342 31343 prefix_NONE= 31344 exec_prefix_NONE= 31345 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 31346 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 31347 eval ac_define_dir="\"$XF86CONFIGDIR\"" 31348 eval ac_define_dir="\"$ac_define_dir\"" 31349 XCONFIGDIR="$ac_define_dir" 31350 31351 31352printf "%s\n" "#define XCONFIGDIR \"$ac_define_dir\"" >>confdefs.h 31353 31354 test "$prefix_NONE" && prefix=NONE 31355 test "$exec_prefix_NONE" && exec_prefix=NONE 31356 31357 31358 prefix_NONE= 31359 exec_prefix_NONE= 31360 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 31361 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 31362 eval ac_define_dir="\"$moduledir\"" 31363 eval ac_define_dir="\"$ac_define_dir\"" 31364 DEFAULT_MODULE_PATH="$ac_define_dir" 31365 31366 31367printf "%s\n" "#define DEFAULT_MODULE_PATH \"$ac_define_dir\"" >>confdefs.h 31368 31369 test "$prefix_NONE" && prefix=NONE 31370 test "$exec_prefix_NONE" && exec_prefix=NONE 31371 31372 31373 prefix_NONE= 31374 exec_prefix_NONE= 31375 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 31376 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 31377 eval ac_define_dir="\"$libdir\"" 31378 eval ac_define_dir="\"$ac_define_dir\"" 31379 DEFAULT_LIBRARY_PATH="$ac_define_dir" 31380 31381 31382printf "%s\n" "#define DEFAULT_LIBRARY_PATH \"$ac_define_dir\"" >>confdefs.h 31383 31384 test "$prefix_NONE" && prefix=NONE 31385 test "$exec_prefix_NONE" && exec_prefix=NONE 31386 31387 31388 prefix_NONE= 31389 exec_prefix_NONE= 31390 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 31391 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 31392 eval ac_define_dir="\"$logdir\"" 31393 eval ac_define_dir="\"$ac_define_dir\"" 31394 DEFAULT_LOGDIR="$ac_define_dir" 31395 31396 31397printf "%s\n" "#define DEFAULT_LOGDIR \"$ac_define_dir\"" >>confdefs.h 31398 31399 test "$prefix_NONE" && prefix=NONE 31400 test "$exec_prefix_NONE" && exec_prefix=NONE 31401 31402 31403 prefix_NONE= 31404 exec_prefix_NONE= 31405 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 31406 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 31407 eval ac_define_dir="\"$LOGPREFIX\"" 31408 eval ac_define_dir="\"$ac_define_dir\"" 31409 DEFAULT_LOGPREFIX="$ac_define_dir" 31410 31411 31412printf "%s\n" "#define DEFAULT_LOGPREFIX \"$ac_define_dir\"" >>confdefs.h 31413 31414 test "$prefix_NONE" && prefix=NONE 31415 test "$exec_prefix_NONE" && exec_prefix=NONE 31416 31417 31418 prefix_NONE= 31419 exec_prefix_NONE= 31420 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 31421 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 31422 eval ac_define_dir="\"$XDG_DATA_HOME\"" 31423 eval ac_define_dir="\"$ac_define_dir\"" 31424 DEFAULT_XDG_DATA_HOME="$ac_define_dir" 31425 31426 31427printf "%s\n" "#define DEFAULT_XDG_DATA_HOME \"$ac_define_dir\"" >>confdefs.h 31428 31429 test "$prefix_NONE" && prefix=NONE 31430 test "$exec_prefix_NONE" && exec_prefix=NONE 31431 31432 31433 prefix_NONE= 31434 exec_prefix_NONE= 31435 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 31436 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 31437 eval ac_define_dir="\"$XDG_DATA_HOME_LOGDIR\"" 31438 eval ac_define_dir="\"$ac_define_dir\"" 31439 DEFAULT_XDG_DATA_HOME_LOGDIR="$ac_define_dir" 31440 31441 31442printf "%s\n" "#define DEFAULT_XDG_DATA_HOME_LOGDIR \"$ac_define_dir\"" >>confdefs.h 31443 31444 test "$prefix_NONE" && prefix=NONE 31445 test "$exec_prefix_NONE" && exec_prefix=NONE 31446 31447 31448printf "%s\n" "#define __VENDORDWEBSUPPORT__ \"$VENDOR_WEB\"" >>confdefs.h 31449 31450 if test "x$VGAHW" = xyes; then 31451 31452printf "%s\n" "#define WITH_VGAHW 1" >>confdefs.h 31453 31454 fi 31455 31456 driverdir="$moduledir/drivers" 31457 31458 31459 sdkdir="$includedir/xorg" 31460 extdir="$includedir/X11/extensions" 31461 sysconfigdir="$datadir/X11/$XF86CONFIGDIR" 31462 31463 31464 31465 31466 31467 # stuff the ABI versions into the pc file too 31468 extract_abi() { 31469 grep ^.define.*${1}_VERSION ${srcdir}/hw/xfree86/common/xf86Module.h | tr '(),' ' .' | awk '{ print $4$5 }' 31470 } 31471 abi_ansic=`extract_abi ANSIC` 31472 abi_videodrv=`extract_abi VIDEODRV` 31473 abi_xinput=`extract_abi XINPUT` 31474 abi_extension=`extract_abi EXTENSION` 31475 31476 31477 31478 31479fi 31480 if test "x$XORG" = xyes; then 31481 XORG_TRUE= 31482 XORG_FALSE='#' 31483else 31484 XORG_TRUE='#' 31485 XORG_FALSE= 31486fi 31487 31488 if test "x$PCI" = xyes; then 31489 XORG_BUS_PCI_TRUE= 31490 XORG_BUS_PCI_FALSE='#' 31491else 31492 XORG_BUS_PCI_TRUE='#' 31493 XORG_BUS_PCI_FALSE= 31494fi 31495 31496 if test "x$xorg_bus_bsdpci" = xyes; then 31497 XORG_BUS_BSDPCI_TRUE= 31498 XORG_BUS_BSDPCI_FALSE='#' 31499else 31500 XORG_BUS_BSDPCI_TRUE='#' 31501 XORG_BUS_BSDPCI_FALSE= 31502fi 31503 31504 if test "x$xorg_bus_sparc" = xyes; then 31505 XORG_BUS_SPARC_TRUE= 31506 XORG_BUS_SPARC_FALSE='#' 31507else 31508 XORG_BUS_SPARC_TRUE='#' 31509 XORG_BUS_SPARC_FALSE= 31510fi 31511 31512 if test "x$linux_acpi" = xyes; then 31513 LNXACPI_TRUE= 31514 LNXACPI_FALSE='#' 31515else 31516 LNXACPI_TRUE='#' 31517 LNXACPI_FALSE= 31518fi 31519 31520 if test "x$linux_apm" = xyes; then 31521 LNXAPM_TRUE= 31522 LNXAPM_FALSE='#' 31523else 31524 LNXAPM_TRUE='#' 31525 LNXAPM_FALSE= 31526fi 31527 31528 if test "x$solaris_vt" = xyes; then 31529 SOLARIS_VT_TRUE= 31530 SOLARIS_VT_FALSE='#' 31531else 31532 SOLARIS_VT_TRUE='#' 31533 SOLARIS_VT_FALSE= 31534fi 31535 31536 if test "x$DGA" = xyes; then 31537 DGA_TRUE= 31538 DGA_FALSE='#' 31539else 31540 DGA_TRUE='#' 31541 DGA_FALSE= 31542fi 31543 31544 if test "x$CONFIG_UDEV_KMS" = xyes; then 31545 XORG_BUS_PLATFORM_TRUE= 31546 XORG_BUS_PLATFORM_FALSE='#' 31547else 31548 XORG_BUS_PLATFORM_TRUE='#' 31549 XORG_BUS_PLATFORM_FALSE= 31550fi 31551 31552 if test "x$XORG_DRIVER_MODESETTING" = xyes; then 31553 XORG_DRIVER_MODESETTING_TRUE= 31554 XORG_DRIVER_MODESETTING_FALSE='#' 31555else 31556 XORG_DRIVER_MODESETTING_TRUE='#' 31557 XORG_DRIVER_MODESETTING_FALSE= 31558fi 31559 31560 if test "x$XORG_DRIVER_INPUT_INPUTTEST" = xyes; then 31561 XORG_DRIVER_INPUT_INPUTTEST_TRUE= 31562 XORG_DRIVER_INPUT_INPUTTEST_FALSE='#' 31563else 31564 XORG_DRIVER_INPUT_INPUTTEST_TRUE='#' 31565 XORG_DRIVER_INPUT_INPUTTEST_FALSE= 31566fi 31567 31568 31569if test "x$GLAMOR" = xauto; then 31570 if echo "$XORG" "$XEPHYR" | grep -q yes ; then 31571 GLAMOR=yes 31572 fi 31573fi 31574 31575 if test "x$GLAMOR" = xyes; then 31576 GLAMOR_TRUE= 31577 GLAMOR_FALSE='#' 31578else 31579 GLAMOR_TRUE='#' 31580 GLAMOR_FALSE= 31581fi 31582 31583 31584if test "x$GLAMOR" = xyes; then 31585 31586printf "%s\n" "#define GLAMOR 1" >>confdefs.h 31587 31588 31589pkg_failed=no 31590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for epoxy" >&5 31591printf %s "checking for epoxy... " >&6; } 31592 31593if test -n "$GLAMOR_CFLAGS"; then 31594 pkg_cv_GLAMOR_CFLAGS="$GLAMOR_CFLAGS" 31595 elif test -n "$PKG_CONFIG"; then 31596 if test -n "$PKG_CONFIG" && \ 31597 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy\""; } >&5 31598 ($PKG_CONFIG --exists --print-errors "epoxy") 2>&5 31599 ac_status=$? 31600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31601 test $ac_status = 0; }; then 31602 pkg_cv_GLAMOR_CFLAGS=`$PKG_CONFIG --cflags "epoxy" 2>/dev/null` 31603 test "x$?" != "x0" && pkg_failed=yes 31604else 31605 pkg_failed=yes 31606fi 31607 else 31608 pkg_failed=untried 31609fi 31610if test -n "$GLAMOR_LIBS"; then 31611 pkg_cv_GLAMOR_LIBS="$GLAMOR_LIBS" 31612 elif test -n "$PKG_CONFIG"; then 31613 if test -n "$PKG_CONFIG" && \ 31614 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy\""; } >&5 31615 ($PKG_CONFIG --exists --print-errors "epoxy") 2>&5 31616 ac_status=$? 31617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31618 test $ac_status = 0; }; then 31619 pkg_cv_GLAMOR_LIBS=`$PKG_CONFIG --libs "epoxy" 2>/dev/null` 31620 test "x$?" != "x0" && pkg_failed=yes 31621else 31622 pkg_failed=yes 31623fi 31624 else 31625 pkg_failed=untried 31626fi 31627 31628 31629 31630if test $pkg_failed = yes; then 31631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31632printf "%s\n" "no" >&6; } 31633 31634if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31635 _pkg_short_errors_supported=yes 31636else 31637 _pkg_short_errors_supported=no 31638fi 31639 if test $_pkg_short_errors_supported = yes; then 31640 GLAMOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "epoxy" 2>&1` 31641 else 31642 GLAMOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "epoxy" 2>&1` 31643 fi 31644 # Put the nasty error message in config.log where it belongs 31645 echo "$GLAMOR_PKG_ERRORS" >&5 31646 31647 as_fn_error $? "Package requirements (epoxy) were not met: 31648 31649$GLAMOR_PKG_ERRORS 31650 31651Consider adjusting the PKG_CONFIG_PATH environment variable if you 31652installed software in a non-standard prefix. 31653 31654Alternatively, you may set the environment variables GLAMOR_CFLAGS 31655and GLAMOR_LIBS to avoid the need to call pkg-config. 31656See the pkg-config man page for more details." "$LINENO" 5 31657elif test $pkg_failed = untried; then 31658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31659printf "%s\n" "no" >&6; } 31660 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31661printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 31662as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 31663is in your PATH or set the PKG_CONFIG environment variable to the full 31664path to pkg-config. 31665 31666Alternatively, you may set the environment variables GLAMOR_CFLAGS 31667and GLAMOR_LIBS to avoid the need to call pkg-config. 31668See the pkg-config man page for more details. 31669 31670To get pkg-config, see <http://pkg-config.freedesktop.org/>. 31671See \`config.log' for more details" "$LINENO" 5; } 31672else 31673 GLAMOR_CFLAGS=$pkg_cv_GLAMOR_CFLAGS 31674 GLAMOR_LIBS=$pkg_cv_GLAMOR_LIBS 31675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31676printf "%s\n" "yes" >&6; } 31677 31678fi 31679 31680 if test -n "$PKG_CONFIG" && \ 31681 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy >= 1.4.4\""; } >&5 31682 ($PKG_CONFIG --exists --print-errors "epoxy >= 1.4.4") 2>&5 31683 ac_status=$? 31684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31685 test $ac_status = 0; }; then 31686 31687printf "%s\n" "#define GLAMOR_HAS_EGL_QUERY_DMABUF 1" >>confdefs.h 31688 31689fi 31690 31691 if test -n "$PKG_CONFIG" && \ 31692 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy >= 1.5.4\""; } >&5 31693 ($PKG_CONFIG --exists --print-errors "epoxy >= 1.5.4") 2>&5 31694 ac_status=$? 31695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31696 test $ac_status = 0; }; then 31697 31698printf "%s\n" "#define GLAMOR_HAS_EGL_QUERY_DRIVER 1" >>confdefs.h 31699 31700fi 31701 31702 31703pkg_failed=no 31704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for \"$LIBGBM\"" >&5 31705printf %s "checking for \"$LIBGBM\"... " >&6; } 31706 31707if test -n "$GBM_CFLAGS"; then 31708 pkg_cv_GBM_CFLAGS="$GBM_CFLAGS" 31709 elif test -n "$PKG_CONFIG"; then 31710 if test -n "$PKG_CONFIG" && \ 31711 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"\$LIBGBM\"\""; } >&5 31712 ($PKG_CONFIG --exists --print-errors ""$LIBGBM"") 2>&5 31713 ac_status=$? 31714 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31715 test $ac_status = 0; }; then 31716 pkg_cv_GBM_CFLAGS=`$PKG_CONFIG --cflags ""$LIBGBM"" 2>/dev/null` 31717 test "x$?" != "x0" && pkg_failed=yes 31718else 31719 pkg_failed=yes 31720fi 31721 else 31722 pkg_failed=untried 31723fi 31724if test -n "$GBM_LIBS"; then 31725 pkg_cv_GBM_LIBS="$GBM_LIBS" 31726 elif test -n "$PKG_CONFIG"; then 31727 if test -n "$PKG_CONFIG" && \ 31728 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"\$LIBGBM\"\""; } >&5 31729 ($PKG_CONFIG --exists --print-errors ""$LIBGBM"") 2>&5 31730 ac_status=$? 31731 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31732 test $ac_status = 0; }; then 31733 pkg_cv_GBM_LIBS=`$PKG_CONFIG --libs ""$LIBGBM"" 2>/dev/null` 31734 test "x$?" != "x0" && pkg_failed=yes 31735else 31736 pkg_failed=yes 31737fi 31738 else 31739 pkg_failed=untried 31740fi 31741 31742 31743 31744if test $pkg_failed = yes; then 31745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31746printf "%s\n" "no" >&6; } 31747 31748if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31749 _pkg_short_errors_supported=yes 31750else 31751 _pkg_short_errors_supported=no 31752fi 31753 if test $_pkg_short_errors_supported = yes; then 31754 GBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""$LIBGBM"" 2>&1` 31755 else 31756 GBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""$LIBGBM"" 2>&1` 31757 fi 31758 # Put the nasty error message in config.log where it belongs 31759 echo "$GBM_PKG_ERRORS" >&5 31760 31761 GBM=no 31762elif test $pkg_failed = untried; then 31763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31764printf "%s\n" "no" >&6; } 31765 GBM=no 31766else 31767 GBM_CFLAGS=$pkg_cv_GBM_CFLAGS 31768 GBM_LIBS=$pkg_cv_GBM_LIBS 31769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31770printf "%s\n" "yes" >&6; } 31771 GBM=yes 31772fi 31773 if test "x$GBM" = xyes; then 31774 31775printf "%s\n" "#define GLAMOR_HAS_GBM 1" >>confdefs.h 31776 31777 ac_fn_check_decl "$LINENO" "GBM_BO_USE_LINEAR" "ac_cv_have_decl_GBM_BO_USE_LINEAR" "#include <stdlib.h> 31778 #include <gbm.h> 31779" "$ac_c_undeclared_builtin_options" "CFLAGS" 31780if test "x$ac_cv_have_decl_GBM_BO_USE_LINEAR" = xyes 31781then : 31782 31783printf "%s\n" "#define GLAMOR_HAS_GBM_LINEAR 1" >>confdefs.h 31784 31785fi 31786 if test -n "$PKG_CONFIG" && \ 31787 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 17.1.0\""; } >&5 31788 ($PKG_CONFIG --exists --print-errors "gbm >= 17.1.0") 2>&5 31789 ac_status=$? 31790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31791 test $ac_status = 0; }; then 31792 31793printf "%s\n" "#define GBM_BO_WITH_MODIFIERS 1" >>confdefs.h 31794 31795fi 31796 else 31797 if test "x$XORG" = xyes; then 31798 as_fn_error $? "Glamor for Xorg requires $LIBGBM" "$LINENO" 5 31799 fi 31800 fi 31801fi 31802 if test "x$GBM" = xyes; then 31803 GLAMOR_EGL_TRUE= 31804 GLAMOR_EGL_FALSE='#' 31805else 31806 GLAMOR_EGL_TRUE='#' 31807 GLAMOR_EGL_FALSE= 31808fi 31809 31810 31811 31812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build XWin DDX" >&5 31813printf %s "checking whether to build XWin DDX... " >&6; } 31814if test "x$XWIN" = xauto; then 31815 case $host_os in 31816 cygwin*) XWIN="yes" ;; 31817 mingw*) XWIN="yes" ;; 31818 *) XWIN="no" ;; 31819 esac 31820fi 31821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XWIN" >&5 31822printf "%s\n" "$XWIN" >&6; } 31823 31824if test "x$XWIN" = xyes; then 31825 31826 prefix_NONE= 31827 exec_prefix_NONE= 31828 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 31829 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 31830 eval ac_define_dir="\"$logdir\"" 31831 eval ac_define_dir="\"$ac_define_dir\"" 31832 DEFAULT_LOGDIR="$ac_define_dir" 31833 31834 31835printf "%s\n" "#define DEFAULT_LOGDIR \"$ac_define_dir\"" >>confdefs.h 31836 31837 test "$prefix_NONE" && prefix=NONE 31838 test "$exec_prefix_NONE" && exec_prefix=NONE 31839 31840 31841printf "%s\n" "#define XORG_VERSION_CURRENT $VENDOR_RELEASE" >>confdefs.h 31842 31843 31844printf "%s\n" "#define __VENDORDWEBSUPPORT__ \"$VENDOR_WEB\"" >>confdefs.h 31845 31846 if test -n "$ac_tool_prefix"; then 31847 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 31848set dummy ${ac_tool_prefix}windres; ac_word=$2 31849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31850printf %s "checking for $ac_word... " >&6; } 31851if test ${ac_cv_prog_WINDRES+y} 31852then : 31853 printf %s "(cached) " >&6 31854else $as_nop 31855 if test -n "$WINDRES"; then 31856 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 31857else 31858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31859for as_dir in $PATH 31860do 31861 IFS=$as_save_IFS 31862 case $as_dir in #((( 31863 '') as_dir=./ ;; 31864 */) ;; 31865 *) as_dir=$as_dir/ ;; 31866 esac 31867 for ac_exec_ext in '' $ac_executable_extensions; do 31868 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 31869 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 31870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 31871 break 2 31872 fi 31873done 31874 done 31875IFS=$as_save_IFS 31876 31877fi 31878fi 31879WINDRES=$ac_cv_prog_WINDRES 31880if test -n "$WINDRES"; then 31881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 31882printf "%s\n" "$WINDRES" >&6; } 31883else 31884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31885printf "%s\n" "no" >&6; } 31886fi 31887 31888 31889fi 31890if test -z "$ac_cv_prog_WINDRES"; then 31891 ac_ct_WINDRES=$WINDRES 31892 # Extract the first word of "windres", so it can be a program name with args. 31893set dummy windres; ac_word=$2 31894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31895printf %s "checking for $ac_word... " >&6; } 31896if test ${ac_cv_prog_ac_ct_WINDRES+y} 31897then : 31898 printf %s "(cached) " >&6 31899else $as_nop 31900 if test -n "$ac_ct_WINDRES"; then 31901 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 31902else 31903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31904for as_dir in $PATH 31905do 31906 IFS=$as_save_IFS 31907 case $as_dir in #((( 31908 '') as_dir=./ ;; 31909 */) ;; 31910 *) as_dir=$as_dir/ ;; 31911 esac 31912 for ac_exec_ext in '' $ac_executable_extensions; do 31913 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 31914 ac_cv_prog_ac_ct_WINDRES="windres" 31915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 31916 break 2 31917 fi 31918done 31919 done 31920IFS=$as_save_IFS 31921 31922fi 31923fi 31924ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 31925if test -n "$ac_ct_WINDRES"; then 31926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 31927printf "%s\n" "$ac_ct_WINDRES" >&6; } 31928else 31929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31930printf "%s\n" "no" >&6; } 31931fi 31932 31933 if test "x$ac_ct_WINDRES" = x; then 31934 WINDRES="" 31935 else 31936 case $cross_compiling:$ac_tool_warned in 31937yes:) 31938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 31939printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 31940ac_tool_warned=yes ;; 31941esac 31942 WINDRES=$ac_ct_WINDRES 31943 fi 31944else 31945 WINDRES="$ac_cv_prog_WINDRES" 31946fi 31947 31948 31949 31950pkg_failed=no 31951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes" >&5 31952printf %s "checking for xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes... " >&6; } 31953 31954if test -n "$XWINMODULES_CFLAGS"; then 31955 pkg_cv_XWINMODULES_CFLAGS="$XWINMODULES_CFLAGS" 31956 elif test -n "$PKG_CONFIG"; then 31957 if test -n "$PKG_CONFIG" && \ 31958 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes\""; } >&5 31959 ($PKG_CONFIG --exists --print-errors "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes") 2>&5 31960 ac_status=$? 31961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31962 test $ac_status = 0; }; then 31963 pkg_cv_XWINMODULES_CFLAGS=`$PKG_CONFIG --cflags "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes" 2>/dev/null` 31964 test "x$?" != "x0" && pkg_failed=yes 31965else 31966 pkg_failed=yes 31967fi 31968 else 31969 pkg_failed=untried 31970fi 31971if test -n "$XWINMODULES_LIBS"; then 31972 pkg_cv_XWINMODULES_LIBS="$XWINMODULES_LIBS" 31973 elif test -n "$PKG_CONFIG"; then 31974 if test -n "$PKG_CONFIG" && \ 31975 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes\""; } >&5 31976 ($PKG_CONFIG --exists --print-errors "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes") 2>&5 31977 ac_status=$? 31978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31979 test $ac_status = 0; }; then 31980 pkg_cv_XWINMODULES_LIBS=`$PKG_CONFIG --libs "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes" 2>/dev/null` 31981 test "x$?" != "x0" && pkg_failed=yes 31982else 31983 pkg_failed=yes 31984fi 31985 else 31986 pkg_failed=untried 31987fi 31988 31989 31990 31991if test $pkg_failed = yes; then 31992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31993printf "%s\n" "no" >&6; } 31994 31995if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31996 _pkg_short_errors_supported=yes 31997else 31998 _pkg_short_errors_supported=no 31999fi 32000 if test $_pkg_short_errors_supported = yes; then 32001 XWINMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes" 2>&1` 32002 else 32003 XWINMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes" 2>&1` 32004 fi 32005 # Put the nasty error message in config.log where it belongs 32006 echo "$XWINMODULES_PKG_ERRORS" >&5 32007 32008 as_fn_error $? "Package requirements (xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes) were not met: 32009 32010$XWINMODULES_PKG_ERRORS 32011 32012Consider adjusting the PKG_CONFIG_PATH environment variable if you 32013installed software in a non-standard prefix. 32014 32015Alternatively, you may set the environment variables XWINMODULES_CFLAGS 32016and XWINMODULES_LIBS to avoid the need to call pkg-config. 32017See the pkg-config man page for more details." "$LINENO" 5 32018elif test $pkg_failed = untried; then 32019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32020printf "%s\n" "no" >&6; } 32021 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32022printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 32023as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 32024is in your PATH or set the PKG_CONFIG environment variable to the full 32025path to pkg-config. 32026 32027Alternatively, you may set the environment variables XWINMODULES_CFLAGS 32028and XWINMODULES_LIBS to avoid the need to call pkg-config. 32029See the pkg-config man page for more details. 32030 32031To get pkg-config, see <http://pkg-config.freedesktop.org/>. 32032See \`config.log' for more details" "$LINENO" 5; } 32033else 32034 XWINMODULES_CFLAGS=$pkg_cv_XWINMODULES_CFLAGS 32035 XWINMODULES_LIBS=$pkg_cv_XWINMODULES_LIBS 32036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32037printf "%s\n" "yes" >&6; } 32038 32039fi 32040 32041 if test "x$WINDOWSDRI" = xauto; then 32042 if test -n "$PKG_CONFIG" && \ 32043 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"windowsdriproto\""; } >&5 32044 ($PKG_CONFIG --exists --print-errors "windowsdriproto") 2>&5 32045 ac_status=$? 32046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32047 test $ac_status = 0; }; then 32048 WINDOWSDRI=yes 32049else 32050 WINDOWSDRI=no 32051fi 32052 fi 32053 if test "x$WINDOWSDRI" = xyes ; then 32054 32055pkg_failed=no 32056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windowsdriproto" >&5 32057printf %s "checking for windowsdriproto... " >&6; } 32058 32059if test -n "$WINDOWSDRI_CFLAGS"; then 32060 pkg_cv_WINDOWSDRI_CFLAGS="$WINDOWSDRI_CFLAGS" 32061 elif test -n "$PKG_CONFIG"; then 32062 if test -n "$PKG_CONFIG" && \ 32063 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"windowsdriproto\""; } >&5 32064 ($PKG_CONFIG --exists --print-errors "windowsdriproto") 2>&5 32065 ac_status=$? 32066 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32067 test $ac_status = 0; }; then 32068 pkg_cv_WINDOWSDRI_CFLAGS=`$PKG_CONFIG --cflags "windowsdriproto" 2>/dev/null` 32069 test "x$?" != "x0" && pkg_failed=yes 32070else 32071 pkg_failed=yes 32072fi 32073 else 32074 pkg_failed=untried 32075fi 32076if test -n "$WINDOWSDRI_LIBS"; then 32077 pkg_cv_WINDOWSDRI_LIBS="$WINDOWSDRI_LIBS" 32078 elif test -n "$PKG_CONFIG"; then 32079 if test -n "$PKG_CONFIG" && \ 32080 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"windowsdriproto\""; } >&5 32081 ($PKG_CONFIG --exists --print-errors "windowsdriproto") 2>&5 32082 ac_status=$? 32083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32084 test $ac_status = 0; }; then 32085 pkg_cv_WINDOWSDRI_LIBS=`$PKG_CONFIG --libs "windowsdriproto" 2>/dev/null` 32086 test "x$?" != "x0" && pkg_failed=yes 32087else 32088 pkg_failed=yes 32089fi 32090 else 32091 pkg_failed=untried 32092fi 32093 32094 32095 32096if test $pkg_failed = yes; then 32097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32098printf "%s\n" "no" >&6; } 32099 32100if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32101 _pkg_short_errors_supported=yes 32102else 32103 _pkg_short_errors_supported=no 32104fi 32105 if test $_pkg_short_errors_supported = yes; then 32106 WINDOWSDRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "windowsdriproto" 2>&1` 32107 else 32108 WINDOWSDRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "windowsdriproto" 2>&1` 32109 fi 32110 # Put the nasty error message in config.log where it belongs 32111 echo "$WINDOWSDRI_PKG_ERRORS" >&5 32112 32113 as_fn_error $? "Package requirements (windowsdriproto) were not met: 32114 32115$WINDOWSDRI_PKG_ERRORS 32116 32117Consider adjusting the PKG_CONFIG_PATH environment variable if you 32118installed software in a non-standard prefix. 32119 32120Alternatively, you may set the environment variables WINDOWSDRI_CFLAGS 32121and WINDOWSDRI_LIBS to avoid the need to call pkg-config. 32122See the pkg-config man page for more details." "$LINENO" 5 32123elif test $pkg_failed = untried; then 32124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32125printf "%s\n" "no" >&6; } 32126 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32127printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 32128as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 32129is in your PATH or set the PKG_CONFIG environment variable to the full 32130path to pkg-config. 32131 32132Alternatively, you may set the environment variables WINDOWSDRI_CFLAGS 32133and WINDOWSDRI_LIBS to avoid the need to call pkg-config. 32134See the pkg-config man page for more details. 32135 32136To get pkg-config, see <http://pkg-config.freedesktop.org/>. 32137See \`config.log' for more details" "$LINENO" 5; } 32138else 32139 WINDOWSDRI_CFLAGS=$pkg_cv_WINDOWSDRI_CFLAGS 32140 WINDOWSDRI_LIBS=$pkg_cv_WINDOWSDRI_LIBS 32141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32142printf "%s\n" "yes" >&6; } 32143 32144fi 32145 fi 32146 32147 case $host_os in 32148 cygwin*) 32149 XWIN_SERVER_NAME=XWin 32150 32151printf "%s\n" "#define HAS_DEVWINDOWS 1" >>confdefs.h 32152 32153 ;; 32154 mingw*) 32155 XWIN_SERVER_NAME=Xming 32156 32157printf "%s\n" "#define RELOCATE_PROJECTROOT 1" >>confdefs.h 32158 32159 32160printf "%s\n" "#define HAS_WINSOCK 1" >>confdefs.h 32161 32162 XWIN_SYS_LIBS="-lpthread -lws2_32" 32163 ;; 32164 esac 32165 32166 XWIN_LIBS="$FB_LIB $MI_LIB $FIXES_LIB $XEXT_LIB $RANDR_LIB $RENDER_LIB $DBE_LIB $RECORD_LIB $GLX_LIBS $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $DAMAGE_LIB $PRESENT_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $OS_LIB" 32167 XWIN_SYS_LIBS="$XWIN_SYS_LIBS $XWINMODULES_LIBS" 32168 32169 32170 32171 32172 if test "x$DEBUGGING" = xyes; then 32173 32174printf "%s\n" "#define CYGDEBUG 1" >>confdefs.h 32175 32176 32177printf "%s\n" "#define CYGWINDOWING_DEBUG 1" >>confdefs.h 32178 32179 32180printf "%s\n" "#define CYGMULTIWINDOW_DEBUG 1" >>confdefs.h 32181 32182 fi 32183 32184 32185printf "%s\n" "#define DDXOSVERRORF 1" >>confdefs.h 32186 32187 32188printf "%s\n" "#define DDXBEFORERESET 1" >>confdefs.h 32189 32190 32191 if test "x$XWIN" = xyes && test "x$GLX" = xyes ; then 32192 # Extract the first word of "python3", so it can be a program name with args. 32193set dummy python3; ac_word=$2 32194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32195printf %s "checking for $ac_word... " >&6; } 32196if test ${ac_cv_prog_PYTHON3+y} 32197then : 32198 printf %s "(cached) " >&6 32199else $as_nop 32200 if test -n "$PYTHON3"; then 32201 ac_cv_prog_PYTHON3="$PYTHON3" # Let the user override the test. 32202else 32203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32204for as_dir in $PATH 32205do 32206 IFS=$as_save_IFS 32207 case $as_dir in #((( 32208 '') as_dir=./ ;; 32209 */) ;; 32210 *) as_dir=$as_dir/ ;; 32211 esac 32212 for ac_exec_ext in '' $ac_executable_extensions; do 32213 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 32214 ac_cv_prog_PYTHON3="python3" 32215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 32216 break 2 32217 fi 32218done 32219 done 32220IFS=$as_save_IFS 32221 32222fi 32223fi 32224PYTHON3=$ac_cv_prog_PYTHON3 32225if test -n "$PYTHON3"; then 32226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5 32227printf "%s\n" "$PYTHON3" >&6; } 32228else 32229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32230printf "%s\n" "no" >&6; } 32231fi 32232 32233 32234 if test -z "$PYTHON3"; then 32235 as_fn_error $? "python3 not found" "$LINENO" 5 32236 fi 32237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python module lxml" >&5 32238printf %s "checking for python module lxml... " >&6; } 32239 $PYTHON3 -c "import lxml;" 32240 if test $? -ne 0 ; then 32241 as_fn_error $? "not found" "$LINENO" 5 32242 fi 32243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32244printf "%s\n" "yes" >&6; } 32245 if test "x$KHRONOS_SPEC_DIR" = "xauto" ; then 32246 32247pkg_failed=no 32248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for khronos-opengl-registry" >&5 32249printf %s "checking for khronos-opengl-registry... " >&6; } 32250 32251if test -n "$KHRONOS_OPENGL_REGISTRY_CFLAGS"; then 32252 pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS="$KHRONOS_OPENGL_REGISTRY_CFLAGS" 32253 elif test -n "$PKG_CONFIG"; then 32254 if test -n "$PKG_CONFIG" && \ 32255 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"khronos-opengl-registry\""; } >&5 32256 ($PKG_CONFIG --exists --print-errors "khronos-opengl-registry") 2>&5 32257 ac_status=$? 32258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32259 test $ac_status = 0; }; then 32260 pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS=`$PKG_CONFIG --cflags "khronos-opengl-registry" 2>/dev/null` 32261 test "x$?" != "x0" && pkg_failed=yes 32262else 32263 pkg_failed=yes 32264fi 32265 else 32266 pkg_failed=untried 32267fi 32268if test -n "$KHRONOS_OPENGL_REGISTRY_LIBS"; then 32269 pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS="$KHRONOS_OPENGL_REGISTRY_LIBS" 32270 elif test -n "$PKG_CONFIG"; then 32271 if test -n "$PKG_CONFIG" && \ 32272 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"khronos-opengl-registry\""; } >&5 32273 ($PKG_CONFIG --exists --print-errors "khronos-opengl-registry") 2>&5 32274 ac_status=$? 32275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32276 test $ac_status = 0; }; then 32277 pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS=`$PKG_CONFIG --libs "khronos-opengl-registry" 2>/dev/null` 32278 test "x$?" != "x0" && pkg_failed=yes 32279else 32280 pkg_failed=yes 32281fi 32282 else 32283 pkg_failed=untried 32284fi 32285 32286 32287 32288if test $pkg_failed = yes; then 32289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32290printf "%s\n" "no" >&6; } 32291 32292if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32293 _pkg_short_errors_supported=yes 32294else 32295 _pkg_short_errors_supported=no 32296fi 32297 if test $_pkg_short_errors_supported = yes; then 32298 KHRONOS_OPENGL_REGISTRY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "khronos-opengl-registry" 2>&1` 32299 else 32300 KHRONOS_OPENGL_REGISTRY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "khronos-opengl-registry" 2>&1` 32301 fi 32302 # Put the nasty error message in config.log where it belongs 32303 echo "$KHRONOS_OPENGL_REGISTRY_PKG_ERRORS" >&5 32304 32305 as_fn_error $? "Package requirements (khronos-opengl-registry) were not met: 32306 32307$KHRONOS_OPENGL_REGISTRY_PKG_ERRORS 32308 32309Consider adjusting the PKG_CONFIG_PATH environment variable if you 32310installed software in a non-standard prefix. 32311 32312Alternatively, you may set the environment variables KHRONOS_OPENGL_REGISTRY_CFLAGS 32313and KHRONOS_OPENGL_REGISTRY_LIBS to avoid the need to call pkg-config. 32314See the pkg-config man page for more details." "$LINENO" 5 32315elif test $pkg_failed = untried; then 32316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32317printf "%s\n" "no" >&6; } 32318 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32319printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 32320as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 32321is in your PATH or set the PKG_CONFIG environment variable to the full 32322path to pkg-config. 32323 32324Alternatively, you may set the environment variables KHRONOS_OPENGL_REGISTRY_CFLAGS 32325and KHRONOS_OPENGL_REGISTRY_LIBS to avoid the need to call pkg-config. 32326See the pkg-config man page for more details. 32327 32328To get pkg-config, see <http://pkg-config.freedesktop.org/>. 32329See \`config.log' for more details" "$LINENO" 5; } 32330else 32331 KHRONOS_OPENGL_REGISTRY_CFLAGS=$pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS 32332 KHRONOS_OPENGL_REGISTRY_LIBS=$pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS 32333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32334printf "%s\n" "yes" >&6; } 32335 32336fi 32337 KHRONOS_SPEC_DIR=`pkg-config khronos-opengl-registry --variable=specdir` 32338 fi 32339 32340 fi 32341 32342fi 32343 if test "x$XWIN" = xyes; then 32344 XWIN_TRUE= 32345 XWIN_FALSE='#' 32346else 32347 XWIN_TRUE='#' 32348 XWIN_FALSE= 32349fi 32350 32351 if test "x$XWIN" = xyes && test "x$GLX" = xyes; then 32352 XWIN_GLX_WINDOWS_TRUE= 32353 XWIN_GLX_WINDOWS_FALSE='#' 32354else 32355 XWIN_GLX_WINDOWS_TRUE='#' 32356 XWIN_GLX_WINDOWS_FALSE= 32357fi 32358 32359 if test "x$XWIN" = xyes && test "x$WINDOWSDRI" = xyes; then 32360 XWIN_WINDOWS_DRI_TRUE= 32361 XWIN_WINDOWS_DRI_FALSE='#' 32362else 32363 XWIN_WINDOWS_DRI_TRUE='#' 32364 XWIN_WINDOWS_DRI_FALSE= 32365fi 32366 32367 32368if test "x$XQUARTZ" = xyes; then 32369 32370printf "%s\n" "#define XQUARTZ 1" >>confdefs.h 32371 32372 32373printf "%s\n" "#define ROOTLESS 1" >>confdefs.h 32374 32375 32376 XQUARTZ_LIBS="$COMPOSITE_LIB $FB_LIB $FIXES_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $XPSTUBS_LIB $PRESENT_LIB" 32377 32378 32379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xp_init in -lXplugin" >&5 32380printf %s "checking for xp_init in -lXplugin... " >&6; } 32381if test ${ac_cv_lib_Xplugin_xp_init+y} 32382then : 32383 printf %s "(cached) " >&6 32384else $as_nop 32385 ac_check_lib_save_LIBS=$LIBS 32386LIBS="-lXplugin $LIBS" 32387cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32388/* end confdefs.h. */ 32389 32390/* Override any GCC internal prototype to avoid an error. 32391 Use char because int might match the return type of a GCC 32392 builtin and then its argument prototype would still apply. 32393 The 'extern "C"' is for builds by C++ compilers; 32394 although this is not generally supported in C code supporting it here 32395 has little cost and some practical benefit (sr 110532). */ 32396#ifdef __cplusplus 32397extern "C" 32398#endif 32399char xp_init (void); 32400int 32401main (void) 32402{ 32403return xp_init (); 32404 ; 32405 return 0; 32406} 32407_ACEOF 32408if ac_fn_c_try_link "$LINENO" 32409then : 32410 ac_cv_lib_Xplugin_xp_init=yes 32411else $as_nop 32412 ac_cv_lib_Xplugin_xp_init=no 32413fi 32414rm -f core conftest.err conftest.$ac_objext conftest.beam \ 32415 conftest$ac_exeext conftest.$ac_ext 32416LIBS=$ac_check_lib_save_LIBS 32417fi 32418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xplugin_xp_init" >&5 32419printf "%s\n" "$ac_cv_lib_Xplugin_xp_init" >&6; } 32420if test "x$ac_cv_lib_Xplugin_xp_init" = xyes 32421then : 32422 : 32423fi 32424 32425 32426 CFLAGS="${CFLAGS} -DROOTLESS_WORKAROUND -DROOTLESS_SAFEALPHA -DNO_ALLOCA" 32427 32428 32429pkg_failed=no 32430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $APPLEWMPROTO $LIBAPPLEWM xfixes x11" >&5 32431printf %s "checking for $APPLEWMPROTO $LIBAPPLEWM xfixes x11... " >&6; } 32432 32433if test -n "$XPBPROXY_CFLAGS"; then 32434 pkg_cv_XPBPROXY_CFLAGS="$XPBPROXY_CFLAGS" 32435 elif test -n "$PKG_CONFIG"; then 32436 if test -n "$PKG_CONFIG" && \ 32437 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$APPLEWMPROTO \$LIBAPPLEWM xfixes x11\""; } >&5 32438 ($PKG_CONFIG --exists --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11") 2>&5 32439 ac_status=$? 32440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32441 test $ac_status = 0; }; then 32442 pkg_cv_XPBPROXY_CFLAGS=`$PKG_CONFIG --cflags "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>/dev/null` 32443 test "x$?" != "x0" && pkg_failed=yes 32444else 32445 pkg_failed=yes 32446fi 32447 else 32448 pkg_failed=untried 32449fi 32450if test -n "$XPBPROXY_LIBS"; then 32451 pkg_cv_XPBPROXY_LIBS="$XPBPROXY_LIBS" 32452 elif test -n "$PKG_CONFIG"; then 32453 if test -n "$PKG_CONFIG" && \ 32454 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$APPLEWMPROTO \$LIBAPPLEWM xfixes x11\""; } >&5 32455 ($PKG_CONFIG --exists --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11") 2>&5 32456 ac_status=$? 32457 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32458 test $ac_status = 0; }; then 32459 pkg_cv_XPBPROXY_LIBS=`$PKG_CONFIG --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>/dev/null` 32460 test "x$?" != "x0" && pkg_failed=yes 32461else 32462 pkg_failed=yes 32463fi 32464 else 32465 pkg_failed=untried 32466fi 32467 32468 32469 32470if test $pkg_failed = yes; then 32471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32472printf "%s\n" "no" >&6; } 32473 32474if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32475 _pkg_short_errors_supported=yes 32476else 32477 _pkg_short_errors_supported=no 32478fi 32479 if test $_pkg_short_errors_supported = yes; then 32480 XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>&1` 32481 else 32482 XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>&1` 32483 fi 32484 # Put the nasty error message in config.log where it belongs 32485 echo "$XPBPROXY_PKG_ERRORS" >&5 32486 32487 as_fn_error $? "Package requirements ($APPLEWMPROTO $LIBAPPLEWM xfixes x11) were not met: 32488 32489$XPBPROXY_PKG_ERRORS 32490 32491Consider adjusting the PKG_CONFIG_PATH environment variable if you 32492installed software in a non-standard prefix. 32493 32494Alternatively, you may set the environment variables XPBPROXY_CFLAGS 32495and XPBPROXY_LIBS to avoid the need to call pkg-config. 32496See the pkg-config man page for more details." "$LINENO" 5 32497elif test $pkg_failed = untried; then 32498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32499printf "%s\n" "no" >&6; } 32500 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32501printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 32502as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 32503is in your PATH or set the PKG_CONFIG environment variable to the full 32504path to pkg-config. 32505 32506Alternatively, you may set the environment variables XPBPROXY_CFLAGS 32507and XPBPROXY_LIBS to avoid the need to call pkg-config. 32508See the pkg-config man page for more details. 32509 32510To get pkg-config, see <http://pkg-config.freedesktop.org/>. 32511See \`config.log' for more details" "$LINENO" 5; } 32512else 32513 XPBPROXY_CFLAGS=$pkg_cv_XPBPROXY_CFLAGS 32514 XPBPROXY_LIBS=$pkg_cv_XPBPROXY_LIBS 32515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32516printf "%s\n" "yes" >&6; } 32517 32518fi 32519 32520 if test "x$XQUARTZ_SPARKLE" = xyes ; then 32521 32522printf "%s\n" "#define XQUARTZ_SPARKLE 1" >>confdefs.h 32523 32524 fi 32525 32526 if test "x$STANDALONE_XPBPROXY" = xyes ; then 32527 32528printf "%s\n" "#define STANDALONE_XPBPROXY 1" >>confdefs.h 32529 32530 fi 32531fi 32532 32533 if test "x$XQUARTZ" = xyes -o "x$XWIN" = xyes ; then 32534 PSEUDORAMIX_TRUE= 32535 PSEUDORAMIX_FALSE='#' 32536else 32537 PSEUDORAMIX_TRUE='#' 32538 PSEUDORAMIX_FALSE= 32539fi 32540 32541 32542# Support for objc in autotools is minimal and not documented. 32543OBJC='$(CC)' 32544OBJCLD='$(CCLD)' 32545OBJCLINK='$(LINK)' 32546OBJCFLAGS='$(CFLAGS)' 32547 32548 32549 32550 32551# internal, undocumented automake func follows :( 32552 32553depcc="$OBJC" am_compiler_list='gcc3 gcc' 32554 32555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 32556printf %s "checking dependency style of $depcc... " >&6; } 32557if test ${am_cv_OBJC_dependencies_compiler_type+y} 32558then : 32559 printf %s "(cached) " >&6 32560else $as_nop 32561 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 32562 # We make a subdir and do the tests there. Otherwise we can end up 32563 # making bogus files that we don't know about and never remove. For 32564 # instance it was reported that on HP-UX the gcc test will end up 32565 # making a dummy file named 'D' -- because '-MD' means "put the output 32566 # in D". 32567 rm -rf conftest.dir 32568 mkdir conftest.dir 32569 # Copy depcomp to subdir because otherwise we won't find it if we're 32570 # using a relative directory. 32571 cp "$am_depcomp" conftest.dir 32572 cd conftest.dir 32573 # We will build objects and dependencies in a subdirectory because 32574 # it helps to detect inapplicable dependency modes. For instance 32575 # both Tru64's cc and ICC support -MD to output dependencies as a 32576 # side effect of compilation, but ICC will put the dependencies in 32577 # the current directory while Tru64 will put them in the object 32578 # directory. 32579 mkdir sub 32580 32581 am_cv_OBJC_dependencies_compiler_type=none 32582 if test "$am_compiler_list" = ""; then 32583 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 32584 fi 32585 am__universal=false 32586 32587 32588 for depmode in $am_compiler_list; do 32589 # Setup a source with many dependencies, because some compilers 32590 # like to wrap large dependency lists on column 80 (with \), and 32591 # we should not choose a depcomp mode which is confused by this. 32592 # 32593 # We need to recreate these files for each test, as the compiler may 32594 # overwrite some of them when testing with obscure command lines. 32595 # This happens at least with the AIX C compiler. 32596 : > sub/conftest.c 32597 for i in 1 2 3 4 5 6; do 32598 echo '#include "conftst'$i'.h"' >> sub/conftest.c 32599 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 32600 # Solaris 10 /bin/sh. 32601 echo '/* dummy */' > sub/conftst$i.h 32602 done 32603 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 32604 32605 # We check with '-c' and '-o' for the sake of the "dashmstdout" 32606 # mode. It turns out that the SunPro C++ compiler does not properly 32607 # handle '-M -o', and we need to detect this. Also, some Intel 32608 # versions had trouble with output in subdirs. 32609 am__obj=sub/conftest.${OBJEXT-o} 32610 am__minus_obj="-o $am__obj" 32611 case $depmode in 32612 gcc) 32613 # This depmode causes a compiler race in universal mode. 32614 test "$am__universal" = false || continue 32615 ;; 32616 nosideeffect) 32617 # After this tag, mechanisms are not by side-effect, so they'll 32618 # only be used when explicitly requested. 32619 if test "x$enable_dependency_tracking" = xyes; then 32620 continue 32621 else 32622 break 32623 fi 32624 ;; 32625 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 32626 # This compiler won't grok '-c -o', but also, the minuso test has 32627 # not run yet. These depmodes are late enough in the game, and 32628 # so weak that their functioning should not be impacted. 32629 am__obj=conftest.${OBJEXT-o} 32630 am__minus_obj= 32631 ;; 32632 none) break ;; 32633 esac 32634 if depmode=$depmode \ 32635 source=sub/conftest.c object=$am__obj \ 32636 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 32637 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 32638 >/dev/null 2>conftest.err && 32639 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 32640 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 32641 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 32642 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 32643 # icc doesn't choke on unknown options, it will just issue warnings 32644 # or remarks (even with -Werror). So we grep stderr for any message 32645 # that says an option was ignored or not supported. 32646 # When given -MP, icc 7.0 and 7.1 complain thusly: 32647 # icc: Command line warning: ignoring option '-M'; no argument required 32648 # The diagnosis changed in icc 8.0: 32649 # icc: Command line remark: option '-MP' not supported 32650 if (grep 'ignoring option' conftest.err || 32651 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 32652 am_cv_OBJC_dependencies_compiler_type=$depmode 32653 break 32654 fi 32655 fi 32656 done 32657 32658 cd .. 32659 rm -rf conftest.dir 32660else 32661 am_cv_OBJC_dependencies_compiler_type=none 32662fi 32663 32664fi 32665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5 32666printf "%s\n" "$am_cv_OBJC_dependencies_compiler_type" >&6; } 32667OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type 32668 32669 if 32670 test "x$enable_dependency_tracking" != xno \ 32671 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then 32672 am__fastdepOBJC_TRUE= 32673 am__fastdepOBJC_FALSE='#' 32674else 32675 am__fastdepOBJC_TRUE='#' 32676 am__fastdepOBJC_FALSE= 32677fi 32678 32679 32680 if test "x$XQUARTZ" = xyes; then 32681 XQUARTZ_TRUE= 32682 XQUARTZ_FALSE='#' 32683else 32684 XQUARTZ_TRUE='#' 32685 XQUARTZ_FALSE= 32686fi 32687 32688 if test "x$XQUARTZ_SPARKLE" != "xno"; then 32689 XQUARTZ_SPARKLE_TRUE= 32690 XQUARTZ_SPARKLE_FALSE='#' 32691else 32692 XQUARTZ_SPARKLE_TRUE='#' 32693 XQUARTZ_SPARKLE_FALSE= 32694fi 32695 32696 if test "x$STANDALONE_XPBPROXY" = xyes; then 32697 STANDALONE_XPBPROXY_TRUE= 32698 STANDALONE_XPBPROXY_FALSE='#' 32699else 32700 STANDALONE_XPBPROXY_TRUE='#' 32701 STANDALONE_XPBPROXY_FALSE= 32702fi 32703 32704 32705 32706XEPHYR_LIBS= 32707XEPHYR_INCS= 32708 32709 if test x$KDRIVE = xyes; then 32710 KDRIVE_TRUE= 32711 KDRIVE_FALSE='#' 32712else 32713 KDRIVE_TRUE='#' 32714 KDRIVE_FALSE= 32715fi 32716 32717 32718if test "$KDRIVE" = yes; then 32719 XEPHYR_REQUIRED_LIBS="xau xdmcp xcb xcb-shape xcb-render xcb-renderutil xcb-aux xcb-image xcb-icccm xcb-shm >= 1.9.3 xcb-keysyms xcb-randr xcb-xkb" 32720 if test "x$XV" = xyes; then 32721 XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS xcb-xv" 32722 fi 32723 if test "x$DRI" = xyes && test "x$GLX" = xyes; then 32724 XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS $LIBDRM xcb-glx xcb-xf86dri > 1.6" 32725 fi 32726 if test "x$GLAMOR" = xyes; then 32727 XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS x11-xcb" 32728 fi 32729 32730 if test "x$XEPHYR" = xauto; then 32731 32732pkg_failed=no 32733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $XEPHYR_REQUIRED_LIBS" >&5 32734printf %s "checking for $XEPHYR_REQUIRED_LIBS... " >&6; } 32735 32736if test -n "$XEPHYR_CFLAGS"; then 32737 pkg_cv_XEPHYR_CFLAGS="$XEPHYR_CFLAGS" 32738 elif test -n "$PKG_CONFIG"; then 32739 if test -n "$PKG_CONFIG" && \ 32740 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5 32741 ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5 32742 ac_status=$? 32743 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32744 test $ac_status = 0; }; then 32745 pkg_cv_XEPHYR_CFLAGS=`$PKG_CONFIG --cflags "$XEPHYR_REQUIRED_LIBS" 2>/dev/null` 32746 test "x$?" != "x0" && pkg_failed=yes 32747else 32748 pkg_failed=yes 32749fi 32750 else 32751 pkg_failed=untried 32752fi 32753if test -n "$XEPHYR_LIBS"; then 32754 pkg_cv_XEPHYR_LIBS="$XEPHYR_LIBS" 32755 elif test -n "$PKG_CONFIG"; then 32756 if test -n "$PKG_CONFIG" && \ 32757 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5 32758 ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5 32759 ac_status=$? 32760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32761 test $ac_status = 0; }; then 32762 pkg_cv_XEPHYR_LIBS=`$PKG_CONFIG --libs "$XEPHYR_REQUIRED_LIBS" 2>/dev/null` 32763 test "x$?" != "x0" && pkg_failed=yes 32764else 32765 pkg_failed=yes 32766fi 32767 else 32768 pkg_failed=untried 32769fi 32770 32771 32772 32773if test $pkg_failed = yes; then 32774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32775printf "%s\n" "no" >&6; } 32776 32777if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32778 _pkg_short_errors_supported=yes 32779else 32780 _pkg_short_errors_supported=no 32781fi 32782 if test $_pkg_short_errors_supported = yes; then 32783 XEPHYR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1` 32784 else 32785 XEPHYR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1` 32786 fi 32787 # Put the nasty error message in config.log where it belongs 32788 echo "$XEPHYR_PKG_ERRORS" >&5 32789 32790 XEPHYR="no" 32791elif test $pkg_failed = untried; then 32792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32793printf "%s\n" "no" >&6; } 32794 XEPHYR="no" 32795else 32796 XEPHYR_CFLAGS=$pkg_cv_XEPHYR_CFLAGS 32797 XEPHYR_LIBS=$pkg_cv_XEPHYR_LIBS 32798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32799printf "%s\n" "yes" >&6; } 32800 XEPHYR="yes" 32801fi 32802 elif test "x$XEPHYR" = xyes ; then 32803 32804pkg_failed=no 32805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $XEPHYR_REQUIRED_LIBS" >&5 32806printf %s "checking for $XEPHYR_REQUIRED_LIBS... " >&6; } 32807 32808if test -n "$XEPHYR_CFLAGS"; then 32809 pkg_cv_XEPHYR_CFLAGS="$XEPHYR_CFLAGS" 32810 elif test -n "$PKG_CONFIG"; then 32811 if test -n "$PKG_CONFIG" && \ 32812 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5 32813 ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5 32814 ac_status=$? 32815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32816 test $ac_status = 0; }; then 32817 pkg_cv_XEPHYR_CFLAGS=`$PKG_CONFIG --cflags "$XEPHYR_REQUIRED_LIBS" 2>/dev/null` 32818 test "x$?" != "x0" && pkg_failed=yes 32819else 32820 pkg_failed=yes 32821fi 32822 else 32823 pkg_failed=untried 32824fi 32825if test -n "$XEPHYR_LIBS"; then 32826 pkg_cv_XEPHYR_LIBS="$XEPHYR_LIBS" 32827 elif test -n "$PKG_CONFIG"; then 32828 if test -n "$PKG_CONFIG" && \ 32829 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5 32830 ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5 32831 ac_status=$? 32832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32833 test $ac_status = 0; }; then 32834 pkg_cv_XEPHYR_LIBS=`$PKG_CONFIG --libs "$XEPHYR_REQUIRED_LIBS" 2>/dev/null` 32835 test "x$?" != "x0" && pkg_failed=yes 32836else 32837 pkg_failed=yes 32838fi 32839 else 32840 pkg_failed=untried 32841fi 32842 32843 32844 32845if test $pkg_failed = yes; then 32846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32847printf "%s\n" "no" >&6; } 32848 32849if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32850 _pkg_short_errors_supported=yes 32851else 32852 _pkg_short_errors_supported=no 32853fi 32854 if test $_pkg_short_errors_supported = yes; then 32855 XEPHYR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1` 32856 else 32857 XEPHYR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1` 32858 fi 32859 # Put the nasty error message in config.log where it belongs 32860 echo "$XEPHYR_PKG_ERRORS" >&5 32861 32862 as_fn_error $? "Package requirements ($XEPHYR_REQUIRED_LIBS) were not met: 32863 32864$XEPHYR_PKG_ERRORS 32865 32866Consider adjusting the PKG_CONFIG_PATH environment variable if you 32867installed software in a non-standard prefix. 32868 32869Alternatively, you may set the environment variables XEPHYR_CFLAGS 32870and XEPHYR_LIBS to avoid the need to call pkg-config. 32871See the pkg-config man page for more details." "$LINENO" 5 32872elif test $pkg_failed = untried; then 32873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32874printf "%s\n" "no" >&6; } 32875 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32876printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 32877as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 32878is in your PATH or set the PKG_CONFIG environment variable to the full 32879path to pkg-config. 32880 32881Alternatively, you may set the environment variables XEPHYR_CFLAGS 32882and XEPHYR_LIBS to avoid the need to call pkg-config. 32883See the pkg-config man page for more details. 32884 32885To get pkg-config, see <http://pkg-config.freedesktop.org/>. 32886See \`config.log' for more details" "$LINENO" 5; } 32887else 32888 XEPHYR_CFLAGS=$pkg_cv_XEPHYR_CFLAGS 32889 XEPHYR_LIBS=$pkg_cv_XEPHYR_LIBS 32890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32891printf "%s\n" "yes" >&6; } 32892 32893fi 32894 fi 32895 32896 # Xephyr needs nanosleep() which is in librt on Solaris 32897 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" 32898if test "x$ac_cv_func_nanosleep" = xyes 32899then : 32900 32901else $as_nop 32902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 32903printf %s "checking for nanosleep in -lrt... " >&6; } 32904if test ${ac_cv_lib_rt_nanosleep+y} 32905then : 32906 printf %s "(cached) " >&6 32907else $as_nop 32908 ac_check_lib_save_LIBS=$LIBS 32909LIBS="-lrt $LIBS" 32910cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32911/* end confdefs.h. */ 32912 32913/* Override any GCC internal prototype to avoid an error. 32914 Use char because int might match the return type of a GCC 32915 builtin and then its argument prototype would still apply. 32916 The 'extern "C"' is for builds by C++ compilers; 32917 although this is not generally supported in C code supporting it here 32918 has little cost and some practical benefit (sr 110532). */ 32919#ifdef __cplusplus 32920extern "C" 32921#endif 32922char nanosleep (void); 32923int 32924main (void) 32925{ 32926return nanosleep (); 32927 ; 32928 return 0; 32929} 32930_ACEOF 32931if ac_fn_c_try_link "$LINENO" 32932then : 32933 ac_cv_lib_rt_nanosleep=yes 32934else $as_nop 32935 ac_cv_lib_rt_nanosleep=no 32936fi 32937rm -f core conftest.err conftest.$ac_objext conftest.beam \ 32938 conftest$ac_exeext conftest.$ac_ext 32939LIBS=$ac_check_lib_save_LIBS 32940fi 32941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 32942printf "%s\n" "$ac_cv_lib_rt_nanosleep" >&6; } 32943if test "x$ac_cv_lib_rt_nanosleep" = xyes 32944then : 32945 XEPHYR_LIBS="$XEPHYR_LIBS -lrt" 32946fi 32947 32948fi 32949 32950 32951 # damage shadow extension glx (NOTYET) fb mi 32952 KDRIVE_INC='-I$(top_srcdir)/hw/kdrive/src' 32953 KDRIVE_PURE_INCS="$KDRIVE_INC $MIEXT_SYNC_INC $MIEXT_DAMAGE_INC $MIEXT_SHADOW_INC $XEXT_INC $FB_INC $MI_INC" 32954 KDRIVE_OS_INC='-I$(top_srcdir)/hw/kdrive/linux' 32955 KDRIVE_INCS="$KDRIVE_PURE_INCS $KDRIVE_OS_INC" 32956 32957 KDRIVE_CFLAGS="$XSERVER_CFLAGS" 32958 32959 KDRIVE_PURE_LIBS="$FB_LIB $MI_LIB $FIXES_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $GLX_LIBS $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $DRI3_LIB $PRESENT_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $OS_LIB" 32960 KDRIVE_LIB='$(top_builddir)/hw/kdrive/src/libkdrive.la' 32961 KDRIVE_MAIN_LIB="$MAIN_LIB" 32962 KDRIVE_LOCAL_LIBS="$DIX_LIB $KDRIVE_LIB" 32963 KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $FB_LIB $MI_LIB $KDRIVE_PURE_LIBS" 32964 KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $KDRIVE_OS_LIB" 32965 KDRIVE_LIBS="$KDRIVE_LOCAL_LIBS $XSERVER_SYS_LIBS $GLX_SYS_LIBS $DLOPEN_LIBS" 32966 32967 32968 32969fi 32970 32971 32972 32973 32974 32975 32976 32977 if test "x$KDRIVE" = xyes && test "x$XEPHYR" = xyes; then 32978 XEPHYR_TRUE= 32979 XEPHYR_FALSE='#' 32980else 32981 XEPHYR_TRUE='#' 32982 XEPHYR_FALSE= 32983fi 32984 32985 32986 32987 32988cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32989/* end confdefs.h. */ 32990 32991#include <features.h> 32992#ifndef __GLIBC__ 32993#error not glibc 32994#endif 32995 32996int 32997main (void) 32998{ 32999 33000 ; 33001 return 0; 33002} 33003_ACEOF 33004if ac_fn_c_try_compile "$LINENO" 33005then : 33006 33007printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 33008 33009fi 33010rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 33011 33012 33013 prefix_NONE= 33014 exec_prefix_NONE= 33015 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 33016 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 33017 eval ac_define_dir="\"$prefix\"" 33018 eval ac_define_dir="\"$ac_define_dir\"" 33019 PROJECTROOT="$ac_define_dir" 33020 33021 33022printf "%s\n" "#define PROJECTROOT \"$ac_define_dir\"" >>confdefs.h 33023 33024 test "$prefix_NONE" && prefix=NONE 33025 test "$exec_prefix_NONE" && exec_prefix=NONE 33026 33027 33028 prefix_NONE= 33029 exec_prefix_NONE= 33030 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 33031 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 33032 eval ac_define_dir="\"$sysconfdir\"" 33033 eval ac_define_dir="\"$ac_define_dir\"" 33034 SYSCONFDIR="$ac_define_dir" 33035 33036 33037printf "%s\n" "#define SYSCONFDIR \"$ac_define_dir\"" >>confdefs.h 33038 33039 test "$prefix_NONE" && prefix=NONE 33040 test "$exec_prefix_NONE" && exec_prefix=NONE 33041 33042 33043 33044 33045DIX_CFLAGS="-DHAVE_DIX_CONFIG_H $XSERVER_CFLAGS" 33046 33047 33048 33049 33050 33051 33052 33053ac_config_commands="$ac_config_commands sdksyms" 33054 33055 33056if test "x$CONFIG_HAL" = xno && test "x$CONFIG_UDEV" = xno; then 33057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 33058 *********************************************** 33059 Neither HAL nor udev backend will be enabled. 33060 Input device hotplugging will not be available! 33061 ***********************************************" >&5 33062printf "%s\n" "$as_me: WARNING: 33063 *********************************************** 33064 Neither HAL nor udev backend will be enabled. 33065 Input device hotplugging will not be available! 33066 ***********************************************" >&2;} 33067fi 33068 33069ac_config_files="$ac_config_files Makefile glx/Makefile include/Makefile composite/Makefile damageext/Makefile dbe/Makefile dix/Makefile doc/Makefile doc/dtrace/Makefile man/Makefile fb/Makefile glamor/Makefile record/Makefile config/Makefile mi/Makefile miext/Makefile miext/sync/Makefile miext/damage/Makefile miext/shadow/Makefile miext/rootless/Makefile os/Makefile pseudoramiX/Makefile randr/Makefile render/Makefile xkb/Makefile Xext/Makefile Xi/Makefile xfixes/Makefile exa/Makefile dri3/Makefile present/Makefile hw/Makefile hw/xfree86/Makefile hw/xfree86/Xorg.sh hw/xfree86/common/Makefile hw/xfree86/ddc/Makefile hw/xfree86/dixmods/Makefile hw/xfree86/doc/Makefile hw/xfree86/dri/Makefile hw/xfree86/dri2/Makefile hw/xfree86/dri2/pci_ids/Makefile hw/xfree86/drivers/Makefile hw/xfree86/drivers/inputtest/Makefile hw/xfree86/drivers/modesetting/Makefile hw/xfree86/exa/Makefile hw/xfree86/exa/man/Makefile hw/xfree86/fbdevhw/Makefile hw/xfree86/fbdevhw/man/Makefile hw/xfree86/glamor_egl/Makefile hw/xfree86/i2c/Makefile hw/xfree86/int10/Makefile hw/xfree86/loader/Makefile hw/xfree86/man/Makefile hw/xfree86/modes/Makefile hw/xfree86/os-support/Makefile hw/xfree86/os-support/bsd/Makefile hw/xfree86/os-support/bus/Makefile hw/xfree86/os-support/hurd/Makefile hw/xfree86/os-support/misc/Makefile hw/xfree86/os-support/linux/Makefile hw/xfree86/os-support/solaris/Makefile hw/xfree86/os-support/stub/Makefile hw/xfree86/parser/Makefile hw/xfree86/ramdac/Makefile hw/xfree86/shadowfb/Makefile hw/xfree86/vgahw/Makefile hw/xfree86/x86emu/Makefile hw/xfree86/xkb/Makefile hw/xfree86/utils/Makefile hw/xfree86/utils/man/Makefile hw/xfree86/utils/gtf/Makefile hw/vfb/Makefile hw/vfb/man/Makefile hw/xnest/Makefile hw/xnest/man/Makefile hw/xwin/Makefile hw/xwin/dri/Makefile hw/xwin/glx/Makefile hw/xwin/man/Makefile hw/xwin/winclipboard/Makefile hw/xquartz/Makefile hw/xquartz/GL/Makefile hw/xquartz/bundle/Makefile hw/xquartz/man/Makefile hw/xquartz/mach-startup/Makefile hw/xquartz/pbproxy/Makefile hw/xquartz/xpr/Makefile hw/kdrive/Makefile hw/kdrive/ephyr/Makefile hw/kdrive/ephyr/man/Makefile hw/kdrive/src/Makefile test/Makefile xserver.ent xorg-server.pc" 33070 33071cat >confcache <<\_ACEOF 33072# This file is a shell script that caches the results of configure 33073# tests run on this system so they can be shared between configure 33074# scripts and configure runs, see configure's option --config-cache. 33075# It is not useful on other systems. If it contains results you don't 33076# want to keep, you may remove or edit it. 33077# 33078# config.status only pays attention to the cache file if you give it 33079# the --recheck option to rerun configure. 33080# 33081# `ac_cv_env_foo' variables (set or unset) will be overridden when 33082# loading this file, other *unset* `ac_cv_foo' will be assigned the 33083# following values. 33084 33085_ACEOF 33086 33087# The following way of writing the cache mishandles newlines in values, 33088# but we know of no workaround that is simple, portable, and efficient. 33089# So, we kill variables containing newlines. 33090# Ultrix sh set writes to stderr and can't be redirected directly, 33091# and sets the high bit in the cache file unless we assign to the vars. 33092( 33093 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 33094 eval ac_val=\$$ac_var 33095 case $ac_val in #( 33096 *${as_nl}*) 33097 case $ac_var in #( 33098 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 33099printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 33100 esac 33101 case $ac_var in #( 33102 _ | IFS | as_nl) ;; #( 33103 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 33104 *) { eval $ac_var=; unset $ac_var;} ;; 33105 esac ;; 33106 esac 33107 done 33108 33109 (set) 2>&1 | 33110 case $as_nl`(ac_space=' '; set) 2>&1` in #( 33111 *${as_nl}ac_space=\ *) 33112 # `set' does not quote correctly, so add quotes: double-quote 33113 # substitution turns \\\\ into \\, and sed turns \\ into \. 33114 sed -n \ 33115 "s/'/'\\\\''/g; 33116 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 33117 ;; #( 33118 *) 33119 # `set' quotes correctly as required by POSIX, so do not add quotes. 33120 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 33121 ;; 33122 esac | 33123 sort 33124) | 33125 sed ' 33126 /^ac_cv_env_/b end 33127 t clear 33128 :clear 33129 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 33130 t end 33131 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 33132 :end' >>confcache 33133if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 33134 if test -w "$cache_file"; then 33135 if test "x$cache_file" != "x/dev/null"; then 33136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 33137printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 33138 if test ! -f "$cache_file" || test -h "$cache_file"; then 33139 cat confcache >"$cache_file" 33140 else 33141 case $cache_file in #( 33142 */* | ?:*) 33143 mv -f confcache "$cache_file"$$ && 33144 mv -f "$cache_file"$$ "$cache_file" ;; #( 33145 *) 33146 mv -f confcache "$cache_file" ;; 33147 esac 33148 fi 33149 fi 33150 else 33151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 33152printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 33153 fi 33154fi 33155rm -f confcache 33156 33157test "x$prefix" = xNONE && prefix=$ac_default_prefix 33158# Let make expand exec_prefix. 33159test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 33160 33161DEFS=-DHAVE_CONFIG_H 33162 33163ac_libobjs= 33164ac_ltlibobjs= 33165U= 33166for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 33167 # 1. Remove the extension, and $U if already installed. 33168 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 33169 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 33170 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 33171 # will be set to the directory where LIBOBJS objects are built. 33172 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 33173 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 33174done 33175LIBOBJS=$ac_libobjs 33176 33177LTLIBOBJS=$ac_ltlibobjs 33178 33179 33180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 33181printf %s "checking that generated files are newer than configure... " >&6; } 33182 if test -n "$am_sleep_pid"; then 33183 # Hide warnings about reused PIDs. 33184 wait $am_sleep_pid 2>/dev/null 33185 fi 33186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 33187printf "%s\n" "done" >&6; } 33188 if test -n "$EXEEXT"; then 33189 am__EXEEXT_TRUE= 33190 am__EXEEXT_FALSE='#' 33191else 33192 am__EXEEXT_TRUE='#' 33193 am__EXEEXT_FALSE= 33194fi 33195 33196if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 33197 as_fn_error $? "conditional \"AMDEP\" was never defined. 33198Usually this means the macro was only invoked conditionally." "$LINENO" 5 33199fi 33200if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 33201 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 33202Usually this means the macro was only invoked conditionally." "$LINENO" 5 33203fi 33204if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then 33205 as_fn_error $? "conditional \"HAVE_DOT\" was never defined. 33206Usually this means the macro was only invoked conditionally." "$LINENO" 5 33207fi 33208if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then 33209 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined. 33210Usually this means the macro was only invoked conditionally." "$LINENO" 5 33211fi 33212if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 33213 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 33214Usually this means the macro was only invoked conditionally." "$LINENO" 5 33215fi 33216if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then 33217 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined. 33218Usually this means the macro was only invoked conditionally." "$LINENO" 5 33219fi 33220if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then 33221 as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined. 33222Usually this means the macro was only invoked conditionally." "$LINENO" 5 33223fi 33224if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 33225 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 33226Usually this means the macro was only invoked conditionally." "$LINENO" 5 33227fi 33228if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 33229 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 33230Usually this means the macro was only invoked conditionally." "$LINENO" 5 33231fi 33232if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 33233 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 33234Usually this means the macro was only invoked conditionally." "$LINENO" 5 33235fi 33236if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 33237 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 33238Usually this means the macro was only invoked conditionally." "$LINENO" 5 33239fi 33240if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then 33241 as_fn_error $? "conditional \"ENABLE_UNIT_TESTS\" was never defined. 33242Usually this means the macro was only invoked conditionally." "$LINENO" 5 33243fi 33244if test -z "${HAVE_LD_WRAP_TRUE}" && test -z "${HAVE_LD_WRAP_FALSE}"; then 33245 as_fn_error $? "conditional \"HAVE_LD_WRAP\" was never defined. 33246Usually this means the macro was only invoked conditionally." "$LINENO" 5 33247fi 33248if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then 33249 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. 33250Usually this means the macro was only invoked conditionally." "$LINENO" 5 33251fi 33252if test -z "${XSERVER_DTRACE_TRUE}" && test -z "${XSERVER_DTRACE_FALSE}"; then 33253 as_fn_error $? "conditional \"XSERVER_DTRACE\" was never defined. 33254Usually this means the macro was only invoked conditionally." "$LINENO" 5 33255fi 33256if test -z "${SPECIAL_DTRACE_OBJECTS_TRUE}" && test -z "${SPECIAL_DTRACE_OBJECTS_FALSE}"; then 33257 as_fn_error $? "conditional \"SPECIAL_DTRACE_OBJECTS\" was never defined. 33258Usually this means the macro was only invoked conditionally." "$LINENO" 5 33259fi 33260 33261if test -z "${POLL_TRUE}" && test -z "${POLL_FALSE}"; then 33262 as_fn_error $? "conditional \"POLL\" was never defined. 33263Usually this means the macro was only invoked conditionally." "$LINENO" 5 33264fi 33265if test -z "${AGP_TRUE}" && test -z "${AGP_FALSE}"; then 33266 as_fn_error $? "conditional \"AGP\" was never defined. 33267Usually this means the macro was only invoked conditionally." "$LINENO" 5 33268fi 33269if test -z "${FBDEVHW_TRUE}" && test -z "${FBDEVHW_FALSE}"; then 33270 as_fn_error $? "conditional \"FBDEVHW\" was never defined. 33271Usually this means the macro was only invoked conditionally." "$LINENO" 5 33272fi 33273if test -z "${FREEBSD_KLDLOAD_TRUE}" && test -z "${FREEBSD_KLDLOAD_FALSE}"; then 33274 as_fn_error $? "conditional \"FREEBSD_KLDLOAD\" was never defined. 33275Usually this means the macro was only invoked conditionally." "$LINENO" 5 33276fi 33277if test -z "${ALPHA_VIDEO_TRUE}" && test -z "${ALPHA_VIDEO_FALSE}"; then 33278 as_fn_error $? "conditional \"ALPHA_VIDEO\" was never defined. 33279Usually this means the macro was only invoked conditionally." "$LINENO" 5 33280fi 33281if test -z "${ARM_VIDEO_TRUE}" && test -z "${ARM_VIDEO_FALSE}"; then 33282 as_fn_error $? "conditional \"ARM_VIDEO\" was never defined. 33283Usually this means the macro was only invoked conditionally." "$LINENO" 5 33284fi 33285if test -z "${I386_VIDEO_TRUE}" && test -z "${I386_VIDEO_FALSE}"; then 33286 as_fn_error $? "conditional \"I386_VIDEO\" was never defined. 33287Usually this means the macro was only invoked conditionally." "$LINENO" 5 33288fi 33289if test -z "${PPC_VIDEO_TRUE}" && test -z "${PPC_VIDEO_FALSE}"; then 33290 as_fn_error $? "conditional \"PPC_VIDEO\" was never defined. 33291Usually this means the macro was only invoked conditionally." "$LINENO" 5 33292fi 33293if test -z "${SPARC64_VIDEO_TRUE}" && test -z "${SPARC64_VIDEO_FALSE}"; then 33294 as_fn_error $? "conditional \"SPARC64_VIDEO\" was never defined. 33295Usually this means the macro was only invoked conditionally." "$LINENO" 5 33296fi 33297if test -z "${INSTALL_SETUID_TRUE}" && test -z "${INSTALL_SETUID_FALSE}"; then 33298 as_fn_error $? "conditional \"INSTALL_SETUID\" was never defined. 33299Usually this means the macro was only invoked conditionally." "$LINENO" 5 33300fi 33301if test -z "${SECURE_RPC_TRUE}" && test -z "${SECURE_RPC_FALSE}"; then 33302 as_fn_error $? "conditional \"SECURE_RPC\" was never defined. 33303Usually this means the macro was only invoked conditionally." "$LINENO" 5 33304fi 33305if test -z "${INT10_VM86_TRUE}" && test -z "${INT10_VM86_FALSE}"; then 33306 as_fn_error $? "conditional \"INT10_VM86\" was never defined. 33307Usually this means the macro was only invoked conditionally." "$LINENO" 5 33308fi 33309if test -z "${INT10_X86EMU_TRUE}" && test -z "${INT10_X86EMU_FALSE}"; then 33310 as_fn_error $? "conditional \"INT10_X86EMU\" was never defined. 33311Usually this means the macro was only invoked conditionally." "$LINENO" 5 33312fi 33313if test -z "${INT10_STUB_TRUE}" && test -z "${INT10_STUB_FALSE}"; then 33314 as_fn_error $? "conditional \"INT10_STUB\" was never defined. 33315Usually this means the macro was only invoked conditionally." "$LINENO" 5 33316fi 33317if test -z "${HAVE_SYSTEMD_DAEMON_TRUE}" && test -z "${HAVE_SYSTEMD_DAEMON_FALSE}"; then 33318 as_fn_error $? "conditional \"HAVE_SYSTEMD_DAEMON\" was never defined. 33319Usually this means the macro was only invoked conditionally." "$LINENO" 5 33320fi 33321if test -z "${CONFIG_UDEV_TRUE}" && test -z "${CONFIG_UDEV_FALSE}"; then 33322 as_fn_error $? "conditional \"CONFIG_UDEV\" was never defined. 33323Usually this means the macro was only invoked conditionally." "$LINENO" 5 33324fi 33325if test -z "${CONFIG_UDEV_KMS_TRUE}" && test -z "${CONFIG_UDEV_KMS_FALSE}"; then 33326 as_fn_error $? "conditional \"CONFIG_UDEV_KMS\" was never defined. 33327Usually this means the macro was only invoked conditionally." "$LINENO" 5 33328fi 33329if test -z "${HAVE_DBUS_TRUE}" && test -z "${HAVE_DBUS_FALSE}"; then 33330 as_fn_error $? "conditional \"HAVE_DBUS\" was never defined. 33331Usually this means the macro was only invoked conditionally." "$LINENO" 5 33332fi 33333if test -z "${CONFIG_HAL_TRUE}" && test -z "${CONFIG_HAL_FALSE}"; then 33334 as_fn_error $? "conditional \"CONFIG_HAL\" was never defined. 33335Usually this means the macro was only invoked conditionally." "$LINENO" 5 33336fi 33337if test -z "${SYSTEMD_LOGIND_TRUE}" && test -z "${SYSTEMD_LOGIND_FALSE}"; then 33338 as_fn_error $? "conditional \"SYSTEMD_LOGIND\" was never defined. 33339Usually this means the macro was only invoked conditionally." "$LINENO" 5 33340fi 33341if test -z "${SUID_WRAPPER_TRUE}" && test -z "${SUID_WRAPPER_FALSE}"; then 33342 as_fn_error $? "conditional \"SUID_WRAPPER\" was never defined. 33343Usually this means the macro was only invoked conditionally." "$LINENO" 5 33344fi 33345if test -z "${NEED_DBUS_TRUE}" && test -z "${NEED_DBUS_FALSE}"; then 33346 as_fn_error $? "conditional \"NEED_DBUS\" was never defined. 33347Usually this means the macro was only invoked conditionally." "$LINENO" 5 33348fi 33349if test -z "${CONFIG_WSCONS_TRUE}" && test -z "${CONFIG_WSCONS_FALSE}"; then 33350 as_fn_error $? "conditional \"CONFIG_WSCONS\" was never defined. 33351Usually this means the macro was only invoked conditionally." "$LINENO" 5 33352fi 33353if test -z "${XV_TRUE}" && test -z "${XV_FALSE}"; then 33354 as_fn_error $? "conditional \"XV\" was never defined. 33355Usually this means the macro was only invoked conditionally." "$LINENO" 5 33356fi 33357if test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then 33358 as_fn_error $? "conditional \"XVMC\" was never defined. 33359Usually this means the macro was only invoked conditionally." "$LINENO" 5 33360fi 33361if test -z "${COMPOSITE_TRUE}" && test -z "${COMPOSITE_FALSE}"; then 33362 as_fn_error $? "conditional \"COMPOSITE\" was never defined. 33363Usually this means the macro was only invoked conditionally." "$LINENO" 5 33364fi 33365if test -z "${MITSHM_TRUE}" && test -z "${MITSHM_FALSE}"; then 33366 as_fn_error $? "conditional \"MITSHM\" was never defined. 33367Usually this means the macro was only invoked conditionally." "$LINENO" 5 33368fi 33369if test -z "${RECORD_TRUE}" && test -z "${RECORD_FALSE}"; then 33370 as_fn_error $? "conditional \"RECORD\" was never defined. 33371Usually this means the macro was only invoked conditionally." "$LINENO" 5 33372fi 33373if test -z "${SCREENSAVER_TRUE}" && test -z "${SCREENSAVER_FALSE}"; then 33374 as_fn_error $? "conditional \"SCREENSAVER\" was never defined. 33375Usually this means the macro was only invoked conditionally." "$LINENO" 5 33376fi 33377if test -z "${RES_TRUE}" && test -z "${RES_FALSE}"; then 33378 as_fn_error $? "conditional \"RES\" was never defined. 33379Usually this means the macro was only invoked conditionally." "$LINENO" 5 33380fi 33381if test -z "${CLIENTIDS_TRUE}" && test -z "${CLIENTIDS_FALSE}"; then 33382 as_fn_error $? "conditional \"CLIENTIDS\" was never defined. 33383Usually this means the macro was only invoked conditionally." "$LINENO" 5 33384fi 33385if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then 33386 as_fn_error $? "conditional \"DRI\" was never defined. 33387Usually this means the macro was only invoked conditionally." "$LINENO" 5 33388fi 33389if test -z "${DRI2_TRUE}" && test -z "${DRI2_FALSE}"; then 33390 as_fn_error $? "conditional \"DRI2\" was never defined. 33391Usually this means the macro was only invoked conditionally." "$LINENO" 5 33392fi 33393if test -z "${BUSFAULT_TRUE}" && test -z "${BUSFAULT_FALSE}"; then 33394 as_fn_error $? "conditional \"BUSFAULT\" was never defined. 33395Usually this means the macro was only invoked conditionally." "$LINENO" 5 33396fi 33397if test -z "${XSHMFENCE_TRUE}" && test -z "${XSHMFENCE_FALSE}"; then 33398 as_fn_error $? "conditional \"XSHMFENCE\" was never defined. 33399Usually this means the macro was only invoked conditionally." "$LINENO" 5 33400fi 33401if test -z "${DRI3_TRUE}" && test -z "${DRI3_FALSE}"; then 33402 as_fn_error $? "conditional \"DRI3\" was never defined. 33403Usually this means the macro was only invoked conditionally." "$LINENO" 5 33404fi 33405if test -z "${GLX_TRUE}" && test -z "${GLX_FALSE}"; then 33406 as_fn_error $? "conditional \"GLX\" was never defined. 33407Usually this means the macro was only invoked conditionally." "$LINENO" 5 33408fi 33409if test -z "${HASHTABLE_TRUE}" && test -z "${HASHTABLE_FALSE}"; then 33410 as_fn_error $? "conditional \"HASHTABLE\" was never defined. 33411Usually this means the macro was only invoked conditionally." "$LINENO" 5 33412fi 33413if test -z "${PRESENT_TRUE}" && test -z "${PRESENT_FALSE}"; then 33414 as_fn_error $? "conditional \"PRESENT\" was never defined. 33415Usually this means the macro was only invoked conditionally." "$LINENO" 5 33416fi 33417if test -z "${XINERAMA_TRUE}" && test -z "${XINERAMA_FALSE}"; then 33418 as_fn_error $? "conditional \"XINERAMA\" was never defined. 33419Usually this means the macro was only invoked conditionally." "$LINENO" 5 33420fi 33421if test -z "${XACE_TRUE}" && test -z "${XACE_FALSE}"; then 33422 as_fn_error $? "conditional \"XACE\" was never defined. 33423Usually this means the macro was only invoked conditionally." "$LINENO" 5 33424fi 33425if test -z "${XSELINUX_TRUE}" && test -z "${XSELINUX_FALSE}"; then 33426 as_fn_error $? "conditional \"XSELINUX\" was never defined. 33427Usually this means the macro was only invoked conditionally." "$LINENO" 5 33428fi 33429if test -z "${XCSECURITY_TRUE}" && test -z "${XCSECURITY_FALSE}"; then 33430 as_fn_error $? "conditional \"XCSECURITY\" was never defined. 33431Usually this means the macro was only invoked conditionally." "$LINENO" 5 33432fi 33433if test -z "${DBE_TRUE}" && test -z "${DBE_FALSE}"; then 33434 as_fn_error $? "conditional \"DBE\" was never defined. 33435Usually this means the macro was only invoked conditionally." "$LINENO" 5 33436fi 33437if test -z "${XF86BIGFONT_TRUE}" && test -z "${XF86BIGFONT_FALSE}"; then 33438 as_fn_error $? "conditional \"XF86BIGFONT\" was never defined. 33439Usually this means the macro was only invoked conditionally." "$LINENO" 5 33440fi 33441if test -z "${DPMSExtension_TRUE}" && test -z "${DPMSExtension_FALSE}"; then 33442 as_fn_error $? "conditional \"DPMSExtension\" was never defined. 33443Usually this means the macro was only invoked conditionally." "$LINENO" 5 33444fi 33445if test -z "${XF86UTILS_TRUE}" && test -z "${XF86UTILS_FALSE}"; then 33446 as_fn_error $? "conditional \"XF86UTILS\" was never defined. 33447Usually this means the macro was only invoked conditionally." "$LINENO" 5 33448fi 33449if test -z "${VGAHW_TRUE}" && test -z "${VGAHW_FALSE}"; then 33450 as_fn_error $? "conditional \"VGAHW\" was never defined. 33451Usually this means the macro was only invoked conditionally." "$LINENO" 5 33452fi 33453if test -z "${INT10MODULE_TRUE}" && test -z "${INT10MODULE_FALSE}"; then 33454 as_fn_error $? "conditional \"INT10MODULE\" was never defined. 33455Usually this means the macro was only invoked conditionally." "$LINENO" 5 33456fi 33457if test -z "${XDMCP_TRUE}" && test -z "${XDMCP_FALSE}"; then 33458 as_fn_error $? "conditional \"XDMCP\" was never defined. 33459Usually this means the macro was only invoked conditionally." "$LINENO" 5 33460fi 33461if test -z "${XDMAUTH_TRUE}" && test -z "${XDMAUTH_FALSE}"; then 33462 as_fn_error $? "conditional \"XDMAUTH\" was never defined. 33463Usually this means the macro was only invoked conditionally." "$LINENO" 5 33464fi 33465if test -z "${XF86VIDMODE_TRUE}" && test -z "${XF86VIDMODE_FALSE}"; then 33466 as_fn_error $? "conditional \"XF86VIDMODE\" was never defined. 33467Usually this means the macro was only invoked conditionally." "$LINENO" 5 33468fi 33469if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then 33470 as_fn_error $? "conditional \"DEBUG\" was never defined. 33471Usually this means the macro was only invoked conditionally." "$LINENO" 5 33472fi 33473if test -z "${HAVE_LIBUNWIND_TRUE}" && test -z "${HAVE_LIBUNWIND_FALSE}"; then 33474 as_fn_error $? "conditional \"HAVE_LIBUNWIND\" was never defined. 33475Usually this means the macro was only invoked conditionally." "$LINENO" 5 33476fi 33477if test -z "${CYGWIN_TRUE}" && test -z "${CYGWIN_FALSE}"; then 33478 as_fn_error $? "conditional \"CYGWIN\" was never defined. 33479Usually this means the macro was only invoked conditionally." "$LINENO" 5 33480fi 33481if test -z "${NO_UNDEFINED_TRUE}" && test -z "${NO_UNDEFINED_FALSE}"; then 33482 as_fn_error $? "conditional \"NO_UNDEFINED\" was never defined. 33483Usually this means the macro was only invoked conditionally." "$LINENO" 5 33484fi 33485if test -z "${XVFB_TRUE}" && test -z "${XVFB_FALSE}"; then 33486 as_fn_error $? "conditional \"XVFB\" was never defined. 33487Usually this means the macro was only invoked conditionally." "$LINENO" 5 33488fi 33489if test -z "${XNEST_TRUE}" && test -z "${XNEST_FALSE}"; then 33490 as_fn_error $? "conditional \"XNEST\" was never defined. 33491Usually this means the macro was only invoked conditionally." "$LINENO" 5 33492fi 33493if test -z "${XORG_TRUE}" && test -z "${XORG_FALSE}"; then 33494 as_fn_error $? "conditional \"XORG\" was never defined. 33495Usually this means the macro was only invoked conditionally." "$LINENO" 5 33496fi 33497if test -z "${XORG_BUS_PCI_TRUE}" && test -z "${XORG_BUS_PCI_FALSE}"; then 33498 as_fn_error $? "conditional \"XORG_BUS_PCI\" was never defined. 33499Usually this means the macro was only invoked conditionally." "$LINENO" 5 33500fi 33501if test -z "${XORG_BUS_BSDPCI_TRUE}" && test -z "${XORG_BUS_BSDPCI_FALSE}"; then 33502 as_fn_error $? "conditional \"XORG_BUS_BSDPCI\" was never defined. 33503Usually this means the macro was only invoked conditionally." "$LINENO" 5 33504fi 33505if test -z "${XORG_BUS_SPARC_TRUE}" && test -z "${XORG_BUS_SPARC_FALSE}"; then 33506 as_fn_error $? "conditional \"XORG_BUS_SPARC\" was never defined. 33507Usually this means the macro was only invoked conditionally." "$LINENO" 5 33508fi 33509if test -z "${LNXACPI_TRUE}" && test -z "${LNXACPI_FALSE}"; then 33510 as_fn_error $? "conditional \"LNXACPI\" was never defined. 33511Usually this means the macro was only invoked conditionally." "$LINENO" 5 33512fi 33513if test -z "${LNXAPM_TRUE}" && test -z "${LNXAPM_FALSE}"; then 33514 as_fn_error $? "conditional \"LNXAPM\" was never defined. 33515Usually this means the macro was only invoked conditionally." "$LINENO" 5 33516fi 33517if test -z "${SOLARIS_VT_TRUE}" && test -z "${SOLARIS_VT_FALSE}"; then 33518 as_fn_error $? "conditional \"SOLARIS_VT\" was never defined. 33519Usually this means the macro was only invoked conditionally." "$LINENO" 5 33520fi 33521if test -z "${DGA_TRUE}" && test -z "${DGA_FALSE}"; then 33522 as_fn_error $? "conditional \"DGA\" was never defined. 33523Usually this means the macro was only invoked conditionally." "$LINENO" 5 33524fi 33525if test -z "${XORG_BUS_PLATFORM_TRUE}" && test -z "${XORG_BUS_PLATFORM_FALSE}"; then 33526 as_fn_error $? "conditional \"XORG_BUS_PLATFORM\" was never defined. 33527Usually this means the macro was only invoked conditionally." "$LINENO" 5 33528fi 33529if test -z "${XORG_DRIVER_MODESETTING_TRUE}" && test -z "${XORG_DRIVER_MODESETTING_FALSE}"; then 33530 as_fn_error $? "conditional \"XORG_DRIVER_MODESETTING\" was never defined. 33531Usually this means the macro was only invoked conditionally." "$LINENO" 5 33532fi 33533if test -z "${XORG_DRIVER_INPUT_INPUTTEST_TRUE}" && test -z "${XORG_DRIVER_INPUT_INPUTTEST_FALSE}"; then 33534 as_fn_error $? "conditional \"XORG_DRIVER_INPUT_INPUTTEST\" was never defined. 33535Usually this means the macro was only invoked conditionally." "$LINENO" 5 33536fi 33537if test -z "${GLAMOR_TRUE}" && test -z "${GLAMOR_FALSE}"; then 33538 as_fn_error $? "conditional \"GLAMOR\" was never defined. 33539Usually this means the macro was only invoked conditionally." "$LINENO" 5 33540fi 33541if test -z "${GLAMOR_EGL_TRUE}" && test -z "${GLAMOR_EGL_FALSE}"; then 33542 as_fn_error $? "conditional \"GLAMOR_EGL\" was never defined. 33543Usually this means the macro was only invoked conditionally." "$LINENO" 5 33544fi 33545if test -z "${XWIN_TRUE}" && test -z "${XWIN_FALSE}"; then 33546 as_fn_error $? "conditional \"XWIN\" was never defined. 33547Usually this means the macro was only invoked conditionally." "$LINENO" 5 33548fi 33549if test -z "${XWIN_GLX_WINDOWS_TRUE}" && test -z "${XWIN_GLX_WINDOWS_FALSE}"; then 33550 as_fn_error $? "conditional \"XWIN_GLX_WINDOWS\" was never defined. 33551Usually this means the macro was only invoked conditionally." "$LINENO" 5 33552fi 33553if test -z "${XWIN_WINDOWS_DRI_TRUE}" && test -z "${XWIN_WINDOWS_DRI_FALSE}"; then 33554 as_fn_error $? "conditional \"XWIN_WINDOWS_DRI\" was never defined. 33555Usually this means the macro was only invoked conditionally." "$LINENO" 5 33556fi 33557if test -z "${PSEUDORAMIX_TRUE}" && test -z "${PSEUDORAMIX_FALSE}"; then 33558 as_fn_error $? "conditional \"PSEUDORAMIX\" was never defined. 33559Usually this means the macro was only invoked conditionally." "$LINENO" 5 33560fi 33561if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then 33562 as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined. 33563Usually this means the macro was only invoked conditionally." "$LINENO" 5 33564fi 33565if test -z "${XQUARTZ_TRUE}" && test -z "${XQUARTZ_FALSE}"; then 33566 as_fn_error $? "conditional \"XQUARTZ\" was never defined. 33567Usually this means the macro was only invoked conditionally." "$LINENO" 5 33568fi 33569if test -z "${XQUARTZ_SPARKLE_TRUE}" && test -z "${XQUARTZ_SPARKLE_FALSE}"; then 33570 as_fn_error $? "conditional \"XQUARTZ_SPARKLE\" was never defined. 33571Usually this means the macro was only invoked conditionally." "$LINENO" 5 33572fi 33573if test -z "${STANDALONE_XPBPROXY_TRUE}" && test -z "${STANDALONE_XPBPROXY_FALSE}"; then 33574 as_fn_error $? "conditional \"STANDALONE_XPBPROXY\" was never defined. 33575Usually this means the macro was only invoked conditionally." "$LINENO" 5 33576fi 33577if test -z "${KDRIVE_TRUE}" && test -z "${KDRIVE_FALSE}"; then 33578 as_fn_error $? "conditional \"KDRIVE\" was never defined. 33579Usually this means the macro was only invoked conditionally." "$LINENO" 5 33580fi 33581if test -z "${XEPHYR_TRUE}" && test -z "${XEPHYR_FALSE}"; then 33582 as_fn_error $? "conditional \"XEPHYR\" was never defined. 33583Usually this means the macro was only invoked conditionally." "$LINENO" 5 33584fi 33585 33586: "${CONFIG_STATUS=./config.status}" 33587ac_write_fail=0 33588ac_clean_files_save=$ac_clean_files 33589ac_clean_files="$ac_clean_files $CONFIG_STATUS" 33590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 33591printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 33592as_write_fail=0 33593cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 33594#! $SHELL 33595# Generated by $as_me. 33596# Run this file to recreate the current configuration. 33597# Compiler output produced by configure, useful for debugging 33598# configure, is in config.log if it exists. 33599 33600debug=false 33601ac_cs_recheck=false 33602ac_cs_silent=false 33603 33604SHELL=\${CONFIG_SHELL-$SHELL} 33605export SHELL 33606_ASEOF 33607cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 33608## -------------------- ## 33609## M4sh Initialization. ## 33610## -------------------- ## 33611 33612# Be more Bourne compatible 33613DUALCASE=1; export DUALCASE # for MKS sh 33614as_nop=: 33615if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 33616then : 33617 emulate sh 33618 NULLCMD=: 33619 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 33620 # is contrary to our usage. Disable this feature. 33621 alias -g '${1+"$@"}'='"$@"' 33622 setopt NO_GLOB_SUBST 33623else $as_nop 33624 case `(set -o) 2>/dev/null` in #( 33625 *posix*) : 33626 set -o posix ;; #( 33627 *) : 33628 ;; 33629esac 33630fi 33631 33632 33633 33634# Reset variables that may have inherited troublesome values from 33635# the environment. 33636 33637# IFS needs to be set, to space, tab, and newline, in precisely that order. 33638# (If _AS_PATH_WALK were called with IFS unset, it would have the 33639# side effect of setting IFS to empty, thus disabling word splitting.) 33640# Quoting is to prevent editors from complaining about space-tab. 33641as_nl=' 33642' 33643export as_nl 33644IFS=" "" $as_nl" 33645 33646PS1='$ ' 33647PS2='> ' 33648PS4='+ ' 33649 33650# Ensure predictable behavior from utilities with locale-dependent output. 33651LC_ALL=C 33652export LC_ALL 33653LANGUAGE=C 33654export LANGUAGE 33655 33656# We cannot yet rely on "unset" to work, but we need these variables 33657# to be unset--not just set to an empty or harmless value--now, to 33658# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 33659# also avoids known problems related to "unset" and subshell syntax 33660# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 33661for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 33662do eval test \${$as_var+y} \ 33663 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 33664done 33665 33666# Ensure that fds 0, 1, and 2 are open. 33667if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 33668if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 33669if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 33670 33671# The user is always right. 33672if ${PATH_SEPARATOR+false} :; then 33673 PATH_SEPARATOR=: 33674 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 33675 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 33676 PATH_SEPARATOR=';' 33677 } 33678fi 33679 33680 33681# Find who we are. Look in the path if we contain no directory separator. 33682as_myself= 33683case $0 in #(( 33684 *[\\/]* ) as_myself=$0 ;; 33685 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33686for as_dir in $PATH 33687do 33688 IFS=$as_save_IFS 33689 case $as_dir in #((( 33690 '') as_dir=./ ;; 33691 */) ;; 33692 *) as_dir=$as_dir/ ;; 33693 esac 33694 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 33695 done 33696IFS=$as_save_IFS 33697 33698 ;; 33699esac 33700# We did not find ourselves, most probably we were run as `sh COMMAND' 33701# in which case we are not to be found in the path. 33702if test "x$as_myself" = x; then 33703 as_myself=$0 33704fi 33705if test ! -f "$as_myself"; then 33706 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 33707 exit 1 33708fi 33709 33710 33711 33712# as_fn_error STATUS ERROR [LINENO LOG_FD] 33713# ---------------------------------------- 33714# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 33715# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 33716# script with STATUS, using 1 if that was 0. 33717as_fn_error () 33718{ 33719 as_status=$1; test $as_status -eq 0 && as_status=1 33720 if test "$4"; then 33721 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 33722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 33723 fi 33724 printf "%s\n" "$as_me: error: $2" >&2 33725 as_fn_exit $as_status 33726} # as_fn_error 33727 33728 33729 33730# as_fn_set_status STATUS 33731# ----------------------- 33732# Set $? to STATUS, without forking. 33733as_fn_set_status () 33734{ 33735 return $1 33736} # as_fn_set_status 33737 33738# as_fn_exit STATUS 33739# ----------------- 33740# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 33741as_fn_exit () 33742{ 33743 set +e 33744 as_fn_set_status $1 33745 exit $1 33746} # as_fn_exit 33747 33748# as_fn_unset VAR 33749# --------------- 33750# Portably unset VAR. 33751as_fn_unset () 33752{ 33753 { eval $1=; unset $1;} 33754} 33755as_unset=as_fn_unset 33756 33757# as_fn_append VAR VALUE 33758# ---------------------- 33759# Append the text in VALUE to the end of the definition contained in VAR. Take 33760# advantage of any shell optimizations that allow amortized linear growth over 33761# repeated appends, instead of the typical quadratic growth present in naive 33762# implementations. 33763if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 33764then : 33765 eval 'as_fn_append () 33766 { 33767 eval $1+=\$2 33768 }' 33769else $as_nop 33770 as_fn_append () 33771 { 33772 eval $1=\$$1\$2 33773 } 33774fi # as_fn_append 33775 33776# as_fn_arith ARG... 33777# ------------------ 33778# Perform arithmetic evaluation on the ARGs, and store the result in the 33779# global $as_val. Take advantage of shells that can avoid forks. The arguments 33780# must be portable across $(()) and expr. 33781if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 33782then : 33783 eval 'as_fn_arith () 33784 { 33785 as_val=$(( $* )) 33786 }' 33787else $as_nop 33788 as_fn_arith () 33789 { 33790 as_val=`expr "$@" || test $? -eq 1` 33791 } 33792fi # as_fn_arith 33793 33794 33795if expr a : '\(a\)' >/dev/null 2>&1 && 33796 test "X`expr 00001 : '.*\(...\)'`" = X001; then 33797 as_expr=expr 33798else 33799 as_expr=false 33800fi 33801 33802if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 33803 as_basename=basename 33804else 33805 as_basename=false 33806fi 33807 33808if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 33809 as_dirname=dirname 33810else 33811 as_dirname=false 33812fi 33813 33814as_me=`$as_basename -- "$0" || 33815$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 33816 X"$0" : 'X\(//\)$' \| \ 33817 X"$0" : 'X\(/\)' \| . 2>/dev/null || 33818printf "%s\n" X/"$0" | 33819 sed '/^.*\/\([^/][^/]*\)\/*$/{ 33820 s//\1/ 33821 q 33822 } 33823 /^X\/\(\/\/\)$/{ 33824 s//\1/ 33825 q 33826 } 33827 /^X\/\(\/\).*/{ 33828 s//\1/ 33829 q 33830 } 33831 s/.*/./; q'` 33832 33833# Avoid depending upon Character Ranges. 33834as_cr_letters='abcdefghijklmnopqrstuvwxyz' 33835as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 33836as_cr_Letters=$as_cr_letters$as_cr_LETTERS 33837as_cr_digits='0123456789' 33838as_cr_alnum=$as_cr_Letters$as_cr_digits 33839 33840 33841# Determine whether it's possible to make 'echo' print without a newline. 33842# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 33843# for compatibility with existing Makefiles. 33844ECHO_C= ECHO_N= ECHO_T= 33845case `echo -n x` in #((((( 33846-n*) 33847 case `echo 'xy\c'` in 33848 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 33849 xy) ECHO_C='\c';; 33850 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 33851 ECHO_T=' ';; 33852 esac;; 33853*) 33854 ECHO_N='-n';; 33855esac 33856 33857# For backward compatibility with old third-party macros, we provide 33858# the shell variables $as_echo and $as_echo_n. New code should use 33859# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 33860as_echo='printf %s\n' 33861as_echo_n='printf %s' 33862 33863rm -f conf$$ conf$$.exe conf$$.file 33864if test -d conf$$.dir; then 33865 rm -f conf$$.dir/conf$$.file 33866else 33867 rm -f conf$$.dir 33868 mkdir conf$$.dir 2>/dev/null 33869fi 33870if (echo >conf$$.file) 2>/dev/null; then 33871 if ln -s conf$$.file conf$$ 2>/dev/null; then 33872 as_ln_s='ln -s' 33873 # ... but there are two gotchas: 33874 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 33875 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 33876 # In both cases, we have to default to `cp -pR'. 33877 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 33878 as_ln_s='cp -pR' 33879 elif ln conf$$.file conf$$ 2>/dev/null; then 33880 as_ln_s=ln 33881 else 33882 as_ln_s='cp -pR' 33883 fi 33884else 33885 as_ln_s='cp -pR' 33886fi 33887rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 33888rmdir conf$$.dir 2>/dev/null 33889 33890 33891# as_fn_mkdir_p 33892# ------------- 33893# Create "$as_dir" as a directory, including parents if necessary. 33894as_fn_mkdir_p () 33895{ 33896 33897 case $as_dir in #( 33898 -*) as_dir=./$as_dir;; 33899 esac 33900 test -d "$as_dir" || eval $as_mkdir_p || { 33901 as_dirs= 33902 while :; do 33903 case $as_dir in #( 33904 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 33905 *) as_qdir=$as_dir;; 33906 esac 33907 as_dirs="'$as_qdir' $as_dirs" 33908 as_dir=`$as_dirname -- "$as_dir" || 33909$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 33910 X"$as_dir" : 'X\(//\)[^/]' \| \ 33911 X"$as_dir" : 'X\(//\)$' \| \ 33912 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 33913printf "%s\n" X"$as_dir" | 33914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 33915 s//\1/ 33916 q 33917 } 33918 /^X\(\/\/\)[^/].*/{ 33919 s//\1/ 33920 q 33921 } 33922 /^X\(\/\/\)$/{ 33923 s//\1/ 33924 q 33925 } 33926 /^X\(\/\).*/{ 33927 s//\1/ 33928 q 33929 } 33930 s/.*/./; q'` 33931 test -d "$as_dir" && break 33932 done 33933 test -z "$as_dirs" || eval "mkdir $as_dirs" 33934 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 33935 33936 33937} # as_fn_mkdir_p 33938if mkdir -p . 2>/dev/null; then 33939 as_mkdir_p='mkdir -p "$as_dir"' 33940else 33941 test -d ./-p && rmdir ./-p 33942 as_mkdir_p=false 33943fi 33944 33945 33946# as_fn_executable_p FILE 33947# ----------------------- 33948# Test if FILE is an executable regular file. 33949as_fn_executable_p () 33950{ 33951 test -f "$1" && test -x "$1" 33952} # as_fn_executable_p 33953as_test_x='test -x' 33954as_executable_p=as_fn_executable_p 33955 33956# Sed expression to map a string onto a valid CPP name. 33957as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 33958 33959# Sed expression to map a string onto a valid variable name. 33960as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 33961 33962 33963exec 6>&1 33964## ----------------------------------- ## 33965## Main body of $CONFIG_STATUS script. ## 33966## ----------------------------------- ## 33967_ASEOF 33968test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 33969 33970cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33971# Save the log message, to keep $0 and so on meaningful, and to 33972# report actual input values of CONFIG_FILES etc. instead of their 33973# values after options handling. 33974ac_log=" 33975This file was extended by xorg-server $as_me 21.1.13, which was 33976generated by GNU Autoconf 2.71. Invocation command line was 33977 33978 CONFIG_FILES = $CONFIG_FILES 33979 CONFIG_HEADERS = $CONFIG_HEADERS 33980 CONFIG_LINKS = $CONFIG_LINKS 33981 CONFIG_COMMANDS = $CONFIG_COMMANDS 33982 $ $0 $@ 33983 33984on `(hostname || uname -n) 2>/dev/null | sed 1q` 33985" 33986 33987_ACEOF 33988 33989case $ac_config_files in *" 33990"*) set x $ac_config_files; shift; ac_config_files=$*;; 33991esac 33992 33993case $ac_config_headers in *" 33994"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 33995esac 33996 33997 33998cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33999# Files that config.status was made for. 34000config_files="$ac_config_files" 34001config_headers="$ac_config_headers" 34002config_commands="$ac_config_commands" 34003 34004_ACEOF 34005 34006cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34007ac_cs_usage="\ 34008\`$as_me' instantiates files and other configuration actions 34009from templates according to the current configuration. Unless the files 34010and actions are specified as TAGs, all are instantiated by default. 34011 34012Usage: $0 [OPTION]... [TAG]... 34013 34014 -h, --help print this help, then exit 34015 -V, --version print version number and configuration settings, then exit 34016 --config print configuration, then exit 34017 -q, --quiet, --silent 34018 do not print progress messages 34019 -d, --debug don't remove temporary files 34020 --recheck update $as_me by reconfiguring in the same conditions 34021 --file=FILE[:TEMPLATE] 34022 instantiate the configuration file FILE 34023 --header=FILE[:TEMPLATE] 34024 instantiate the configuration header FILE 34025 34026Configuration files: 34027$config_files 34028 34029Configuration headers: 34030$config_headers 34031 34032Configuration commands: 34033$config_commands 34034 34035Report bugs to <https://gitlab.freedesktop.org/xorg/xserver/issues>." 34036 34037_ACEOF 34038ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 34039ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 34040cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34041ac_cs_config='$ac_cs_config_escaped' 34042ac_cs_version="\\ 34043xorg-server config.status 21.1.13 34044configured by $0, generated by GNU Autoconf 2.71, 34045 with options \\"\$ac_cs_config\\" 34046 34047Copyright (C) 2021 Free Software Foundation, Inc. 34048This config.status script is free software; the Free Software Foundation 34049gives unlimited permission to copy, distribute and modify it." 34050 34051ac_pwd='$ac_pwd' 34052srcdir='$srcdir' 34053INSTALL='$INSTALL' 34054MKDIR_P='$MKDIR_P' 34055AWK='$AWK' 34056test -n "\$AWK" || AWK=awk 34057_ACEOF 34058 34059cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34060# The default lists apply if the user does not specify any file. 34061ac_need_defaults=: 34062while test $# != 0 34063do 34064 case $1 in 34065 --*=?*) 34066 ac_option=`expr "X$1" : 'X\([^=]*\)='` 34067 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 34068 ac_shift=: 34069 ;; 34070 --*=) 34071 ac_option=`expr "X$1" : 'X\([^=]*\)='` 34072 ac_optarg= 34073 ac_shift=: 34074 ;; 34075 *) 34076 ac_option=$1 34077 ac_optarg=$2 34078 ac_shift=shift 34079 ;; 34080 esac 34081 34082 case $ac_option in 34083 # Handling of the options. 34084 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 34085 ac_cs_recheck=: ;; 34086 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 34087 printf "%s\n" "$ac_cs_version"; exit ;; 34088 --config | --confi | --conf | --con | --co | --c ) 34089 printf "%s\n" "$ac_cs_config"; exit ;; 34090 --debug | --debu | --deb | --de | --d | -d ) 34091 debug=: ;; 34092 --file | --fil | --fi | --f ) 34093 $ac_shift 34094 case $ac_optarg in 34095 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 34096 '') as_fn_error $? "missing file argument" ;; 34097 esac 34098 as_fn_append CONFIG_FILES " '$ac_optarg'" 34099 ac_need_defaults=false;; 34100 --header | --heade | --head | --hea ) 34101 $ac_shift 34102 case $ac_optarg in 34103 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 34104 esac 34105 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 34106 ac_need_defaults=false;; 34107 --he | --h) 34108 # Conflict between --help and --header 34109 as_fn_error $? "ambiguous option: \`$1' 34110Try \`$0 --help' for more information.";; 34111 --help | --hel | -h ) 34112 printf "%s\n" "$ac_cs_usage"; exit ;; 34113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 34114 | -silent | --silent | --silen | --sile | --sil | --si | --s) 34115 ac_cs_silent=: ;; 34116 34117 # This is an error. 34118 -*) as_fn_error $? "unrecognized option: \`$1' 34119Try \`$0 --help' for more information." ;; 34120 34121 *) as_fn_append ac_config_targets " $1" 34122 ac_need_defaults=false ;; 34123 34124 esac 34125 shift 34126done 34127 34128ac_configure_extra_args= 34129 34130if $ac_cs_silent; then 34131 exec 6>/dev/null 34132 ac_configure_extra_args="$ac_configure_extra_args --silent" 34133fi 34134 34135_ACEOF 34136cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34137if \$ac_cs_recheck; then 34138 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 34139 shift 34140 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 34141 CONFIG_SHELL='$SHELL' 34142 export CONFIG_SHELL 34143 exec "\$@" 34144fi 34145 34146_ACEOF 34147cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34148exec 5>>config.log 34149{ 34150 echo 34151 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 34152## Running $as_me. ## 34153_ASBOX 34154 printf "%s\n" "$ac_log" 34155} >&5 34156 34157_ACEOF 34158cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34159# 34160# INIT-COMMANDS 34161# 34162AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 34163 34164 34165# The HP-UX ksh and POSIX shell print the target directory to stdout 34166# if CDPATH is set. 34167(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 34168 34169sed_quote_subst='$sed_quote_subst' 34170double_quote_subst='$double_quote_subst' 34171delay_variable_subst='$delay_variable_subst' 34172macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 34173macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 34174enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 34175AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 34176DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 34177OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 34178enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 34179pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 34180enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 34181shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 34182SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 34183ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 34184PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 34185host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 34186host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 34187host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 34188build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 34189build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 34190build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 34191SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 34192Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 34193GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 34194EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 34195FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 34196LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 34197NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 34198LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 34199max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 34200ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 34201exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 34202lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 34203lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 34204lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 34205lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 34206lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 34207reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 34208reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 34209FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 34210deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 34211file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 34212file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 34213want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 34214sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 34215AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 34216lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 34217AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 34218archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 34219STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 34220RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 34221old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 34222old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 34223old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 34224lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 34225CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 34226CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 34227compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 34228GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 34229lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 34230lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 34231lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 34232lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 34233lt_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"`' 34234lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 34235nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 34236lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 34237lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 34238objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 34239MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 34240lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 34241lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 34242lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 34243lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 34244lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 34245need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 34246MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 34247DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 34248NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 34249LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 34250OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 34251OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 34252libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 34253shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 34254extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 34255archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 34256enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 34257export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 34258whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 34259compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 34260old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 34261old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 34262archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 34263archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 34264module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 34265module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 34266with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 34267allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 34268no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 34269hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 34270hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 34271hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 34272hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 34273hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 34274hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 34275hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 34276inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 34277link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 34278always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 34279export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 34280exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 34281include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 34282prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 34283postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 34284file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 34285variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 34286need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 34287need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 34288version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 34289runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 34290shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 34291shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 34292libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 34293library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 34294soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 34295install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 34296postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 34297postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 34298finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 34299finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 34300hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 34301sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 34302configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 34303configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 34304hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 34305enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 34306enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 34307enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 34308old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 34309striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 34310 34311LTCC='$LTCC' 34312LTCFLAGS='$LTCFLAGS' 34313compiler='$compiler_DEFAULT' 34314 34315# A function that is used when there is no print builtin or printf. 34316func_fallback_echo () 34317{ 34318 eval 'cat <<_LTECHO_EOF 34319\$1 34320_LTECHO_EOF' 34321} 34322 34323# Quote evaled strings. 34324for var in AS \ 34325DLLTOOL \ 34326OBJDUMP \ 34327SHELL \ 34328ECHO \ 34329PATH_SEPARATOR \ 34330SED \ 34331GREP \ 34332EGREP \ 34333FGREP \ 34334LD \ 34335NM \ 34336LN_S \ 34337lt_SP2NL \ 34338lt_NL2SP \ 34339reload_flag \ 34340FILECMD \ 34341deplibs_check_method \ 34342file_magic_cmd \ 34343file_magic_glob \ 34344want_nocaseglob \ 34345sharedlib_from_linklib_cmd \ 34346AR \ 34347archiver_list_spec \ 34348STRIP \ 34349RANLIB \ 34350CC \ 34351CFLAGS \ 34352compiler \ 34353lt_cv_sys_global_symbol_pipe \ 34354lt_cv_sys_global_symbol_to_cdecl \ 34355lt_cv_sys_global_symbol_to_import \ 34356lt_cv_sys_global_symbol_to_c_name_address \ 34357lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 34358lt_cv_nm_interface \ 34359nm_file_list_spec \ 34360lt_cv_truncate_bin \ 34361lt_prog_compiler_no_builtin_flag \ 34362lt_prog_compiler_pic \ 34363lt_prog_compiler_wl \ 34364lt_prog_compiler_static \ 34365lt_cv_prog_compiler_c_o \ 34366need_locks \ 34367MANIFEST_TOOL \ 34368DSYMUTIL \ 34369NMEDIT \ 34370LIPO \ 34371OTOOL \ 34372OTOOL64 \ 34373shrext_cmds \ 34374export_dynamic_flag_spec \ 34375whole_archive_flag_spec \ 34376compiler_needs_object \ 34377with_gnu_ld \ 34378allow_undefined_flag \ 34379no_undefined_flag \ 34380hardcode_libdir_flag_spec \ 34381hardcode_libdir_separator \ 34382exclude_expsyms \ 34383include_expsyms \ 34384file_list_spec \ 34385variables_saved_for_relink \ 34386libname_spec \ 34387library_names_spec \ 34388soname_spec \ 34389install_override_mode \ 34390finish_eval \ 34391old_striplib \ 34392striplib; do 34393 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 34394 *[\\\\\\\`\\"\\\$]*) 34395 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 34396 ;; 34397 *) 34398 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 34399 ;; 34400 esac 34401done 34402 34403# Double-quote double-evaled strings. 34404for var in reload_cmds \ 34405old_postinstall_cmds \ 34406old_postuninstall_cmds \ 34407old_archive_cmds \ 34408extract_expsyms_cmds \ 34409old_archive_from_new_cmds \ 34410old_archive_from_expsyms_cmds \ 34411archive_cmds \ 34412archive_expsym_cmds \ 34413module_cmds \ 34414module_expsym_cmds \ 34415export_symbols_cmds \ 34416prelink_cmds \ 34417postlink_cmds \ 34418postinstall_cmds \ 34419postuninstall_cmds \ 34420finish_cmds \ 34421sys_lib_search_path_spec \ 34422configure_time_dlsearch_path \ 34423configure_time_lt_sys_library_path; do 34424 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 34425 *[\\\\\\\`\\"\\\$]*) 34426 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 34427 ;; 34428 *) 34429 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 34430 ;; 34431 esac 34432done 34433 34434ac_aux_dir='$ac_aux_dir' 34435 34436# See if we are running on zsh, and set the options that allow our 34437# commands through without removal of \ escapes INIT. 34438if test -n "\${ZSH_VERSION+set}"; then 34439 setopt NO_GLOB_SUBST 34440fi 34441 34442 34443 PACKAGE='$PACKAGE' 34444 VERSION='$VERSION' 34445 RM='$RM' 34446 ofile='$ofile' 34447 34448 34449 34450 34451_ACEOF 34452 34453cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34454 34455# Handling of arguments. 34456for ac_config_target in $ac_config_targets 34457do 34458 case $ac_config_target in 34459 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 34460 "include/do-not-use-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/do-not-use-config.h" ;; 34461 "include/xorg-server.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-server.h" ;; 34462 "include/dix-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/dix-config.h" ;; 34463 "include/xorg-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-config.h" ;; 34464 "include/xkb-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xkb-config.h" ;; 34465 "include/xwin-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xwin-config.h" ;; 34466 "include/version-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/version-config.h" ;; 34467 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 34468 "sdksyms") CONFIG_COMMANDS="$CONFIG_COMMANDS sdksyms" ;; 34469 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 34470 "glx/Makefile") CONFIG_FILES="$CONFIG_FILES glx/Makefile" ;; 34471 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 34472 "composite/Makefile") CONFIG_FILES="$CONFIG_FILES composite/Makefile" ;; 34473 "damageext/Makefile") CONFIG_FILES="$CONFIG_FILES damageext/Makefile" ;; 34474 "dbe/Makefile") CONFIG_FILES="$CONFIG_FILES dbe/Makefile" ;; 34475 "dix/Makefile") CONFIG_FILES="$CONFIG_FILES dix/Makefile" ;; 34476 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 34477 "doc/dtrace/Makefile") CONFIG_FILES="$CONFIG_FILES doc/dtrace/Makefile" ;; 34478 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 34479 "fb/Makefile") CONFIG_FILES="$CONFIG_FILES fb/Makefile" ;; 34480 "glamor/Makefile") CONFIG_FILES="$CONFIG_FILES glamor/Makefile" ;; 34481 "record/Makefile") CONFIG_FILES="$CONFIG_FILES record/Makefile" ;; 34482 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;; 34483 "mi/Makefile") CONFIG_FILES="$CONFIG_FILES mi/Makefile" ;; 34484 "miext/Makefile") CONFIG_FILES="$CONFIG_FILES miext/Makefile" ;; 34485 "miext/sync/Makefile") CONFIG_FILES="$CONFIG_FILES miext/sync/Makefile" ;; 34486 "miext/damage/Makefile") CONFIG_FILES="$CONFIG_FILES miext/damage/Makefile" ;; 34487 "miext/shadow/Makefile") CONFIG_FILES="$CONFIG_FILES miext/shadow/Makefile" ;; 34488 "miext/rootless/Makefile") CONFIG_FILES="$CONFIG_FILES miext/rootless/Makefile" ;; 34489 "os/Makefile") CONFIG_FILES="$CONFIG_FILES os/Makefile" ;; 34490 "pseudoramiX/Makefile") CONFIG_FILES="$CONFIG_FILES pseudoramiX/Makefile" ;; 34491 "randr/Makefile") CONFIG_FILES="$CONFIG_FILES randr/Makefile" ;; 34492 "render/Makefile") CONFIG_FILES="$CONFIG_FILES render/Makefile" ;; 34493 "xkb/Makefile") CONFIG_FILES="$CONFIG_FILES xkb/Makefile" ;; 34494 "Xext/Makefile") CONFIG_FILES="$CONFIG_FILES Xext/Makefile" ;; 34495 "Xi/Makefile") CONFIG_FILES="$CONFIG_FILES Xi/Makefile" ;; 34496 "xfixes/Makefile") CONFIG_FILES="$CONFIG_FILES xfixes/Makefile" ;; 34497 "exa/Makefile") CONFIG_FILES="$CONFIG_FILES exa/Makefile" ;; 34498 "dri3/Makefile") CONFIG_FILES="$CONFIG_FILES dri3/Makefile" ;; 34499 "present/Makefile") CONFIG_FILES="$CONFIG_FILES present/Makefile" ;; 34500 "hw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/Makefile" ;; 34501 "hw/xfree86/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/Makefile" ;; 34502 "hw/xfree86/Xorg.sh") CONFIG_FILES="$CONFIG_FILES hw/xfree86/Xorg.sh" ;; 34503 "hw/xfree86/common/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/common/Makefile" ;; 34504 "hw/xfree86/ddc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ddc/Makefile" ;; 34505 "hw/xfree86/dixmods/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dixmods/Makefile" ;; 34506 "hw/xfree86/doc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/doc/Makefile" ;; 34507 "hw/xfree86/dri/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri/Makefile" ;; 34508 "hw/xfree86/dri2/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri2/Makefile" ;; 34509 "hw/xfree86/dri2/pci_ids/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri2/pci_ids/Makefile" ;; 34510 "hw/xfree86/drivers/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/drivers/Makefile" ;; 34511 "hw/xfree86/drivers/inputtest/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/drivers/inputtest/Makefile" ;; 34512 "hw/xfree86/drivers/modesetting/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/drivers/modesetting/Makefile" ;; 34513 "hw/xfree86/exa/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/exa/Makefile" ;; 34514 "hw/xfree86/exa/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/exa/man/Makefile" ;; 34515 "hw/xfree86/fbdevhw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/fbdevhw/Makefile" ;; 34516 "hw/xfree86/fbdevhw/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/fbdevhw/man/Makefile" ;; 34517 "hw/xfree86/glamor_egl/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/glamor_egl/Makefile" ;; 34518 "hw/xfree86/i2c/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/i2c/Makefile" ;; 34519 "hw/xfree86/int10/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/int10/Makefile" ;; 34520 "hw/xfree86/loader/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/loader/Makefile" ;; 34521 "hw/xfree86/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/man/Makefile" ;; 34522 "hw/xfree86/modes/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/modes/Makefile" ;; 34523 "hw/xfree86/os-support/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/Makefile" ;; 34524 "hw/xfree86/os-support/bsd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bsd/Makefile" ;; 34525 "hw/xfree86/os-support/bus/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bus/Makefile" ;; 34526 "hw/xfree86/os-support/hurd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/hurd/Makefile" ;; 34527 "hw/xfree86/os-support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/misc/Makefile" ;; 34528 "hw/xfree86/os-support/linux/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/linux/Makefile" ;; 34529 "hw/xfree86/os-support/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/solaris/Makefile" ;; 34530 "hw/xfree86/os-support/stub/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/stub/Makefile" ;; 34531 "hw/xfree86/parser/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/parser/Makefile" ;; 34532 "hw/xfree86/ramdac/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ramdac/Makefile" ;; 34533 "hw/xfree86/shadowfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/shadowfb/Makefile" ;; 34534 "hw/xfree86/vgahw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/vgahw/Makefile" ;; 34535 "hw/xfree86/x86emu/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/x86emu/Makefile" ;; 34536 "hw/xfree86/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/xkb/Makefile" ;; 34537 "hw/xfree86/utils/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/Makefile" ;; 34538 "hw/xfree86/utils/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/man/Makefile" ;; 34539 "hw/xfree86/utils/gtf/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/gtf/Makefile" ;; 34540 "hw/vfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/vfb/Makefile" ;; 34541 "hw/vfb/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/vfb/man/Makefile" ;; 34542 "hw/xnest/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xnest/Makefile" ;; 34543 "hw/xnest/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xnest/man/Makefile" ;; 34544 "hw/xwin/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/Makefile" ;; 34545 "hw/xwin/dri/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/dri/Makefile" ;; 34546 "hw/xwin/glx/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/glx/Makefile" ;; 34547 "hw/xwin/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/man/Makefile" ;; 34548 "hw/xwin/winclipboard/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/winclipboard/Makefile" ;; 34549 "hw/xquartz/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/Makefile" ;; 34550 "hw/xquartz/GL/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/GL/Makefile" ;; 34551 "hw/xquartz/bundle/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/bundle/Makefile" ;; 34552 "hw/xquartz/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/man/Makefile" ;; 34553 "hw/xquartz/mach-startup/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/mach-startup/Makefile" ;; 34554 "hw/xquartz/pbproxy/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/pbproxy/Makefile" ;; 34555 "hw/xquartz/xpr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/xpr/Makefile" ;; 34556 "hw/kdrive/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/Makefile" ;; 34557 "hw/kdrive/ephyr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/ephyr/Makefile" ;; 34558 "hw/kdrive/ephyr/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/ephyr/man/Makefile" ;; 34559 "hw/kdrive/src/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/src/Makefile" ;; 34560 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 34561 "xserver.ent") CONFIG_FILES="$CONFIG_FILES xserver.ent" ;; 34562 "xorg-server.pc") CONFIG_FILES="$CONFIG_FILES xorg-server.pc" ;; 34563 34564 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 34565 esac 34566done 34567 34568 34569# If the user did not use the arguments to specify the items to instantiate, 34570# then the envvar interface is used. Set only those that are not. 34571# We use the long form for the default assignment because of an extremely 34572# bizarre bug on SunOS 4.1.3. 34573if $ac_need_defaults; then 34574 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 34575 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 34576 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 34577fi 34578 34579# Have a temporary directory for convenience. Make it in the build tree 34580# simply because there is no reason against having it here, and in addition, 34581# creating and moving files from /tmp can sometimes cause problems. 34582# Hook for its removal unless debugging. 34583# Note that there is a small window in which the directory will not be cleaned: 34584# after its creation but before its name has been assigned to `$tmp'. 34585$debug || 34586{ 34587 tmp= ac_tmp= 34588 trap 'exit_status=$? 34589 : "${ac_tmp:=$tmp}" 34590 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 34591' 0 34592 trap 'as_fn_exit 1' 1 2 13 15 34593} 34594# Create a (secure) tmp directory for tmp files. 34595 34596{ 34597 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 34598 test -d "$tmp" 34599} || 34600{ 34601 tmp=./conf$$-$RANDOM 34602 (umask 077 && mkdir "$tmp") 34603} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 34604ac_tmp=$tmp 34605 34606# Set up the scripts for CONFIG_FILES section. 34607# No need to generate them if there are no CONFIG_FILES. 34608# This happens for instance with `./config.status config.h'. 34609if test -n "$CONFIG_FILES"; then 34610 34611 34612ac_cr=`echo X | tr X '\015'` 34613# On cygwin, bash can eat \r inside `` if the user requested igncr. 34614# But we know of no other shell where ac_cr would be empty at this 34615# point, so we can use a bashism as a fallback. 34616if test "x$ac_cr" = x; then 34617 eval ac_cr=\$\'\\r\' 34618fi 34619ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 34620if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 34621 ac_cs_awk_cr='\\r' 34622else 34623 ac_cs_awk_cr=$ac_cr 34624fi 34625 34626echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 34627_ACEOF 34628 34629 34630{ 34631 echo "cat >conf$$subs.awk <<_ACEOF" && 34632 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 34633 echo "_ACEOF" 34634} >conf$$subs.sh || 34635 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 34636ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 34637ac_delim='%!_!# ' 34638for ac_last_try in false false false false false :; do 34639 . ./conf$$subs.sh || 34640 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 34641 34642 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 34643 if test $ac_delim_n = $ac_delim_num; then 34644 break 34645 elif $ac_last_try; then 34646 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 34647 else 34648 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 34649 fi 34650done 34651rm -f conf$$subs.sh 34652 34653cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34654cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 34655_ACEOF 34656sed -n ' 34657h 34658s/^/S["/; s/!.*/"]=/ 34659p 34660g 34661s/^[^!]*!// 34662:repl 34663t repl 34664s/'"$ac_delim"'$// 34665t delim 34666:nl 34667h 34668s/\(.\{148\}\)..*/\1/ 34669t more1 34670s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 34671p 34672n 34673b repl 34674:more1 34675s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 34676p 34677g 34678s/.\{148\}// 34679t nl 34680:delim 34681h 34682s/\(.\{148\}\)..*/\1/ 34683t more2 34684s/["\\]/\\&/g; s/^/"/; s/$/"/ 34685p 34686b 34687:more2 34688s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 34689p 34690g 34691s/.\{148\}// 34692t delim 34693' <conf$$subs.awk | sed ' 34694/^[^""]/{ 34695 N 34696 s/\n// 34697} 34698' >>$CONFIG_STATUS || ac_write_fail=1 34699rm -f conf$$subs.awk 34700cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34701_ACAWK 34702cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 34703 for (key in S) S_is_set[key] = 1 34704 FS = "" 34705 34706} 34707{ 34708 line = $ 0 34709 nfields = split(line, field, "@") 34710 substed = 0 34711 len = length(field[1]) 34712 for (i = 2; i < nfields; i++) { 34713 key = field[i] 34714 keylen = length(key) 34715 if (S_is_set[key]) { 34716 value = S[key] 34717 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 34718 len += length(value) + length(field[++i]) 34719 substed = 1 34720 } else 34721 len += 1 + keylen 34722 } 34723 34724 print line 34725} 34726 34727_ACAWK 34728_ACEOF 34729cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34730if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 34731 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 34732else 34733 cat 34734fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 34735 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 34736_ACEOF 34737 34738# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 34739# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 34740# trailing colons and then remove the whole line if VPATH becomes empty 34741# (actually we leave an empty line to preserve line numbers). 34742if test "x$srcdir" = x.; then 34743 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 34744h 34745s/// 34746s/^/:/ 34747s/[ ]*$/:/ 34748s/:\$(srcdir):/:/g 34749s/:\${srcdir}:/:/g 34750s/:@srcdir@:/:/g 34751s/^:*// 34752s/:*$// 34753x 34754s/\(=[ ]*\).*/\1/ 34755G 34756s/\n// 34757s/^[^=]*=[ ]*$// 34758}' 34759fi 34760 34761cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34762fi # test -n "$CONFIG_FILES" 34763 34764# Set up the scripts for CONFIG_HEADERS section. 34765# No need to generate them if there are no CONFIG_HEADERS. 34766# This happens for instance with `./config.status Makefile'. 34767if test -n "$CONFIG_HEADERS"; then 34768cat >"$ac_tmp/defines.awk" <<\_ACAWK || 34769BEGIN { 34770_ACEOF 34771 34772# Transform confdefs.h into an awk script `defines.awk', embedded as 34773# here-document in config.status, that substitutes the proper values into 34774# config.h.in to produce config.h. 34775 34776# Create a delimiter string that does not exist in confdefs.h, to ease 34777# handling of long lines. 34778ac_delim='%!_!# ' 34779for ac_last_try in false false :; do 34780 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 34781 if test -z "$ac_tt"; then 34782 break 34783 elif $ac_last_try; then 34784 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 34785 else 34786 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 34787 fi 34788done 34789 34790# For the awk script, D is an array of macro values keyed by name, 34791# likewise P contains macro parameters if any. Preserve backslash 34792# newline sequences. 34793 34794ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 34795sed -n ' 34796s/.\{148\}/&'"$ac_delim"'/g 34797t rset 34798:rset 34799s/^[ ]*#[ ]*define[ ][ ]*/ / 34800t def 34801d 34802:def 34803s/\\$// 34804t bsnl 34805s/["\\]/\\&/g 34806s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 34807D["\1"]=" \3"/p 34808s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 34809d 34810:bsnl 34811s/["\\]/\\&/g 34812s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 34813D["\1"]=" \3\\\\\\n"\\/p 34814t cont 34815s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 34816t cont 34817d 34818:cont 34819n 34820s/.\{148\}/&'"$ac_delim"'/g 34821t clear 34822:clear 34823s/\\$// 34824t bsnlc 34825s/["\\]/\\&/g; s/^/"/; s/$/"/p 34826d 34827:bsnlc 34828s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 34829b cont 34830' <confdefs.h | sed ' 34831s/'"$ac_delim"'/"\\\ 34832"/g' >>$CONFIG_STATUS || ac_write_fail=1 34833 34834cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34835 for (key in D) D_is_set[key] = 1 34836 FS = "" 34837} 34838/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 34839 line = \$ 0 34840 split(line, arg, " ") 34841 if (arg[1] == "#") { 34842 defundef = arg[2] 34843 mac1 = arg[3] 34844 } else { 34845 defundef = substr(arg[1], 2) 34846 mac1 = arg[2] 34847 } 34848 split(mac1, mac2, "(") #) 34849 macro = mac2[1] 34850 prefix = substr(line, 1, index(line, defundef) - 1) 34851 if (D_is_set[macro]) { 34852 # Preserve the white space surrounding the "#". 34853 print prefix "define", macro P[macro] D[macro] 34854 next 34855 } else { 34856 # Replace #undef with comments. This is necessary, for example, 34857 # in the case of _POSIX_SOURCE, which is predefined and required 34858 # on some systems where configure will not decide to define it. 34859 if (defundef == "undef") { 34860 print "/*", prefix defundef, macro, "*/" 34861 next 34862 } 34863 } 34864} 34865{ print } 34866_ACAWK 34867_ACEOF 34868cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34869 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 34870fi # test -n "$CONFIG_HEADERS" 34871 34872 34873eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 34874shift 34875for ac_tag 34876do 34877 case $ac_tag in 34878 :[FHLC]) ac_mode=$ac_tag; continue;; 34879 esac 34880 case $ac_mode$ac_tag in 34881 :[FHL]*:*);; 34882 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 34883 :[FH]-) ac_tag=-:-;; 34884 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 34885 esac 34886 ac_save_IFS=$IFS 34887 IFS=: 34888 set x $ac_tag 34889 IFS=$ac_save_IFS 34890 shift 34891 ac_file=$1 34892 shift 34893 34894 case $ac_mode in 34895 :L) ac_source=$1;; 34896 :[FH]) 34897 ac_file_inputs= 34898 for ac_f 34899 do 34900 case $ac_f in 34901 -) ac_f="$ac_tmp/stdin";; 34902 *) # Look for the file first in the build tree, then in the source tree 34903 # (if the path is not absolute). The absolute path cannot be DOS-style, 34904 # because $ac_f cannot contain `:'. 34905 test -f "$ac_f" || 34906 case $ac_f in 34907 [\\/$]*) false;; 34908 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 34909 esac || 34910 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 34911 esac 34912 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 34913 as_fn_append ac_file_inputs " '$ac_f'" 34914 done 34915 34916 # Let's still pretend it is `configure' which instantiates (i.e., don't 34917 # use $as_me), people would be surprised to read: 34918 # /* config.h. Generated by config.status. */ 34919 configure_input='Generated from '` 34920 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 34921 `' by configure.' 34922 if test x"$ac_file" != x-; then 34923 configure_input="$ac_file. $configure_input" 34924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 34925printf "%s\n" "$as_me: creating $ac_file" >&6;} 34926 fi 34927 # Neutralize special characters interpreted by sed in replacement strings. 34928 case $configure_input in #( 34929 *\&* | *\|* | *\\* ) 34930 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 34931 sed 's/[\\\\&|]/\\\\&/g'`;; #( 34932 *) ac_sed_conf_input=$configure_input;; 34933 esac 34934 34935 case $ac_tag in 34936 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 34937 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 34938 esac 34939 ;; 34940 esac 34941 34942 ac_dir=`$as_dirname -- "$ac_file" || 34943$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 34944 X"$ac_file" : 'X\(//\)[^/]' \| \ 34945 X"$ac_file" : 'X\(//\)$' \| \ 34946 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 34947printf "%s\n" X"$ac_file" | 34948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 34949 s//\1/ 34950 q 34951 } 34952 /^X\(\/\/\)[^/].*/{ 34953 s//\1/ 34954 q 34955 } 34956 /^X\(\/\/\)$/{ 34957 s//\1/ 34958 q 34959 } 34960 /^X\(\/\).*/{ 34961 s//\1/ 34962 q 34963 } 34964 s/.*/./; q'` 34965 as_dir="$ac_dir"; as_fn_mkdir_p 34966 ac_builddir=. 34967 34968case "$ac_dir" in 34969.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 34970*) 34971 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 34972 # A ".." for each directory in $ac_dir_suffix. 34973 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 34974 case $ac_top_builddir_sub in 34975 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 34976 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 34977 esac ;; 34978esac 34979ac_abs_top_builddir=$ac_pwd 34980ac_abs_builddir=$ac_pwd$ac_dir_suffix 34981# for backward compatibility: 34982ac_top_builddir=$ac_top_build_prefix 34983 34984case $srcdir in 34985 .) # We are building in place. 34986 ac_srcdir=. 34987 ac_top_srcdir=$ac_top_builddir_sub 34988 ac_abs_top_srcdir=$ac_pwd ;; 34989 [\\/]* | ?:[\\/]* ) # Absolute name. 34990 ac_srcdir=$srcdir$ac_dir_suffix; 34991 ac_top_srcdir=$srcdir 34992 ac_abs_top_srcdir=$srcdir ;; 34993 *) # Relative name. 34994 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 34995 ac_top_srcdir=$ac_top_build_prefix$srcdir 34996 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 34997esac 34998ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 34999 35000 35001 case $ac_mode in 35002 :F) 35003 # 35004 # CONFIG_FILE 35005 # 35006 35007 case $INSTALL in 35008 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 35009 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 35010 esac 35011 ac_MKDIR_P=$MKDIR_P 35012 case $MKDIR_P in 35013 [\\/$]* | ?:[\\/]* ) ;; 35014 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 35015 esac 35016_ACEOF 35017 35018cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35019# If the template does not know about datarootdir, expand it. 35020# FIXME: This hack should be removed a few years after 2.60. 35021ac_datarootdir_hack=; ac_datarootdir_seen= 35022ac_sed_dataroot=' 35023/datarootdir/ { 35024 p 35025 q 35026} 35027/@datadir@/p 35028/@docdir@/p 35029/@infodir@/p 35030/@localedir@/p 35031/@mandir@/p' 35032case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 35033*datarootdir*) ac_datarootdir_seen=yes;; 35034*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 35035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 35036printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 35037_ACEOF 35038cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 35039 ac_datarootdir_hack=' 35040 s&@datadir@&$datadir&g 35041 s&@docdir@&$docdir&g 35042 s&@infodir@&$infodir&g 35043 s&@localedir@&$localedir&g 35044 s&@mandir@&$mandir&g 35045 s&\\\${datarootdir}&$datarootdir&g' ;; 35046esac 35047_ACEOF 35048 35049# Neutralize VPATH when `$srcdir' = `.'. 35050# Shell code in configure.ac might set extrasub. 35051# FIXME: do we really want to maintain this feature? 35052cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 35053ac_sed_extra="$ac_vpsub 35054$extrasub 35055_ACEOF 35056cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35057:t 35058/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 35059s|@configure_input@|$ac_sed_conf_input|;t t 35060s&@top_builddir@&$ac_top_builddir_sub&;t t 35061s&@top_build_prefix@&$ac_top_build_prefix&;t t 35062s&@srcdir@&$ac_srcdir&;t t 35063s&@abs_srcdir@&$ac_abs_srcdir&;t t 35064s&@top_srcdir@&$ac_top_srcdir&;t t 35065s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 35066s&@builddir@&$ac_builddir&;t t 35067s&@abs_builddir@&$ac_abs_builddir&;t t 35068s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 35069s&@INSTALL@&$ac_INSTALL&;t t 35070s&@MKDIR_P@&$ac_MKDIR_P&;t t 35071$ac_datarootdir_hack 35072" 35073eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 35074 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 35075 35076test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 35077 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 35078 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 35079 "$ac_tmp/out"`; test -z "$ac_out"; } && 35080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 35081which seems to be undefined. Please make sure it is defined" >&5 35082printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 35083which seems to be undefined. Please make sure it is defined" >&2;} 35084 35085 rm -f "$ac_tmp/stdin" 35086 case $ac_file in 35087 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 35088 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 35089 esac \ 35090 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 35091 ;; 35092 :H) 35093 # 35094 # CONFIG_HEADER 35095 # 35096 if test x"$ac_file" != x-; then 35097 { 35098 printf "%s\n" "/* $configure_input */" >&1 \ 35099 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 35100 } >"$ac_tmp/config.h" \ 35101 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 35102 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 35103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 35104printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 35105 else 35106 rm -f "$ac_file" 35107 mv "$ac_tmp/config.h" "$ac_file" \ 35108 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 35109 fi 35110 else 35111 printf "%s\n" "/* $configure_input */" >&1 \ 35112 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 35113 || as_fn_error $? "could not create -" "$LINENO" 5 35114 fi 35115# Compute "$ac_file"'s index in $config_headers. 35116_am_arg="$ac_file" 35117_am_stamp_count=1 35118for _am_header in $config_headers :; do 35119 case $_am_header in 35120 $_am_arg | $_am_arg:* ) 35121 break ;; 35122 * ) 35123 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 35124 esac 35125done 35126echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 35127$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 35128 X"$_am_arg" : 'X\(//\)[^/]' \| \ 35129 X"$_am_arg" : 'X\(//\)$' \| \ 35130 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 35131printf "%s\n" X"$_am_arg" | 35132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 35133 s//\1/ 35134 q 35135 } 35136 /^X\(\/\/\)[^/].*/{ 35137 s//\1/ 35138 q 35139 } 35140 /^X\(\/\/\)$/{ 35141 s//\1/ 35142 q 35143 } 35144 /^X\(\/\).*/{ 35145 s//\1/ 35146 q 35147 } 35148 s/.*/./; q'`/stamp-h$_am_stamp_count 35149 ;; 35150 35151 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 35152printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 35153 ;; 35154 esac 35155 35156 35157 case $ac_file$ac_mode in 35158 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 35159 # Older Autoconf quotes --file arguments for eval, but not when files 35160 # are listed without --file. Let's play safe and only enable the eval 35161 # if we detect the quoting. 35162 # TODO: see whether this extra hack can be removed once we start 35163 # requiring Autoconf 2.70 or later. 35164 case $CONFIG_FILES in #( 35165 *\'*) : 35166 eval set x "$CONFIG_FILES" ;; #( 35167 *) : 35168 set x $CONFIG_FILES ;; #( 35169 *) : 35170 ;; 35171esac 35172 shift 35173 # Used to flag and report bootstrapping failures. 35174 am_rc=0 35175 for am_mf 35176 do 35177 # Strip MF so we end up with the name of the file. 35178 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 35179 # Check whether this is an Automake generated Makefile which includes 35180 # dependency-tracking related rules and includes. 35181 # Grep'ing the whole file directly is not great: AIX grep has a line 35182 # limit of 2048, but all sed's we know have understand at least 4000. 35183 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 35184 || continue 35185 am_dirpart=`$as_dirname -- "$am_mf" || 35186$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 35187 X"$am_mf" : 'X\(//\)[^/]' \| \ 35188 X"$am_mf" : 'X\(//\)$' \| \ 35189 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 35190printf "%s\n" X"$am_mf" | 35191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 35192 s//\1/ 35193 q 35194 } 35195 /^X\(\/\/\)[^/].*/{ 35196 s//\1/ 35197 q 35198 } 35199 /^X\(\/\/\)$/{ 35200 s//\1/ 35201 q 35202 } 35203 /^X\(\/\).*/{ 35204 s//\1/ 35205 q 35206 } 35207 s/.*/./; q'` 35208 am_filepart=`$as_basename -- "$am_mf" || 35209$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 35210 X"$am_mf" : 'X\(//\)$' \| \ 35211 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 35212printf "%s\n" X/"$am_mf" | 35213 sed '/^.*\/\([^/][^/]*\)\/*$/{ 35214 s//\1/ 35215 q 35216 } 35217 /^X\/\(\/\/\)$/{ 35218 s//\1/ 35219 q 35220 } 35221 /^X\/\(\/\).*/{ 35222 s//\1/ 35223 q 35224 } 35225 s/.*/./; q'` 35226 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 35227 && sed -e '/# am--include-marker/d' "$am_filepart" \ 35228 | $MAKE -f - am--depfiles" >&5 35229 (cd "$am_dirpart" \ 35230 && sed -e '/# am--include-marker/d' "$am_filepart" \ 35231 | $MAKE -f - am--depfiles) >&5 2>&5 35232 ac_status=$? 35233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35234 (exit $ac_status); } || am_rc=$? 35235 done 35236 if test $am_rc -ne 0; then 35237 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 35238printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 35239as_fn_error $? "Something went wrong bootstrapping makefile fragments 35240 for automatic dependency tracking. If GNU make was not used, consider 35241 re-running the configure script with MAKE=\"gmake\" (or whatever is 35242 necessary). You can also try re-running configure with the 35243 '--disable-dependency-tracking' option to at least be able to build 35244 the package (albeit without support for automatic dependency tracking). 35245See \`config.log' for more details" "$LINENO" 5; } 35246 fi 35247 { am_dirpart=; unset am_dirpart;} 35248 { am_filepart=; unset am_filepart;} 35249 { am_mf=; unset am_mf;} 35250 { am_rc=; unset am_rc;} 35251 rm -f conftest-deps.mk 35252} 35253 ;; 35254 "libtool":C) 35255 35256 # See if we are running on zsh, and set the options that allow our 35257 # commands through without removal of \ escapes. 35258 if test -n "${ZSH_VERSION+set}"; then 35259 setopt NO_GLOB_SUBST 35260 fi 35261 35262 cfgfile=${ofile}T 35263 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 35264 $RM "$cfgfile" 35265 35266 cat <<_LT_EOF >> "$cfgfile" 35267#! $SHELL 35268# Generated automatically by $as_me ($PACKAGE) $VERSION 35269# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 35270# NOTE: Changes made to this file will be lost: look at ltmain.sh. 35271 35272# Provide generalized library-building support services. 35273# Written by Gordon Matzigkeit, 1996 35274 35275# Copyright (C) 2014 Free Software Foundation, Inc. 35276# This is free software; see the source for copying conditions. There is NO 35277# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 35278 35279# GNU Libtool is free software; you can redistribute it and/or modify 35280# it under the terms of the GNU General Public License as published by 35281# the Free Software Foundation; either version 2 of of the License, or 35282# (at your option) any later version. 35283# 35284# As a special exception to the GNU General Public License, if you 35285# distribute this file as part of a program or library that is built 35286# using GNU Libtool, you may include this file under the same 35287# distribution terms that you use for the rest of that program. 35288# 35289# GNU Libtool is distributed in the hope that it will be useful, but 35290# WITHOUT ANY WARRANTY; without even the implied warranty of 35291# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 35292# GNU General Public License for more details. 35293# 35294# You should have received a copy of the GNU General Public License 35295# along with this program. If not, see <http://www.gnu.org/licenses/>. 35296 35297 35298# The names of the tagged configurations supported by this script. 35299available_tags='' 35300 35301# Configured defaults for sys_lib_dlsearch_path munging. 35302: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 35303 35304# ### BEGIN LIBTOOL CONFIG 35305 35306# Which release of libtool.m4 was used? 35307macro_version=$macro_version 35308macro_revision=$macro_revision 35309 35310# Whether or not to build static libraries. 35311build_old_libs=$enable_static 35312 35313# Assembler program. 35314AS=$lt_AS 35315 35316# DLL creation program. 35317DLLTOOL=$lt_DLLTOOL 35318 35319# Object dumper program. 35320OBJDUMP=$lt_OBJDUMP 35321 35322# Whether or not to build shared libraries. 35323build_libtool_libs=$enable_shared 35324 35325# What type of objects to build. 35326pic_mode=$pic_mode 35327 35328# Whether or not to optimize for fast installation. 35329fast_install=$enable_fast_install 35330 35331# Shared archive member basename,for filename based shared library versioning on AIX. 35332shared_archive_member_spec=$shared_archive_member_spec 35333 35334# Shell to use when invoking shell scripts. 35335SHELL=$lt_SHELL 35336 35337# An echo program that protects backslashes. 35338ECHO=$lt_ECHO 35339 35340# The PATH separator for the build system. 35341PATH_SEPARATOR=$lt_PATH_SEPARATOR 35342 35343# The host system. 35344host_alias=$host_alias 35345host=$host 35346host_os=$host_os 35347 35348# The build system. 35349build_alias=$build_alias 35350build=$build 35351build_os=$build_os 35352 35353# A sed program that does not truncate output. 35354SED=$lt_SED 35355 35356# Sed that helps us avoid accidentally triggering echo(1) options like -n. 35357Xsed="\$SED -e 1s/^X//" 35358 35359# A grep program that handles long lines. 35360GREP=$lt_GREP 35361 35362# An ERE matcher. 35363EGREP=$lt_EGREP 35364 35365# A literal string matcher. 35366FGREP=$lt_FGREP 35367 35368# A BSD- or MS-compatible name lister. 35369NM=$lt_NM 35370 35371# Whether we need soft or hard links. 35372LN_S=$lt_LN_S 35373 35374# What is the maximum length of a command? 35375max_cmd_len=$max_cmd_len 35376 35377# Object file suffix (normally "o"). 35378objext=$ac_objext 35379 35380# Executable file suffix (normally ""). 35381exeext=$exeext 35382 35383# whether the shell understands "unset". 35384lt_unset=$lt_unset 35385 35386# turn spaces into newlines. 35387SP2NL=$lt_lt_SP2NL 35388 35389# turn newlines into spaces. 35390NL2SP=$lt_lt_NL2SP 35391 35392# convert \$build file names to \$host format. 35393to_host_file_cmd=$lt_cv_to_host_file_cmd 35394 35395# convert \$build files to toolchain format. 35396to_tool_file_cmd=$lt_cv_to_tool_file_cmd 35397 35398# A file(cmd) program that detects file types. 35399FILECMD=$lt_FILECMD 35400 35401# Method to check whether dependent libraries are shared objects. 35402deplibs_check_method=$lt_deplibs_check_method 35403 35404# Command to use when deplibs_check_method = "file_magic". 35405file_magic_cmd=$lt_file_magic_cmd 35406 35407# How to find potential files when deplibs_check_method = "file_magic". 35408file_magic_glob=$lt_file_magic_glob 35409 35410# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 35411want_nocaseglob=$lt_want_nocaseglob 35412 35413# Command to associate shared and link libraries. 35414sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 35415 35416# The archiver. 35417AR=$lt_AR 35418 35419# Flags to create an archive (by configure). 35420lt_ar_flags=$lt_ar_flags 35421 35422# Flags to create an archive. 35423AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 35424 35425# How to feed a file listing to the archiver. 35426archiver_list_spec=$lt_archiver_list_spec 35427 35428# A symbol stripping program. 35429STRIP=$lt_STRIP 35430 35431# Commands used to install an old-style archive. 35432RANLIB=$lt_RANLIB 35433old_postinstall_cmds=$lt_old_postinstall_cmds 35434old_postuninstall_cmds=$lt_old_postuninstall_cmds 35435 35436# Whether to use a lock for old archive extraction. 35437lock_old_archive_extraction=$lock_old_archive_extraction 35438 35439# A C compiler. 35440LTCC=$lt_CC 35441 35442# LTCC compiler flags. 35443LTCFLAGS=$lt_CFLAGS 35444 35445# Take the output of nm and produce a listing of raw symbols and C names. 35446global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 35447 35448# Transform the output of nm in a proper C declaration. 35449global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 35450 35451# Transform the output of nm into a list of symbols to manually relocate. 35452global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 35453 35454# Transform the output of nm in a C name address pair. 35455global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 35456 35457# Transform the output of nm in a C name address pair when lib prefix is needed. 35458global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 35459 35460# The name lister interface. 35461nm_interface=$lt_lt_cv_nm_interface 35462 35463# Specify filename containing input files for \$NM. 35464nm_file_list_spec=$lt_nm_file_list_spec 35465 35466# The root where to search for dependent libraries,and where our libraries should be installed. 35467lt_sysroot=$lt_sysroot 35468 35469# Command to truncate a binary pipe. 35470lt_truncate_bin=$lt_lt_cv_truncate_bin 35471 35472# The name of the directory that contains temporary libtool files. 35473objdir=$objdir 35474 35475# Used to examine libraries when file_magic_cmd begins with "file". 35476MAGIC_CMD=$MAGIC_CMD 35477 35478# Must we lock files when doing compilation? 35479need_locks=$lt_need_locks 35480 35481# Manifest tool. 35482MANIFEST_TOOL=$lt_MANIFEST_TOOL 35483 35484# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 35485DSYMUTIL=$lt_DSYMUTIL 35486 35487# Tool to change global to local symbols on Mac OS X. 35488NMEDIT=$lt_NMEDIT 35489 35490# Tool to manipulate fat objects and archives on Mac OS X. 35491LIPO=$lt_LIPO 35492 35493# ldd/readelf like tool for Mach-O binaries on Mac OS X. 35494OTOOL=$lt_OTOOL 35495 35496# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 35497OTOOL64=$lt_OTOOL64 35498 35499# Old archive suffix (normally "a"). 35500libext=$libext 35501 35502# Shared library suffix (normally ".so"). 35503shrext_cmds=$lt_shrext_cmds 35504 35505# The commands to extract the exported symbol list from a shared archive. 35506extract_expsyms_cmds=$lt_extract_expsyms_cmds 35507 35508# Variables whose values should be saved in libtool wrapper scripts and 35509# restored at link time. 35510variables_saved_for_relink=$lt_variables_saved_for_relink 35511 35512# Do we need the "lib" prefix for modules? 35513need_lib_prefix=$need_lib_prefix 35514 35515# Do we need a version for libraries? 35516need_version=$need_version 35517 35518# Library versioning type. 35519version_type=$version_type 35520 35521# Shared library runtime path variable. 35522runpath_var=$runpath_var 35523 35524# Shared library path variable. 35525shlibpath_var=$shlibpath_var 35526 35527# Is shlibpath searched before the hard-coded library search path? 35528shlibpath_overrides_runpath=$shlibpath_overrides_runpath 35529 35530# Format of library name prefix. 35531libname_spec=$lt_libname_spec 35532 35533# List of archive names. First name is the real one, the rest are links. 35534# The last name is the one that the linker finds with -lNAME 35535library_names_spec=$lt_library_names_spec 35536 35537# The coded name of the library, if different from the real name. 35538soname_spec=$lt_soname_spec 35539 35540# Permission mode override for installation of shared libraries. 35541install_override_mode=$lt_install_override_mode 35542 35543# Command to use after installation of a shared archive. 35544postinstall_cmds=$lt_postinstall_cmds 35545 35546# Command to use after uninstallation of a shared archive. 35547postuninstall_cmds=$lt_postuninstall_cmds 35548 35549# Commands used to finish a libtool library installation in a directory. 35550finish_cmds=$lt_finish_cmds 35551 35552# As "finish_cmds", except a single script fragment to be evaled but 35553# not shown. 35554finish_eval=$lt_finish_eval 35555 35556# Whether we should hardcode library paths into libraries. 35557hardcode_into_libs=$hardcode_into_libs 35558 35559# Compile-time system search path for libraries. 35560sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 35561 35562# Detected run-time system search path for libraries. 35563sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 35564 35565# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 35566configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 35567 35568# Whether dlopen is supported. 35569dlopen_support=$enable_dlopen 35570 35571# Whether dlopen of programs is supported. 35572dlopen_self=$enable_dlopen_self 35573 35574# Whether dlopen of statically linked programs is supported. 35575dlopen_self_static=$enable_dlopen_self_static 35576 35577# Commands to strip libraries. 35578old_striplib=$lt_old_striplib 35579striplib=$lt_striplib 35580 35581 35582# The linker used to build libraries. 35583LD=$lt_LD 35584 35585# How to create reloadable object files. 35586reload_flag=$lt_reload_flag 35587reload_cmds=$lt_reload_cmds 35588 35589# Commands used to build an old-style archive. 35590old_archive_cmds=$lt_old_archive_cmds 35591 35592# A language specific compiler. 35593CC=$lt_compiler 35594 35595# Is the compiler the GNU compiler? 35596with_gcc=$GCC 35597 35598# Compiler flag to turn off builtin functions. 35599no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 35600 35601# Additional compiler flags for building library objects. 35602pic_flag=$lt_lt_prog_compiler_pic 35603 35604# How to pass a linker flag through the compiler. 35605wl=$lt_lt_prog_compiler_wl 35606 35607# Compiler flag to prevent dynamic linking. 35608link_static_flag=$lt_lt_prog_compiler_static 35609 35610# Does compiler simultaneously support -c and -o options? 35611compiler_c_o=$lt_lt_cv_prog_compiler_c_o 35612 35613# Whether or not to add -lc for building shared libraries. 35614build_libtool_need_lc=$archive_cmds_need_lc 35615 35616# Whether or not to disallow shared libs when runtime libs are static. 35617allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 35618 35619# Compiler flag to allow reflexive dlopens. 35620export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 35621 35622# Compiler flag to generate shared objects directly from archives. 35623whole_archive_flag_spec=$lt_whole_archive_flag_spec 35624 35625# Whether the compiler copes with passing no objects directly. 35626compiler_needs_object=$lt_compiler_needs_object 35627 35628# Create an old-style archive from a shared archive. 35629old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 35630 35631# Create a temporary old-style archive to link instead of a shared archive. 35632old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 35633 35634# Commands used to build a shared archive. 35635archive_cmds=$lt_archive_cmds 35636archive_expsym_cmds=$lt_archive_expsym_cmds 35637 35638# Commands used to build a loadable module if different from building 35639# a shared archive. 35640module_cmds=$lt_module_cmds 35641module_expsym_cmds=$lt_module_expsym_cmds 35642 35643# Whether we are building with GNU ld or not. 35644with_gnu_ld=$lt_with_gnu_ld 35645 35646# Flag that allows shared libraries with undefined symbols to be built. 35647allow_undefined_flag=$lt_allow_undefined_flag 35648 35649# Flag that enforces no undefined symbols. 35650no_undefined_flag=$lt_no_undefined_flag 35651 35652# Flag to hardcode \$libdir into a binary during linking. 35653# This must work even if \$libdir does not exist 35654hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 35655 35656# Whether we need a single "-rpath" flag with a separated argument. 35657hardcode_libdir_separator=$lt_hardcode_libdir_separator 35658 35659# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 35660# DIR into the resulting binary. 35661hardcode_direct=$hardcode_direct 35662 35663# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 35664# DIR into the resulting binary and the resulting library dependency is 35665# "absolute",i.e impossible to change by setting \$shlibpath_var if the 35666# library is relocated. 35667hardcode_direct_absolute=$hardcode_direct_absolute 35668 35669# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 35670# into the resulting binary. 35671hardcode_minus_L=$hardcode_minus_L 35672 35673# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 35674# into the resulting binary. 35675hardcode_shlibpath_var=$hardcode_shlibpath_var 35676 35677# Set to "yes" if building a shared library automatically hardcodes DIR 35678# into the library and all subsequent libraries and executables linked 35679# against it. 35680hardcode_automatic=$hardcode_automatic 35681 35682# Set to yes if linker adds runtime paths of dependent libraries 35683# to runtime path list. 35684inherit_rpath=$inherit_rpath 35685 35686# Whether libtool must link a program against all its dependency libraries. 35687link_all_deplibs=$link_all_deplibs 35688 35689# Set to "yes" if exported symbols are required. 35690always_export_symbols=$always_export_symbols 35691 35692# The commands to list exported symbols. 35693export_symbols_cmds=$lt_export_symbols_cmds 35694 35695# Symbols that should not be listed in the preloaded symbols. 35696exclude_expsyms=$lt_exclude_expsyms 35697 35698# Symbols that must always be exported. 35699include_expsyms=$lt_include_expsyms 35700 35701# Commands necessary for linking programs (against libraries) with templates. 35702prelink_cmds=$lt_prelink_cmds 35703 35704# Commands necessary for finishing linking programs. 35705postlink_cmds=$lt_postlink_cmds 35706 35707# Specify filename containing input files. 35708file_list_spec=$lt_file_list_spec 35709 35710# How to hardcode a shared library path into an executable. 35711hardcode_action=$hardcode_action 35712 35713# ### END LIBTOOL CONFIG 35714 35715_LT_EOF 35716 35717 cat <<'_LT_EOF' >> "$cfgfile" 35718 35719# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 35720 35721# func_munge_path_list VARIABLE PATH 35722# ----------------------------------- 35723# VARIABLE is name of variable containing _space_ separated list of 35724# directories to be munged by the contents of PATH, which is string 35725# having a format: 35726# "DIR[:DIR]:" 35727# string "DIR[ DIR]" will be prepended to VARIABLE 35728# ":DIR[:DIR]" 35729# string "DIR[ DIR]" will be appended to VARIABLE 35730# "DIRP[:DIRP]::[DIRA:]DIRA" 35731# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 35732# "DIRA[ DIRA]" will be appended to VARIABLE 35733# "DIR[:DIR]" 35734# VARIABLE will be replaced by "DIR[ DIR]" 35735func_munge_path_list () 35736{ 35737 case x$2 in 35738 x) 35739 ;; 35740 *:) 35741 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 35742 ;; 35743 x:*) 35744 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 35745 ;; 35746 *::*) 35747 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 35748 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 35749 ;; 35750 *) 35751 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 35752 ;; 35753 esac 35754} 35755 35756 35757# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 35758func_cc_basename () 35759{ 35760 for cc_temp in $*""; do 35761 case $cc_temp in 35762 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 35763 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 35764 \-*) ;; 35765 *) break;; 35766 esac 35767 done 35768 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 35769} 35770 35771 35772# ### END FUNCTIONS SHARED WITH CONFIGURE 35773 35774_LT_EOF 35775 35776 case $host_os in 35777 aix3*) 35778 cat <<\_LT_EOF >> "$cfgfile" 35779# AIX sometimes has problems with the GCC collect2 program. For some 35780# reason, if we set the COLLECT_NAMES environment variable, the problems 35781# vanish in a puff of smoke. 35782if test set != "${COLLECT_NAMES+set}"; then 35783 COLLECT_NAMES= 35784 export COLLECT_NAMES 35785fi 35786_LT_EOF 35787 ;; 35788 esac 35789 35790 35791 35792ltmain=$ac_aux_dir/ltmain.sh 35793 35794 35795 # We use sed instead of cat because bash on DJGPP gets confused if 35796 # if finds mixed CR/LF and LF-only lines. Since sed operates in 35797 # text mode, it properly converts lines to CR/LF. This bash problem 35798 # is reportedly fixed, but why not run on old versions too? 35799 $SED '$q' "$ltmain" >> "$cfgfile" \ 35800 || (rm -f "$cfgfile"; exit 1) 35801 35802 mv -f "$cfgfile" "$ofile" || 35803 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 35804 chmod +x "$ofile" 35805 35806 ;; 35807 "sdksyms":C) touch hw/xfree86/sdksyms.dep ;; 35808 35809 esac 35810done # for ac_tag 35811 35812 35813as_fn_exit 0 35814_ACEOF 35815ac_clean_files=$ac_clean_files_save 35816 35817test $ac_write_fail = 0 || 35818 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 35819 35820 35821# configure is writing to config.log, and then calls config.status. 35822# config.status does its own redirection, appending to config.log. 35823# Unfortunately, on DOS this fails, as config.log is still kept open 35824# by configure, so config.status won't be able to write to it; its 35825# output is simply discarded. So we exec the FD to /dev/null, 35826# effectively closing config.log, so it can be properly (re)opened and 35827# appended to by config.status. When coming back to configure, we 35828# need to make the FD available again. 35829if test "$no_create" != yes; then 35830 ac_cs_success=: 35831 ac_config_status_args= 35832 test "$silent" = yes && 35833 ac_config_status_args="$ac_config_status_args --quiet" 35834 exec 5>/dev/null 35835 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 35836 exec 5>>config.log 35837 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 35838 # would make configure fail if this is the last instruction. 35839 $ac_cs_success || as_fn_exit 1 35840fi 35841if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 35842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 35843printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 35844fi 35845 35846 35847