configure revision 2d19872a
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.6. 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.6' 686PACKAGE_STRING='xorg-server 21.1.6' 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 1051POLL_FALSE 1052POLL_TRUE 1053LIBOBJS 1054DLOPEN_LIBS 1055SPECIAL_DTRACE_OBJECTS_FALSE 1056SPECIAL_DTRACE_OBJECTS_TRUE 1057XSERVER_DTRACE_FALSE 1058XSERVER_DTRACE_TRUE 1059DTRACE 1060TRADITIONALCPPFLAGS 1061RAWCPPFLAGS 1062RAWCPP 1063CPP 1064YFLAGS 1065YACC 1066LEXLIB 1067LEX_OUTPUT_ROOT 1068LEX 1069LT_SYS_LIBRARY_PATH 1070OTOOL64 1071OTOOL 1072LIPO 1073NMEDIT 1074DSYMUTIL 1075MANIFEST_TOOL 1076RANLIB 1077ac_ct_AR 1078AR 1079FILECMD 1080NM 1081ac_ct_DUMPBIN 1082DUMPBIN 1083LD 1084FGREP 1085EGREP 1086GREP 1087LIBTOOL 1088OBJDUMP 1089DLLTOOL 1090AS 1091LN_S 1092am__fastdepCCAS_FALSE 1093am__fastdepCCAS_TRUE 1094CCASDEPMODE 1095CCASFLAGS 1096CCAS 1097HAVE_LD_WRAP_FALSE 1098HAVE_LD_WRAP_TRUE 1099ENABLE_UNIT_TESTS_FALSE 1100ENABLE_UNIT_TESTS_TRUE 1101XORG_MALLOC_DEBUG_ENV 1102HAVE_XSLTPROC_FALSE 1103HAVE_XSLTPROC_TRUE 1104XSLTPROC 1105HAVE_FOP_FALSE 1106HAVE_FOP_TRUE 1107FOP 1108HAVE_XMLTO_FALSE 1109HAVE_XMLTO_TRUE 1110HAVE_XMLTO_TEXT_FALSE 1111HAVE_XMLTO_TEXT_TRUE 1112XMLTO 1113ENABLE_DEVEL_DOCS_FALSE 1114ENABLE_DEVEL_DOCS_TRUE 1115ENABLE_DOCS_FALSE 1116ENABLE_DOCS_TRUE 1117HAVE_STYLESHEETS_FALSE 1118HAVE_STYLESHEETS_TRUE 1119XSL_STYLESHEET 1120STYLESHEET_SRCDIR 1121XORG_SGML_PATH 1122HAVE_DOXYGEN_FALSE 1123HAVE_DOXYGEN_TRUE 1124HAVE_DOT_FALSE 1125HAVE_DOT_TRUE 1126HAVE_DOT 1127DOT 1128DOXYGEN 1129MAN_SUBSTS 1130XORG_MAN_PAGE 1131ADMIN_MAN_DIR 1132DRIVER_MAN_DIR 1133MISC_MAN_DIR 1134FILE_MAN_DIR 1135LIB_MAN_DIR 1136APP_MAN_DIR 1137ADMIN_MAN_SUFFIX 1138DRIVER_MAN_SUFFIX 1139MISC_MAN_SUFFIX 1140FILE_MAN_SUFFIX 1141LIB_MAN_SUFFIX 1142APP_MAN_SUFFIX 1143SED 1144host_os 1145host_vendor 1146host_cpu 1147host 1148build_os 1149build_vendor 1150build_cpu 1151build 1152INSTALL_CMD 1153PKG_CONFIG_LIBDIR 1154PKG_CONFIG_PATH 1155PKG_CONFIG 1156CHANGELOG_CMD 1157STRICT_CFLAGS 1158CWARNFLAGS 1159BASE_CFLAGS 1160am__fastdepCC_FALSE 1161am__fastdepCC_TRUE 1162CCDEPMODE 1163am__nodep 1164AMDEPBACKSLASH 1165AMDEP_FALSE 1166AMDEP_TRUE 1167am__include 1168DEPDIR 1169OBJEXT 1170EXEEXT 1171ac_ct_CC 1172CPPFLAGS 1173LDFLAGS 1174CFLAGS 1175CC 1176AM_BACKSLASH 1177AM_DEFAULT_VERBOSITY 1178AM_DEFAULT_V 1179AM_V 1180CSCOPE 1181ETAGS 1182CTAGS 1183am__untar 1184am__tar 1185AMTAR 1186am__leading_dot 1187SET_MAKE 1188AWK 1189mkdir_p 1190MKDIR_P 1191INSTALL_STRIP_PROGRAM 1192STRIP 1193install_sh 1194MAKEINFO 1195AUTOHEADER 1196AUTOMAKE 1197AUTOCONF 1198ACLOCAL 1199VERSION 1200PACKAGE 1201CYGPATH_W 1202am__isrc 1203INSTALL_DATA 1204INSTALL_SCRIPT 1205INSTALL_PROGRAM 1206target_alias 1207host_alias 1208build_alias 1209LIBS 1210ECHO_T 1211ECHO_N 1212ECHO_C 1213DEFS 1214mandir 1215localedir 1216libdir 1217psdir 1218pdfdir 1219dvidir 1220htmldir 1221infodir 1222docdir 1223oldincludedir 1224includedir 1225runstatedir 1226localstatedir 1227sharedstatedir 1228sysconfdir 1229datadir 1230datarootdir 1231libexecdir 1232sbindir 1233bindir 1234program_transform_name 1235prefix 1236exec_prefix 1237PACKAGE_URL 1238PACKAGE_BUGREPORT 1239PACKAGE_STRING 1240PACKAGE_VERSION 1241PACKAGE_TARNAME 1242PACKAGE_NAME 1243PATH_SEPARATOR 1244SHELL 1245am__quote' 1246ac_subst_files='' 1247ac_user_opts=' 1248enable_option_checking 1249enable_silent_rules 1250enable_dependency_tracking 1251enable_selective_werror 1252enable_strict_compilation 1253with_doxygen 1254enable_docs 1255enable_devel_docs 1256with_xmlto 1257with_fop 1258with_xsltproc 1259enable_unit_tests 1260enable_static 1261enable_shared 1262with_pic 1263enable_fast_install 1264with_aix_soname 1265with_gnu_ld 1266with_sysroot 1267enable_libtool_lock 1268enable_largefile 1269with_dtrace 1270enable_agp 1271enable_werror 1272enable_debug 1273with_int10 1274with_vendor_name 1275with_vendor_name_short 1276with_vendor_web 1277with_module_dir 1278with_log_dir 1279with_builder_addr 1280with_builderstring 1281enable_listen_tcp 1282enable_listen_unix 1283enable_listen_local 1284with_fallback_input_driver 1285with_fontrootdir 1286with_fontmiscdir 1287with_fontotfdir 1288with_fontttfdir 1289with_fonttype1dir 1290with_font75dpidir 1291with_font100dpidir 1292with_default_font_path 1293with_xkb_path 1294with_xkb_output 1295with_default_xkb_rules 1296with_default_xkb_model 1297with_default_xkb_layout 1298with_default_xkb_variant 1299with_default_xkb_options 1300with_serverconfig_path 1301with_apple_applications_dir 1302with_apple_application_name 1303with_bundle_id_prefix 1304with_bundle_version 1305with_bundle_version_string 1306enable_sparkle 1307with_sparkle_feed_url 1308enable_visibility 1309with_khronos_spec_dir 1310enable_composite 1311enable_mitshm 1312enable_xres 1313enable_record 1314enable_xv 1315enable_xvmc 1316enable_dga 1317enable_screensaver 1318enable_xdmcp 1319enable_xdm_auth_1 1320enable_glx 1321enable_dri 1322enable_dri2 1323enable_dri3 1324enable_present 1325enable_xinerama 1326enable_xf86vidmode 1327enable_xace 1328enable_xselinux 1329enable_xcsecurity 1330enable_dbe 1331enable_xf86bigfont 1332enable_dpms 1333enable_config_udev 1334enable_config_udev_kms 1335enable_config_hal 1336enable_config_wscons 1337enable_xfree86_utils 1338enable_vgahw 1339enable_int10_module 1340enable_windowsdri 1341enable_libdrm 1342enable_clientids 1343enable_pciaccess 1344enable_linux_acpi 1345enable_linux_apm 1346enable_systemd_logind 1347enable_suid_wrapper 1348enable_xorg 1349enable_xvfb 1350enable_xnest 1351enable_xquartz 1352enable_standalone_xpbproxy 1353enable_xwin 1354enable_glamor 1355enable_xf86_input_inputtest 1356enable_kdrive 1357enable_xephyr 1358enable_libunwind 1359enable_xshmfence 1360enable_install_setuid 1361enable_unix_transport 1362enable_tcp_transport 1363enable_ipv6 1364enable_local_transport 1365enable_secure_rpc 1366enable_input_thread 1367with_systemd_daemon 1368enable_xtrans_send_fds 1369with_xkb_bin_directory 1370with_sha1 1371' 1372 ac_precious_vars='build_alias 1373host_alias 1374target_alias 1375CC 1376CFLAGS 1377LDFLAGS 1378LIBS 1379CPPFLAGS 1380PKG_CONFIG 1381PKG_CONFIG_PATH 1382PKG_CONFIG_LIBDIR 1383DOXYGEN 1384DOT 1385XMLTO 1386FOP 1387XSLTPROC 1388XORG_MALLOC_DEBUG_ENV 1389CCAS 1390CCASFLAGS 1391LT_SYS_LIBRARY_PATH 1392YACC 1393YFLAGS 1394CPP 1395PIXMAN_CFLAGS 1396PIXMAN_LIBS 1397SYSTEMD_DAEMON_CFLAGS 1398SYSTEMD_DAEMON_LIBS 1399UDEV_CFLAGS 1400UDEV_LIBS 1401DBUS_CFLAGS 1402DBUS_LIBS 1403HAL_CFLAGS 1404HAL_LIBS 1405DRI2PROTO_CFLAGS 1406DRI2PROTO_LIBS 1407DRI3PROTO_CFLAGS 1408DRI3PROTO_LIBS 1409XSHMFENCE_CFLAGS 1410XSHMFENCE_LIBS 1411LIBDRM_CFLAGS 1412LIBDRM_LIBS 1413XLIB_CFLAGS 1414XLIB_LIBS 1415GL_CFLAGS 1416GL_LIBS 1417SELINUX_CFLAGS 1418SELINUX_LIBS 1419XDMCP_CFLAGS 1420XDMCP_LIBS 1421LIBSHA1_CFLAGS 1422LIBSHA1_LIBS 1423OPENSSL_CFLAGS 1424OPENSSL_LIBS 1425XSERVERCFLAGS_CFLAGS 1426XSERVERCFLAGS_LIBS 1427XSERVERLIBS_CFLAGS 1428XSERVERLIBS_LIBS 1429LIBUNWIND_CFLAGS 1430LIBUNWIND_LIBS 1431XNESTMODULES_CFLAGS 1432XNESTMODULES_LIBS 1433LIBXCVT_CFLAGS 1434LIBXCVT_LIBS 1435PCIACCESS_CFLAGS 1436PCIACCESS_LIBS 1437DGA_CFLAGS 1438DGA_LIBS 1439XORG_MODULES_CFLAGS 1440XORG_MODULES_LIBS 1441GLAMOR_CFLAGS 1442GLAMOR_LIBS 1443GBM_CFLAGS 1444GBM_LIBS 1445XWINMODULES_CFLAGS 1446XWINMODULES_LIBS 1447WINDOWSDRI_CFLAGS 1448WINDOWSDRI_LIBS 1449KHRONOS_OPENGL_REGISTRY_CFLAGS 1450KHRONOS_OPENGL_REGISTRY_LIBS 1451XPBPROXY_CFLAGS 1452XPBPROXY_LIBS 1453XEPHYR_CFLAGS 1454XEPHYR_LIBS' 1455 1456 1457# Initialize some variables set by options. 1458ac_init_help= 1459ac_init_version=false 1460ac_unrecognized_opts= 1461ac_unrecognized_sep= 1462# The variables have the same names as the options, with 1463# dashes changed to underlines. 1464cache_file=/dev/null 1465exec_prefix=NONE 1466no_create= 1467no_recursion= 1468prefix=NONE 1469program_prefix=NONE 1470program_suffix=NONE 1471program_transform_name=s,x,x, 1472silent= 1473site= 1474srcdir= 1475verbose= 1476x_includes=NONE 1477x_libraries=NONE 1478 1479# Installation directory options. 1480# These are left unexpanded so users can "make install exec_prefix=/foo" 1481# and all the variables that are supposed to be based on exec_prefix 1482# by default will actually change. 1483# Use braces instead of parens because sh, perl, etc. also accept them. 1484# (The list follows the same order as the GNU Coding Standards.) 1485bindir='${exec_prefix}/bin' 1486sbindir='${exec_prefix}/sbin' 1487libexecdir='${exec_prefix}/libexec' 1488datarootdir='${prefix}/share' 1489datadir='${datarootdir}' 1490sysconfdir='${prefix}/etc' 1491sharedstatedir='${prefix}/com' 1492localstatedir='${prefix}/var' 1493runstatedir='${localstatedir}/run' 1494includedir='${prefix}/include' 1495oldincludedir='/usr/include' 1496docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1497infodir='${datarootdir}/info' 1498htmldir='${docdir}' 1499dvidir='${docdir}' 1500pdfdir='${docdir}' 1501psdir='${docdir}' 1502libdir='${exec_prefix}/lib' 1503localedir='${datarootdir}/locale' 1504mandir='${datarootdir}/man' 1505 1506ac_prev= 1507ac_dashdash= 1508for ac_option 1509do 1510 # If the previous option needs an argument, assign it. 1511 if test -n "$ac_prev"; then 1512 eval $ac_prev=\$ac_option 1513 ac_prev= 1514 continue 1515 fi 1516 1517 case $ac_option in 1518 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1519 *=) ac_optarg= ;; 1520 *) ac_optarg=yes ;; 1521 esac 1522 1523 case $ac_dashdash$ac_option in 1524 --) 1525 ac_dashdash=yes ;; 1526 1527 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1528 ac_prev=bindir ;; 1529 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1530 bindir=$ac_optarg ;; 1531 1532 -build | --build | --buil | --bui | --bu) 1533 ac_prev=build_alias ;; 1534 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1535 build_alias=$ac_optarg ;; 1536 1537 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1538 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1539 ac_prev=cache_file ;; 1540 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1541 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1542 cache_file=$ac_optarg ;; 1543 1544 --config-cache | -C) 1545 cache_file=config.cache ;; 1546 1547 -datadir | --datadir | --datadi | --datad) 1548 ac_prev=datadir ;; 1549 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1550 datadir=$ac_optarg ;; 1551 1552 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1553 | --dataroo | --dataro | --datar) 1554 ac_prev=datarootdir ;; 1555 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1556 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1557 datarootdir=$ac_optarg ;; 1558 1559 -disable-* | --disable-*) 1560 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1561 # Reject names that are not valid shell variable names. 1562 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1563 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1564 ac_useropt_orig=$ac_useropt 1565 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1566 case $ac_user_opts in 1567 *" 1568"enable_$ac_useropt" 1569"*) ;; 1570 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1571 ac_unrecognized_sep=', ';; 1572 esac 1573 eval enable_$ac_useropt=no ;; 1574 1575 -docdir | --docdir | --docdi | --doc | --do) 1576 ac_prev=docdir ;; 1577 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1578 docdir=$ac_optarg ;; 1579 1580 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1581 ac_prev=dvidir ;; 1582 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1583 dvidir=$ac_optarg ;; 1584 1585 -enable-* | --enable-*) 1586 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1587 # Reject names that are not valid shell variable names. 1588 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1589 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1590 ac_useropt_orig=$ac_useropt 1591 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1592 case $ac_user_opts in 1593 *" 1594"enable_$ac_useropt" 1595"*) ;; 1596 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1597 ac_unrecognized_sep=', ';; 1598 esac 1599 eval enable_$ac_useropt=\$ac_optarg ;; 1600 1601 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1602 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1603 | --exec | --exe | --ex) 1604 ac_prev=exec_prefix ;; 1605 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1606 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1607 | --exec=* | --exe=* | --ex=*) 1608 exec_prefix=$ac_optarg ;; 1609 1610 -gas | --gas | --ga | --g) 1611 # Obsolete; use --with-gas. 1612 with_gas=yes ;; 1613 1614 -help | --help | --hel | --he | -h) 1615 ac_init_help=long ;; 1616 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1617 ac_init_help=recursive ;; 1618 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1619 ac_init_help=short ;; 1620 1621 -host | --host | --hos | --ho) 1622 ac_prev=host_alias ;; 1623 -host=* | --host=* | --hos=* | --ho=*) 1624 host_alias=$ac_optarg ;; 1625 1626 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1627 ac_prev=htmldir ;; 1628 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1629 | --ht=*) 1630 htmldir=$ac_optarg ;; 1631 1632 -includedir | --includedir | --includedi | --included | --include \ 1633 | --includ | --inclu | --incl | --inc) 1634 ac_prev=includedir ;; 1635 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1636 | --includ=* | --inclu=* | --incl=* | --inc=*) 1637 includedir=$ac_optarg ;; 1638 1639 -infodir | --infodir | --infodi | --infod | --info | --inf) 1640 ac_prev=infodir ;; 1641 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1642 infodir=$ac_optarg ;; 1643 1644 -libdir | --libdir | --libdi | --libd) 1645 ac_prev=libdir ;; 1646 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1647 libdir=$ac_optarg ;; 1648 1649 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1650 | --libexe | --libex | --libe) 1651 ac_prev=libexecdir ;; 1652 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1653 | --libexe=* | --libex=* | --libe=*) 1654 libexecdir=$ac_optarg ;; 1655 1656 -localedir | --localedir | --localedi | --localed | --locale) 1657 ac_prev=localedir ;; 1658 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1659 localedir=$ac_optarg ;; 1660 1661 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1662 | --localstate | --localstat | --localsta | --localst | --locals) 1663 ac_prev=localstatedir ;; 1664 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1665 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1666 localstatedir=$ac_optarg ;; 1667 1668 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1669 ac_prev=mandir ;; 1670 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1671 mandir=$ac_optarg ;; 1672 1673 -nfp | --nfp | --nf) 1674 # Obsolete; use --without-fp. 1675 with_fp=no ;; 1676 1677 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1678 | --no-cr | --no-c | -n) 1679 no_create=yes ;; 1680 1681 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1682 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1683 no_recursion=yes ;; 1684 1685 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1686 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1687 | --oldin | --oldi | --old | --ol | --o) 1688 ac_prev=oldincludedir ;; 1689 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1690 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1691 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1692 oldincludedir=$ac_optarg ;; 1693 1694 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1695 ac_prev=prefix ;; 1696 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1697 prefix=$ac_optarg ;; 1698 1699 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1700 | --program-pre | --program-pr | --program-p) 1701 ac_prev=program_prefix ;; 1702 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1703 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1704 program_prefix=$ac_optarg ;; 1705 1706 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1707 | --program-suf | --program-su | --program-s) 1708 ac_prev=program_suffix ;; 1709 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1710 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1711 program_suffix=$ac_optarg ;; 1712 1713 -program-transform-name | --program-transform-name \ 1714 | --program-transform-nam | --program-transform-na \ 1715 | --program-transform-n | --program-transform- \ 1716 | --program-transform | --program-transfor \ 1717 | --program-transfo | --program-transf \ 1718 | --program-trans | --program-tran \ 1719 | --progr-tra | --program-tr | --program-t) 1720 ac_prev=program_transform_name ;; 1721 -program-transform-name=* | --program-transform-name=* \ 1722 | --program-transform-nam=* | --program-transform-na=* \ 1723 | --program-transform-n=* | --program-transform-=* \ 1724 | --program-transform=* | --program-transfor=* \ 1725 | --program-transfo=* | --program-transf=* \ 1726 | --program-trans=* | --program-tran=* \ 1727 | --progr-tra=* | --program-tr=* | --program-t=*) 1728 program_transform_name=$ac_optarg ;; 1729 1730 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1731 ac_prev=pdfdir ;; 1732 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1733 pdfdir=$ac_optarg ;; 1734 1735 -psdir | --psdir | --psdi | --psd | --ps) 1736 ac_prev=psdir ;; 1737 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1738 psdir=$ac_optarg ;; 1739 1740 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1741 | -silent | --silent | --silen | --sile | --sil) 1742 silent=yes ;; 1743 1744 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1745 | --runstate | --runstat | --runsta | --runst | --runs \ 1746 | --run | --ru | --r) 1747 ac_prev=runstatedir ;; 1748 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1749 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1750 | --run=* | --ru=* | --r=*) 1751 runstatedir=$ac_optarg ;; 1752 1753 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1754 ac_prev=sbindir ;; 1755 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1756 | --sbi=* | --sb=*) 1757 sbindir=$ac_optarg ;; 1758 1759 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1760 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1761 | --sharedst | --shareds | --shared | --share | --shar \ 1762 | --sha | --sh) 1763 ac_prev=sharedstatedir ;; 1764 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1765 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1766 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1767 | --sha=* | --sh=*) 1768 sharedstatedir=$ac_optarg ;; 1769 1770 -site | --site | --sit) 1771 ac_prev=site ;; 1772 -site=* | --site=* | --sit=*) 1773 site=$ac_optarg ;; 1774 1775 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1776 ac_prev=srcdir ;; 1777 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1778 srcdir=$ac_optarg ;; 1779 1780 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1781 | --syscon | --sysco | --sysc | --sys | --sy) 1782 ac_prev=sysconfdir ;; 1783 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1784 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1785 sysconfdir=$ac_optarg ;; 1786 1787 -target | --target | --targe | --targ | --tar | --ta | --t) 1788 ac_prev=target_alias ;; 1789 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1790 target_alias=$ac_optarg ;; 1791 1792 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1793 verbose=yes ;; 1794 1795 -version | --version | --versio | --versi | --vers | -V) 1796 ac_init_version=: ;; 1797 1798 -with-* | --with-*) 1799 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1800 # Reject names that are not valid shell variable names. 1801 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1802 as_fn_error $? "invalid package name: \`$ac_useropt'" 1803 ac_useropt_orig=$ac_useropt 1804 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1805 case $ac_user_opts in 1806 *" 1807"with_$ac_useropt" 1808"*) ;; 1809 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1810 ac_unrecognized_sep=', ';; 1811 esac 1812 eval with_$ac_useropt=\$ac_optarg ;; 1813 1814 -without-* | --without-*) 1815 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1816 # Reject names that are not valid shell variable names. 1817 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1818 as_fn_error $? "invalid package name: \`$ac_useropt'" 1819 ac_useropt_orig=$ac_useropt 1820 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1821 case $ac_user_opts in 1822 *" 1823"with_$ac_useropt" 1824"*) ;; 1825 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1826 ac_unrecognized_sep=', ';; 1827 esac 1828 eval with_$ac_useropt=no ;; 1829 1830 --x) 1831 # Obsolete; use --with-x. 1832 with_x=yes ;; 1833 1834 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1835 | --x-incl | --x-inc | --x-in | --x-i) 1836 ac_prev=x_includes ;; 1837 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1838 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1839 x_includes=$ac_optarg ;; 1840 1841 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1842 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1843 ac_prev=x_libraries ;; 1844 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1845 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1846 x_libraries=$ac_optarg ;; 1847 1848 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1849Try \`$0 --help' for more information" 1850 ;; 1851 1852 *=*) 1853 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1854 # Reject names that are not valid shell variable names. 1855 case $ac_envvar in #( 1856 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1857 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1858 esac 1859 eval $ac_envvar=\$ac_optarg 1860 export $ac_envvar ;; 1861 1862 *) 1863 # FIXME: should be removed in autoconf 3.0. 1864 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1865 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1866 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1867 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1868 ;; 1869 1870 esac 1871done 1872 1873if test -n "$ac_prev"; then 1874 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1875 as_fn_error $? "missing argument to $ac_option" 1876fi 1877 1878if test -n "$ac_unrecognized_opts"; then 1879 case $enable_option_checking in 1880 no) ;; 1881 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1882 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1883 esac 1884fi 1885 1886# Check all directory arguments for consistency. 1887for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1888 datadir sysconfdir sharedstatedir localstatedir includedir \ 1889 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1890 libdir localedir mandir runstatedir 1891do 1892 eval ac_val=\$$ac_var 1893 # Remove trailing slashes. 1894 case $ac_val in 1895 */ ) 1896 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1897 eval $ac_var=\$ac_val;; 1898 esac 1899 # Be sure to have absolute directory names. 1900 case $ac_val in 1901 [\\/$]* | ?:[\\/]* ) continue;; 1902 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1903 esac 1904 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1905done 1906 1907# There might be people who depend on the old broken behavior: `$host' 1908# used to hold the argument of --host etc. 1909# FIXME: To remove some day. 1910build=$build_alias 1911host=$host_alias 1912target=$target_alias 1913 1914# FIXME: To remove some day. 1915if test "x$host_alias" != x; then 1916 if test "x$build_alias" = x; then 1917 cross_compiling=maybe 1918 elif test "x$build_alias" != "x$host_alias"; then 1919 cross_compiling=yes 1920 fi 1921fi 1922 1923ac_tool_prefix= 1924test -n "$host_alias" && ac_tool_prefix=$host_alias- 1925 1926test "$silent" = yes && exec 6>/dev/null 1927 1928 1929ac_pwd=`pwd` && test -n "$ac_pwd" && 1930ac_ls_di=`ls -di .` && 1931ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1932 as_fn_error $? "working directory cannot be determined" 1933test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1934 as_fn_error $? "pwd does not report name of working directory" 1935 1936 1937# Find the source files, if location was not specified. 1938if test -z "$srcdir"; then 1939 ac_srcdir_defaulted=yes 1940 # Try the directory containing this script, then the parent directory. 1941 ac_confdir=`$as_dirname -- "$as_myself" || 1942$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1943 X"$as_myself" : 'X\(//\)[^/]' \| \ 1944 X"$as_myself" : 'X\(//\)$' \| \ 1945 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1946printf "%s\n" X"$as_myself" | 1947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1948 s//\1/ 1949 q 1950 } 1951 /^X\(\/\/\)[^/].*/{ 1952 s//\1/ 1953 q 1954 } 1955 /^X\(\/\/\)$/{ 1956 s//\1/ 1957 q 1958 } 1959 /^X\(\/\).*/{ 1960 s//\1/ 1961 q 1962 } 1963 s/.*/./; q'` 1964 srcdir=$ac_confdir 1965 if test ! -r "$srcdir/$ac_unique_file"; then 1966 srcdir=.. 1967 fi 1968else 1969 ac_srcdir_defaulted=no 1970fi 1971if test ! -r "$srcdir/$ac_unique_file"; then 1972 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1973 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1974fi 1975ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1976ac_abs_confdir=`( 1977 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1978 pwd)` 1979# When building in place, set srcdir=. 1980if test "$ac_abs_confdir" = "$ac_pwd"; then 1981 srcdir=. 1982fi 1983# Remove unnecessary trailing slashes from srcdir. 1984# Double slashes in file names in object file debugging info 1985# mess up M-x gdb in Emacs. 1986case $srcdir in 1987*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1988esac 1989for ac_var in $ac_precious_vars; do 1990 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1991 eval ac_env_${ac_var}_value=\$${ac_var} 1992 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1993 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1994done 1995 1996# 1997# Report the --help message. 1998# 1999if test "$ac_init_help" = "long"; then 2000 # Omit some internal or obsolete options to make the list less imposing. 2001 # This message is too long to be a string in the A/UX 3.1 sh. 2002 cat <<_ACEOF 2003\`configure' configures xorg-server 21.1.6 to adapt to many kinds of systems. 2004 2005Usage: $0 [OPTION]... [VAR=VALUE]... 2006 2007To assign environment variables (e.g., CC, CFLAGS...), specify them as 2008VAR=VALUE. See below for descriptions of some of the useful variables. 2009 2010Defaults for the options are specified in brackets. 2011 2012Configuration: 2013 -h, --help display this help and exit 2014 --help=short display options specific to this package 2015 --help=recursive display the short help of all the included packages 2016 -V, --version display version information and exit 2017 -q, --quiet, --silent do not print \`checking ...' messages 2018 --cache-file=FILE cache test results in FILE [disabled] 2019 -C, --config-cache alias for \`--cache-file=config.cache' 2020 -n, --no-create do not create output files 2021 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 2022 2023Installation directories: 2024 --prefix=PREFIX install architecture-independent files in PREFIX 2025 [$ac_default_prefix] 2026 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 2027 [PREFIX] 2028 2029By default, \`make install' will install all the files in 2030\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 2031an installation prefix other than \`$ac_default_prefix' using \`--prefix', 2032for instance \`--prefix=\$HOME'. 2033 2034For better control, use the options below. 2035 2036Fine tuning of the installation directories: 2037 --bindir=DIR user executables [EPREFIX/bin] 2038 --sbindir=DIR system admin executables [EPREFIX/sbin] 2039 --libexecdir=DIR program executables [EPREFIX/libexec] 2040 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 2041 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 2042 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 2043 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 2044 --libdir=DIR object code libraries [EPREFIX/lib] 2045 --includedir=DIR C header files [PREFIX/include] 2046 --oldincludedir=DIR C header files for non-gcc [/usr/include] 2047 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 2048 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 2049 --infodir=DIR info documentation [DATAROOTDIR/info] 2050 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 2051 --mandir=DIR man documentation [DATAROOTDIR/man] 2052 --docdir=DIR documentation root [DATAROOTDIR/doc/xorg-server] 2053 --htmldir=DIR html documentation [DOCDIR] 2054 --dvidir=DIR dvi documentation [DOCDIR] 2055 --pdfdir=DIR pdf documentation [DOCDIR] 2056 --psdir=DIR ps documentation [DOCDIR] 2057_ACEOF 2058 2059 cat <<\_ACEOF 2060 2061Program names: 2062 --program-prefix=PREFIX prepend PREFIX to installed program names 2063 --program-suffix=SUFFIX append SUFFIX to installed program names 2064 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 2065 2066System types: 2067 --build=BUILD configure for building on BUILD [guessed] 2068 --host=HOST cross-compile to build programs to run on HOST [BUILD] 2069_ACEOF 2070fi 2071 2072if test -n "$ac_init_help"; then 2073 case $ac_init_help in 2074 short | recursive ) echo "Configuration of xorg-server 21.1.6:";; 2075 esac 2076 cat <<\_ACEOF 2077 2078Optional Features: 2079 --disable-option-checking ignore unrecognized --enable/--with options 2080 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 2081 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 2082 --enable-silent-rules less verbose build output (undo: "make V=1") 2083 --disable-silent-rules verbose build output (undo: "make V=0") 2084 --enable-dependency-tracking 2085 do not reject slow dependency extractors 2086 --disable-dependency-tracking 2087 speeds up one-time build 2088 --disable-selective-werror 2089 Turn off selective compiler errors. (default: 2090 enabled) 2091 --enable-strict-compilation 2092 Enable all warnings from compiler and make them 2093 errors (default: disabled) 2094 --enable-docs Enable building the documentation (default: yes) 2095 --enable-devel-docs Enable building the developer documentation 2096 (default: yes) 2097 --enable-unit-tests Enable building unit test cases (default: auto) 2098 --enable-static[=PKGS] build static libraries [default=no] 2099 --enable-shared[=PKGS] build shared libraries [default=yes] 2100 --enable-fast-install[=PKGS] 2101 optimize for fast installation [default=yes] 2102 --disable-libtool-lock avoid locking (might break parallel builds) 2103 --disable-largefile omit support for large files 2104 --enable-agp Enable AGP support (default: auto) 2105 --enable-werror Obsolete - use --enable-strict-compilation instead 2106 --enable-debug Enable debugging (default: disabled) 2107 --enable-listen-tcp Listen on TCP by default (default:disabled) 2108 --disable-listen-unix Listen on Unix by default (default:enabled) 2109 --disable-listen-local Listen on local by default (default:enabled) 2110 --enable-sparkle Enable updating of X11.app using the Sparkle 2111 Framework (default: disabled) 2112 --enable-visibility Enable symbol visibility (default: auto) 2113 --disable-composite Build Composite extension (default: enabled) 2114 --disable-mitshm Build SHM extension (default: auto) 2115 --disable-xres Build XRes extension (default: enabled) 2116 --disable-record Build Record extension (default: enabled) 2117 --disable-xv Build Xv extension (default: enabled) 2118 --disable-xvmc Build XvMC extension (default: enabled) 2119 --disable-dga Build DGA extension (default: auto) 2120 --disable-screensaver Build ScreenSaver extension (default: enabled) 2121 --disable-xdmcp Build XDMCP extension (default: auto) 2122 --disable-xdm-auth-1 Build XDM-Auth-1 extension (default: auto) 2123 --disable-glx Build GLX extension (default: enabled) 2124 --enable-dri Build DRI extension (default: auto) 2125 --enable-dri2 Build DRI2 extension (default: auto) 2126 --enable-dri3 Build DRI3 extension (default: auto) 2127 --disable-present Build Present extension (default: enabled) 2128 --disable-xinerama Build Xinerama extension (default: enabled) 2129 --disable-xf86vidmode Build XF86VidMode extension (default: auto) 2130 --disable-xace Build X-ACE extension (default: enabled) 2131 --enable-xselinux Build SELinux extension (default: disabled) 2132 --enable-xcsecurity Build Security extension (default: disabled) 2133 --disable-dbe Build DBE extension (default: enabled) 2134 --enable-xf86bigfont Build XF86 Big Font extension (default: disabled) 2135 --disable-dpms Build DPMS extension (default: enabled) 2136 --enable-config-udev Build udev support (default: auto) 2137 --enable-config-udev-kms 2138 Build udev kms support (default: auto) 2139 --disable-config-hal Build HAL support (default: auto) 2140 --enable-config-wscons Build wscons config support (default: auto) 2141 --enable-xfree86-utils Build xfree86 DDX utilities (default: enabled) 2142 --enable-vgahw Build Xorg with vga access (default: enabled) 2143 --enable-int10-module Build Xorg with int10 module (default: enabled) 2144 --enable-windowsdri Build XWin with WindowsDRI extension (default: auto) 2145 --enable-libdrm Build Xorg with libdrm support (default: enabled) 2146 --disable-clientids Build Xorg with client ID tracking (default: 2147 enabled) 2148 --enable-pciaccess Build Xorg with pciaccess library (default: enabled) 2149 --disable-linux-acpi Disable building ACPI support on Linux (if 2150 available). 2151 --disable-linux-apm Disable building APM support on Linux (if 2152 available). 2153 --enable-systemd-logind Build systemd-logind support (default: auto) 2154 --enable-suid-wrapper Build suid-root wrapper for legacy driver support on 2155 rootless xserver systems (default: no) 2156 --enable-xorg Build Xorg server (default: auto) 2157 --enable-xvfb Build Xvfb server (default: yes) 2158 --enable-xnest Build Xnest server (default: auto) 2159 --enable-xquartz Build Xquartz server for OS-X (default: auto) 2160 --enable-standalone-xpbproxy 2161 Build a standalone xpbproxy (in addition to the one 2162 integrated into Xquartz as a separate thread) 2163 (default: no) 2164 --enable-xwin Build XWin server (default: auto) 2165 --enable-glamor Build glamor dix module (default: auto) 2166 --enable-xf86-input-inputtest 2167 Build Xorg test input driver (default: yes) 2168 --enable-kdrive Build kdrive servers (default: no) 2169 --enable-xephyr Build the kdrive Xephyr server (default: auto) 2170 --enable-libunwind Use libunwind for backtracing (default: auto) 2171 --disable-xshmfence Disable xshmfence (default: auto) 2172 --enable-install-setuid Install Xorg server as owned by root with setuid bit 2173 (default: auto) 2174 --enable-unix-transport Enable UNIX domain socket transport 2175 --enable-tcp-transport Enable TCP socket transport 2176 --enable-ipv6 Enable IPv6 support 2177 --enable-local-transport 2178 Enable os-specific local transport 2179 --enable-secure-rpc Enable Secure RPC 2180 --enable-input-thread Enable input threads 2181 --disable-xtrans-send-fds 2182 Use Xtrans support for fd passing (default: auto) 2183 2184Optional Packages: 2185 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 2186 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 2187 --with-doxygen Use doxygen to regenerate documentation (default: 2188 auto) 2189 --with-xmlto Use xmlto to regenerate documentation (default: 2190 auto) 2191 --with-fop Use fop to regenerate documentation (default: auto) 2192 --with-xsltproc Use xsltproc for the transformation of XML documents 2193 (default: auto) 2194 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 2195 both] 2196 --with-aix-soname=aix|svr4|both 2197 shared library versioning (aka "SONAME") variant to 2198 provide on AIX, [default=aix]. 2199 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 2200 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 2201 compiler's sysroot if not specified). 2202 --with-dtrace=PATH Enable dtrace probes (default: enabled if dtrace 2203 found) 2204 --with-int10=BACKEND int10 backend: vm86, x86emu or stub 2205 --with-vendor-name=VENDOR 2206 Vendor string reported by the server 2207 --with-vendor-name-short=VENDOR 2208 Short version of vendor string reported by the 2209 server 2210 --with-vendor-web=URL Vendor web address reported by the server 2211 --with-module-dir=DIR Directory where modules are installed (default: 2212 $libdir/xorg/modules) 2213 --with-log-dir=DIR Directory where log files are kept (default: 2214 $localstatedir/log) 2215 --with-builder-addr=ADDRESS 2216 Builder address (default: 2217 xorg@lists.freedesktop.org) 2218 --with-builderstring=BUILDERSTRING 2219 Additional builder string 2220 --with-fallback-input-driver=$FALLBACK_INPUT_DRIVER 2221 Input driver fallback if the requested driver for a 2222 device is unavailable 2223 --with-fontrootdir=DIR Path to root directory for font files 2224 --with-fontmiscdir=DIR Path to misc files [FONTROOTDIR/misc] 2225 --with-fontotfdir=DIR Path to OTF files [FONTROOTDIR/OTF] 2226 --with-fontttfdir=DIR Path to TTF files [FONTROOTDIR/TTF] 2227 --with-fonttype1dir=DIR Path to Type1 files [FONTROOTDIR/Type1] 2228 --with-font75dpidir=DIR Path to 75dpi files [FONTROOTDIR/75dpi] 2229 --with-font100dpidir=DIR 2230 Path to 100dpi files [FONTROOTDIR/100dpi] 2231 --with-default-font-path=PATH 2232 Comma separated list of font dirs 2233 --with-xkb-path=PATH Path to XKB base dir (default: auto) 2234 --with-xkb-output=PATH Path to XKB output dir (default: 2235 ${datadir}/X11/xkb/compiled) 2236 --with-default-xkb-rules=RULES 2237 Keyboard ruleset (default: base/evdev) 2238 --with-default-xkb-model=MODEL 2239 Keyboard model (default: pc105) 2240 --with-default-xkb-layout=LAYOUT 2241 Keyboard layout (default: us) 2242 --with-default-xkb-variant=VARIANT 2243 Keyboard variant (default: (none)) 2244 --with-default-xkb-options=OPTIONS 2245 Keyboard layout options (default: (none)) 2246 --with-serverconfig-path=PATH 2247 Directory where ancillary server config files are 2248 installed (default: ${libdir}/xorg) 2249 --with-apple-applications-dir=PATH 2250 Path to the Applications directory (default: 2251 /Applications/Utilities) 2252 --with-apple-application-name=NAME 2253 Name for the .app (default: X11) 2254 --with-bundle-id-prefix=RDNS_PREFIX 2255 Prefix to use for bundle identifiers (default: 2256 org.x) 2257 --with-bundle-version=VERSION 2258 Version to use for X11.app's CFBundleVersion 2259 (default: 21.1.6) 2260 --with-bundle-version-string=VERSION 2261 Version to use for X11.app's 2262 CFBundleShortVersionString (default: 21.1.6) 2263 --with-sparkle-feed-url=URL 2264 URL for the Sparkle feed (default: 2265 https://www.xquartz.org/releases/sparkle/release.xml) 2266 --with-khronos-spec-dir=PATH 2267 Path to Khronos OpenGL registry database files 2268 (default: auto) 2269 --with-systemd-daemon support systemd socket activation (default: auto) 2270 --with-xkb-bin-directory=DIR 2271 Directory containing xkbcomp program (default: auto) 2272 --with-sha1=libc|libmd|libnettle|libgcrypt|libcrypto|libsha1|CommonCrypto|CryptoAPI 2273 choose SHA1 implementation 2274 2275Some influential environment variables: 2276 CC C compiler command 2277 CFLAGS C compiler flags 2278 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2279 nonstandard directory <lib dir> 2280 LIBS libraries to pass to the linker, e.g. -l<library> 2281 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2282 you have headers in a nonstandard directory <include dir> 2283 PKG_CONFIG path to pkg-config utility 2284 PKG_CONFIG_PATH 2285 directories to add to pkg-config's search path 2286 PKG_CONFIG_LIBDIR 2287 path overriding pkg-config's built-in search path 2288 DOXYGEN Path to doxygen command 2289 DOT Path to the dot graphics utility 2290 XMLTO Path to xmlto command 2291 FOP Path to fop command 2292 XSLTPROC Path to xsltproc command 2293 XORG_MALLOC_DEBUG_ENV 2294 Environment variables to enable memory checking in tests 2295 CCAS assembler compiler command (defaults to CC) 2296 CCASFLAGS assembler compiler flags (defaults to CFLAGS) 2297 LT_SYS_LIBRARY_PATH 2298 User-defined run-time library search path. 2299 YACC The `Yet Another Compiler Compiler' implementation to use. 2300 Defaults to the first program found out of: `bison -y', `byacc', 2301 `yacc'. 2302 YFLAGS The list of arguments that will be passed by default to $YACC. 2303 This script will default YFLAGS to the empty string to avoid a 2304 default value of `-d' given by some make applications. 2305 CPP C preprocessor 2306 PIXMAN_CFLAGS 2307 C compiler flags for PIXMAN, overriding pkg-config 2308 PIXMAN_LIBS linker flags for PIXMAN, overriding pkg-config 2309 SYSTEMD_DAEMON_CFLAGS 2310 C compiler flags for SYSTEMD_DAEMON, overriding pkg-config 2311 SYSTEMD_DAEMON_LIBS 2312 linker flags for SYSTEMD_DAEMON, overriding pkg-config 2313 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config 2314 UDEV_LIBS linker flags for UDEV, overriding pkg-config 2315 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config 2316 DBUS_LIBS linker flags for DBUS, overriding pkg-config 2317 HAL_CFLAGS C compiler flags for HAL, overriding pkg-config 2318 HAL_LIBS linker flags for HAL, overriding pkg-config 2319 DRI2PROTO_CFLAGS 2320 C compiler flags for DRI2PROTO, overriding pkg-config 2321 DRI2PROTO_LIBS 2322 linker flags for DRI2PROTO, overriding pkg-config 2323 DRI3PROTO_CFLAGS 2324 C compiler flags for DRI3PROTO, overriding pkg-config 2325 DRI3PROTO_LIBS 2326 linker flags for DRI3PROTO, overriding pkg-config 2327 XSHMFENCE_CFLAGS 2328 C compiler flags for XSHMFENCE, overriding pkg-config 2329 XSHMFENCE_LIBS 2330 linker flags for XSHMFENCE, overriding pkg-config 2331 LIBDRM_CFLAGS 2332 C compiler flags for LIBDRM, overriding pkg-config 2333 LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config 2334 XLIB_CFLAGS C compiler flags for XLIB, overriding pkg-config 2335 XLIB_LIBS linker flags for XLIB, overriding pkg-config 2336 GL_CFLAGS C compiler flags for GL, overriding pkg-config 2337 GL_LIBS linker flags for GL, overriding pkg-config 2338 SELINUX_CFLAGS 2339 C compiler flags for SELINUX, overriding pkg-config 2340 SELINUX_LIBS 2341 linker flags for SELINUX, overriding pkg-config 2342 XDMCP_CFLAGS 2343 C compiler flags for XDMCP, overriding pkg-config 2344 XDMCP_LIBS linker flags for XDMCP, overriding pkg-config 2345 LIBSHA1_CFLAGS 2346 C compiler flags for LIBSHA1, overriding pkg-config 2347 LIBSHA1_LIBS 2348 linker flags for LIBSHA1, overriding pkg-config 2349 OPENSSL_CFLAGS 2350 C compiler flags for OPENSSL, overriding pkg-config 2351 OPENSSL_LIBS 2352 linker flags for OPENSSL, overriding pkg-config 2353 XSERVERCFLAGS_CFLAGS 2354 C compiler flags for XSERVERCFLAGS, overriding pkg-config 2355 XSERVERCFLAGS_LIBS 2356 linker flags for XSERVERCFLAGS, overriding pkg-config 2357 XSERVERLIBS_CFLAGS 2358 C compiler flags for XSERVERLIBS, overriding pkg-config 2359 XSERVERLIBS_LIBS 2360 linker flags for XSERVERLIBS, overriding pkg-config 2361 LIBUNWIND_CFLAGS 2362 C compiler flags for LIBUNWIND, overriding pkg-config 2363 LIBUNWIND_LIBS 2364 linker flags for LIBUNWIND, overriding pkg-config 2365 XNESTMODULES_CFLAGS 2366 C compiler flags for XNESTMODULES, overriding pkg-config 2367 XNESTMODULES_LIBS 2368 linker flags for XNESTMODULES, overriding pkg-config 2369 LIBXCVT_CFLAGS 2370 C compiler flags for LIBXCVT, overriding pkg-config 2371 LIBXCVT_LIBS 2372 linker flags for LIBXCVT, overriding pkg-config 2373 PCIACCESS_CFLAGS 2374 C compiler flags for PCIACCESS, overriding pkg-config 2375 PCIACCESS_LIBS 2376 linker flags for PCIACCESS, overriding pkg-config 2377 DGA_CFLAGS C compiler flags for DGA, overriding pkg-config 2378 DGA_LIBS linker flags for DGA, overriding pkg-config 2379 XORG_MODULES_CFLAGS 2380 C compiler flags for XORG_MODULES, overriding pkg-config 2381 XORG_MODULES_LIBS 2382 linker flags for XORG_MODULES, overriding pkg-config 2383 GLAMOR_CFLAGS 2384 C compiler flags for GLAMOR, overriding pkg-config 2385 GLAMOR_LIBS linker flags for GLAMOR, overriding pkg-config 2386 GBM_CFLAGS C compiler flags for GBM, overriding pkg-config 2387 GBM_LIBS linker flags for GBM, overriding pkg-config 2388 XWINMODULES_CFLAGS 2389 C compiler flags for XWINMODULES, overriding pkg-config 2390 XWINMODULES_LIBS 2391 linker flags for XWINMODULES, overriding pkg-config 2392 WINDOWSDRI_CFLAGS 2393 C compiler flags for WINDOWSDRI, overriding pkg-config 2394 WINDOWSDRI_LIBS 2395 linker flags for WINDOWSDRI, overriding pkg-config 2396 KHRONOS_OPENGL_REGISTRY_CFLAGS 2397 C compiler flags for KHRONOS_OPENGL_REGISTRY, overriding 2398 pkg-config 2399 KHRONOS_OPENGL_REGISTRY_LIBS 2400 linker flags for KHRONOS_OPENGL_REGISTRY, overriding pkg-config 2401 XPBPROXY_CFLAGS 2402 C compiler flags for XPBPROXY, overriding pkg-config 2403 XPBPROXY_LIBS 2404 linker flags for XPBPROXY, overriding pkg-config 2405 XEPHYR_CFLAGS 2406 C compiler flags for XEPHYR, overriding pkg-config 2407 XEPHYR_LIBS linker flags for XEPHYR, overriding pkg-config 2408 2409Use these variables to override the choices made by `configure' or to help 2410it to find libraries and programs with nonstandard names/locations. 2411 2412Report bugs to <https://gitlab.freedesktop.org/xorg/xserver/issues>. 2413_ACEOF 2414ac_status=$? 2415fi 2416 2417if test "$ac_init_help" = "recursive"; then 2418 # If there are subdirs, report their specific --help. 2419 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2420 test -d "$ac_dir" || 2421 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2422 continue 2423 ac_builddir=. 2424 2425case "$ac_dir" in 2426.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2427*) 2428 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 2429 # A ".." for each directory in $ac_dir_suffix. 2430 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2431 case $ac_top_builddir_sub in 2432 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2433 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2434 esac ;; 2435esac 2436ac_abs_top_builddir=$ac_pwd 2437ac_abs_builddir=$ac_pwd$ac_dir_suffix 2438# for backward compatibility: 2439ac_top_builddir=$ac_top_build_prefix 2440 2441case $srcdir in 2442 .) # We are building in place. 2443 ac_srcdir=. 2444 ac_top_srcdir=$ac_top_builddir_sub 2445 ac_abs_top_srcdir=$ac_pwd ;; 2446 [\\/]* | ?:[\\/]* ) # Absolute name. 2447 ac_srcdir=$srcdir$ac_dir_suffix; 2448 ac_top_srcdir=$srcdir 2449 ac_abs_top_srcdir=$srcdir ;; 2450 *) # Relative name. 2451 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2452 ac_top_srcdir=$ac_top_build_prefix$srcdir 2453 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2454esac 2455ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2456 2457 cd "$ac_dir" || { ac_status=$?; continue; } 2458 # Check for configure.gnu first; this name is used for a wrapper for 2459 # Metaconfig's "Configure" on case-insensitive file systems. 2460 if test -f "$ac_srcdir/configure.gnu"; then 2461 echo && 2462 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2463 elif test -f "$ac_srcdir/configure"; then 2464 echo && 2465 $SHELL "$ac_srcdir/configure" --help=recursive 2466 else 2467 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2468 fi || ac_status=$? 2469 cd "$ac_pwd" || { ac_status=$?; break; } 2470 done 2471fi 2472 2473test -n "$ac_init_help" && exit $ac_status 2474if $ac_init_version; then 2475 cat <<\_ACEOF 2476xorg-server configure 21.1.6 2477generated by GNU Autoconf 2.71 2478 2479Copyright (C) 2021 Free Software Foundation, Inc. 2480This configure script is free software; the Free Software Foundation 2481gives unlimited permission to copy, distribute and modify it. 2482_ACEOF 2483 exit 2484fi 2485 2486## ------------------------ ## 2487## Autoconf initialization. ## 2488## ------------------------ ## 2489 2490# ac_fn_c_try_compile LINENO 2491# -------------------------- 2492# Try to compile conftest.$ac_ext, and return whether this succeeded. 2493ac_fn_c_try_compile () 2494{ 2495 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2496 rm -f conftest.$ac_objext conftest.beam 2497 if { { ac_try="$ac_compile" 2498case "(($ac_try" in 2499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2500 *) ac_try_echo=$ac_try;; 2501esac 2502eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2503printf "%s\n" "$ac_try_echo"; } >&5 2504 (eval "$ac_compile") 2>conftest.err 2505 ac_status=$? 2506 if test -s conftest.err; then 2507 grep -v '^ *+' conftest.err >conftest.er1 2508 cat conftest.er1 >&5 2509 mv -f conftest.er1 conftest.err 2510 fi 2511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2512 test $ac_status = 0; } && { 2513 test -z "$ac_c_werror_flag" || 2514 test ! -s conftest.err 2515 } && test -s conftest.$ac_objext 2516then : 2517 ac_retval=0 2518else $as_nop 2519 printf "%s\n" "$as_me: failed program was:" >&5 2520sed 's/^/| /' conftest.$ac_ext >&5 2521 2522 ac_retval=1 2523fi 2524 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2525 as_fn_set_status $ac_retval 2526 2527} # ac_fn_c_try_compile 2528 2529# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2530# ------------------------------------------------------- 2531# Tests whether HEADER exists and can be compiled using the include files in 2532# INCLUDES, setting the cache variable VAR accordingly. 2533ac_fn_c_check_header_compile () 2534{ 2535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2537printf %s "checking for $2... " >&6; } 2538if eval test \${$3+y} 2539then : 2540 printf %s "(cached) " >&6 2541else $as_nop 2542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2543/* end confdefs.h. */ 2544$4 2545#include <$2> 2546_ACEOF 2547if ac_fn_c_try_compile "$LINENO" 2548then : 2549 eval "$3=yes" 2550else $as_nop 2551 eval "$3=no" 2552fi 2553rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2554fi 2555eval ac_res=\$$3 2556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2557printf "%s\n" "$ac_res" >&6; } 2558 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2559 2560} # ac_fn_c_check_header_compile 2561 2562# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 2563# ------------------------------------------------------------------ 2564# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2565# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 2566ac_fn_check_decl () 2567{ 2568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2569 as_decl_name=`echo $2|sed 's/ *(.*//'` 2570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2571printf %s "checking whether $as_decl_name is declared... " >&6; } 2572if eval test \${$3+y} 2573then : 2574 printf %s "(cached) " >&6 2575else $as_nop 2576 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2577 eval ac_save_FLAGS=\$$6 2578 as_fn_append $6 " $5" 2579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2580/* end confdefs.h. */ 2581$4 2582int 2583main (void) 2584{ 2585#ifndef $as_decl_name 2586#ifdef __cplusplus 2587 (void) $as_decl_use; 2588#else 2589 (void) $as_decl_name; 2590#endif 2591#endif 2592 2593 ; 2594 return 0; 2595} 2596_ACEOF 2597if ac_fn_c_try_compile "$LINENO" 2598then : 2599 eval "$3=yes" 2600else $as_nop 2601 eval "$3=no" 2602fi 2603rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2604 eval $6=\$ac_save_FLAGS 2605 2606fi 2607eval ac_res=\$$3 2608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2609printf "%s\n" "$ac_res" >&6; } 2610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2611 2612} # ac_fn_check_decl 2613 2614# ac_fn_c_try_link LINENO 2615# ----------------------- 2616# Try to link conftest.$ac_ext, and return whether this succeeded. 2617ac_fn_c_try_link () 2618{ 2619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2620 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 2621 if { { ac_try="$ac_link" 2622case "(($ac_try" in 2623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2624 *) ac_try_echo=$ac_try;; 2625esac 2626eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2627printf "%s\n" "$ac_try_echo"; } >&5 2628 (eval "$ac_link") 2>conftest.err 2629 ac_status=$? 2630 if test -s conftest.err; then 2631 grep -v '^ *+' conftest.err >conftest.er1 2632 cat conftest.er1 >&5 2633 mv -f conftest.er1 conftest.err 2634 fi 2635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2636 test $ac_status = 0; } && { 2637 test -z "$ac_c_werror_flag" || 2638 test ! -s conftest.err 2639 } && test -s conftest$ac_exeext && { 2640 test "$cross_compiling" = yes || 2641 test -x conftest$ac_exeext 2642 } 2643then : 2644 ac_retval=0 2645else $as_nop 2646 printf "%s\n" "$as_me: failed program was:" >&5 2647sed 's/^/| /' conftest.$ac_ext >&5 2648 2649 ac_retval=1 2650fi 2651 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2652 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2653 # interfere with the next link command; also delete a directory that is 2654 # left behind by Apple's compiler. We do this before executing the actions. 2655 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2657 as_fn_set_status $ac_retval 2658 2659} # ac_fn_c_try_link 2660 2661# ac_fn_c_check_func LINENO FUNC VAR 2662# ---------------------------------- 2663# Tests whether FUNC exists, setting the cache variable VAR accordingly 2664ac_fn_c_check_func () 2665{ 2666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2668printf %s "checking for $2... " >&6; } 2669if eval test \${$3+y} 2670then : 2671 printf %s "(cached) " >&6 2672else $as_nop 2673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2674/* end confdefs.h. */ 2675/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2676 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2677#define $2 innocuous_$2 2678 2679/* System header to define __stub macros and hopefully few prototypes, 2680 which can conflict with char $2 (); below. */ 2681 2682#include <limits.h> 2683#undef $2 2684 2685/* Override any GCC internal prototype to avoid an error. 2686 Use char because int might match the return type of a GCC 2687 builtin and then its argument prototype would still apply. */ 2688#ifdef __cplusplus 2689extern "C" 2690#endif 2691char $2 (); 2692/* The GNU C library defines this for functions which it implements 2693 to always fail with ENOSYS. Some functions are actually named 2694 something starting with __ and the normal name is an alias. */ 2695#if defined __stub_$2 || defined __stub___$2 2696choke me 2697#endif 2698 2699int 2700main (void) 2701{ 2702return $2 (); 2703 ; 2704 return 0; 2705} 2706_ACEOF 2707if ac_fn_c_try_link "$LINENO" 2708then : 2709 eval "$3=yes" 2710else $as_nop 2711 eval "$3=no" 2712fi 2713rm -f core conftest.err conftest.$ac_objext conftest.beam \ 2714 conftest$ac_exeext conftest.$ac_ext 2715fi 2716eval ac_res=\$$3 2717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2718printf "%s\n" "$ac_res" >&6; } 2719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2720 2721} # ac_fn_c_check_func 2722 2723# ac_fn_c_try_cpp LINENO 2724# ---------------------- 2725# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2726ac_fn_c_try_cpp () 2727{ 2728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2729 if { { ac_try="$ac_cpp conftest.$ac_ext" 2730case "(($ac_try" in 2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2732 *) ac_try_echo=$ac_try;; 2733esac 2734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2735printf "%s\n" "$ac_try_echo"; } >&5 2736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2737 ac_status=$? 2738 if test -s conftest.err; then 2739 grep -v '^ *+' conftest.err >conftest.er1 2740 cat conftest.er1 >&5 2741 mv -f conftest.er1 conftest.err 2742 fi 2743 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2744 test $ac_status = 0; } > conftest.i && { 2745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2746 test ! -s conftest.err 2747 } 2748then : 2749 ac_retval=0 2750else $as_nop 2751 printf "%s\n" "$as_me: failed program was:" >&5 2752sed 's/^/| /' conftest.$ac_ext >&5 2753 2754 ac_retval=1 2755fi 2756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2757 as_fn_set_status $ac_retval 2758 2759} # ac_fn_c_try_cpp 2760 2761# ac_fn_c_try_run LINENO 2762# ---------------------- 2763# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 2764# executables *can* be run. 2765ac_fn_c_try_run () 2766{ 2767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2768 if { { ac_try="$ac_link" 2769case "(($ac_try" in 2770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2771 *) ac_try_echo=$ac_try;; 2772esac 2773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2774printf "%s\n" "$ac_try_echo"; } >&5 2775 (eval "$ac_link") 2>&5 2776 ac_status=$? 2777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2778 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2779 { { case "(($ac_try" in 2780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2781 *) ac_try_echo=$ac_try;; 2782esac 2783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2784printf "%s\n" "$ac_try_echo"; } >&5 2785 (eval "$ac_try") 2>&5 2786 ac_status=$? 2787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2788 test $ac_status = 0; }; } 2789then : 2790 ac_retval=0 2791else $as_nop 2792 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 2793 printf "%s\n" "$as_me: failed program was:" >&5 2794sed 's/^/| /' conftest.$ac_ext >&5 2795 2796 ac_retval=$ac_status 2797fi 2798 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2800 as_fn_set_status $ac_retval 2801 2802} # ac_fn_c_try_run 2803 2804# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2805# -------------------------------------------- 2806# Tries to find the compile-time value of EXPR in a program that includes 2807# INCLUDES, setting VAR accordingly. Returns whether the value could be 2808# computed 2809ac_fn_c_compute_int () 2810{ 2811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2812 if test "$cross_compiling" = yes; then 2813 # Depending upon the size, compute the lo and hi bounds. 2814cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2815/* end confdefs.h. */ 2816$4 2817int 2818main (void) 2819{ 2820static int test_array [1 - 2 * !(($2) >= 0)]; 2821test_array [0] = 0; 2822return test_array [0]; 2823 2824 ; 2825 return 0; 2826} 2827_ACEOF 2828if ac_fn_c_try_compile "$LINENO" 2829then : 2830 ac_lo=0 ac_mid=0 2831 while :; do 2832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2833/* end confdefs.h. */ 2834$4 2835int 2836main (void) 2837{ 2838static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2839test_array [0] = 0; 2840return test_array [0]; 2841 2842 ; 2843 return 0; 2844} 2845_ACEOF 2846if ac_fn_c_try_compile "$LINENO" 2847then : 2848 ac_hi=$ac_mid; break 2849else $as_nop 2850 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2851 if test $ac_lo -le $ac_mid; then 2852 ac_lo= ac_hi= 2853 break 2854 fi 2855 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2856fi 2857rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2858 done 2859else $as_nop 2860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2861/* end confdefs.h. */ 2862$4 2863int 2864main (void) 2865{ 2866static int test_array [1 - 2 * !(($2) < 0)]; 2867test_array [0] = 0; 2868return test_array [0]; 2869 2870 ; 2871 return 0; 2872} 2873_ACEOF 2874if ac_fn_c_try_compile "$LINENO" 2875then : 2876 ac_hi=-1 ac_mid=-1 2877 while :; do 2878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2879/* end confdefs.h. */ 2880$4 2881int 2882main (void) 2883{ 2884static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2885test_array [0] = 0; 2886return test_array [0]; 2887 2888 ; 2889 return 0; 2890} 2891_ACEOF 2892if ac_fn_c_try_compile "$LINENO" 2893then : 2894 ac_lo=$ac_mid; break 2895else $as_nop 2896 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2897 if test $ac_mid -le $ac_hi; then 2898 ac_lo= ac_hi= 2899 break 2900 fi 2901 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2902fi 2903rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2904 done 2905else $as_nop 2906 ac_lo= ac_hi= 2907fi 2908rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2909fi 2910rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2911# Binary search between lo and hi bounds. 2912while test "x$ac_lo" != "x$ac_hi"; do 2913 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2915/* end confdefs.h. */ 2916$4 2917int 2918main (void) 2919{ 2920static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2921test_array [0] = 0; 2922return test_array [0]; 2923 2924 ; 2925 return 0; 2926} 2927_ACEOF 2928if ac_fn_c_try_compile "$LINENO" 2929then : 2930 ac_hi=$ac_mid 2931else $as_nop 2932 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2933fi 2934rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2935done 2936case $ac_lo in #(( 2937?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2938'') ac_retval=1 ;; 2939esac 2940 else 2941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2942/* end confdefs.h. */ 2943$4 2944static long int longval (void) { return $2; } 2945static unsigned long int ulongval (void) { return $2; } 2946#include <stdio.h> 2947#include <stdlib.h> 2948int 2949main (void) 2950{ 2951 2952 FILE *f = fopen ("conftest.val", "w"); 2953 if (! f) 2954 return 1; 2955 if (($2) < 0) 2956 { 2957 long int i = longval (); 2958 if (i != ($2)) 2959 return 1; 2960 fprintf (f, "%ld", i); 2961 } 2962 else 2963 { 2964 unsigned long int i = ulongval (); 2965 if (i != ($2)) 2966 return 1; 2967 fprintf (f, "%lu", i); 2968 } 2969 /* Do not output a trailing newline, as this causes \r\n confusion 2970 on some platforms. */ 2971 return ferror (f) || fclose (f) != 0; 2972 2973 ; 2974 return 0; 2975} 2976_ACEOF 2977if ac_fn_c_try_run "$LINENO" 2978then : 2979 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2980else $as_nop 2981 ac_retval=1 2982fi 2983rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2984 conftest.$ac_objext conftest.beam conftest.$ac_ext 2985rm -f conftest.val 2986 2987 fi 2988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2989 as_fn_set_status $ac_retval 2990 2991} # ac_fn_c_compute_int 2992 2993# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2994# ------------------------------------------- 2995# Tests whether TYPE exists after having included INCLUDES, setting cache 2996# variable VAR accordingly. 2997ac_fn_c_check_type () 2998{ 2999 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3001printf %s "checking for $2... " >&6; } 3002if eval test \${$3+y} 3003then : 3004 printf %s "(cached) " >&6 3005else $as_nop 3006 eval "$3=no" 3007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3008/* end confdefs.h. */ 3009$4 3010int 3011main (void) 3012{ 3013if (sizeof ($2)) 3014 return 0; 3015 ; 3016 return 0; 3017} 3018_ACEOF 3019if ac_fn_c_try_compile "$LINENO" 3020then : 3021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3022/* end confdefs.h. */ 3023$4 3024int 3025main (void) 3026{ 3027if (sizeof (($2))) 3028 return 0; 3029 ; 3030 return 0; 3031} 3032_ACEOF 3033if ac_fn_c_try_compile "$LINENO" 3034then : 3035 3036else $as_nop 3037 eval "$3=yes" 3038fi 3039rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3040fi 3041rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3042fi 3043eval ac_res=\$$3 3044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3045printf "%s\n" "$ac_res" >&6; } 3046 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3047 3048} # ac_fn_c_check_type 3049 3050# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 3051# ---------------------------------------------------- 3052# Tries to find if the field MEMBER exists in type AGGR, after including 3053# INCLUDES, setting cache variable VAR accordingly. 3054ac_fn_c_check_member () 3055{ 3056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 3058printf %s "checking for $2.$3... " >&6; } 3059if eval test \${$4+y} 3060then : 3061 printf %s "(cached) " >&6 3062else $as_nop 3063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3064/* end confdefs.h. */ 3065$5 3066int 3067main (void) 3068{ 3069static $2 ac_aggr; 3070if (ac_aggr.$3) 3071return 0; 3072 ; 3073 return 0; 3074} 3075_ACEOF 3076if ac_fn_c_try_compile "$LINENO" 3077then : 3078 eval "$4=yes" 3079else $as_nop 3080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3081/* end confdefs.h. */ 3082$5 3083int 3084main (void) 3085{ 3086static $2 ac_aggr; 3087if (sizeof ac_aggr.$3) 3088return 0; 3089 ; 3090 return 0; 3091} 3092_ACEOF 3093if ac_fn_c_try_compile "$LINENO" 3094then : 3095 eval "$4=yes" 3096else $as_nop 3097 eval "$4=no" 3098fi 3099rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3100fi 3101rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3102fi 3103eval ac_res=\$$4 3104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3105printf "%s\n" "$ac_res" >&6; } 3106 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3107 3108} # ac_fn_c_check_member 3109ac_configure_args_raw= 3110for ac_arg 3111do 3112 case $ac_arg in 3113 *\'*) 3114 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3115 esac 3116 as_fn_append ac_configure_args_raw " '$ac_arg'" 3117done 3118 3119case $ac_configure_args_raw in 3120 *$as_nl*) 3121 ac_safe_unquote= ;; 3122 *) 3123 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 3124 ac_unsafe_a="$ac_unsafe_z#~" 3125 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 3126 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 3127esac 3128 3129cat >config.log <<_ACEOF 3130This file contains any messages produced by compilers while 3131running configure, to aid debugging if configure makes a mistake. 3132 3133It was created by xorg-server $as_me 21.1.6, which was 3134generated by GNU Autoconf 2.71. Invocation command line was 3135 3136 $ $0$ac_configure_args_raw 3137 3138_ACEOF 3139exec 5>>config.log 3140{ 3141cat <<_ASUNAME 3142## --------- ## 3143## Platform. ## 3144## --------- ## 3145 3146hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 3147uname -m = `(uname -m) 2>/dev/null || echo unknown` 3148uname -r = `(uname -r) 2>/dev/null || echo unknown` 3149uname -s = `(uname -s) 2>/dev/null || echo unknown` 3150uname -v = `(uname -v) 2>/dev/null || echo unknown` 3151 3152/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 3153/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 3154 3155/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 3156/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 3157/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 3158/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 3159/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 3160/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 3161/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 3162 3163_ASUNAME 3164 3165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3166for as_dir in $PATH 3167do 3168 IFS=$as_save_IFS 3169 case $as_dir in #((( 3170 '') as_dir=./ ;; 3171 */) ;; 3172 *) as_dir=$as_dir/ ;; 3173 esac 3174 printf "%s\n" "PATH: $as_dir" 3175 done 3176IFS=$as_save_IFS 3177 3178} >&5 3179 3180cat >&5 <<_ACEOF 3181 3182 3183## ----------- ## 3184## Core tests. ## 3185## ----------- ## 3186 3187_ACEOF 3188 3189 3190# Keep a trace of the command line. 3191# Strip out --no-create and --no-recursion so they do not pile up. 3192# Strip out --silent because we don't want to record it for future runs. 3193# Also quote any args containing shell meta-characters. 3194# Make two passes to allow for proper duplicate-argument suppression. 3195ac_configure_args= 3196ac_configure_args0= 3197ac_configure_args1= 3198ac_must_keep_next=false 3199for ac_pass in 1 2 3200do 3201 for ac_arg 3202 do 3203 case $ac_arg in 3204 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 3205 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3206 | -silent | --silent | --silen | --sile | --sil) 3207 continue ;; 3208 *\'*) 3209 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3210 esac 3211 case $ac_pass in 3212 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 3213 2) 3214 as_fn_append ac_configure_args1 " '$ac_arg'" 3215 if test $ac_must_keep_next = true; then 3216 ac_must_keep_next=false # Got value, back to normal. 3217 else 3218 case $ac_arg in 3219 *=* | --config-cache | -C | -disable-* | --disable-* \ 3220 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 3221 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 3222 | -with-* | --with-* | -without-* | --without-* | --x) 3223 case "$ac_configure_args0 " in 3224 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 3225 esac 3226 ;; 3227 -* ) ac_must_keep_next=true ;; 3228 esac 3229 fi 3230 as_fn_append ac_configure_args " '$ac_arg'" 3231 ;; 3232 esac 3233 done 3234done 3235{ ac_configure_args0=; unset ac_configure_args0;} 3236{ ac_configure_args1=; unset ac_configure_args1;} 3237 3238# When interrupted or exit'd, cleanup temporary files, and complete 3239# config.log. We remove comments because anyway the quotes in there 3240# would cause problems or look ugly. 3241# WARNING: Use '\'' to represent an apostrophe within the trap. 3242# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3243trap 'exit_status=$? 3244 # Sanitize IFS. 3245 IFS=" "" $as_nl" 3246 # Save into config.log some information that might help in debugging. 3247 { 3248 echo 3249 3250 printf "%s\n" "## ---------------- ## 3251## Cache variables. ## 3252## ---------------- ##" 3253 echo 3254 # The following way of writing the cache mishandles newlines in values, 3255( 3256 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3257 eval ac_val=\$$ac_var 3258 case $ac_val in #( 3259 *${as_nl}*) 3260 case $ac_var in #( 3261 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3262printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3263 esac 3264 case $ac_var in #( 3265 _ | IFS | as_nl) ;; #( 3266 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3267 *) { eval $ac_var=; unset $ac_var;} ;; 3268 esac ;; 3269 esac 3270 done 3271 (set) 2>&1 | 3272 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3273 *${as_nl}ac_space=\ *) 3274 sed -n \ 3275 "s/'\''/'\''\\\\'\'''\''/g; 3276 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3277 ;; #( 3278 *) 3279 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3280 ;; 3281 esac | 3282 sort 3283) 3284 echo 3285 3286 printf "%s\n" "## ----------------- ## 3287## Output variables. ## 3288## ----------------- ##" 3289 echo 3290 for ac_var in $ac_subst_vars 3291 do 3292 eval ac_val=\$$ac_var 3293 case $ac_val in 3294 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3295 esac 3296 printf "%s\n" "$ac_var='\''$ac_val'\''" 3297 done | sort 3298 echo 3299 3300 if test -n "$ac_subst_files"; then 3301 printf "%s\n" "## ------------------- ## 3302## File substitutions. ## 3303## ------------------- ##" 3304 echo 3305 for ac_var in $ac_subst_files 3306 do 3307 eval ac_val=\$$ac_var 3308 case $ac_val in 3309 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3310 esac 3311 printf "%s\n" "$ac_var='\''$ac_val'\''" 3312 done | sort 3313 echo 3314 fi 3315 3316 if test -s confdefs.h; then 3317 printf "%s\n" "## ----------- ## 3318## confdefs.h. ## 3319## ----------- ##" 3320 echo 3321 cat confdefs.h 3322 echo 3323 fi 3324 test "$ac_signal" != 0 && 3325 printf "%s\n" "$as_me: caught signal $ac_signal" 3326 printf "%s\n" "$as_me: exit $exit_status" 3327 } >&5 3328 rm -f core *.core core.conftest.* && 3329 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3330 exit $exit_status 3331' 0 3332for ac_signal in 1 2 13 15; do 3333 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3334done 3335ac_signal=0 3336 3337# confdefs.h avoids OS command line length limits that DEFS can exceed. 3338rm -f -r conftest* confdefs.h 3339 3340printf "%s\n" "/* confdefs.h */" > confdefs.h 3341 3342# Predefined preprocessor variables. 3343 3344printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 3345 3346printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 3347 3348printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 3349 3350printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 3351 3352printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 3353 3354printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 3355 3356 3357# Let the site file select an alternate cache file if it wants to. 3358# Prefer an explicitly selected file to automatically selected ones. 3359if test -n "$CONFIG_SITE"; then 3360 ac_site_files="$CONFIG_SITE" 3361elif test "x$prefix" != xNONE; then 3362 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 3363else 3364 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 3365fi 3366 3367for ac_site_file in $ac_site_files 3368do 3369 case $ac_site_file in #( 3370 */*) : 3371 ;; #( 3372 *) : 3373 ac_site_file=./$ac_site_file ;; 3374esac 3375 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 3376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3377printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 3378 sed 's/^/| /' "$ac_site_file" >&5 3379 . "$ac_site_file" \ 3380 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3381printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3382as_fn_error $? "failed to load site script $ac_site_file 3383See \`config.log' for more details" "$LINENO" 5; } 3384 fi 3385done 3386 3387if test -r "$cache_file"; then 3388 # Some versions of bash will fail to source /dev/null (special files 3389 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3390 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3392printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 3393 case $cache_file in 3394 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3395 *) . "./$cache_file";; 3396 esac 3397 fi 3398else 3399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3400printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 3401 >$cache_file 3402fi 3403 3404as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 3405# Test code for whether the C compiler supports C89 (global declarations) 3406ac_c_conftest_c89_globals=' 3407/* Does the compiler advertise C89 conformance? 3408 Do not test the value of __STDC__, because some compilers set it to 0 3409 while being otherwise adequately conformant. */ 3410#if !defined __STDC__ 3411# error "Compiler does not advertise C89 conformance" 3412#endif 3413 3414#include <stddef.h> 3415#include <stdarg.h> 3416struct stat; 3417/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 3418struct buf { int x; }; 3419struct buf * (*rcsopen) (struct buf *, struct stat *, int); 3420static char *e (p, i) 3421 char **p; 3422 int i; 3423{ 3424 return p[i]; 3425} 3426static char *f (char * (*g) (char **, int), char **p, ...) 3427{ 3428 char *s; 3429 va_list v; 3430 va_start (v,p); 3431 s = g (p, va_arg (v,int)); 3432 va_end (v); 3433 return s; 3434} 3435 3436/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3437 function prototypes and stuff, but not \xHH hex character constants. 3438 These do not provoke an error unfortunately, instead are silently treated 3439 as an "x". The following induces an error, until -std is added to get 3440 proper ANSI mode. Curiously \x00 != x always comes out true, for an 3441 array size at least. It is necessary to write \x00 == 0 to get something 3442 that is true only with -std. */ 3443int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 3444 3445/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3446 inside strings and character constants. */ 3447#define FOO(x) '\''x'\'' 3448int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 3449 3450int test (int i, double x); 3451struct s1 {int (*f) (int a);}; 3452struct s2 {int (*f) (double a);}; 3453int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 3454 int, int);' 3455 3456# Test code for whether the C compiler supports C89 (body of main). 3457ac_c_conftest_c89_main=' 3458ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 3459' 3460 3461# Test code for whether the C compiler supports C99 (global declarations) 3462ac_c_conftest_c99_globals=' 3463// Does the compiler advertise C99 conformance? 3464#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 3465# error "Compiler does not advertise C99 conformance" 3466#endif 3467 3468#include <stdbool.h> 3469extern int puts (const char *); 3470extern int printf (const char *, ...); 3471extern int dprintf (int, const char *, ...); 3472extern void *malloc (size_t); 3473 3474// Check varargs macros. These examples are taken from C99 6.10.3.5. 3475// dprintf is used instead of fprintf to avoid needing to declare 3476// FILE and stderr. 3477#define debug(...) dprintf (2, __VA_ARGS__) 3478#define showlist(...) puts (#__VA_ARGS__) 3479#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3480static void 3481test_varargs_macros (void) 3482{ 3483 int x = 1234; 3484 int y = 5678; 3485 debug ("Flag"); 3486 debug ("X = %d\n", x); 3487 showlist (The first, second, and third items.); 3488 report (x>y, "x is %d but y is %d", x, y); 3489} 3490 3491// Check long long types. 3492#define BIG64 18446744073709551615ull 3493#define BIG32 4294967295ul 3494#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3495#if !BIG_OK 3496 #error "your preprocessor is broken" 3497#endif 3498#if BIG_OK 3499#else 3500 #error "your preprocessor is broken" 3501#endif 3502static long long int bignum = -9223372036854775807LL; 3503static unsigned long long int ubignum = BIG64; 3504 3505struct incomplete_array 3506{ 3507 int datasize; 3508 double data[]; 3509}; 3510 3511struct named_init { 3512 int number; 3513 const wchar_t *name; 3514 double average; 3515}; 3516 3517typedef const char *ccp; 3518 3519static inline int 3520test_restrict (ccp restrict text) 3521{ 3522 // See if C++-style comments work. 3523 // Iterate through items via the restricted pointer. 3524 // Also check for declarations in for loops. 3525 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 3526 continue; 3527 return 0; 3528} 3529 3530// Check varargs and va_copy. 3531static bool 3532test_varargs (const char *format, ...) 3533{ 3534 va_list args; 3535 va_start (args, format); 3536 va_list args_copy; 3537 va_copy (args_copy, args); 3538 3539 const char *str = ""; 3540 int number = 0; 3541 float fnumber = 0; 3542 3543 while (*format) 3544 { 3545 switch (*format++) 3546 { 3547 case '\''s'\'': // string 3548 str = va_arg (args_copy, const char *); 3549 break; 3550 case '\''d'\'': // int 3551 number = va_arg (args_copy, int); 3552 break; 3553 case '\''f'\'': // float 3554 fnumber = va_arg (args_copy, double); 3555 break; 3556 default: 3557 break; 3558 } 3559 } 3560 va_end (args_copy); 3561 va_end (args); 3562 3563 return *str && number && fnumber; 3564} 3565' 3566 3567# Test code for whether the C compiler supports C99 (body of main). 3568ac_c_conftest_c99_main=' 3569 // Check bool. 3570 _Bool success = false; 3571 success |= (argc != 0); 3572 3573 // Check restrict. 3574 if (test_restrict ("String literal") == 0) 3575 success = true; 3576 char *restrict newvar = "Another string"; 3577 3578 // Check varargs. 3579 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 3580 test_varargs_macros (); 3581 3582 // Check flexible array members. 3583 struct incomplete_array *ia = 3584 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3585 ia->datasize = 10; 3586 for (int i = 0; i < ia->datasize; ++i) 3587 ia->data[i] = i * 1.234; 3588 3589 // Check named initializers. 3590 struct named_init ni = { 3591 .number = 34, 3592 .name = L"Test wide string", 3593 .average = 543.34343, 3594 }; 3595 3596 ni.number = 58; 3597 3598 int dynamic_array[ni.number]; 3599 dynamic_array[0] = argv[0][0]; 3600 dynamic_array[ni.number - 1] = 543; 3601 3602 // work around unused variable warnings 3603 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 3604 || dynamic_array[ni.number - 1] != 543); 3605' 3606 3607# Test code for whether the C compiler supports C11 (global declarations) 3608ac_c_conftest_c11_globals=' 3609// Does the compiler advertise C11 conformance? 3610#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 3611# error "Compiler does not advertise C11 conformance" 3612#endif 3613 3614// Check _Alignas. 3615char _Alignas (double) aligned_as_double; 3616char _Alignas (0) no_special_alignment; 3617extern char aligned_as_int; 3618char _Alignas (0) _Alignas (int) aligned_as_int; 3619 3620// Check _Alignof. 3621enum 3622{ 3623 int_alignment = _Alignof (int), 3624 int_array_alignment = _Alignof (int[100]), 3625 char_alignment = _Alignof (char) 3626}; 3627_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 3628 3629// Check _Noreturn. 3630int _Noreturn does_not_return (void) { for (;;) continue; } 3631 3632// Check _Static_assert. 3633struct test_static_assert 3634{ 3635 int x; 3636 _Static_assert (sizeof (int) <= sizeof (long int), 3637 "_Static_assert does not work in struct"); 3638 long int y; 3639}; 3640 3641// Check UTF-8 literals. 3642#define u8 syntax error! 3643char const utf8_literal[] = u8"happens to be ASCII" "another string"; 3644 3645// Check duplicate typedefs. 3646typedef long *long_ptr; 3647typedef long int *long_ptr; 3648typedef long_ptr long_ptr; 3649 3650// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 3651struct anonymous 3652{ 3653 union { 3654 struct { int i; int j; }; 3655 struct { int k; long int l; } w; 3656 }; 3657 int m; 3658} v1; 3659' 3660 3661# Test code for whether the C compiler supports C11 (body of main). 3662ac_c_conftest_c11_main=' 3663 _Static_assert ((offsetof (struct anonymous, i) 3664 == offsetof (struct anonymous, w.k)), 3665 "Anonymous union alignment botch"); 3666 v1.i = 2; 3667 v1.w.k = 5; 3668 ok |= v1.i != 5; 3669' 3670 3671# Test code for whether the C compiler supports C11 (complete). 3672ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 3673${ac_c_conftest_c99_globals} 3674${ac_c_conftest_c11_globals} 3675 3676int 3677main (int argc, char **argv) 3678{ 3679 int ok = 0; 3680 ${ac_c_conftest_c89_main} 3681 ${ac_c_conftest_c99_main} 3682 ${ac_c_conftest_c11_main} 3683 return ok; 3684} 3685" 3686 3687# Test code for whether the C compiler supports C99 (complete). 3688ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 3689${ac_c_conftest_c99_globals} 3690 3691int 3692main (int argc, char **argv) 3693{ 3694 int ok = 0; 3695 ${ac_c_conftest_c89_main} 3696 ${ac_c_conftest_c99_main} 3697 return ok; 3698} 3699" 3700 3701# Test code for whether the C compiler supports C89 (complete). 3702ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 3703 3704int 3705main (int argc, char **argv) 3706{ 3707 int ok = 0; 3708 ${ac_c_conftest_c89_main} 3709 return ok; 3710} 3711" 3712 3713as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 3714as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 3715as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 3716as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 3717as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 3718as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 3719as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 3720as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 3721as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 3722as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 3723 3724# Auxiliary files required by this configure script. 3725ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh" 3726 3727# Locations in which to look for auxiliary files. 3728ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 3729 3730# Search for a directory containing all of the required auxiliary files, 3731# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 3732# If we don't find one directory that contains all the files we need, 3733# we report the set of missing files from the *first* directory in 3734# $ac_aux_dir_candidates and give up. 3735ac_missing_aux_files="" 3736ac_first_candidate=: 3737printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 3738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3739as_found=false 3740for as_dir in $ac_aux_dir_candidates 3741do 3742 IFS=$as_save_IFS 3743 case $as_dir in #((( 3744 '') as_dir=./ ;; 3745 */) ;; 3746 *) as_dir=$as_dir/ ;; 3747 esac 3748 as_found=: 3749 3750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 3751 ac_aux_dir_found=yes 3752 ac_install_sh= 3753 for ac_aux in $ac_aux_files 3754 do 3755 # As a special case, if "install-sh" is required, that requirement 3756 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 3757 # and $ac_install_sh is set appropriately for whichever one is found. 3758 if test x"$ac_aux" = x"install-sh" 3759 then 3760 if test -f "${as_dir}install-sh"; then 3761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 3762 ac_install_sh="${as_dir}install-sh -c" 3763 elif test -f "${as_dir}install.sh"; then 3764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 3765 ac_install_sh="${as_dir}install.sh -c" 3766 elif test -f "${as_dir}shtool"; then 3767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 3768 ac_install_sh="${as_dir}shtool install -c" 3769 else 3770 ac_aux_dir_found=no 3771 if $ac_first_candidate; then 3772 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 3773 else 3774 break 3775 fi 3776 fi 3777 else 3778 if test -f "${as_dir}${ac_aux}"; then 3779 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 3780 else 3781 ac_aux_dir_found=no 3782 if $ac_first_candidate; then 3783 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 3784 else 3785 break 3786 fi 3787 fi 3788 fi 3789 done 3790 if test "$ac_aux_dir_found" = yes; then 3791 ac_aux_dir="$as_dir" 3792 break 3793 fi 3794 ac_first_candidate=false 3795 3796 as_found=false 3797done 3798IFS=$as_save_IFS 3799if $as_found 3800then : 3801 3802else $as_nop 3803 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 3804fi 3805 3806 3807# These three variables are undocumented and unsupported, 3808# and are intended to be withdrawn in a future Autoconf release. 3809# They can cause serious problems if a builder's source tree is in a directory 3810# whose full name contains unusual characters. 3811if test -f "${ac_aux_dir}config.guess"; then 3812 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 3813fi 3814if test -f "${ac_aux_dir}config.sub"; then 3815 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 3816fi 3817if test -f "$ac_aux_dir/configure"; then 3818 ac_configure="$SHELL ${ac_aux_dir}configure" 3819fi 3820 3821# Check that the precious variables saved in the cache have kept the same 3822# value. 3823ac_cache_corrupted=false 3824for ac_var in $ac_precious_vars; do 3825 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3826 eval ac_new_set=\$ac_env_${ac_var}_set 3827 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3828 eval ac_new_val=\$ac_env_${ac_var}_value 3829 case $ac_old_set,$ac_new_set in 3830 set,) 3831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3832printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3833 ac_cache_corrupted=: ;; 3834 ,set) 3835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3836printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3837 ac_cache_corrupted=: ;; 3838 ,);; 3839 *) 3840 if test "x$ac_old_val" != "x$ac_new_val"; then 3841 # differences in whitespace do not lead to failure. 3842 ac_old_val_w=`echo x $ac_old_val` 3843 ac_new_val_w=`echo x $ac_new_val` 3844 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3846printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3847 ac_cache_corrupted=: 3848 else 3849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3850printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3851 eval $ac_var=\$ac_old_val 3852 fi 3853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3854printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 3855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3856printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 3857 fi;; 3858 esac 3859 # Pass precious variables to config.status. 3860 if test "$ac_new_set" = set; then 3861 case $ac_new_val in 3862 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3863 *) ac_arg=$ac_var=$ac_new_val ;; 3864 esac 3865 case " $ac_configure_args " in 3866 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3867 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3868 esac 3869 fi 3870done 3871if $ac_cache_corrupted; then 3872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3873printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3875printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 3876 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 3877 and start over" "$LINENO" 5 3878fi 3879## -------------------- ## 3880## Main body of script. ## 3881## -------------------- ## 3882 3883ac_ext=c 3884ac_cpp='$CPP $CPPFLAGS' 3885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3887ac_compiler_gnu=$ac_cv_c_compiler_gnu 3888 3889 3890RELEASE_DATE="2022-12-19" 3891RELEASE_NAME="Caramel Ice Cream" 3892 3893 3894am__api_version='1.16' 3895 3896 3897 3898 # Find a good install program. We prefer a C program (faster), 3899# so one script is as good as another. But avoid the broken or 3900# incompatible versions: 3901# SysV /etc/install, /usr/sbin/install 3902# SunOS /usr/etc/install 3903# IRIX /sbin/install 3904# AIX /bin/install 3905# AmigaOS /C/install, which installs bootblocks on floppy discs 3906# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3907# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3908# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3909# OS/2's system install, which has a completely different semantic 3910# ./install, which can be erroneously created by make from ./install.sh. 3911# Reject install programs that cannot install multiple files. 3912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3913printf %s "checking for a BSD-compatible install... " >&6; } 3914if test -z "$INSTALL"; then 3915if test ${ac_cv_path_install+y} 3916then : 3917 printf %s "(cached) " >&6 3918else $as_nop 3919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3920for as_dir in $PATH 3921do 3922 IFS=$as_save_IFS 3923 case $as_dir in #((( 3924 '') as_dir=./ ;; 3925 */) ;; 3926 *) as_dir=$as_dir/ ;; 3927 esac 3928 # Account for fact that we put trailing slashes in our PATH walk. 3929case $as_dir in #(( 3930 ./ | /[cC]/* | \ 3931 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3932 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3933 /usr/ucb/* ) ;; 3934 *) 3935 # OSF1 and SCO ODT 3.0 have their own names for install. 3936 # Don't use installbsd from OSF since it installs stuff as root 3937 # by default. 3938 for ac_prog in ginstall scoinst install; do 3939 for ac_exec_ext in '' $ac_executable_extensions; do 3940 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3941 if test $ac_prog = install && 3942 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3943 # AIX install. It has an incompatible calling convention. 3944 : 3945 elif test $ac_prog = install && 3946 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3947 # program-specific install script used by HP pwplus--don't use. 3948 : 3949 else 3950 rm -rf conftest.one conftest.two conftest.dir 3951 echo one > conftest.one 3952 echo two > conftest.two 3953 mkdir conftest.dir 3954 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3955 test -s conftest.one && test -s conftest.two && 3956 test -s conftest.dir/conftest.one && 3957 test -s conftest.dir/conftest.two 3958 then 3959 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3960 break 3 3961 fi 3962 fi 3963 fi 3964 done 3965 done 3966 ;; 3967esac 3968 3969 done 3970IFS=$as_save_IFS 3971 3972rm -rf conftest.one conftest.two conftest.dir 3973 3974fi 3975 if test ${ac_cv_path_install+y}; then 3976 INSTALL=$ac_cv_path_install 3977 else 3978 # As a last resort, use the slow shell script. Don't cache a 3979 # value for INSTALL within a source directory, because that will 3980 # break other packages using the cache if that directory is 3981 # removed, or if the value is a relative name. 3982 INSTALL=$ac_install_sh 3983 fi 3984fi 3985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3986printf "%s\n" "$INSTALL" >&6; } 3987 3988# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3989# It thinks the first close brace ends the variable substitution. 3990test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3991 3992test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3993 3994test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3995 3996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3997printf %s "checking whether build environment is sane... " >&6; } 3998# Reject unsafe characters in $srcdir or the absolute working directory 3999# name. Accept space and tab only in the latter. 4000am_lf=' 4001' 4002case `pwd` in 4003 *[\\\"\#\$\&\'\`$am_lf]*) 4004 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4005esac 4006case $srcdir in 4007 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4008 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4009esac 4010 4011# Do 'set' in a subshell so we don't clobber the current shell's 4012# arguments. Must try -L first in case configure is actually a 4013# symlink; some systems play weird games with the mod time of symlinks 4014# (eg FreeBSD returns the mod time of the symlink's containing 4015# directory). 4016if ( 4017 am_has_slept=no 4018 for am_try in 1 2; do 4019 echo "timestamp, slept: $am_has_slept" > conftest.file 4020 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4021 if test "$*" = "X"; then 4022 # -L didn't work. 4023 set X `ls -t "$srcdir/configure" conftest.file` 4024 fi 4025 if test "$*" != "X $srcdir/configure conftest.file" \ 4026 && test "$*" != "X conftest.file $srcdir/configure"; then 4027 4028 # If neither matched, then we have a broken ls. This can happen 4029 # if, for instance, CONFIG_SHELL is bash and it inherits a 4030 # broken ls alias from the environment. This has actually 4031 # happened. Such a system could not be considered "sane". 4032 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 4033 alias in your environment" "$LINENO" 5 4034 fi 4035 if test "$2" = conftest.file || test $am_try -eq 2; then 4036 break 4037 fi 4038 # Just in case. 4039 sleep 1 4040 am_has_slept=yes 4041 done 4042 test "$2" = conftest.file 4043 ) 4044then 4045 # Ok. 4046 : 4047else 4048 as_fn_error $? "newly created file is older than distributed files! 4049Check your system clock" "$LINENO" 5 4050fi 4051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4052printf "%s\n" "yes" >&6; } 4053# If we didn't sleep, we still need to ensure time stamps of config.status and 4054# generated files are strictly newer. 4055am_sleep_pid= 4056if grep 'slept: no' conftest.file >/dev/null 2>&1; then 4057 ( sleep 1 ) & 4058 am_sleep_pid=$! 4059fi 4060 4061rm -f conftest.file 4062 4063test "$program_prefix" != NONE && 4064 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4065# Use a double $ so make ignores it. 4066test "$program_suffix" != NONE && 4067 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4068# Double any \ or $. 4069# By default was `s,x,x', remove it if useless. 4070ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4071program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 4072 4073 4074# Expand $ac_aux_dir to an absolute path. 4075am_aux_dir=`cd "$ac_aux_dir" && pwd` 4076 4077 4078 if test x"${MISSING+set}" != xset; then 4079 MISSING="\${SHELL} '$am_aux_dir/missing'" 4080fi 4081# Use eval to expand $SHELL 4082if eval "$MISSING --is-lightweight"; then 4083 am_missing_run="$MISSING " 4084else 4085 am_missing_run= 4086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4087printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4088fi 4089 4090if test x"${install_sh+set}" != xset; then 4091 case $am_aux_dir in 4092 *\ * | *\ *) 4093 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4094 *) 4095 install_sh="\${SHELL} $am_aux_dir/install-sh" 4096 esac 4097fi 4098 4099# Installed binaries are usually stripped using 'strip' when the user 4100# run "make install-strip". However 'strip' might not be the right 4101# tool to use in cross-compilation environments, therefore Automake 4102# will honor the 'STRIP' environment variable to overrule this program. 4103if test "$cross_compiling" != no; then 4104 if test -n "$ac_tool_prefix"; then 4105 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4106set dummy ${ac_tool_prefix}strip; ac_word=$2 4107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4108printf %s "checking for $ac_word... " >&6; } 4109if test ${ac_cv_prog_STRIP+y} 4110then : 4111 printf %s "(cached) " >&6 4112else $as_nop 4113 if test -n "$STRIP"; then 4114 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4115else 4116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4117for as_dir in $PATH 4118do 4119 IFS=$as_save_IFS 4120 case $as_dir in #((( 4121 '') as_dir=./ ;; 4122 */) ;; 4123 *) as_dir=$as_dir/ ;; 4124 esac 4125 for ac_exec_ext in '' $ac_executable_extensions; do 4126 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4127 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4129 break 2 4130 fi 4131done 4132 done 4133IFS=$as_save_IFS 4134 4135fi 4136fi 4137STRIP=$ac_cv_prog_STRIP 4138if test -n "$STRIP"; then 4139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4140printf "%s\n" "$STRIP" >&6; } 4141else 4142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4143printf "%s\n" "no" >&6; } 4144fi 4145 4146 4147fi 4148if test -z "$ac_cv_prog_STRIP"; then 4149 ac_ct_STRIP=$STRIP 4150 # Extract the first word of "strip", so it can be a program name with args. 4151set dummy strip; ac_word=$2 4152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4153printf %s "checking for $ac_word... " >&6; } 4154if test ${ac_cv_prog_ac_ct_STRIP+y} 4155then : 4156 printf %s "(cached) " >&6 4157else $as_nop 4158 if test -n "$ac_ct_STRIP"; then 4159 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4160else 4161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4162for as_dir in $PATH 4163do 4164 IFS=$as_save_IFS 4165 case $as_dir in #((( 4166 '') as_dir=./ ;; 4167 */) ;; 4168 *) as_dir=$as_dir/ ;; 4169 esac 4170 for ac_exec_ext in '' $ac_executable_extensions; do 4171 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4172 ac_cv_prog_ac_ct_STRIP="strip" 4173 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4174 break 2 4175 fi 4176done 4177 done 4178IFS=$as_save_IFS 4179 4180fi 4181fi 4182ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4183if test -n "$ac_ct_STRIP"; then 4184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4185printf "%s\n" "$ac_ct_STRIP" >&6; } 4186else 4187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4188printf "%s\n" "no" >&6; } 4189fi 4190 4191 if test "x$ac_ct_STRIP" = x; then 4192 STRIP=":" 4193 else 4194 case $cross_compiling:$ac_tool_warned in 4195yes:) 4196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4197printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4198ac_tool_warned=yes ;; 4199esac 4200 STRIP=$ac_ct_STRIP 4201 fi 4202else 4203 STRIP="$ac_cv_prog_STRIP" 4204fi 4205 4206fi 4207INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4208 4209 4210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4211printf %s "checking for a race-free mkdir -p... " >&6; } 4212if test -z "$MKDIR_P"; then 4213 if test ${ac_cv_path_mkdir+y} 4214then : 4215 printf %s "(cached) " >&6 4216else $as_nop 4217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4218for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4219do 4220 IFS=$as_save_IFS 4221 case $as_dir in #((( 4222 '') as_dir=./ ;; 4223 */) ;; 4224 *) as_dir=$as_dir/ ;; 4225 esac 4226 for ac_prog in mkdir gmkdir; do 4227 for ac_exec_ext in '' $ac_executable_extensions; do 4228 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4229 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4230 'mkdir ('*'coreutils) '* | \ 4231 'BusyBox '* | \ 4232 'mkdir (fileutils) '4.1*) 4233 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4234 break 3;; 4235 esac 4236 done 4237 done 4238 done 4239IFS=$as_save_IFS 4240 4241fi 4242 4243 test -d ./--version && rmdir ./--version 4244 if test ${ac_cv_path_mkdir+y}; then 4245 MKDIR_P="$ac_cv_path_mkdir -p" 4246 else 4247 # As a last resort, use the slow shell script. Don't cache a 4248 # value for MKDIR_P within a source directory, because that will 4249 # break other packages using the cache if that directory is 4250 # removed, or if the value is a relative name. 4251 MKDIR_P="$ac_install_sh -d" 4252 fi 4253fi 4254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4255printf "%s\n" "$MKDIR_P" >&6; } 4256 4257for ac_prog in gawk mawk nawk awk 4258do 4259 # Extract the first word of "$ac_prog", so it can be a program name with args. 4260set dummy $ac_prog; ac_word=$2 4261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4262printf %s "checking for $ac_word... " >&6; } 4263if test ${ac_cv_prog_AWK+y} 4264then : 4265 printf %s "(cached) " >&6 4266else $as_nop 4267 if test -n "$AWK"; then 4268 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4269else 4270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4271for as_dir in $PATH 4272do 4273 IFS=$as_save_IFS 4274 case $as_dir in #((( 4275 '') as_dir=./ ;; 4276 */) ;; 4277 *) as_dir=$as_dir/ ;; 4278 esac 4279 for ac_exec_ext in '' $ac_executable_extensions; do 4280 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4281 ac_cv_prog_AWK="$ac_prog" 4282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4283 break 2 4284 fi 4285done 4286 done 4287IFS=$as_save_IFS 4288 4289fi 4290fi 4291AWK=$ac_cv_prog_AWK 4292if test -n "$AWK"; then 4293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4294printf "%s\n" "$AWK" >&6; } 4295else 4296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4297printf "%s\n" "no" >&6; } 4298fi 4299 4300 4301 test -n "$AWK" && break 4302done 4303 4304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4305printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4306set x ${MAKE-make} 4307ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4308if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4309then : 4310 printf %s "(cached) " >&6 4311else $as_nop 4312 cat >conftest.make <<\_ACEOF 4313SHELL = /bin/sh 4314all: 4315 @echo '@@@%%%=$(MAKE)=@@@%%%' 4316_ACEOF 4317# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4318case `${MAKE-make} -f conftest.make 2>/dev/null` in 4319 *@@@%%%=?*=@@@%%%*) 4320 eval ac_cv_prog_make_${ac_make}_set=yes;; 4321 *) 4322 eval ac_cv_prog_make_${ac_make}_set=no;; 4323esac 4324rm -f conftest.make 4325fi 4326if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4328printf "%s\n" "yes" >&6; } 4329 SET_MAKE= 4330else 4331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4332printf "%s\n" "no" >&6; } 4333 SET_MAKE="MAKE=${MAKE-make}" 4334fi 4335 4336rm -rf .tst 2>/dev/null 4337mkdir .tst 2>/dev/null 4338if test -d .tst; then 4339 am__leading_dot=. 4340else 4341 am__leading_dot=_ 4342fi 4343rmdir .tst 2>/dev/null 4344 4345# Check whether --enable-silent-rules was given. 4346if test ${enable_silent_rules+y} 4347then : 4348 enableval=$enable_silent_rules; 4349fi 4350 4351case $enable_silent_rules in # ((( 4352 yes) AM_DEFAULT_VERBOSITY=0;; 4353 no) AM_DEFAULT_VERBOSITY=1;; 4354 *) AM_DEFAULT_VERBOSITY=1;; 4355esac 4356am_make=${MAKE-make} 4357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4358printf %s "checking whether $am_make supports nested variables... " >&6; } 4359if test ${am_cv_make_support_nested_variables+y} 4360then : 4361 printf %s "(cached) " >&6 4362else $as_nop 4363 if printf "%s\n" 'TRUE=$(BAR$(V)) 4364BAR0=false 4365BAR1=true 4366V=1 4367am__doit: 4368 @$(TRUE) 4369.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4370 am_cv_make_support_nested_variables=yes 4371else 4372 am_cv_make_support_nested_variables=no 4373fi 4374fi 4375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4376printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4377if test $am_cv_make_support_nested_variables = yes; then 4378 AM_V='$(V)' 4379 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4380else 4381 AM_V=$AM_DEFAULT_VERBOSITY 4382 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4383fi 4384AM_BACKSLASH='\' 4385 4386if test "`cd $srcdir && pwd`" != "`pwd`"; then 4387 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4388 # is not polluted with repeated "-I." 4389 am__isrc=' -I$(srcdir)' 4390 # test to see if srcdir already configured 4391 if test -f $srcdir/config.status; then 4392 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4393 fi 4394fi 4395 4396# test whether we have cygpath 4397if test -z "$CYGPATH_W"; then 4398 if (cygpath --version) >/dev/null 2>/dev/null; then 4399 CYGPATH_W='cygpath -w' 4400 else 4401 CYGPATH_W=echo 4402 fi 4403fi 4404 4405 4406# Define the identity of the package. 4407 PACKAGE='xorg-server' 4408 VERSION='21.1.6' 4409 4410 4411printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4412 4413 4414printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4415 4416# Some tools Automake needs. 4417 4418ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4419 4420 4421AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4422 4423 4424AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4425 4426 4427AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4428 4429 4430MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4431 4432# For better backward compatibility. To be removed once Automake 1.9.x 4433# dies out for good. For more background, see: 4434# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4435# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4436mkdir_p='$(MKDIR_P)' 4437 4438# We need awk for the "check" target (and possibly the TAP driver). The 4439# system "awk" is bad on some platforms. 4440# Always define AMTAR for backward compatibility. Yes, it's still used 4441# in the wild :-( We should find a proper way to deprecate it ... 4442AMTAR='$${TAR-tar}' 4443 4444 4445# We'll loop over all known methods to create a tar archive until one works. 4446_am_tools='gnutar pax cpio none' 4447 4448am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4449 4450 4451 4452 4453 4454# Variables for tags utilities; see am/tags.am 4455if test -z "$CTAGS"; then 4456 CTAGS=ctags 4457fi 4458 4459if test -z "$ETAGS"; then 4460 ETAGS=etags 4461fi 4462 4463if test -z "$CSCOPE"; then 4464 CSCOPE=cscope 4465fi 4466 4467 4468 4469# POSIX will say in a future version that running "rm -f" with no argument 4470# is OK; and we want to be able to make that assumption in our Makefile 4471# recipes. So use an aggressive probe to check that the usage we want is 4472# actually supported "in the wild" to an acceptable degree. 4473# See automake bug#10828. 4474# To make any issue more visible, cause the running configure to be aborted 4475# by default if the 'rm' program in use doesn't match our expectations; the 4476# user can still override this though. 4477if rm -f && rm -fr && rm -rf; then : OK; else 4478 cat >&2 <<'END' 4479Oops! 4480 4481Your 'rm' program seems unable to run without file operands specified 4482on the command line, even when the '-f' option is present. This is contrary 4483to the behaviour of most rm programs out there, and not conforming with 4484the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4485 4486Please tell bug-automake@gnu.org about your system, including the value 4487of your $PATH and any error possibly output before this message. This 4488can help us improve future automake versions. 4489 4490END 4491 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4492 echo 'Configuration will proceed anyway, since you have set the' >&2 4493 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4494 echo >&2 4495 else 4496 cat >&2 <<'END' 4497Aborting the configuration process, to ensure you take notice of the issue. 4498 4499You can download and install GNU coreutils to get an 'rm' implementation 4500that behaves properly: <https://www.gnu.org/software/coreutils/>. 4501 4502If you want to complete the configuration process using your problematic 4503'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4504to "yes", and re-run configure. 4505 4506END 4507 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4508 fi 4509fi 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520DEPDIR="${am__leading_dot}deps" 4521 4522ac_config_commands="$ac_config_commands depfiles" 4523 4524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4525printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4526cat > confinc.mk << 'END' 4527am__doit: 4528 @echo this is the am__doit target >confinc.out 4529.PHONY: am__doit 4530END 4531am__include="#" 4532am__quote= 4533# BSD make does it like this. 4534echo '.include "confinc.mk" # ignored' > confmf.BSD 4535# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4536echo 'include confinc.mk # ignored' > confmf.GNU 4537_am_result=no 4538for s in GNU BSD; do 4539 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4540 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4541 ac_status=$? 4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4543 (exit $ac_status); } 4544 case $?:`cat confinc.out 2>/dev/null` in #( 4545 '0:this is the am__doit target') : 4546 case $s in #( 4547 BSD) : 4548 am__include='.include' am__quote='"' ;; #( 4549 *) : 4550 am__include='include' am__quote='' ;; 4551esac ;; #( 4552 *) : 4553 ;; 4554esac 4555 if test "$am__include" != "#"; then 4556 _am_result="yes ($s style)" 4557 break 4558 fi 4559done 4560rm -f confinc.* confmf.* 4561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4562printf "%s\n" "${_am_result}" >&6; } 4563 4564# Check whether --enable-dependency-tracking was given. 4565if test ${enable_dependency_tracking+y} 4566then : 4567 enableval=$enable_dependency_tracking; 4568fi 4569 4570if test "x$enable_dependency_tracking" != xno; then 4571 am_depcomp="$ac_aux_dir/depcomp" 4572 AMDEPBACKSLASH='\' 4573 am__nodep='_no' 4574fi 4575 if test "x$enable_dependency_tracking" != xno; then 4576 AMDEP_TRUE= 4577 AMDEP_FALSE='#' 4578else 4579 AMDEP_TRUE='#' 4580 AMDEP_FALSE= 4581fi 4582 4583 4584ac_ext=c 4585ac_cpp='$CPP $CPPFLAGS' 4586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4588ac_compiler_gnu=$ac_cv_c_compiler_gnu 4589if test -n "$ac_tool_prefix"; then 4590 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4591set dummy ${ac_tool_prefix}gcc; ac_word=$2 4592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4593printf %s "checking for $ac_word... " >&6; } 4594if test ${ac_cv_prog_CC+y} 4595then : 4596 printf %s "(cached) " >&6 4597else $as_nop 4598 if test -n "$CC"; then 4599 ac_cv_prog_CC="$CC" # Let the user override the test. 4600else 4601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4602for as_dir in $PATH 4603do 4604 IFS=$as_save_IFS 4605 case $as_dir in #((( 4606 '') as_dir=./ ;; 4607 */) ;; 4608 *) as_dir=$as_dir/ ;; 4609 esac 4610 for ac_exec_ext in '' $ac_executable_extensions; do 4611 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4612 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4613 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4614 break 2 4615 fi 4616done 4617 done 4618IFS=$as_save_IFS 4619 4620fi 4621fi 4622CC=$ac_cv_prog_CC 4623if test -n "$CC"; then 4624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4625printf "%s\n" "$CC" >&6; } 4626else 4627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4628printf "%s\n" "no" >&6; } 4629fi 4630 4631 4632fi 4633if test -z "$ac_cv_prog_CC"; then 4634 ac_ct_CC=$CC 4635 # Extract the first word of "gcc", so it can be a program name with args. 4636set dummy gcc; ac_word=$2 4637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4638printf %s "checking for $ac_word... " >&6; } 4639if test ${ac_cv_prog_ac_ct_CC+y} 4640then : 4641 printf %s "(cached) " >&6 4642else $as_nop 4643 if test -n "$ac_ct_CC"; then 4644 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4645else 4646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4647for as_dir in $PATH 4648do 4649 IFS=$as_save_IFS 4650 case $as_dir in #((( 4651 '') as_dir=./ ;; 4652 */) ;; 4653 *) as_dir=$as_dir/ ;; 4654 esac 4655 for ac_exec_ext in '' $ac_executable_extensions; do 4656 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4657 ac_cv_prog_ac_ct_CC="gcc" 4658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4659 break 2 4660 fi 4661done 4662 done 4663IFS=$as_save_IFS 4664 4665fi 4666fi 4667ac_ct_CC=$ac_cv_prog_ac_ct_CC 4668if test -n "$ac_ct_CC"; then 4669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4670printf "%s\n" "$ac_ct_CC" >&6; } 4671else 4672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4673printf "%s\n" "no" >&6; } 4674fi 4675 4676 if test "x$ac_ct_CC" = x; then 4677 CC="" 4678 else 4679 case $cross_compiling:$ac_tool_warned in 4680yes:) 4681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4682printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4683ac_tool_warned=yes ;; 4684esac 4685 CC=$ac_ct_CC 4686 fi 4687else 4688 CC="$ac_cv_prog_CC" 4689fi 4690 4691if test -z "$CC"; then 4692 if test -n "$ac_tool_prefix"; then 4693 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4694set dummy ${ac_tool_prefix}cc; ac_word=$2 4695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4696printf %s "checking for $ac_word... " >&6; } 4697if test ${ac_cv_prog_CC+y} 4698then : 4699 printf %s "(cached) " >&6 4700else $as_nop 4701 if test -n "$CC"; then 4702 ac_cv_prog_CC="$CC" # Let the user override the test. 4703else 4704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4705for as_dir in $PATH 4706do 4707 IFS=$as_save_IFS 4708 case $as_dir in #((( 4709 '') as_dir=./ ;; 4710 */) ;; 4711 *) as_dir=$as_dir/ ;; 4712 esac 4713 for ac_exec_ext in '' $ac_executable_extensions; do 4714 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4715 ac_cv_prog_CC="${ac_tool_prefix}cc" 4716 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4717 break 2 4718 fi 4719done 4720 done 4721IFS=$as_save_IFS 4722 4723fi 4724fi 4725CC=$ac_cv_prog_CC 4726if test -n "$CC"; then 4727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4728printf "%s\n" "$CC" >&6; } 4729else 4730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4731printf "%s\n" "no" >&6; } 4732fi 4733 4734 4735 fi 4736fi 4737if test -z "$CC"; then 4738 # Extract the first word of "cc", so it can be a program name with args. 4739set dummy cc; ac_word=$2 4740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4741printf %s "checking for $ac_word... " >&6; } 4742if test ${ac_cv_prog_CC+y} 4743then : 4744 printf %s "(cached) " >&6 4745else $as_nop 4746 if test -n "$CC"; then 4747 ac_cv_prog_CC="$CC" # Let the user override the test. 4748else 4749 ac_prog_rejected=no 4750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4751for as_dir in $PATH 4752do 4753 IFS=$as_save_IFS 4754 case $as_dir in #((( 4755 '') as_dir=./ ;; 4756 */) ;; 4757 *) as_dir=$as_dir/ ;; 4758 esac 4759 for ac_exec_ext in '' $ac_executable_extensions; do 4760 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4761 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4762 ac_prog_rejected=yes 4763 continue 4764 fi 4765 ac_cv_prog_CC="cc" 4766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4767 break 2 4768 fi 4769done 4770 done 4771IFS=$as_save_IFS 4772 4773if test $ac_prog_rejected = yes; then 4774 # We found a bogon in the path, so make sure we never use it. 4775 set dummy $ac_cv_prog_CC 4776 shift 4777 if test $# != 0; then 4778 # We chose a different compiler from the bogus one. 4779 # However, it has the same basename, so the bogon will be chosen 4780 # first if we set CC to just the basename; use the full file name. 4781 shift 4782 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 4783 fi 4784fi 4785fi 4786fi 4787CC=$ac_cv_prog_CC 4788if test -n "$CC"; then 4789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4790printf "%s\n" "$CC" >&6; } 4791else 4792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4793printf "%s\n" "no" >&6; } 4794fi 4795 4796 4797fi 4798if test -z "$CC"; then 4799 if test -n "$ac_tool_prefix"; then 4800 for ac_prog in cl.exe 4801 do 4802 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4803set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4805printf %s "checking for $ac_word... " >&6; } 4806if test ${ac_cv_prog_CC+y} 4807then : 4808 printf %s "(cached) " >&6 4809else $as_nop 4810 if test -n "$CC"; then 4811 ac_cv_prog_CC="$CC" # Let the user override the test. 4812else 4813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4814for as_dir in $PATH 4815do 4816 IFS=$as_save_IFS 4817 case $as_dir in #((( 4818 '') as_dir=./ ;; 4819 */) ;; 4820 *) as_dir=$as_dir/ ;; 4821 esac 4822 for ac_exec_ext in '' $ac_executable_extensions; do 4823 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4824 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4826 break 2 4827 fi 4828done 4829 done 4830IFS=$as_save_IFS 4831 4832fi 4833fi 4834CC=$ac_cv_prog_CC 4835if test -n "$CC"; then 4836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4837printf "%s\n" "$CC" >&6; } 4838else 4839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4840printf "%s\n" "no" >&6; } 4841fi 4842 4843 4844 test -n "$CC" && break 4845 done 4846fi 4847if test -z "$CC"; then 4848 ac_ct_CC=$CC 4849 for ac_prog in cl.exe 4850do 4851 # Extract the first word of "$ac_prog", so it can be a program name with args. 4852set dummy $ac_prog; ac_word=$2 4853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4854printf %s "checking for $ac_word... " >&6; } 4855if test ${ac_cv_prog_ac_ct_CC+y} 4856then : 4857 printf %s "(cached) " >&6 4858else $as_nop 4859 if test -n "$ac_ct_CC"; then 4860 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4861else 4862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4863for as_dir in $PATH 4864do 4865 IFS=$as_save_IFS 4866 case $as_dir in #((( 4867 '') as_dir=./ ;; 4868 */) ;; 4869 *) as_dir=$as_dir/ ;; 4870 esac 4871 for ac_exec_ext in '' $ac_executable_extensions; do 4872 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4873 ac_cv_prog_ac_ct_CC="$ac_prog" 4874 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4875 break 2 4876 fi 4877done 4878 done 4879IFS=$as_save_IFS 4880 4881fi 4882fi 4883ac_ct_CC=$ac_cv_prog_ac_ct_CC 4884if test -n "$ac_ct_CC"; then 4885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4886printf "%s\n" "$ac_ct_CC" >&6; } 4887else 4888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4889printf "%s\n" "no" >&6; } 4890fi 4891 4892 4893 test -n "$ac_ct_CC" && break 4894done 4895 4896 if test "x$ac_ct_CC" = x; then 4897 CC="" 4898 else 4899 case $cross_compiling:$ac_tool_warned in 4900yes:) 4901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4902printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4903ac_tool_warned=yes ;; 4904esac 4905 CC=$ac_ct_CC 4906 fi 4907fi 4908 4909fi 4910if test -z "$CC"; then 4911 if test -n "$ac_tool_prefix"; then 4912 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 4913set dummy ${ac_tool_prefix}clang; ac_word=$2 4914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4915printf %s "checking for $ac_word... " >&6; } 4916if test ${ac_cv_prog_CC+y} 4917then : 4918 printf %s "(cached) " >&6 4919else $as_nop 4920 if test -n "$CC"; then 4921 ac_cv_prog_CC="$CC" # Let the user override the test. 4922else 4923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4924for as_dir in $PATH 4925do 4926 IFS=$as_save_IFS 4927 case $as_dir in #((( 4928 '') as_dir=./ ;; 4929 */) ;; 4930 *) as_dir=$as_dir/ ;; 4931 esac 4932 for ac_exec_ext in '' $ac_executable_extensions; do 4933 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4934 ac_cv_prog_CC="${ac_tool_prefix}clang" 4935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4936 break 2 4937 fi 4938done 4939 done 4940IFS=$as_save_IFS 4941 4942fi 4943fi 4944CC=$ac_cv_prog_CC 4945if test -n "$CC"; then 4946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4947printf "%s\n" "$CC" >&6; } 4948else 4949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4950printf "%s\n" "no" >&6; } 4951fi 4952 4953 4954fi 4955if test -z "$ac_cv_prog_CC"; then 4956 ac_ct_CC=$CC 4957 # Extract the first word of "clang", so it can be a program name with args. 4958set dummy clang; ac_word=$2 4959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4960printf %s "checking for $ac_word... " >&6; } 4961if test ${ac_cv_prog_ac_ct_CC+y} 4962then : 4963 printf %s "(cached) " >&6 4964else $as_nop 4965 if test -n "$ac_ct_CC"; then 4966 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4967else 4968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4969for as_dir in $PATH 4970do 4971 IFS=$as_save_IFS 4972 case $as_dir in #((( 4973 '') as_dir=./ ;; 4974 */) ;; 4975 *) as_dir=$as_dir/ ;; 4976 esac 4977 for ac_exec_ext in '' $ac_executable_extensions; do 4978 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4979 ac_cv_prog_ac_ct_CC="clang" 4980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4981 break 2 4982 fi 4983done 4984 done 4985IFS=$as_save_IFS 4986 4987fi 4988fi 4989ac_ct_CC=$ac_cv_prog_ac_ct_CC 4990if test -n "$ac_ct_CC"; then 4991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4992printf "%s\n" "$ac_ct_CC" >&6; } 4993else 4994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4995printf "%s\n" "no" >&6; } 4996fi 4997 4998 if test "x$ac_ct_CC" = x; then 4999 CC="" 5000 else 5001 case $cross_compiling:$ac_tool_warned in 5002yes:) 5003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5004printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5005ac_tool_warned=yes ;; 5006esac 5007 CC=$ac_ct_CC 5008 fi 5009else 5010 CC="$ac_cv_prog_CC" 5011fi 5012 5013fi 5014 5015 5016test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5017printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5018as_fn_error $? "no acceptable C compiler found in \$PATH 5019See \`config.log' for more details" "$LINENO" 5; } 5020 5021# Provide some information about the compiler. 5022printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5023set X $ac_compile 5024ac_compiler=$2 5025for ac_option in --version -v -V -qversion -version; do 5026 { { ac_try="$ac_compiler $ac_option >&5" 5027case "(($ac_try" in 5028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5029 *) ac_try_echo=$ac_try;; 5030esac 5031eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5032printf "%s\n" "$ac_try_echo"; } >&5 5033 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5034 ac_status=$? 5035 if test -s conftest.err; then 5036 sed '10a\ 5037... rest of stderr output deleted ... 5038 10q' conftest.err >conftest.er1 5039 cat conftest.er1 >&5 5040 fi 5041 rm -f conftest.er1 conftest.err 5042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5043 test $ac_status = 0; } 5044done 5045 5046cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5047/* end confdefs.h. */ 5048 5049int 5050main (void) 5051{ 5052 5053 ; 5054 return 0; 5055} 5056_ACEOF 5057ac_clean_files_save=$ac_clean_files 5058ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 5059# Try to create an executable without -o first, disregard a.out. 5060# It will help us diagnose broken compilers, and finding out an intuition 5061# of exeext. 5062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 5063printf %s "checking whether the C compiler works... " >&6; } 5064ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 5065 5066# The possible output files: 5067ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 5068 5069ac_rmfiles= 5070for ac_file in $ac_files 5071do 5072 case $ac_file in 5073 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 5074 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 5075 esac 5076done 5077rm -f $ac_rmfiles 5078 5079if { { ac_try="$ac_link_default" 5080case "(($ac_try" in 5081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5082 *) ac_try_echo=$ac_try;; 5083esac 5084eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5085printf "%s\n" "$ac_try_echo"; } >&5 5086 (eval "$ac_link_default") 2>&5 5087 ac_status=$? 5088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5089 test $ac_status = 0; } 5090then : 5091 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 5092# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 5093# in a Makefile. We should not override ac_cv_exeext if it was cached, 5094# so that the user can short-circuit this test for compilers unknown to 5095# Autoconf. 5096for ac_file in $ac_files '' 5097do 5098 test -f "$ac_file" || continue 5099 case $ac_file in 5100 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 5101 ;; 5102 [ab].out ) 5103 # We found the default executable, but exeext='' is most 5104 # certainly right. 5105 break;; 5106 *.* ) 5107 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 5108 then :; else 5109 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5110 fi 5111 # We set ac_cv_exeext here because the later test for it is not 5112 # safe: cross compilers may not add the suffix if given an `-o' 5113 # argument, so we may need to know it at that point already. 5114 # Even if this section looks crufty: it has the advantage of 5115 # actually working. 5116 break;; 5117 * ) 5118 break;; 5119 esac 5120done 5121test "$ac_cv_exeext" = no && ac_cv_exeext= 5122 5123else $as_nop 5124 ac_file='' 5125fi 5126if test -z "$ac_file" 5127then : 5128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5129printf "%s\n" "no" >&6; } 5130printf "%s\n" "$as_me: failed program was:" >&5 5131sed 's/^/| /' conftest.$ac_ext >&5 5132 5133{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5134printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5135as_fn_error 77 "C compiler cannot create executables 5136See \`config.log' for more details" "$LINENO" 5; } 5137else $as_nop 5138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5139printf "%s\n" "yes" >&6; } 5140fi 5141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 5142printf %s "checking for C compiler default output file name... " >&6; } 5143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 5144printf "%s\n" "$ac_file" >&6; } 5145ac_exeext=$ac_cv_exeext 5146 5147rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 5148ac_clean_files=$ac_clean_files_save 5149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 5150printf %s "checking for suffix of executables... " >&6; } 5151if { { ac_try="$ac_link" 5152case "(($ac_try" in 5153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5154 *) ac_try_echo=$ac_try;; 5155esac 5156eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5157printf "%s\n" "$ac_try_echo"; } >&5 5158 (eval "$ac_link") 2>&5 5159 ac_status=$? 5160 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5161 test $ac_status = 0; } 5162then : 5163 # If both `conftest.exe' and `conftest' are `present' (well, observable) 5164# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 5165# work properly (i.e., refer to `conftest.exe'), while it won't with 5166# `rm'. 5167for ac_file in conftest.exe conftest conftest.*; do 5168 test -f "$ac_file" || continue 5169 case $ac_file in 5170 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 5171 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5172 break;; 5173 * ) break;; 5174 esac 5175done 5176else $as_nop 5177 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5178printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5179as_fn_error $? "cannot compute suffix of executables: cannot compile and link 5180See \`config.log' for more details" "$LINENO" 5; } 5181fi 5182rm -f conftest conftest$ac_cv_exeext 5183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 5184printf "%s\n" "$ac_cv_exeext" >&6; } 5185 5186rm -f conftest.$ac_ext 5187EXEEXT=$ac_cv_exeext 5188ac_exeext=$EXEEXT 5189cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5190/* end confdefs.h. */ 5191#include <stdio.h> 5192int 5193main (void) 5194{ 5195FILE *f = fopen ("conftest.out", "w"); 5196 return ferror (f) || fclose (f) != 0; 5197 5198 ; 5199 return 0; 5200} 5201_ACEOF 5202ac_clean_files="$ac_clean_files conftest.out" 5203# Check that the compiler produces executables we can run. If not, either 5204# the compiler is broken, or we cross compile. 5205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 5206printf %s "checking whether we are cross compiling... " >&6; } 5207if test "$cross_compiling" != yes; then 5208 { { ac_try="$ac_link" 5209case "(($ac_try" in 5210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5211 *) ac_try_echo=$ac_try;; 5212esac 5213eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5214printf "%s\n" "$ac_try_echo"; } >&5 5215 (eval "$ac_link") 2>&5 5216 ac_status=$? 5217 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5218 test $ac_status = 0; } 5219 if { ac_try='./conftest$ac_cv_exeext' 5220 { { case "(($ac_try" in 5221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5222 *) ac_try_echo=$ac_try;; 5223esac 5224eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5225printf "%s\n" "$ac_try_echo"; } >&5 5226 (eval "$ac_try") 2>&5 5227 ac_status=$? 5228 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5229 test $ac_status = 0; }; }; then 5230 cross_compiling=no 5231 else 5232 if test "$cross_compiling" = maybe; then 5233 cross_compiling=yes 5234 else 5235 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5236printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5237as_fn_error 77 "cannot run C compiled programs. 5238If you meant to cross compile, use \`--host'. 5239See \`config.log' for more details" "$LINENO" 5; } 5240 fi 5241 fi 5242fi 5243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 5244printf "%s\n" "$cross_compiling" >&6; } 5245 5246rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 5247ac_clean_files=$ac_clean_files_save 5248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 5249printf %s "checking for suffix of object files... " >&6; } 5250if test ${ac_cv_objext+y} 5251then : 5252 printf %s "(cached) " >&6 5253else $as_nop 5254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5255/* end confdefs.h. */ 5256 5257int 5258main (void) 5259{ 5260 5261 ; 5262 return 0; 5263} 5264_ACEOF 5265rm -f conftest.o conftest.obj 5266if { { ac_try="$ac_compile" 5267case "(($ac_try" in 5268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5269 *) ac_try_echo=$ac_try;; 5270esac 5271eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5272printf "%s\n" "$ac_try_echo"; } >&5 5273 (eval "$ac_compile") 2>&5 5274 ac_status=$? 5275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5276 test $ac_status = 0; } 5277then : 5278 for ac_file in conftest.o conftest.obj conftest.*; do 5279 test -f "$ac_file" || continue; 5280 case $ac_file in 5281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 5282 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 5283 break;; 5284 esac 5285done 5286else $as_nop 5287 printf "%s\n" "$as_me: failed program was:" >&5 5288sed 's/^/| /' conftest.$ac_ext >&5 5289 5290{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5291printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5292as_fn_error $? "cannot compute suffix of object files: cannot compile 5293See \`config.log' for more details" "$LINENO" 5; } 5294fi 5295rm -f conftest.$ac_cv_objext conftest.$ac_ext 5296fi 5297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 5298printf "%s\n" "$ac_cv_objext" >&6; } 5299OBJEXT=$ac_cv_objext 5300ac_objext=$OBJEXT 5301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 5302printf %s "checking whether the compiler supports GNU C... " >&6; } 5303if test ${ac_cv_c_compiler_gnu+y} 5304then : 5305 printf %s "(cached) " >&6 5306else $as_nop 5307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5308/* end confdefs.h. */ 5309 5310int 5311main (void) 5312{ 5313#ifndef __GNUC__ 5314 choke me 5315#endif 5316 5317 ; 5318 return 0; 5319} 5320_ACEOF 5321if ac_fn_c_try_compile "$LINENO" 5322then : 5323 ac_compiler_gnu=yes 5324else $as_nop 5325 ac_compiler_gnu=no 5326fi 5327rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5328ac_cv_c_compiler_gnu=$ac_compiler_gnu 5329 5330fi 5331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5332printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 5333ac_compiler_gnu=$ac_cv_c_compiler_gnu 5334 5335if test $ac_compiler_gnu = yes; then 5336 GCC=yes 5337else 5338 GCC= 5339fi 5340ac_test_CFLAGS=${CFLAGS+y} 5341ac_save_CFLAGS=$CFLAGS 5342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5343printf %s "checking whether $CC accepts -g... " >&6; } 5344if test ${ac_cv_prog_cc_g+y} 5345then : 5346 printf %s "(cached) " >&6 5347else $as_nop 5348 ac_save_c_werror_flag=$ac_c_werror_flag 5349 ac_c_werror_flag=yes 5350 ac_cv_prog_cc_g=no 5351 CFLAGS="-g" 5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5353/* end confdefs.h. */ 5354 5355int 5356main (void) 5357{ 5358 5359 ; 5360 return 0; 5361} 5362_ACEOF 5363if ac_fn_c_try_compile "$LINENO" 5364then : 5365 ac_cv_prog_cc_g=yes 5366else $as_nop 5367 CFLAGS="" 5368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5369/* end confdefs.h. */ 5370 5371int 5372main (void) 5373{ 5374 5375 ; 5376 return 0; 5377} 5378_ACEOF 5379if ac_fn_c_try_compile "$LINENO" 5380then : 5381 5382else $as_nop 5383 ac_c_werror_flag=$ac_save_c_werror_flag 5384 CFLAGS="-g" 5385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5386/* end confdefs.h. */ 5387 5388int 5389main (void) 5390{ 5391 5392 ; 5393 return 0; 5394} 5395_ACEOF 5396if ac_fn_c_try_compile "$LINENO" 5397then : 5398 ac_cv_prog_cc_g=yes 5399fi 5400rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5401fi 5402rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5403fi 5404rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5405 ac_c_werror_flag=$ac_save_c_werror_flag 5406fi 5407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5408printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 5409if test $ac_test_CFLAGS; then 5410 CFLAGS=$ac_save_CFLAGS 5411elif test $ac_cv_prog_cc_g = yes; then 5412 if test "$GCC" = yes; then 5413 CFLAGS="-g -O2" 5414 else 5415 CFLAGS="-g" 5416 fi 5417else 5418 if test "$GCC" = yes; then 5419 CFLAGS="-O2" 5420 else 5421 CFLAGS= 5422 fi 5423fi 5424ac_prog_cc_stdc=no 5425if test x$ac_prog_cc_stdc = xno 5426then : 5427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 5428printf %s "checking for $CC option to enable C11 features... " >&6; } 5429if test ${ac_cv_prog_cc_c11+y} 5430then : 5431 printf %s "(cached) " >&6 5432else $as_nop 5433 ac_cv_prog_cc_c11=no 5434ac_save_CC=$CC 5435cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5436/* end confdefs.h. */ 5437$ac_c_conftest_c11_program 5438_ACEOF 5439for ac_arg in '' -std=gnu11 5440do 5441 CC="$ac_save_CC $ac_arg" 5442 if ac_fn_c_try_compile "$LINENO" 5443then : 5444 ac_cv_prog_cc_c11=$ac_arg 5445fi 5446rm -f core conftest.err conftest.$ac_objext conftest.beam 5447 test "x$ac_cv_prog_cc_c11" != "xno" && break 5448done 5449rm -f conftest.$ac_ext 5450CC=$ac_save_CC 5451fi 5452 5453if test "x$ac_cv_prog_cc_c11" = xno 5454then : 5455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5456printf "%s\n" "unsupported" >&6; } 5457else $as_nop 5458 if test "x$ac_cv_prog_cc_c11" = x 5459then : 5460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5461printf "%s\n" "none needed" >&6; } 5462else $as_nop 5463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 5464printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 5465 CC="$CC $ac_cv_prog_cc_c11" 5466fi 5467 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 5468 ac_prog_cc_stdc=c11 5469fi 5470fi 5471if test x$ac_prog_cc_stdc = xno 5472then : 5473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 5474printf %s "checking for $CC option to enable C99 features... " >&6; } 5475if test ${ac_cv_prog_cc_c99+y} 5476then : 5477 printf %s "(cached) " >&6 5478else $as_nop 5479 ac_cv_prog_cc_c99=no 5480ac_save_CC=$CC 5481cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5482/* end confdefs.h. */ 5483$ac_c_conftest_c99_program 5484_ACEOF 5485for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 5486do 5487 CC="$ac_save_CC $ac_arg" 5488 if ac_fn_c_try_compile "$LINENO" 5489then : 5490 ac_cv_prog_cc_c99=$ac_arg 5491fi 5492rm -f core conftest.err conftest.$ac_objext conftest.beam 5493 test "x$ac_cv_prog_cc_c99" != "xno" && break 5494done 5495rm -f conftest.$ac_ext 5496CC=$ac_save_CC 5497fi 5498 5499if test "x$ac_cv_prog_cc_c99" = xno 5500then : 5501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5502printf "%s\n" "unsupported" >&6; } 5503else $as_nop 5504 if test "x$ac_cv_prog_cc_c99" = x 5505then : 5506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5507printf "%s\n" "none needed" >&6; } 5508else $as_nop 5509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5510printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 5511 CC="$CC $ac_cv_prog_cc_c99" 5512fi 5513 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 5514 ac_prog_cc_stdc=c99 5515fi 5516fi 5517if test x$ac_prog_cc_stdc = xno 5518then : 5519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 5520printf %s "checking for $CC option to enable C89 features... " >&6; } 5521if test ${ac_cv_prog_cc_c89+y} 5522then : 5523 printf %s "(cached) " >&6 5524else $as_nop 5525 ac_cv_prog_cc_c89=no 5526ac_save_CC=$CC 5527cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5528/* end confdefs.h. */ 5529$ac_c_conftest_c89_program 5530_ACEOF 5531for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5532do 5533 CC="$ac_save_CC $ac_arg" 5534 if ac_fn_c_try_compile "$LINENO" 5535then : 5536 ac_cv_prog_cc_c89=$ac_arg 5537fi 5538rm -f core conftest.err conftest.$ac_objext conftest.beam 5539 test "x$ac_cv_prog_cc_c89" != "xno" && break 5540done 5541rm -f conftest.$ac_ext 5542CC=$ac_save_CC 5543fi 5544 5545if test "x$ac_cv_prog_cc_c89" = xno 5546then : 5547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5548printf "%s\n" "unsupported" >&6; } 5549else $as_nop 5550 if test "x$ac_cv_prog_cc_c89" = x 5551then : 5552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5553printf "%s\n" "none needed" >&6; } 5554else $as_nop 5555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5556printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 5557 CC="$CC $ac_cv_prog_cc_c89" 5558fi 5559 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 5560 ac_prog_cc_stdc=c89 5561fi 5562fi 5563 5564ac_ext=c 5565ac_cpp='$CPP $CPPFLAGS' 5566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5568ac_compiler_gnu=$ac_cv_c_compiler_gnu 5569 5570 5571 ac_ext=c 5572ac_cpp='$CPP $CPPFLAGS' 5573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5575ac_compiler_gnu=$ac_cv_c_compiler_gnu 5576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5577printf %s "checking whether $CC understands -c and -o together... " >&6; } 5578if test ${am_cv_prog_cc_c_o+y} 5579then : 5580 printf %s "(cached) " >&6 5581else $as_nop 5582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5583/* end confdefs.h. */ 5584 5585int 5586main (void) 5587{ 5588 5589 ; 5590 return 0; 5591} 5592_ACEOF 5593 # Make sure it works both with $CC and with simple cc. 5594 # Following AC_PROG_CC_C_O, we do the test twice because some 5595 # compilers refuse to overwrite an existing .o file with -o, 5596 # though they will create one. 5597 am_cv_prog_cc_c_o=yes 5598 for am_i in 1 2; do 5599 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5600 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5601 ac_status=$? 5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5603 (exit $ac_status); } \ 5604 && test -f conftest2.$ac_objext; then 5605 : OK 5606 else 5607 am_cv_prog_cc_c_o=no 5608 break 5609 fi 5610 done 5611 rm -f core conftest* 5612 unset am_i 5613fi 5614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5615printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 5616if test "$am_cv_prog_cc_c_o" != yes; then 5617 # Losing compiler, so override with the script. 5618 # FIXME: It is wrong to rewrite CC. 5619 # But if we don't then we get into trouble of one sort or another. 5620 # A longer-term fix would be to have automake use am__CC in this case, 5621 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5622 CC="$am_aux_dir/compile $CC" 5623fi 5624ac_ext=c 5625ac_cpp='$CPP $CPPFLAGS' 5626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5628ac_compiler_gnu=$ac_cv_c_compiler_gnu 5629 5630 5631depcc="$CC" am_compiler_list= 5632 5633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5634printf %s "checking dependency style of $depcc... " >&6; } 5635if test ${am_cv_CC_dependencies_compiler_type+y} 5636then : 5637 printf %s "(cached) " >&6 5638else $as_nop 5639 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5640 # We make a subdir and do the tests there. Otherwise we can end up 5641 # making bogus files that we don't know about and never remove. For 5642 # instance it was reported that on HP-UX the gcc test will end up 5643 # making a dummy file named 'D' -- because '-MD' means "put the output 5644 # in D". 5645 rm -rf conftest.dir 5646 mkdir conftest.dir 5647 # Copy depcomp to subdir because otherwise we won't find it if we're 5648 # using a relative directory. 5649 cp "$am_depcomp" conftest.dir 5650 cd conftest.dir 5651 # We will build objects and dependencies in a subdirectory because 5652 # it helps to detect inapplicable dependency modes. For instance 5653 # both Tru64's cc and ICC support -MD to output dependencies as a 5654 # side effect of compilation, but ICC will put the dependencies in 5655 # the current directory while Tru64 will put them in the object 5656 # directory. 5657 mkdir sub 5658 5659 am_cv_CC_dependencies_compiler_type=none 5660 if test "$am_compiler_list" = ""; then 5661 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5662 fi 5663 am__universal=false 5664 case " $depcc " in #( 5665 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5666 esac 5667 5668 for depmode in $am_compiler_list; do 5669 # Setup a source with many dependencies, because some compilers 5670 # like to wrap large dependency lists on column 80 (with \), and 5671 # we should not choose a depcomp mode which is confused by this. 5672 # 5673 # We need to recreate these files for each test, as the compiler may 5674 # overwrite some of them when testing with obscure command lines. 5675 # This happens at least with the AIX C compiler. 5676 : > sub/conftest.c 5677 for i in 1 2 3 4 5 6; do 5678 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5679 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5680 # Solaris 10 /bin/sh. 5681 echo '/* dummy */' > sub/conftst$i.h 5682 done 5683 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5684 5685 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5686 # mode. It turns out that the SunPro C++ compiler does not properly 5687 # handle '-M -o', and we need to detect this. Also, some Intel 5688 # versions had trouble with output in subdirs. 5689 am__obj=sub/conftest.${OBJEXT-o} 5690 am__minus_obj="-o $am__obj" 5691 case $depmode in 5692 gcc) 5693 # This depmode causes a compiler race in universal mode. 5694 test "$am__universal" = false || continue 5695 ;; 5696 nosideeffect) 5697 # After this tag, mechanisms are not by side-effect, so they'll 5698 # only be used when explicitly requested. 5699 if test "x$enable_dependency_tracking" = xyes; then 5700 continue 5701 else 5702 break 5703 fi 5704 ;; 5705 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5706 # This compiler won't grok '-c -o', but also, the minuso test has 5707 # not run yet. These depmodes are late enough in the game, and 5708 # so weak that their functioning should not be impacted. 5709 am__obj=conftest.${OBJEXT-o} 5710 am__minus_obj= 5711 ;; 5712 none) break ;; 5713 esac 5714 if depmode=$depmode \ 5715 source=sub/conftest.c object=$am__obj \ 5716 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5717 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5718 >/dev/null 2>conftest.err && 5719 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5720 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5721 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5722 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5723 # icc doesn't choke on unknown options, it will just issue warnings 5724 # or remarks (even with -Werror). So we grep stderr for any message 5725 # that says an option was ignored or not supported. 5726 # When given -MP, icc 7.0 and 7.1 complain thusly: 5727 # icc: Command line warning: ignoring option '-M'; no argument required 5728 # The diagnosis changed in icc 8.0: 5729 # icc: Command line remark: option '-MP' not supported 5730 if (grep 'ignoring option' conftest.err || 5731 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5732 am_cv_CC_dependencies_compiler_type=$depmode 5733 break 5734 fi 5735 fi 5736 done 5737 5738 cd .. 5739 rm -rf conftest.dir 5740else 5741 am_cv_CC_dependencies_compiler_type=none 5742fi 5743 5744fi 5745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5746printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 5747CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5748 5749 if 5750 test "x$enable_dependency_tracking" != xno \ 5751 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5752 am__fastdepCC_TRUE= 5753 am__fastdepCC_FALSE='#' 5754else 5755 am__fastdepCC_TRUE='#' 5756 am__fastdepCC_FALSE= 5757fi 5758 5759 5760 5761ac_header= ac_cache= 5762for ac_item in $ac_header_c_list 5763do 5764 if test $ac_cache; then 5765 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 5766 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 5767 printf "%s\n" "#define $ac_item 1" >> confdefs.h 5768 fi 5769 ac_header= ac_cache= 5770 elif test $ac_header; then 5771 ac_cache=$ac_item 5772 else 5773 ac_header=$ac_item 5774 fi 5775done 5776 5777 5778 5779 5780 5781 5782 5783 5784if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 5785then : 5786 5787printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 5788 5789fi 5790 5791 5792 5793 5794 5795 5796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5797printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5798if test ${ac_cv_safe_to_define___extensions__+y} 5799then : 5800 printf %s "(cached) " >&6 5801else $as_nop 5802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5803/* end confdefs.h. */ 5804 5805# define __EXTENSIONS__ 1 5806 $ac_includes_default 5807int 5808main (void) 5809{ 5810 5811 ; 5812 return 0; 5813} 5814_ACEOF 5815if ac_fn_c_try_compile "$LINENO" 5816then : 5817 ac_cv_safe_to_define___extensions__=yes 5818else $as_nop 5819 ac_cv_safe_to_define___extensions__=no 5820fi 5821rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5822fi 5823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5824printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 5825 5826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 5827printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 5828if test ${ac_cv_should_define__xopen_source+y} 5829then : 5830 printf %s "(cached) " >&6 5831else $as_nop 5832 ac_cv_should_define__xopen_source=no 5833 if test $ac_cv_header_wchar_h = yes 5834then : 5835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5836/* end confdefs.h. */ 5837 5838 #include <wchar.h> 5839 mbstate_t x; 5840int 5841main (void) 5842{ 5843 5844 ; 5845 return 0; 5846} 5847_ACEOF 5848if ac_fn_c_try_compile "$LINENO" 5849then : 5850 5851else $as_nop 5852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5853/* end confdefs.h. */ 5854 5855 #define _XOPEN_SOURCE 500 5856 #include <wchar.h> 5857 mbstate_t x; 5858int 5859main (void) 5860{ 5861 5862 ; 5863 return 0; 5864} 5865_ACEOF 5866if ac_fn_c_try_compile "$LINENO" 5867then : 5868 ac_cv_should_define__xopen_source=yes 5869fi 5870rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5871fi 5872rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5873fi 5874fi 5875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 5876printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 5877 5878 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 5879 5880 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 5881 5882 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 5883 5884 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 5885 5886 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 5887 5888 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 5889 5890 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5891 5892 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 5893 5894 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 5895 5896 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 5897 5898 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 5899 5900 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 5901 5902 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 5903 5904 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 5905 5906 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 5907 5908 if test $ac_cv_header_minix_config_h = yes 5909then : 5910 MINIX=yes 5911 printf "%s\n" "#define _MINIX 1" >>confdefs.h 5912 5913 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 5914 5915 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 5916 5917else $as_nop 5918 MINIX= 5919fi 5920 if test $ac_cv_safe_to_define___extensions__ = yes 5921then : 5922 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 5923 5924fi 5925 if test $ac_cv_should_define__xopen_source = yes 5926then : 5927 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 5928 5929fi 5930 5931 5932# Require xorg-macros minimum of 1.14 for XORG_COMPILER_BRAND in XORG_DEFAULT_OPTIONS 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 5946printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 5947if test ${ac_cv_c_undeclared_builtin_options+y} 5948then : 5949 printf %s "(cached) " >&6 5950else $as_nop 5951 ac_save_CFLAGS=$CFLAGS 5952 ac_cv_c_undeclared_builtin_options='cannot detect' 5953 for ac_arg in '' -fno-builtin; do 5954 CFLAGS="$ac_save_CFLAGS $ac_arg" 5955 # This test program should *not* compile successfully. 5956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5957/* end confdefs.h. */ 5958 5959int 5960main (void) 5961{ 5962(void) strchr; 5963 ; 5964 return 0; 5965} 5966_ACEOF 5967if ac_fn_c_try_compile "$LINENO" 5968then : 5969 5970else $as_nop 5971 # This test program should compile successfully. 5972 # No library function is consistently available on 5973 # freestanding implementations, so test against a dummy 5974 # declaration. Include always-available headers on the 5975 # off chance that they somehow elicit warnings. 5976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5977/* end confdefs.h. */ 5978#include <float.h> 5979#include <limits.h> 5980#include <stdarg.h> 5981#include <stddef.h> 5982extern void ac_decl (int, char *); 5983 5984int 5985main (void) 5986{ 5987(void) ac_decl (0, (char *) 0); 5988 (void) ac_decl; 5989 5990 ; 5991 return 0; 5992} 5993_ACEOF 5994if ac_fn_c_try_compile "$LINENO" 5995then : 5996 if test x"$ac_arg" = x 5997then : 5998 ac_cv_c_undeclared_builtin_options='none needed' 5999else $as_nop 6000 ac_cv_c_undeclared_builtin_options=$ac_arg 6001fi 6002 break 6003fi 6004rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6005fi 6006rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6007 done 6008 CFLAGS=$ac_save_CFLAGS 6009 6010fi 6011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 6012printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 6013 case $ac_cv_c_undeclared_builtin_options in #( 6014 'cannot detect') : 6015 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6016printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 6017as_fn_error $? "cannot make $CC report undeclared builtins 6018See \`config.log' for more details" "$LINENO" 5; } ;; #( 6019 'none needed') : 6020 ac_c_undeclared_builtin_options='' ;; #( 6021 *) : 6022 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 6023esac 6024 6025 6026 6027 6028 6029ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 6030if test "x$ac_cv_have_decl___clang__" = xyes 6031then : 6032 CLANGCC="yes" 6033else $as_nop 6034 CLANGCC="no" 6035fi 6036ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 6037if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 6038then : 6039 INTELCC="yes" 6040else $as_nop 6041 INTELCC="no" 6042fi 6043ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 6044if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 6045then : 6046 SUNCC="yes" 6047else $as_nop 6048 SUNCC="no" 6049fi 6050 6051 6052 6053 6054 6055 6056 6057 6058if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 6059 if test -n "$ac_tool_prefix"; then 6060 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 6061set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 6062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6063printf %s "checking for $ac_word... " >&6; } 6064if test ${ac_cv_path_PKG_CONFIG+y} 6065then : 6066 printf %s "(cached) " >&6 6067else $as_nop 6068 case $PKG_CONFIG in 6069 [\\/]* | ?:[\\/]*) 6070 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 6071 ;; 6072 *) 6073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6074for as_dir in $PATH 6075do 6076 IFS=$as_save_IFS 6077 case $as_dir in #((( 6078 '') as_dir=./ ;; 6079 */) ;; 6080 *) as_dir=$as_dir/ ;; 6081 esac 6082 for ac_exec_ext in '' $ac_executable_extensions; do 6083 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6084 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 6085 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6086 break 2 6087 fi 6088done 6089 done 6090IFS=$as_save_IFS 6091 6092 ;; 6093esac 6094fi 6095PKG_CONFIG=$ac_cv_path_PKG_CONFIG 6096if test -n "$PKG_CONFIG"; then 6097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 6098printf "%s\n" "$PKG_CONFIG" >&6; } 6099else 6100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6101printf "%s\n" "no" >&6; } 6102fi 6103 6104 6105fi 6106if test -z "$ac_cv_path_PKG_CONFIG"; then 6107 ac_pt_PKG_CONFIG=$PKG_CONFIG 6108 # Extract the first word of "pkg-config", so it can be a program name with args. 6109set dummy pkg-config; ac_word=$2 6110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6111printf %s "checking for $ac_word... " >&6; } 6112if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 6113then : 6114 printf %s "(cached) " >&6 6115else $as_nop 6116 case $ac_pt_PKG_CONFIG in 6117 [\\/]* | ?:[\\/]*) 6118 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 6119 ;; 6120 *) 6121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6122for as_dir in $PATH 6123do 6124 IFS=$as_save_IFS 6125 case $as_dir in #((( 6126 '') as_dir=./ ;; 6127 */) ;; 6128 *) as_dir=$as_dir/ ;; 6129 esac 6130 for ac_exec_ext in '' $ac_executable_extensions; do 6131 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6132 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 6133 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6134 break 2 6135 fi 6136done 6137 done 6138IFS=$as_save_IFS 6139 6140 ;; 6141esac 6142fi 6143ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 6144if test -n "$ac_pt_PKG_CONFIG"; then 6145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 6146printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 6147else 6148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6149printf "%s\n" "no" >&6; } 6150fi 6151 6152 if test "x$ac_pt_PKG_CONFIG" = x; then 6153 PKG_CONFIG="" 6154 else 6155 case $cross_compiling:$ac_tool_warned in 6156yes:) 6157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6158printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6159ac_tool_warned=yes ;; 6160esac 6161 PKG_CONFIG=$ac_pt_PKG_CONFIG 6162 fi 6163else 6164 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 6165fi 6166 6167fi 6168if test -n "$PKG_CONFIG"; then 6169 _pkg_min_version=0.9.0 6170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 6171printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 6172 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 6173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6174printf "%s\n" "yes" >&6; } 6175 else 6176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6177printf "%s\n" "no" >&6; } 6178 PKG_CONFIG="" 6179 fi 6180fi 6181 6182 6183 # Make sure we can run config.sub. 6184$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 6185 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 6186 6187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 6188printf %s "checking build system type... " >&6; } 6189if test ${ac_cv_build+y} 6190then : 6191 printf %s "(cached) " >&6 6192else $as_nop 6193 ac_build_alias=$build_alias 6194test "x$ac_build_alias" = x && 6195 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 6196test "x$ac_build_alias" = x && 6197 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 6198ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 6199 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 6200 6201fi 6202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 6203printf "%s\n" "$ac_cv_build" >&6; } 6204case $ac_cv_build in 6205*-*-*) ;; 6206*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 6207esac 6208build=$ac_cv_build 6209ac_save_IFS=$IFS; IFS='-' 6210set x $ac_cv_build 6211shift 6212build_cpu=$1 6213build_vendor=$2 6214shift; shift 6215# Remember, the first character of IFS is used to create $*, 6216# except with old shells: 6217build_os=$* 6218IFS=$ac_save_IFS 6219case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 6220 6221 6222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 6223printf %s "checking host system type... " >&6; } 6224if test ${ac_cv_host+y} 6225then : 6226 printf %s "(cached) " >&6 6227else $as_nop 6228 if test "x$host_alias" = x; then 6229 ac_cv_host=$ac_cv_build 6230else 6231 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 6232 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 6233fi 6234 6235fi 6236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 6237printf "%s\n" "$ac_cv_host" >&6; } 6238case $ac_cv_host in 6239*-*-*) ;; 6240*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 6241esac 6242host=$ac_cv_host 6243ac_save_IFS=$IFS; IFS='-' 6244set x $ac_cv_host 6245shift 6246host_cpu=$1 6247host_vendor=$2 6248shift; shift 6249# Remember, the first character of IFS is used to create $*, 6250# except with old shells: 6251host_os=$* 6252IFS=$ac_save_IFS 6253case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 6254 6255 6256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6257printf %s "checking for a sed that does not truncate output... " >&6; } 6258if test ${ac_cv_path_SED+y} 6259then : 6260 printf %s "(cached) " >&6 6261else $as_nop 6262 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6263 for ac_i in 1 2 3 4 5 6 7; do 6264 ac_script="$ac_script$as_nl$ac_script" 6265 done 6266 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6267 { ac_script=; unset ac_script;} 6268 if test -z "$SED"; then 6269 ac_path_SED_found=false 6270 # Loop through the user's path and test for each of PROGNAME-LIST 6271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6272for as_dir in $PATH 6273do 6274 IFS=$as_save_IFS 6275 case $as_dir in #((( 6276 '') as_dir=./ ;; 6277 */) ;; 6278 *) as_dir=$as_dir/ ;; 6279 esac 6280 for ac_prog in sed gsed 6281 do 6282 for ac_exec_ext in '' $ac_executable_extensions; do 6283 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 6284 as_fn_executable_p "$ac_path_SED" || continue 6285# Check for GNU ac_path_SED and select it if it is found. 6286 # Check for GNU $ac_path_SED 6287case `"$ac_path_SED" --version 2>&1` in 6288*GNU*) 6289 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6290*) 6291 ac_count=0 6292 printf %s 0123456789 >"conftest.in" 6293 while : 6294 do 6295 cat "conftest.in" "conftest.in" >"conftest.tmp" 6296 mv "conftest.tmp" "conftest.in" 6297 cp "conftest.in" "conftest.nl" 6298 printf "%s\n" '' >> "conftest.nl" 6299 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6300 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6301 as_fn_arith $ac_count + 1 && ac_count=$as_val 6302 if test $ac_count -gt ${ac_path_SED_max-0}; then 6303 # Best one so far, save it but keep looking for a better one 6304 ac_cv_path_SED="$ac_path_SED" 6305 ac_path_SED_max=$ac_count 6306 fi 6307 # 10*(2^10) chars as input seems more than enough 6308 test $ac_count -gt 10 && break 6309 done 6310 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6311esac 6312 6313 $ac_path_SED_found && break 3 6314 done 6315 done 6316 done 6317IFS=$as_save_IFS 6318 if test -z "$ac_cv_path_SED"; then 6319 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6320 fi 6321else 6322 ac_cv_path_SED=$SED 6323fi 6324 6325fi 6326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6327printf "%s\n" "$ac_cv_path_SED" >&6; } 6328 SED="$ac_cv_path_SED" 6329 rm -f conftest.sed 6330 6331 6332 6333 6334 6335 6336# Check whether --enable-selective-werror was given. 6337if test ${enable_selective_werror+y} 6338then : 6339 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 6340else $as_nop 6341 SELECTIVE_WERROR=yes 6342fi 6343 6344 6345 6346 6347 6348# -v is too short to test reliably with XORG_TESTSET_CFLAG 6349if test "x$SUNCC" = "xyes"; then 6350 BASE_CFLAGS="-v" 6351else 6352 BASE_CFLAGS="" 6353fi 6354 6355# This chunk of warnings were those that existed in the legacy CWARNFLAGS 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369xorg_testset_save_CFLAGS="$CFLAGS" 6370 6371if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6374printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6375if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6376then : 6377 printf %s "(cached) " >&6 6378else $as_nop 6379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6380/* end confdefs.h. */ 6381int i; 6382_ACEOF 6383if ac_fn_c_try_compile "$LINENO" 6384then : 6385 xorg_cv_cc_flag_unknown_warning_option=yes 6386else $as_nop 6387 xorg_cv_cc_flag_unknown_warning_option=no 6388fi 6389rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6390fi 6391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6392printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6393 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6394 CFLAGS="$xorg_testset_save_CFLAGS" 6395fi 6396 6397if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6398 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6399 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6400 fi 6401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6403printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6404if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6405then : 6406 printf %s "(cached) " >&6 6407else $as_nop 6408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6409/* end confdefs.h. */ 6410int i; 6411_ACEOF 6412if ac_fn_c_try_compile "$LINENO" 6413then : 6414 xorg_cv_cc_flag_unused_command_line_argument=yes 6415else $as_nop 6416 xorg_cv_cc_flag_unused_command_line_argument=no 6417fi 6418rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6419fi 6420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6421printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6422 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6423 CFLAGS="$xorg_testset_save_CFLAGS" 6424fi 6425 6426found="no" 6427 6428 if test $found = "no" ; then 6429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6431 fi 6432 6433 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6435 fi 6436 6437 CFLAGS="$CFLAGS -Wall" 6438 6439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 6440printf %s "checking if $CC supports -Wall... " >&6; } 6441 cacheid=xorg_cv_cc_flag__Wall 6442 if eval test \${$cacheid+y} 6443then : 6444 printf %s "(cached) " >&6 6445else $as_nop 6446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6447/* end confdefs.h. */ 6448int i; 6449int 6450main (void) 6451{ 6452 6453 ; 6454 return 0; 6455} 6456_ACEOF 6457if ac_fn_c_try_link "$LINENO" 6458then : 6459 eval $cacheid=yes 6460else $as_nop 6461 eval $cacheid=no 6462fi 6463rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6464 conftest$ac_exeext conftest.$ac_ext 6465fi 6466 6467 6468 CFLAGS="$xorg_testset_save_CFLAGS" 6469 6470 eval supported=\$$cacheid 6471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6472printf "%s\n" "$supported" >&6; } 6473 if test "$supported" = "yes" ; then 6474 BASE_CFLAGS="$BASE_CFLAGS -Wall" 6475 found="yes" 6476 fi 6477 fi 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493xorg_testset_save_CFLAGS="$CFLAGS" 6494 6495if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6498printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6499if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6500then : 6501 printf %s "(cached) " >&6 6502else $as_nop 6503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6504/* end confdefs.h. */ 6505int i; 6506_ACEOF 6507if ac_fn_c_try_compile "$LINENO" 6508then : 6509 xorg_cv_cc_flag_unknown_warning_option=yes 6510else $as_nop 6511 xorg_cv_cc_flag_unknown_warning_option=no 6512fi 6513rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6514fi 6515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6516printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6517 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6518 CFLAGS="$xorg_testset_save_CFLAGS" 6519fi 6520 6521if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6524 fi 6525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6527printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6528if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6529then : 6530 printf %s "(cached) " >&6 6531else $as_nop 6532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6533/* end confdefs.h. */ 6534int i; 6535_ACEOF 6536if ac_fn_c_try_compile "$LINENO" 6537then : 6538 xorg_cv_cc_flag_unused_command_line_argument=yes 6539else $as_nop 6540 xorg_cv_cc_flag_unused_command_line_argument=no 6541fi 6542rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6543fi 6544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6545printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6546 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6547 CFLAGS="$xorg_testset_save_CFLAGS" 6548fi 6549 6550found="no" 6551 6552 if test $found = "no" ; then 6553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6555 fi 6556 6557 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6559 fi 6560 6561 CFLAGS="$CFLAGS -Wpointer-arith" 6562 6563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 6564printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 6565 cacheid=xorg_cv_cc_flag__Wpointer_arith 6566 if eval test \${$cacheid+y} 6567then : 6568 printf %s "(cached) " >&6 6569else $as_nop 6570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6571/* end confdefs.h. */ 6572int i; 6573int 6574main (void) 6575{ 6576 6577 ; 6578 return 0; 6579} 6580_ACEOF 6581if ac_fn_c_try_link "$LINENO" 6582then : 6583 eval $cacheid=yes 6584else $as_nop 6585 eval $cacheid=no 6586fi 6587rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6588 conftest$ac_exeext conftest.$ac_ext 6589fi 6590 6591 6592 CFLAGS="$xorg_testset_save_CFLAGS" 6593 6594 eval supported=\$$cacheid 6595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6596printf "%s\n" "$supported" >&6; } 6597 if test "$supported" = "yes" ; then 6598 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 6599 found="yes" 6600 fi 6601 fi 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617xorg_testset_save_CFLAGS="$CFLAGS" 6618 6619if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6622printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6623if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6624then : 6625 printf %s "(cached) " >&6 6626else $as_nop 6627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6628/* end confdefs.h. */ 6629int i; 6630_ACEOF 6631if ac_fn_c_try_compile "$LINENO" 6632then : 6633 xorg_cv_cc_flag_unknown_warning_option=yes 6634else $as_nop 6635 xorg_cv_cc_flag_unknown_warning_option=no 6636fi 6637rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6638fi 6639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6640printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6641 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6642 CFLAGS="$xorg_testset_save_CFLAGS" 6643fi 6644 6645if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6647 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6648 fi 6649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6651printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6652if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6653then : 6654 printf %s "(cached) " >&6 6655else $as_nop 6656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6657/* end confdefs.h. */ 6658int i; 6659_ACEOF 6660if ac_fn_c_try_compile "$LINENO" 6661then : 6662 xorg_cv_cc_flag_unused_command_line_argument=yes 6663else $as_nop 6664 xorg_cv_cc_flag_unused_command_line_argument=no 6665fi 6666rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6667fi 6668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6669printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6670 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6671 CFLAGS="$xorg_testset_save_CFLAGS" 6672fi 6673 6674found="no" 6675 6676 if test $found = "no" ; then 6677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6679 fi 6680 6681 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6683 fi 6684 6685 CFLAGS="$CFLAGS -Wmissing-declarations" 6686 6687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 6688printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 6689 cacheid=xorg_cv_cc_flag__Wmissing_declarations 6690 if eval test \${$cacheid+y} 6691then : 6692 printf %s "(cached) " >&6 6693else $as_nop 6694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6695/* end confdefs.h. */ 6696int i; 6697int 6698main (void) 6699{ 6700 6701 ; 6702 return 0; 6703} 6704_ACEOF 6705if ac_fn_c_try_link "$LINENO" 6706then : 6707 eval $cacheid=yes 6708else $as_nop 6709 eval $cacheid=no 6710fi 6711rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6712 conftest$ac_exeext conftest.$ac_ext 6713fi 6714 6715 6716 CFLAGS="$xorg_testset_save_CFLAGS" 6717 6718 eval supported=\$$cacheid 6719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6720printf "%s\n" "$supported" >&6; } 6721 if test "$supported" = "yes" ; then 6722 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 6723 found="yes" 6724 fi 6725 fi 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741xorg_testset_save_CFLAGS="$CFLAGS" 6742 6743if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6746printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6747if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6748then : 6749 printf %s "(cached) " >&6 6750else $as_nop 6751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6752/* end confdefs.h. */ 6753int i; 6754_ACEOF 6755if ac_fn_c_try_compile "$LINENO" 6756then : 6757 xorg_cv_cc_flag_unknown_warning_option=yes 6758else $as_nop 6759 xorg_cv_cc_flag_unknown_warning_option=no 6760fi 6761rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6762fi 6763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6764printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6765 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6766 CFLAGS="$xorg_testset_save_CFLAGS" 6767fi 6768 6769if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6771 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6772 fi 6773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6775printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6776if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6777then : 6778 printf %s "(cached) " >&6 6779else $as_nop 6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6781/* end confdefs.h. */ 6782int i; 6783_ACEOF 6784if ac_fn_c_try_compile "$LINENO" 6785then : 6786 xorg_cv_cc_flag_unused_command_line_argument=yes 6787else $as_nop 6788 xorg_cv_cc_flag_unused_command_line_argument=no 6789fi 6790rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6791fi 6792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6793printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6794 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6795 CFLAGS="$xorg_testset_save_CFLAGS" 6796fi 6797 6798found="no" 6799 6800 if test $found = "no" ; then 6801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6803 fi 6804 6805 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6807 fi 6808 6809 CFLAGS="$CFLAGS -Wformat=2" 6810 6811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 6812printf %s "checking if $CC supports -Wformat=2... " >&6; } 6813 cacheid=xorg_cv_cc_flag__Wformat_2 6814 if eval test \${$cacheid+y} 6815then : 6816 printf %s "(cached) " >&6 6817else $as_nop 6818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6819/* end confdefs.h. */ 6820int i; 6821int 6822main (void) 6823{ 6824 6825 ; 6826 return 0; 6827} 6828_ACEOF 6829if ac_fn_c_try_link "$LINENO" 6830then : 6831 eval $cacheid=yes 6832else $as_nop 6833 eval $cacheid=no 6834fi 6835rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6836 conftest$ac_exeext conftest.$ac_ext 6837fi 6838 6839 6840 CFLAGS="$xorg_testset_save_CFLAGS" 6841 6842 eval supported=\$$cacheid 6843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6844printf "%s\n" "$supported" >&6; } 6845 if test "$supported" = "yes" ; then 6846 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 6847 found="yes" 6848 fi 6849 fi 6850 6851 if test $found = "no" ; then 6852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6854 fi 6855 6856 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6858 fi 6859 6860 CFLAGS="$CFLAGS -Wformat" 6861 6862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 6863printf %s "checking if $CC supports -Wformat... " >&6; } 6864 cacheid=xorg_cv_cc_flag__Wformat 6865 if eval test \${$cacheid+y} 6866then : 6867 printf %s "(cached) " >&6 6868else $as_nop 6869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6870/* end confdefs.h. */ 6871int i; 6872int 6873main (void) 6874{ 6875 6876 ; 6877 return 0; 6878} 6879_ACEOF 6880if ac_fn_c_try_link "$LINENO" 6881then : 6882 eval $cacheid=yes 6883else $as_nop 6884 eval $cacheid=no 6885fi 6886rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6887 conftest$ac_exeext conftest.$ac_ext 6888fi 6889 6890 6891 CFLAGS="$xorg_testset_save_CFLAGS" 6892 6893 eval supported=\$$cacheid 6894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6895printf "%s\n" "$supported" >&6; } 6896 if test "$supported" = "yes" ; then 6897 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 6898 found="yes" 6899 fi 6900 fi 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918xorg_testset_save_CFLAGS="$CFLAGS" 6919 6920if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6921 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6923printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6924if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6925then : 6926 printf %s "(cached) " >&6 6927else $as_nop 6928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6929/* end confdefs.h. */ 6930int i; 6931_ACEOF 6932if ac_fn_c_try_compile "$LINENO" 6933then : 6934 xorg_cv_cc_flag_unknown_warning_option=yes 6935else $as_nop 6936 xorg_cv_cc_flag_unknown_warning_option=no 6937fi 6938rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6939fi 6940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6941printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6942 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6943 CFLAGS="$xorg_testset_save_CFLAGS" 6944fi 6945 6946if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6949 fi 6950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6952printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6953if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6954then : 6955 printf %s "(cached) " >&6 6956else $as_nop 6957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6958/* end confdefs.h. */ 6959int i; 6960_ACEOF 6961if ac_fn_c_try_compile "$LINENO" 6962then : 6963 xorg_cv_cc_flag_unused_command_line_argument=yes 6964else $as_nop 6965 xorg_cv_cc_flag_unused_command_line_argument=no 6966fi 6967rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6968fi 6969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6970printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6971 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6972 CFLAGS="$xorg_testset_save_CFLAGS" 6973fi 6974 6975found="no" 6976 6977 if test $found = "no" ; then 6978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6979 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6980 fi 6981 6982 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6984 fi 6985 6986 CFLAGS="$CFLAGS -Wstrict-prototypes" 6987 6988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 6989printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 6990 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 6991 if eval test \${$cacheid+y} 6992then : 6993 printf %s "(cached) " >&6 6994else $as_nop 6995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6996/* end confdefs.h. */ 6997int i; 6998int 6999main (void) 7000{ 7001 7002 ; 7003 return 0; 7004} 7005_ACEOF 7006if ac_fn_c_try_link "$LINENO" 7007then : 7008 eval $cacheid=yes 7009else $as_nop 7010 eval $cacheid=no 7011fi 7012rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7013 conftest$ac_exeext conftest.$ac_ext 7014fi 7015 7016 7017 CFLAGS="$xorg_testset_save_CFLAGS" 7018 7019 eval supported=\$$cacheid 7020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7021printf "%s\n" "$supported" >&6; } 7022 if test "$supported" = "yes" ; then 7023 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 7024 found="yes" 7025 fi 7026 fi 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042xorg_testset_save_CFLAGS="$CFLAGS" 7043 7044if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7047printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7048if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7049then : 7050 printf %s "(cached) " >&6 7051else $as_nop 7052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7053/* end confdefs.h. */ 7054int i; 7055_ACEOF 7056if ac_fn_c_try_compile "$LINENO" 7057then : 7058 xorg_cv_cc_flag_unknown_warning_option=yes 7059else $as_nop 7060 xorg_cv_cc_flag_unknown_warning_option=no 7061fi 7062rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7063fi 7064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7065printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7066 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7067 CFLAGS="$xorg_testset_save_CFLAGS" 7068fi 7069 7070if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7073 fi 7074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7076printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7077if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7078then : 7079 printf %s "(cached) " >&6 7080else $as_nop 7081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7082/* end confdefs.h. */ 7083int i; 7084_ACEOF 7085if ac_fn_c_try_compile "$LINENO" 7086then : 7087 xorg_cv_cc_flag_unused_command_line_argument=yes 7088else $as_nop 7089 xorg_cv_cc_flag_unused_command_line_argument=no 7090fi 7091rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7092fi 7093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7094printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7095 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7096 CFLAGS="$xorg_testset_save_CFLAGS" 7097fi 7098 7099found="no" 7100 7101 if test $found = "no" ; then 7102 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7103 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7104 fi 7105 7106 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7108 fi 7109 7110 CFLAGS="$CFLAGS -Wmissing-prototypes" 7111 7112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 7113printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 7114 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 7115 if eval test \${$cacheid+y} 7116then : 7117 printf %s "(cached) " >&6 7118else $as_nop 7119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7120/* end confdefs.h. */ 7121int i; 7122int 7123main (void) 7124{ 7125 7126 ; 7127 return 0; 7128} 7129_ACEOF 7130if ac_fn_c_try_link "$LINENO" 7131then : 7132 eval $cacheid=yes 7133else $as_nop 7134 eval $cacheid=no 7135fi 7136rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7137 conftest$ac_exeext conftest.$ac_ext 7138fi 7139 7140 7141 CFLAGS="$xorg_testset_save_CFLAGS" 7142 7143 eval supported=\$$cacheid 7144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7145printf "%s\n" "$supported" >&6; } 7146 if test "$supported" = "yes" ; then 7147 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 7148 found="yes" 7149 fi 7150 fi 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166xorg_testset_save_CFLAGS="$CFLAGS" 7167 7168if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7171printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7172if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7173then : 7174 printf %s "(cached) " >&6 7175else $as_nop 7176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7177/* end confdefs.h. */ 7178int i; 7179_ACEOF 7180if ac_fn_c_try_compile "$LINENO" 7181then : 7182 xorg_cv_cc_flag_unknown_warning_option=yes 7183else $as_nop 7184 xorg_cv_cc_flag_unknown_warning_option=no 7185fi 7186rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7187fi 7188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7189printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7190 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7191 CFLAGS="$xorg_testset_save_CFLAGS" 7192fi 7193 7194if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7196 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7197 fi 7198 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7200printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7201if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7202then : 7203 printf %s "(cached) " >&6 7204else $as_nop 7205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7206/* end confdefs.h. */ 7207int i; 7208_ACEOF 7209if ac_fn_c_try_compile "$LINENO" 7210then : 7211 xorg_cv_cc_flag_unused_command_line_argument=yes 7212else $as_nop 7213 xorg_cv_cc_flag_unused_command_line_argument=no 7214fi 7215rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7216fi 7217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7218printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7219 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7220 CFLAGS="$xorg_testset_save_CFLAGS" 7221fi 7222 7223found="no" 7224 7225 if test $found = "no" ; then 7226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7227 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7228 fi 7229 7230 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7232 fi 7233 7234 CFLAGS="$CFLAGS -Wnested-externs" 7235 7236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 7237printf %s "checking if $CC supports -Wnested-externs... " >&6; } 7238 cacheid=xorg_cv_cc_flag__Wnested_externs 7239 if eval test \${$cacheid+y} 7240then : 7241 printf %s "(cached) " >&6 7242else $as_nop 7243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7244/* end confdefs.h. */ 7245int i; 7246int 7247main (void) 7248{ 7249 7250 ; 7251 return 0; 7252} 7253_ACEOF 7254if ac_fn_c_try_link "$LINENO" 7255then : 7256 eval $cacheid=yes 7257else $as_nop 7258 eval $cacheid=no 7259fi 7260rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7261 conftest$ac_exeext conftest.$ac_ext 7262fi 7263 7264 7265 CFLAGS="$xorg_testset_save_CFLAGS" 7266 7267 eval supported=\$$cacheid 7268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7269printf "%s\n" "$supported" >&6; } 7270 if test "$supported" = "yes" ; then 7271 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 7272 found="yes" 7273 fi 7274 fi 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290xorg_testset_save_CFLAGS="$CFLAGS" 7291 7292if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7295printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7296if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7297then : 7298 printf %s "(cached) " >&6 7299else $as_nop 7300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7301/* end confdefs.h. */ 7302int i; 7303_ACEOF 7304if ac_fn_c_try_compile "$LINENO" 7305then : 7306 xorg_cv_cc_flag_unknown_warning_option=yes 7307else $as_nop 7308 xorg_cv_cc_flag_unknown_warning_option=no 7309fi 7310rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7311fi 7312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7313printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7314 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7315 CFLAGS="$xorg_testset_save_CFLAGS" 7316fi 7317 7318if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7321 fi 7322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7324printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7325if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7326then : 7327 printf %s "(cached) " >&6 7328else $as_nop 7329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7330/* end confdefs.h. */ 7331int i; 7332_ACEOF 7333if ac_fn_c_try_compile "$LINENO" 7334then : 7335 xorg_cv_cc_flag_unused_command_line_argument=yes 7336else $as_nop 7337 xorg_cv_cc_flag_unused_command_line_argument=no 7338fi 7339rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7340fi 7341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7342printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7343 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7344 CFLAGS="$xorg_testset_save_CFLAGS" 7345fi 7346 7347found="no" 7348 7349 if test $found = "no" ; then 7350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7351 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7352 fi 7353 7354 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7356 fi 7357 7358 CFLAGS="$CFLAGS -Wbad-function-cast" 7359 7360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 7361printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 7362 cacheid=xorg_cv_cc_flag__Wbad_function_cast 7363 if eval test \${$cacheid+y} 7364then : 7365 printf %s "(cached) " >&6 7366else $as_nop 7367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7368/* end confdefs.h. */ 7369int i; 7370int 7371main (void) 7372{ 7373 7374 ; 7375 return 0; 7376} 7377_ACEOF 7378if ac_fn_c_try_link "$LINENO" 7379then : 7380 eval $cacheid=yes 7381else $as_nop 7382 eval $cacheid=no 7383fi 7384rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7385 conftest$ac_exeext conftest.$ac_ext 7386fi 7387 7388 7389 CFLAGS="$xorg_testset_save_CFLAGS" 7390 7391 eval supported=\$$cacheid 7392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7393printf "%s\n" "$supported" >&6; } 7394 if test "$supported" = "yes" ; then 7395 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 7396 found="yes" 7397 fi 7398 fi 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414xorg_testset_save_CFLAGS="$CFLAGS" 7415 7416if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7419printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7420if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7421then : 7422 printf %s "(cached) " >&6 7423else $as_nop 7424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7425/* end confdefs.h. */ 7426int i; 7427_ACEOF 7428if ac_fn_c_try_compile "$LINENO" 7429then : 7430 xorg_cv_cc_flag_unknown_warning_option=yes 7431else $as_nop 7432 xorg_cv_cc_flag_unknown_warning_option=no 7433fi 7434rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7435fi 7436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7437printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7438 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7439 CFLAGS="$xorg_testset_save_CFLAGS" 7440fi 7441 7442if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7445 fi 7446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7448printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7449if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7450then : 7451 printf %s "(cached) " >&6 7452else $as_nop 7453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7454/* end confdefs.h. */ 7455int i; 7456_ACEOF 7457if ac_fn_c_try_compile "$LINENO" 7458then : 7459 xorg_cv_cc_flag_unused_command_line_argument=yes 7460else $as_nop 7461 xorg_cv_cc_flag_unused_command_line_argument=no 7462fi 7463rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7464fi 7465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7466printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7467 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7468 CFLAGS="$xorg_testset_save_CFLAGS" 7469fi 7470 7471found="no" 7472 7473 if test $found = "no" ; then 7474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7475 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7476 fi 7477 7478 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7480 fi 7481 7482 CFLAGS="$CFLAGS -Wold-style-definition" 7483 7484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 7485printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 7486 cacheid=xorg_cv_cc_flag__Wold_style_definition 7487 if eval test \${$cacheid+y} 7488then : 7489 printf %s "(cached) " >&6 7490else $as_nop 7491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7492/* end confdefs.h. */ 7493int i; 7494int 7495main (void) 7496{ 7497 7498 ; 7499 return 0; 7500} 7501_ACEOF 7502if ac_fn_c_try_link "$LINENO" 7503then : 7504 eval $cacheid=yes 7505else $as_nop 7506 eval $cacheid=no 7507fi 7508rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7509 conftest$ac_exeext conftest.$ac_ext 7510fi 7511 7512 7513 CFLAGS="$xorg_testset_save_CFLAGS" 7514 7515 eval supported=\$$cacheid 7516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7517printf "%s\n" "$supported" >&6; } 7518 if test "$supported" = "yes" ; then 7519 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 7520 found="yes" 7521 fi 7522 fi 7523 7524 if test $found = "no" ; then 7525 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7526 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7527 fi 7528 7529 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7531 fi 7532 7533 CFLAGS="$CFLAGS -fd" 7534 7535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 7536printf %s "checking if $CC supports -fd... " >&6; } 7537 cacheid=xorg_cv_cc_flag__fd 7538 if eval test \${$cacheid+y} 7539then : 7540 printf %s "(cached) " >&6 7541else $as_nop 7542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7543/* end confdefs.h. */ 7544int i; 7545int 7546main (void) 7547{ 7548 7549 ; 7550 return 0; 7551} 7552_ACEOF 7553if ac_fn_c_try_link "$LINENO" 7554then : 7555 eval $cacheid=yes 7556else $as_nop 7557 eval $cacheid=no 7558fi 7559rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7560 conftest$ac_exeext conftest.$ac_ext 7561fi 7562 7563 7564 CFLAGS="$xorg_testset_save_CFLAGS" 7565 7566 eval supported=\$$cacheid 7567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7568printf "%s\n" "$supported" >&6; } 7569 if test "$supported" = "yes" ; then 7570 BASE_CFLAGS="$BASE_CFLAGS -fd" 7571 found="yes" 7572 fi 7573 fi 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589xorg_testset_save_CFLAGS="$CFLAGS" 7590 7591if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7592 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7594printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7595if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7596then : 7597 printf %s "(cached) " >&6 7598else $as_nop 7599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7600/* end confdefs.h. */ 7601int i; 7602_ACEOF 7603if ac_fn_c_try_compile "$LINENO" 7604then : 7605 xorg_cv_cc_flag_unknown_warning_option=yes 7606else $as_nop 7607 xorg_cv_cc_flag_unknown_warning_option=no 7608fi 7609rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7610fi 7611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7612printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7613 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7614 CFLAGS="$xorg_testset_save_CFLAGS" 7615fi 7616 7617if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7618 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7619 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7620 fi 7621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7623printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7624if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7625then : 7626 printf %s "(cached) " >&6 7627else $as_nop 7628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7629/* end confdefs.h. */ 7630int i; 7631_ACEOF 7632if ac_fn_c_try_compile "$LINENO" 7633then : 7634 xorg_cv_cc_flag_unused_command_line_argument=yes 7635else $as_nop 7636 xorg_cv_cc_flag_unused_command_line_argument=no 7637fi 7638rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7639fi 7640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7641printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7642 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7643 CFLAGS="$xorg_testset_save_CFLAGS" 7644fi 7645 7646found="no" 7647 7648 if test $found = "no" ; then 7649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7650 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7651 fi 7652 7653 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7654 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7655 fi 7656 7657 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 7658 7659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 7660printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 7661 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 7662 if eval test \${$cacheid+y} 7663then : 7664 printf %s "(cached) " >&6 7665else $as_nop 7666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7667/* end confdefs.h. */ 7668int i; 7669int 7670main (void) 7671{ 7672 7673 ; 7674 return 0; 7675} 7676_ACEOF 7677if ac_fn_c_try_link "$LINENO" 7678then : 7679 eval $cacheid=yes 7680else $as_nop 7681 eval $cacheid=no 7682fi 7683rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7684 conftest$ac_exeext conftest.$ac_ext 7685fi 7686 7687 7688 CFLAGS="$xorg_testset_save_CFLAGS" 7689 7690 eval supported=\$$cacheid 7691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7692printf "%s\n" "$supported" >&6; } 7693 if test "$supported" = "yes" ; then 7694 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 7695 found="yes" 7696 fi 7697 fi 7698 7699 7700 7701 7702 7703# This chunk adds additional warnings that could catch undesired effects. 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717xorg_testset_save_CFLAGS="$CFLAGS" 7718 7719if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7722printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7723if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7724then : 7725 printf %s "(cached) " >&6 7726else $as_nop 7727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7728/* end confdefs.h. */ 7729int i; 7730_ACEOF 7731if ac_fn_c_try_compile "$LINENO" 7732then : 7733 xorg_cv_cc_flag_unknown_warning_option=yes 7734else $as_nop 7735 xorg_cv_cc_flag_unknown_warning_option=no 7736fi 7737rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7738fi 7739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7740printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7741 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7742 CFLAGS="$xorg_testset_save_CFLAGS" 7743fi 7744 7745if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7748 fi 7749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7751printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7752if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7753then : 7754 printf %s "(cached) " >&6 7755else $as_nop 7756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7757/* end confdefs.h. */ 7758int i; 7759_ACEOF 7760if ac_fn_c_try_compile "$LINENO" 7761then : 7762 xorg_cv_cc_flag_unused_command_line_argument=yes 7763else $as_nop 7764 xorg_cv_cc_flag_unused_command_line_argument=no 7765fi 7766rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7767fi 7768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7769printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7770 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7771 CFLAGS="$xorg_testset_save_CFLAGS" 7772fi 7773 7774found="no" 7775 7776 if test $found = "no" ; then 7777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7779 fi 7780 7781 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7783 fi 7784 7785 CFLAGS="$CFLAGS -Wunused" 7786 7787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 7788printf %s "checking if $CC supports -Wunused... " >&6; } 7789 cacheid=xorg_cv_cc_flag__Wunused 7790 if eval test \${$cacheid+y} 7791then : 7792 printf %s "(cached) " >&6 7793else $as_nop 7794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7795/* end confdefs.h. */ 7796int i; 7797int 7798main (void) 7799{ 7800 7801 ; 7802 return 0; 7803} 7804_ACEOF 7805if ac_fn_c_try_link "$LINENO" 7806then : 7807 eval $cacheid=yes 7808else $as_nop 7809 eval $cacheid=no 7810fi 7811rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7812 conftest$ac_exeext conftest.$ac_ext 7813fi 7814 7815 7816 CFLAGS="$xorg_testset_save_CFLAGS" 7817 7818 eval supported=\$$cacheid 7819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7820printf "%s\n" "$supported" >&6; } 7821 if test "$supported" = "yes" ; then 7822 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 7823 found="yes" 7824 fi 7825 fi 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841xorg_testset_save_CFLAGS="$CFLAGS" 7842 7843if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7846printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7847if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7848then : 7849 printf %s "(cached) " >&6 7850else $as_nop 7851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7852/* end confdefs.h. */ 7853int i; 7854_ACEOF 7855if ac_fn_c_try_compile "$LINENO" 7856then : 7857 xorg_cv_cc_flag_unknown_warning_option=yes 7858else $as_nop 7859 xorg_cv_cc_flag_unknown_warning_option=no 7860fi 7861rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7862fi 7863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7864printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7865 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7866 CFLAGS="$xorg_testset_save_CFLAGS" 7867fi 7868 7869if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7871 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7872 fi 7873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7875printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7876if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7877then : 7878 printf %s "(cached) " >&6 7879else $as_nop 7880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7881/* end confdefs.h. */ 7882int i; 7883_ACEOF 7884if ac_fn_c_try_compile "$LINENO" 7885then : 7886 xorg_cv_cc_flag_unused_command_line_argument=yes 7887else $as_nop 7888 xorg_cv_cc_flag_unused_command_line_argument=no 7889fi 7890rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7891fi 7892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7893printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7894 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7895 CFLAGS="$xorg_testset_save_CFLAGS" 7896fi 7897 7898found="no" 7899 7900 if test $found = "no" ; then 7901 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7902 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7903 fi 7904 7905 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7907 fi 7908 7909 CFLAGS="$CFLAGS -Wuninitialized" 7910 7911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 7912printf %s "checking if $CC supports -Wuninitialized... " >&6; } 7913 cacheid=xorg_cv_cc_flag__Wuninitialized 7914 if eval test \${$cacheid+y} 7915then : 7916 printf %s "(cached) " >&6 7917else $as_nop 7918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7919/* end confdefs.h. */ 7920int i; 7921int 7922main (void) 7923{ 7924 7925 ; 7926 return 0; 7927} 7928_ACEOF 7929if ac_fn_c_try_link "$LINENO" 7930then : 7931 eval $cacheid=yes 7932else $as_nop 7933 eval $cacheid=no 7934fi 7935rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7936 conftest$ac_exeext conftest.$ac_ext 7937fi 7938 7939 7940 CFLAGS="$xorg_testset_save_CFLAGS" 7941 7942 eval supported=\$$cacheid 7943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7944printf "%s\n" "$supported" >&6; } 7945 if test "$supported" = "yes" ; then 7946 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 7947 found="yes" 7948 fi 7949 fi 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965xorg_testset_save_CFLAGS="$CFLAGS" 7966 7967if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7970printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7971if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7972then : 7973 printf %s "(cached) " >&6 7974else $as_nop 7975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7976/* end confdefs.h. */ 7977int i; 7978_ACEOF 7979if ac_fn_c_try_compile "$LINENO" 7980then : 7981 xorg_cv_cc_flag_unknown_warning_option=yes 7982else $as_nop 7983 xorg_cv_cc_flag_unknown_warning_option=no 7984fi 7985rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7986fi 7987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7988printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7989 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7990 CFLAGS="$xorg_testset_save_CFLAGS" 7991fi 7992 7993if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7995 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7996 fi 7997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7999printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8000if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8001then : 8002 printf %s "(cached) " >&6 8003else $as_nop 8004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8005/* end confdefs.h. */ 8006int i; 8007_ACEOF 8008if ac_fn_c_try_compile "$LINENO" 8009then : 8010 xorg_cv_cc_flag_unused_command_line_argument=yes 8011else $as_nop 8012 xorg_cv_cc_flag_unused_command_line_argument=no 8013fi 8014rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8015fi 8016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8017printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8018 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8019 CFLAGS="$xorg_testset_save_CFLAGS" 8020fi 8021 8022found="no" 8023 8024 if test $found = "no" ; then 8025 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8026 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8027 fi 8028 8029 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8031 fi 8032 8033 CFLAGS="$CFLAGS -Wshadow" 8034 8035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 8036printf %s "checking if $CC supports -Wshadow... " >&6; } 8037 cacheid=xorg_cv_cc_flag__Wshadow 8038 if eval test \${$cacheid+y} 8039then : 8040 printf %s "(cached) " >&6 8041else $as_nop 8042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8043/* end confdefs.h. */ 8044int i; 8045int 8046main (void) 8047{ 8048 8049 ; 8050 return 0; 8051} 8052_ACEOF 8053if ac_fn_c_try_link "$LINENO" 8054then : 8055 eval $cacheid=yes 8056else $as_nop 8057 eval $cacheid=no 8058fi 8059rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8060 conftest$ac_exeext conftest.$ac_ext 8061fi 8062 8063 8064 CFLAGS="$xorg_testset_save_CFLAGS" 8065 8066 eval supported=\$$cacheid 8067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8068printf "%s\n" "$supported" >&6; } 8069 if test "$supported" = "yes" ; then 8070 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 8071 found="yes" 8072 fi 8073 fi 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089xorg_testset_save_CFLAGS="$CFLAGS" 8090 8091if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8094printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8095if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8096then : 8097 printf %s "(cached) " >&6 8098else $as_nop 8099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8100/* end confdefs.h. */ 8101int i; 8102_ACEOF 8103if ac_fn_c_try_compile "$LINENO" 8104then : 8105 xorg_cv_cc_flag_unknown_warning_option=yes 8106else $as_nop 8107 xorg_cv_cc_flag_unknown_warning_option=no 8108fi 8109rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8110fi 8111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8112printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8113 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8114 CFLAGS="$xorg_testset_save_CFLAGS" 8115fi 8116 8117if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8120 fi 8121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8123printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8124if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8125then : 8126 printf %s "(cached) " >&6 8127else $as_nop 8128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8129/* end confdefs.h. */ 8130int i; 8131_ACEOF 8132if ac_fn_c_try_compile "$LINENO" 8133then : 8134 xorg_cv_cc_flag_unused_command_line_argument=yes 8135else $as_nop 8136 xorg_cv_cc_flag_unused_command_line_argument=no 8137fi 8138rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8139fi 8140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8141printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8142 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8143 CFLAGS="$xorg_testset_save_CFLAGS" 8144fi 8145 8146found="no" 8147 8148 if test $found = "no" ; then 8149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8150 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8151 fi 8152 8153 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8155 fi 8156 8157 CFLAGS="$CFLAGS -Wmissing-noreturn" 8158 8159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 8160printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 8161 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 8162 if eval test \${$cacheid+y} 8163then : 8164 printf %s "(cached) " >&6 8165else $as_nop 8166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8167/* end confdefs.h. */ 8168int i; 8169int 8170main (void) 8171{ 8172 8173 ; 8174 return 0; 8175} 8176_ACEOF 8177if ac_fn_c_try_link "$LINENO" 8178then : 8179 eval $cacheid=yes 8180else $as_nop 8181 eval $cacheid=no 8182fi 8183rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8184 conftest$ac_exeext conftest.$ac_ext 8185fi 8186 8187 8188 CFLAGS="$xorg_testset_save_CFLAGS" 8189 8190 eval supported=\$$cacheid 8191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8192printf "%s\n" "$supported" >&6; } 8193 if test "$supported" = "yes" ; then 8194 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 8195 found="yes" 8196 fi 8197 fi 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213xorg_testset_save_CFLAGS="$CFLAGS" 8214 8215if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8216 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8218printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8219if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8220then : 8221 printf %s "(cached) " >&6 8222else $as_nop 8223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8224/* end confdefs.h. */ 8225int i; 8226_ACEOF 8227if ac_fn_c_try_compile "$LINENO" 8228then : 8229 xorg_cv_cc_flag_unknown_warning_option=yes 8230else $as_nop 8231 xorg_cv_cc_flag_unknown_warning_option=no 8232fi 8233rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8234fi 8235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8236printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8237 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8238 CFLAGS="$xorg_testset_save_CFLAGS" 8239fi 8240 8241if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8243 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8244 fi 8245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8247printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8248if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8249then : 8250 printf %s "(cached) " >&6 8251else $as_nop 8252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8253/* end confdefs.h. */ 8254int i; 8255_ACEOF 8256if ac_fn_c_try_compile "$LINENO" 8257then : 8258 xorg_cv_cc_flag_unused_command_line_argument=yes 8259else $as_nop 8260 xorg_cv_cc_flag_unused_command_line_argument=no 8261fi 8262rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8263fi 8264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8265printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8266 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8267 CFLAGS="$xorg_testset_save_CFLAGS" 8268fi 8269 8270found="no" 8271 8272 if test $found = "no" ; then 8273 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8274 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8275 fi 8276 8277 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8279 fi 8280 8281 CFLAGS="$CFLAGS -Wmissing-format-attribute" 8282 8283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 8284printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 8285 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 8286 if eval test \${$cacheid+y} 8287then : 8288 printf %s "(cached) " >&6 8289else $as_nop 8290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8291/* end confdefs.h. */ 8292int i; 8293int 8294main (void) 8295{ 8296 8297 ; 8298 return 0; 8299} 8300_ACEOF 8301if ac_fn_c_try_link "$LINENO" 8302then : 8303 eval $cacheid=yes 8304else $as_nop 8305 eval $cacheid=no 8306fi 8307rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8308 conftest$ac_exeext conftest.$ac_ext 8309fi 8310 8311 8312 CFLAGS="$xorg_testset_save_CFLAGS" 8313 8314 eval supported=\$$cacheid 8315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8316printf "%s\n" "$supported" >&6; } 8317 if test "$supported" = "yes" ; then 8318 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 8319 found="yes" 8320 fi 8321 fi 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337xorg_testset_save_CFLAGS="$CFLAGS" 8338 8339if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8340 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8342printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8343if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8344then : 8345 printf %s "(cached) " >&6 8346else $as_nop 8347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8348/* end confdefs.h. */ 8349int i; 8350_ACEOF 8351if ac_fn_c_try_compile "$LINENO" 8352then : 8353 xorg_cv_cc_flag_unknown_warning_option=yes 8354else $as_nop 8355 xorg_cv_cc_flag_unknown_warning_option=no 8356fi 8357rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8358fi 8359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8360printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8361 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8362 CFLAGS="$xorg_testset_save_CFLAGS" 8363fi 8364 8365if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8367 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8368 fi 8369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8371printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8372if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8373then : 8374 printf %s "(cached) " >&6 8375else $as_nop 8376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8377/* end confdefs.h. */ 8378int i; 8379_ACEOF 8380if ac_fn_c_try_compile "$LINENO" 8381then : 8382 xorg_cv_cc_flag_unused_command_line_argument=yes 8383else $as_nop 8384 xorg_cv_cc_flag_unused_command_line_argument=no 8385fi 8386rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8387fi 8388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8389printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8390 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8391 CFLAGS="$xorg_testset_save_CFLAGS" 8392fi 8393 8394found="no" 8395 8396 if test $found = "no" ; then 8397 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8398 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8399 fi 8400 8401 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8403 fi 8404 8405 CFLAGS="$CFLAGS -Wredundant-decls" 8406 8407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 8408printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 8409 cacheid=xorg_cv_cc_flag__Wredundant_decls 8410 if eval test \${$cacheid+y} 8411then : 8412 printf %s "(cached) " >&6 8413else $as_nop 8414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8415/* end confdefs.h. */ 8416int i; 8417int 8418main (void) 8419{ 8420 8421 ; 8422 return 0; 8423} 8424_ACEOF 8425if ac_fn_c_try_link "$LINENO" 8426then : 8427 eval $cacheid=yes 8428else $as_nop 8429 eval $cacheid=no 8430fi 8431rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8432 conftest$ac_exeext conftest.$ac_ext 8433fi 8434 8435 8436 CFLAGS="$xorg_testset_save_CFLAGS" 8437 8438 eval supported=\$$cacheid 8439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8440printf "%s\n" "$supported" >&6; } 8441 if test "$supported" = "yes" ; then 8442 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 8443 found="yes" 8444 fi 8445 fi 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461xorg_testset_save_CFLAGS="$CFLAGS" 8462 8463if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8466printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8467if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8468then : 8469 printf %s "(cached) " >&6 8470else $as_nop 8471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8472/* end confdefs.h. */ 8473int i; 8474_ACEOF 8475if ac_fn_c_try_compile "$LINENO" 8476then : 8477 xorg_cv_cc_flag_unknown_warning_option=yes 8478else $as_nop 8479 xorg_cv_cc_flag_unknown_warning_option=no 8480fi 8481rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8482fi 8483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8484printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8485 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8486 CFLAGS="$xorg_testset_save_CFLAGS" 8487fi 8488 8489if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8491 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8492 fi 8493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8495printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8496if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8497then : 8498 printf %s "(cached) " >&6 8499else $as_nop 8500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8501/* end confdefs.h. */ 8502int i; 8503_ACEOF 8504if ac_fn_c_try_compile "$LINENO" 8505then : 8506 xorg_cv_cc_flag_unused_command_line_argument=yes 8507else $as_nop 8508 xorg_cv_cc_flag_unused_command_line_argument=no 8509fi 8510rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8511fi 8512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8513printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8514 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8515 CFLAGS="$xorg_testset_save_CFLAGS" 8516fi 8517 8518found="no" 8519 8520 if test $found = "no" ; then 8521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8522 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8523 fi 8524 8525 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8527 fi 8528 8529 CFLAGS="$CFLAGS -Wlogical-op" 8530 8531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 8532printf %s "checking if $CC supports -Wlogical-op... " >&6; } 8533 cacheid=xorg_cv_cc_flag__Wlogical_op 8534 if eval test \${$cacheid+y} 8535then : 8536 printf %s "(cached) " >&6 8537else $as_nop 8538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8539/* end confdefs.h. */ 8540int i; 8541int 8542main (void) 8543{ 8544 8545 ; 8546 return 0; 8547} 8548_ACEOF 8549if ac_fn_c_try_link "$LINENO" 8550then : 8551 eval $cacheid=yes 8552else $as_nop 8553 eval $cacheid=no 8554fi 8555rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8556 conftest$ac_exeext conftest.$ac_ext 8557fi 8558 8559 8560 CFLAGS="$xorg_testset_save_CFLAGS" 8561 8562 eval supported=\$$cacheid 8563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8564printf "%s\n" "$supported" >&6; } 8565 if test "$supported" = "yes" ; then 8566 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 8567 found="yes" 8568 fi 8569 fi 8570 8571 8572 8573# These are currently disabled because they are noisy. They will be enabled 8574# in the future once the codebase is sufficiently modernized to silence 8575# them. For now, I don't want them to drown out the other warnings. 8576# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 8577# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 8578# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 8579 8580# Turn some warnings into errors, so we don't accidently get successful builds 8581# when there are problems that should be fixed. 8582 8583if test "x$SELECTIVE_WERROR" = "xyes" ; then 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597xorg_testset_save_CFLAGS="$CFLAGS" 8598 8599if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8602printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8603if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8604then : 8605 printf %s "(cached) " >&6 8606else $as_nop 8607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8608/* end confdefs.h. */ 8609int i; 8610_ACEOF 8611if ac_fn_c_try_compile "$LINENO" 8612then : 8613 xorg_cv_cc_flag_unknown_warning_option=yes 8614else $as_nop 8615 xorg_cv_cc_flag_unknown_warning_option=no 8616fi 8617rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8618fi 8619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8620printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8621 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8622 CFLAGS="$xorg_testset_save_CFLAGS" 8623fi 8624 8625if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8627 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8628 fi 8629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8631printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8632if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8633then : 8634 printf %s "(cached) " >&6 8635else $as_nop 8636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8637/* end confdefs.h. */ 8638int i; 8639_ACEOF 8640if ac_fn_c_try_compile "$LINENO" 8641then : 8642 xorg_cv_cc_flag_unused_command_line_argument=yes 8643else $as_nop 8644 xorg_cv_cc_flag_unused_command_line_argument=no 8645fi 8646rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8647fi 8648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8649printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8650 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8651 CFLAGS="$xorg_testset_save_CFLAGS" 8652fi 8653 8654found="no" 8655 8656 if test $found = "no" ; then 8657 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8658 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8659 fi 8660 8661 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8663 fi 8664 8665 CFLAGS="$CFLAGS -Werror=implicit" 8666 8667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 8668printf %s "checking if $CC supports -Werror=implicit... " >&6; } 8669 cacheid=xorg_cv_cc_flag__Werror_implicit 8670 if eval test \${$cacheid+y} 8671then : 8672 printf %s "(cached) " >&6 8673else $as_nop 8674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8675/* end confdefs.h. */ 8676int i; 8677int 8678main (void) 8679{ 8680 8681 ; 8682 return 0; 8683} 8684_ACEOF 8685if ac_fn_c_try_link "$LINENO" 8686then : 8687 eval $cacheid=yes 8688else $as_nop 8689 eval $cacheid=no 8690fi 8691rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8692 conftest$ac_exeext conftest.$ac_ext 8693fi 8694 8695 8696 CFLAGS="$xorg_testset_save_CFLAGS" 8697 8698 eval supported=\$$cacheid 8699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8700printf "%s\n" "$supported" >&6; } 8701 if test "$supported" = "yes" ; then 8702 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 8703 found="yes" 8704 fi 8705 fi 8706 8707 if test $found = "no" ; then 8708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8710 fi 8711 8712 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8714 fi 8715 8716 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 8717 8718 { 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 8719printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 8720 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 8721 if eval test \${$cacheid+y} 8722then : 8723 printf %s "(cached) " >&6 8724else $as_nop 8725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8726/* end confdefs.h. */ 8727int i; 8728int 8729main (void) 8730{ 8731 8732 ; 8733 return 0; 8734} 8735_ACEOF 8736if ac_fn_c_try_link "$LINENO" 8737then : 8738 eval $cacheid=yes 8739else $as_nop 8740 eval $cacheid=no 8741fi 8742rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8743 conftest$ac_exeext conftest.$ac_ext 8744fi 8745 8746 8747 CFLAGS="$xorg_testset_save_CFLAGS" 8748 8749 eval supported=\$$cacheid 8750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8751printf "%s\n" "$supported" >&6; } 8752 if test "$supported" = "yes" ; then 8753 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 8754 found="yes" 8755 fi 8756 fi 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772xorg_testset_save_CFLAGS="$CFLAGS" 8773 8774if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8777printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8778if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8779then : 8780 printf %s "(cached) " >&6 8781else $as_nop 8782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8783/* end confdefs.h. */ 8784int i; 8785_ACEOF 8786if ac_fn_c_try_compile "$LINENO" 8787then : 8788 xorg_cv_cc_flag_unknown_warning_option=yes 8789else $as_nop 8790 xorg_cv_cc_flag_unknown_warning_option=no 8791fi 8792rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8793fi 8794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8795printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8796 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8797 CFLAGS="$xorg_testset_save_CFLAGS" 8798fi 8799 8800if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8803 fi 8804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8806printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8807if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8808then : 8809 printf %s "(cached) " >&6 8810else $as_nop 8811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8812/* end confdefs.h. */ 8813int i; 8814_ACEOF 8815if ac_fn_c_try_compile "$LINENO" 8816then : 8817 xorg_cv_cc_flag_unused_command_line_argument=yes 8818else $as_nop 8819 xorg_cv_cc_flag_unused_command_line_argument=no 8820fi 8821rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8822fi 8823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8824printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8825 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8826 CFLAGS="$xorg_testset_save_CFLAGS" 8827fi 8828 8829found="no" 8830 8831 if test $found = "no" ; then 8832 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8833 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8834 fi 8835 8836 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8838 fi 8839 8840 CFLAGS="$CFLAGS -Werror=nonnull" 8841 8842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 8843printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 8844 cacheid=xorg_cv_cc_flag__Werror_nonnull 8845 if eval test \${$cacheid+y} 8846then : 8847 printf %s "(cached) " >&6 8848else $as_nop 8849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8850/* end confdefs.h. */ 8851int i; 8852int 8853main (void) 8854{ 8855 8856 ; 8857 return 0; 8858} 8859_ACEOF 8860if ac_fn_c_try_link "$LINENO" 8861then : 8862 eval $cacheid=yes 8863else $as_nop 8864 eval $cacheid=no 8865fi 8866rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8867 conftest$ac_exeext conftest.$ac_ext 8868fi 8869 8870 8871 CFLAGS="$xorg_testset_save_CFLAGS" 8872 8873 eval supported=\$$cacheid 8874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8875printf "%s\n" "$supported" >&6; } 8876 if test "$supported" = "yes" ; then 8877 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 8878 found="yes" 8879 fi 8880 fi 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896xorg_testset_save_CFLAGS="$CFLAGS" 8897 8898if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8901printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8902if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8903then : 8904 printf %s "(cached) " >&6 8905else $as_nop 8906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8907/* end confdefs.h. */ 8908int i; 8909_ACEOF 8910if ac_fn_c_try_compile "$LINENO" 8911then : 8912 xorg_cv_cc_flag_unknown_warning_option=yes 8913else $as_nop 8914 xorg_cv_cc_flag_unknown_warning_option=no 8915fi 8916rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8917fi 8918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8919printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8920 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8921 CFLAGS="$xorg_testset_save_CFLAGS" 8922fi 8923 8924if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8926 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8927 fi 8928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8930printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8931if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8932then : 8933 printf %s "(cached) " >&6 8934else $as_nop 8935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8936/* end confdefs.h. */ 8937int i; 8938_ACEOF 8939if ac_fn_c_try_compile "$LINENO" 8940then : 8941 xorg_cv_cc_flag_unused_command_line_argument=yes 8942else $as_nop 8943 xorg_cv_cc_flag_unused_command_line_argument=no 8944fi 8945rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8946fi 8947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8948printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8949 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8950 CFLAGS="$xorg_testset_save_CFLAGS" 8951fi 8952 8953found="no" 8954 8955 if test $found = "no" ; then 8956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8958 fi 8959 8960 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8962 fi 8963 8964 CFLAGS="$CFLAGS -Werror=init-self" 8965 8966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 8967printf %s "checking if $CC supports -Werror=init-self... " >&6; } 8968 cacheid=xorg_cv_cc_flag__Werror_init_self 8969 if eval test \${$cacheid+y} 8970then : 8971 printf %s "(cached) " >&6 8972else $as_nop 8973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8974/* end confdefs.h. */ 8975int i; 8976int 8977main (void) 8978{ 8979 8980 ; 8981 return 0; 8982} 8983_ACEOF 8984if ac_fn_c_try_link "$LINENO" 8985then : 8986 eval $cacheid=yes 8987else $as_nop 8988 eval $cacheid=no 8989fi 8990rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8991 conftest$ac_exeext conftest.$ac_ext 8992fi 8993 8994 8995 CFLAGS="$xorg_testset_save_CFLAGS" 8996 8997 eval supported=\$$cacheid 8998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8999printf "%s\n" "$supported" >&6; } 9000 if test "$supported" = "yes" ; then 9001 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 9002 found="yes" 9003 fi 9004 fi 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020xorg_testset_save_CFLAGS="$CFLAGS" 9021 9022if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9025printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9026if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9027then : 9028 printf %s "(cached) " >&6 9029else $as_nop 9030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9031/* end confdefs.h. */ 9032int i; 9033_ACEOF 9034if ac_fn_c_try_compile "$LINENO" 9035then : 9036 xorg_cv_cc_flag_unknown_warning_option=yes 9037else $as_nop 9038 xorg_cv_cc_flag_unknown_warning_option=no 9039fi 9040rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9041fi 9042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9043printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9044 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9045 CFLAGS="$xorg_testset_save_CFLAGS" 9046fi 9047 9048if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9050 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9051 fi 9052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9054printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9055if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9056then : 9057 printf %s "(cached) " >&6 9058else $as_nop 9059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9060/* end confdefs.h. */ 9061int i; 9062_ACEOF 9063if ac_fn_c_try_compile "$LINENO" 9064then : 9065 xorg_cv_cc_flag_unused_command_line_argument=yes 9066else $as_nop 9067 xorg_cv_cc_flag_unused_command_line_argument=no 9068fi 9069rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9070fi 9071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9072printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9073 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9074 CFLAGS="$xorg_testset_save_CFLAGS" 9075fi 9076 9077found="no" 9078 9079 if test $found = "no" ; then 9080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9082 fi 9083 9084 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9086 fi 9087 9088 CFLAGS="$CFLAGS -Werror=main" 9089 9090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 9091printf %s "checking if $CC supports -Werror=main... " >&6; } 9092 cacheid=xorg_cv_cc_flag__Werror_main 9093 if eval test \${$cacheid+y} 9094then : 9095 printf %s "(cached) " >&6 9096else $as_nop 9097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9098/* end confdefs.h. */ 9099int i; 9100int 9101main (void) 9102{ 9103 9104 ; 9105 return 0; 9106} 9107_ACEOF 9108if ac_fn_c_try_link "$LINENO" 9109then : 9110 eval $cacheid=yes 9111else $as_nop 9112 eval $cacheid=no 9113fi 9114rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9115 conftest$ac_exeext conftest.$ac_ext 9116fi 9117 9118 9119 CFLAGS="$xorg_testset_save_CFLAGS" 9120 9121 eval supported=\$$cacheid 9122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9123printf "%s\n" "$supported" >&6; } 9124 if test "$supported" = "yes" ; then 9125 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 9126 found="yes" 9127 fi 9128 fi 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144xorg_testset_save_CFLAGS="$CFLAGS" 9145 9146if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9147 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9149printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9150if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9151then : 9152 printf %s "(cached) " >&6 9153else $as_nop 9154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9155/* end confdefs.h. */ 9156int i; 9157_ACEOF 9158if ac_fn_c_try_compile "$LINENO" 9159then : 9160 xorg_cv_cc_flag_unknown_warning_option=yes 9161else $as_nop 9162 xorg_cv_cc_flag_unknown_warning_option=no 9163fi 9164rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9165fi 9166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9167printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9168 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9169 CFLAGS="$xorg_testset_save_CFLAGS" 9170fi 9171 9172if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9175 fi 9176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9178printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9179if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9180then : 9181 printf %s "(cached) " >&6 9182else $as_nop 9183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9184/* end confdefs.h. */ 9185int i; 9186_ACEOF 9187if ac_fn_c_try_compile "$LINENO" 9188then : 9189 xorg_cv_cc_flag_unused_command_line_argument=yes 9190else $as_nop 9191 xorg_cv_cc_flag_unused_command_line_argument=no 9192fi 9193rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9194fi 9195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9196printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9197 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9198 CFLAGS="$xorg_testset_save_CFLAGS" 9199fi 9200 9201found="no" 9202 9203 if test $found = "no" ; then 9204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9206 fi 9207 9208 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9210 fi 9211 9212 CFLAGS="$CFLAGS -Werror=missing-braces" 9213 9214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 9215printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 9216 cacheid=xorg_cv_cc_flag__Werror_missing_braces 9217 if eval test \${$cacheid+y} 9218then : 9219 printf %s "(cached) " >&6 9220else $as_nop 9221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9222/* end confdefs.h. */ 9223int i; 9224int 9225main (void) 9226{ 9227 9228 ; 9229 return 0; 9230} 9231_ACEOF 9232if ac_fn_c_try_link "$LINENO" 9233then : 9234 eval $cacheid=yes 9235else $as_nop 9236 eval $cacheid=no 9237fi 9238rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9239 conftest$ac_exeext conftest.$ac_ext 9240fi 9241 9242 9243 CFLAGS="$xorg_testset_save_CFLAGS" 9244 9245 eval supported=\$$cacheid 9246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9247printf "%s\n" "$supported" >&6; } 9248 if test "$supported" = "yes" ; then 9249 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 9250 found="yes" 9251 fi 9252 fi 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268xorg_testset_save_CFLAGS="$CFLAGS" 9269 9270if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9273printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9274if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9275then : 9276 printf %s "(cached) " >&6 9277else $as_nop 9278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9279/* end confdefs.h. */ 9280int i; 9281_ACEOF 9282if ac_fn_c_try_compile "$LINENO" 9283then : 9284 xorg_cv_cc_flag_unknown_warning_option=yes 9285else $as_nop 9286 xorg_cv_cc_flag_unknown_warning_option=no 9287fi 9288rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9289fi 9290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9291printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9292 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9293 CFLAGS="$xorg_testset_save_CFLAGS" 9294fi 9295 9296if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9299 fi 9300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9302printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9303if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9304then : 9305 printf %s "(cached) " >&6 9306else $as_nop 9307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9308/* end confdefs.h. */ 9309int i; 9310_ACEOF 9311if ac_fn_c_try_compile "$LINENO" 9312then : 9313 xorg_cv_cc_flag_unused_command_line_argument=yes 9314else $as_nop 9315 xorg_cv_cc_flag_unused_command_line_argument=no 9316fi 9317rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9318fi 9319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9320printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9321 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9322 CFLAGS="$xorg_testset_save_CFLAGS" 9323fi 9324 9325found="no" 9326 9327 if test $found = "no" ; then 9328 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9329 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9330 fi 9331 9332 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9334 fi 9335 9336 CFLAGS="$CFLAGS -Werror=sequence-point" 9337 9338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 9339printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 9340 cacheid=xorg_cv_cc_flag__Werror_sequence_point 9341 if eval test \${$cacheid+y} 9342then : 9343 printf %s "(cached) " >&6 9344else $as_nop 9345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9346/* end confdefs.h. */ 9347int i; 9348int 9349main (void) 9350{ 9351 9352 ; 9353 return 0; 9354} 9355_ACEOF 9356if ac_fn_c_try_link "$LINENO" 9357then : 9358 eval $cacheid=yes 9359else $as_nop 9360 eval $cacheid=no 9361fi 9362rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9363 conftest$ac_exeext conftest.$ac_ext 9364fi 9365 9366 9367 CFLAGS="$xorg_testset_save_CFLAGS" 9368 9369 eval supported=\$$cacheid 9370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9371printf "%s\n" "$supported" >&6; } 9372 if test "$supported" = "yes" ; then 9373 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 9374 found="yes" 9375 fi 9376 fi 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392xorg_testset_save_CFLAGS="$CFLAGS" 9393 9394if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9397printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9398if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9399then : 9400 printf %s "(cached) " >&6 9401else $as_nop 9402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9403/* end confdefs.h. */ 9404int i; 9405_ACEOF 9406if ac_fn_c_try_compile "$LINENO" 9407then : 9408 xorg_cv_cc_flag_unknown_warning_option=yes 9409else $as_nop 9410 xorg_cv_cc_flag_unknown_warning_option=no 9411fi 9412rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9413fi 9414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9415printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9416 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9417 CFLAGS="$xorg_testset_save_CFLAGS" 9418fi 9419 9420if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9421 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9422 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9423 fi 9424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9426printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9427if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9428then : 9429 printf %s "(cached) " >&6 9430else $as_nop 9431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9432/* end confdefs.h. */ 9433int i; 9434_ACEOF 9435if ac_fn_c_try_compile "$LINENO" 9436then : 9437 xorg_cv_cc_flag_unused_command_line_argument=yes 9438else $as_nop 9439 xorg_cv_cc_flag_unused_command_line_argument=no 9440fi 9441rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9442fi 9443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9444printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9445 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9446 CFLAGS="$xorg_testset_save_CFLAGS" 9447fi 9448 9449found="no" 9450 9451 if test $found = "no" ; then 9452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9453 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9454 fi 9455 9456 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9458 fi 9459 9460 CFLAGS="$CFLAGS -Werror=return-type" 9461 9462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 9463printf %s "checking if $CC supports -Werror=return-type... " >&6; } 9464 cacheid=xorg_cv_cc_flag__Werror_return_type 9465 if eval test \${$cacheid+y} 9466then : 9467 printf %s "(cached) " >&6 9468else $as_nop 9469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9470/* end confdefs.h. */ 9471int i; 9472int 9473main (void) 9474{ 9475 9476 ; 9477 return 0; 9478} 9479_ACEOF 9480if ac_fn_c_try_link "$LINENO" 9481then : 9482 eval $cacheid=yes 9483else $as_nop 9484 eval $cacheid=no 9485fi 9486rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9487 conftest$ac_exeext conftest.$ac_ext 9488fi 9489 9490 9491 CFLAGS="$xorg_testset_save_CFLAGS" 9492 9493 eval supported=\$$cacheid 9494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9495printf "%s\n" "$supported" >&6; } 9496 if test "$supported" = "yes" ; then 9497 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 9498 found="yes" 9499 fi 9500 fi 9501 9502 if test $found = "no" ; then 9503 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9504 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9505 fi 9506 9507 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9509 fi 9510 9511 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 9512 9513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 9514printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 9515 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 9516 if eval test \${$cacheid+y} 9517then : 9518 printf %s "(cached) " >&6 9519else $as_nop 9520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9521/* end confdefs.h. */ 9522int i; 9523int 9524main (void) 9525{ 9526 9527 ; 9528 return 0; 9529} 9530_ACEOF 9531if ac_fn_c_try_link "$LINENO" 9532then : 9533 eval $cacheid=yes 9534else $as_nop 9535 eval $cacheid=no 9536fi 9537rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9538 conftest$ac_exeext conftest.$ac_ext 9539fi 9540 9541 9542 CFLAGS="$xorg_testset_save_CFLAGS" 9543 9544 eval supported=\$$cacheid 9545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9546printf "%s\n" "$supported" >&6; } 9547 if test "$supported" = "yes" ; then 9548 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 9549 found="yes" 9550 fi 9551 fi 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567xorg_testset_save_CFLAGS="$CFLAGS" 9568 9569if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9572printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9573if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9574then : 9575 printf %s "(cached) " >&6 9576else $as_nop 9577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9578/* end confdefs.h. */ 9579int i; 9580_ACEOF 9581if ac_fn_c_try_compile "$LINENO" 9582then : 9583 xorg_cv_cc_flag_unknown_warning_option=yes 9584else $as_nop 9585 xorg_cv_cc_flag_unknown_warning_option=no 9586fi 9587rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9588fi 9589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9590printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9591 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9592 CFLAGS="$xorg_testset_save_CFLAGS" 9593fi 9594 9595if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9597 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9598 fi 9599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9601printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9602if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9603then : 9604 printf %s "(cached) " >&6 9605else $as_nop 9606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9607/* end confdefs.h. */ 9608int i; 9609_ACEOF 9610if ac_fn_c_try_compile "$LINENO" 9611then : 9612 xorg_cv_cc_flag_unused_command_line_argument=yes 9613else $as_nop 9614 xorg_cv_cc_flag_unused_command_line_argument=no 9615fi 9616rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9617fi 9618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9619printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9620 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9621 CFLAGS="$xorg_testset_save_CFLAGS" 9622fi 9623 9624found="no" 9625 9626 if test $found = "no" ; then 9627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9629 fi 9630 9631 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9633 fi 9634 9635 CFLAGS="$CFLAGS -Werror=trigraphs" 9636 9637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 9638printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 9639 cacheid=xorg_cv_cc_flag__Werror_trigraphs 9640 if eval test \${$cacheid+y} 9641then : 9642 printf %s "(cached) " >&6 9643else $as_nop 9644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9645/* end confdefs.h. */ 9646int i; 9647int 9648main (void) 9649{ 9650 9651 ; 9652 return 0; 9653} 9654_ACEOF 9655if ac_fn_c_try_link "$LINENO" 9656then : 9657 eval $cacheid=yes 9658else $as_nop 9659 eval $cacheid=no 9660fi 9661rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9662 conftest$ac_exeext conftest.$ac_ext 9663fi 9664 9665 9666 CFLAGS="$xorg_testset_save_CFLAGS" 9667 9668 eval supported=\$$cacheid 9669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9670printf "%s\n" "$supported" >&6; } 9671 if test "$supported" = "yes" ; then 9672 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 9673 found="yes" 9674 fi 9675 fi 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691xorg_testset_save_CFLAGS="$CFLAGS" 9692 9693if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9696printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9697if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9698then : 9699 printf %s "(cached) " >&6 9700else $as_nop 9701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9702/* end confdefs.h. */ 9703int i; 9704_ACEOF 9705if ac_fn_c_try_compile "$LINENO" 9706then : 9707 xorg_cv_cc_flag_unknown_warning_option=yes 9708else $as_nop 9709 xorg_cv_cc_flag_unknown_warning_option=no 9710fi 9711rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9712fi 9713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9714printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9715 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9716 CFLAGS="$xorg_testset_save_CFLAGS" 9717fi 9718 9719if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9722 fi 9723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9725printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9726if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9727then : 9728 printf %s "(cached) " >&6 9729else $as_nop 9730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9731/* end confdefs.h. */ 9732int i; 9733_ACEOF 9734if ac_fn_c_try_compile "$LINENO" 9735then : 9736 xorg_cv_cc_flag_unused_command_line_argument=yes 9737else $as_nop 9738 xorg_cv_cc_flag_unused_command_line_argument=no 9739fi 9740rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9741fi 9742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9743printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9744 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9745 CFLAGS="$xorg_testset_save_CFLAGS" 9746fi 9747 9748found="no" 9749 9750 if test $found = "no" ; then 9751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9753 fi 9754 9755 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9757 fi 9758 9759 CFLAGS="$CFLAGS -Werror=array-bounds" 9760 9761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 9762printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 9763 cacheid=xorg_cv_cc_flag__Werror_array_bounds 9764 if eval test \${$cacheid+y} 9765then : 9766 printf %s "(cached) " >&6 9767else $as_nop 9768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9769/* end confdefs.h. */ 9770int i; 9771int 9772main (void) 9773{ 9774 9775 ; 9776 return 0; 9777} 9778_ACEOF 9779if ac_fn_c_try_link "$LINENO" 9780then : 9781 eval $cacheid=yes 9782else $as_nop 9783 eval $cacheid=no 9784fi 9785rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9786 conftest$ac_exeext conftest.$ac_ext 9787fi 9788 9789 9790 CFLAGS="$xorg_testset_save_CFLAGS" 9791 9792 eval supported=\$$cacheid 9793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9794printf "%s\n" "$supported" >&6; } 9795 if test "$supported" = "yes" ; then 9796 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 9797 found="yes" 9798 fi 9799 fi 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815xorg_testset_save_CFLAGS="$CFLAGS" 9816 9817if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9820printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9821if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9822then : 9823 printf %s "(cached) " >&6 9824else $as_nop 9825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9826/* end confdefs.h. */ 9827int i; 9828_ACEOF 9829if ac_fn_c_try_compile "$LINENO" 9830then : 9831 xorg_cv_cc_flag_unknown_warning_option=yes 9832else $as_nop 9833 xorg_cv_cc_flag_unknown_warning_option=no 9834fi 9835rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9836fi 9837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9838printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9839 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9840 CFLAGS="$xorg_testset_save_CFLAGS" 9841fi 9842 9843if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9846 fi 9847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9849printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9850if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9851then : 9852 printf %s "(cached) " >&6 9853else $as_nop 9854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9855/* end confdefs.h. */ 9856int i; 9857_ACEOF 9858if ac_fn_c_try_compile "$LINENO" 9859then : 9860 xorg_cv_cc_flag_unused_command_line_argument=yes 9861else $as_nop 9862 xorg_cv_cc_flag_unused_command_line_argument=no 9863fi 9864rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9865fi 9866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9867printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9868 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9869 CFLAGS="$xorg_testset_save_CFLAGS" 9870fi 9871 9872found="no" 9873 9874 if test $found = "no" ; then 9875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9877 fi 9878 9879 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9881 fi 9882 9883 CFLAGS="$CFLAGS -Werror=write-strings" 9884 9885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 9886printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 9887 cacheid=xorg_cv_cc_flag__Werror_write_strings 9888 if eval test \${$cacheid+y} 9889then : 9890 printf %s "(cached) " >&6 9891else $as_nop 9892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9893/* end confdefs.h. */ 9894int i; 9895int 9896main (void) 9897{ 9898 9899 ; 9900 return 0; 9901} 9902_ACEOF 9903if ac_fn_c_try_link "$LINENO" 9904then : 9905 eval $cacheid=yes 9906else $as_nop 9907 eval $cacheid=no 9908fi 9909rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9910 conftest$ac_exeext conftest.$ac_ext 9911fi 9912 9913 9914 CFLAGS="$xorg_testset_save_CFLAGS" 9915 9916 eval supported=\$$cacheid 9917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9918printf "%s\n" "$supported" >&6; } 9919 if test "$supported" = "yes" ; then 9920 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 9921 found="yes" 9922 fi 9923 fi 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939xorg_testset_save_CFLAGS="$CFLAGS" 9940 9941if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9944printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9945if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9946then : 9947 printf %s "(cached) " >&6 9948else $as_nop 9949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9950/* end confdefs.h. */ 9951int i; 9952_ACEOF 9953if ac_fn_c_try_compile "$LINENO" 9954then : 9955 xorg_cv_cc_flag_unknown_warning_option=yes 9956else $as_nop 9957 xorg_cv_cc_flag_unknown_warning_option=no 9958fi 9959rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9960fi 9961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9962printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9963 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9964 CFLAGS="$xorg_testset_save_CFLAGS" 9965fi 9966 9967if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9970 fi 9971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9973printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9974if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9975then : 9976 printf %s "(cached) " >&6 9977else $as_nop 9978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9979/* end confdefs.h. */ 9980int i; 9981_ACEOF 9982if ac_fn_c_try_compile "$LINENO" 9983then : 9984 xorg_cv_cc_flag_unused_command_line_argument=yes 9985else $as_nop 9986 xorg_cv_cc_flag_unused_command_line_argument=no 9987fi 9988rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9989fi 9990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9991printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9992 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9993 CFLAGS="$xorg_testset_save_CFLAGS" 9994fi 9995 9996found="no" 9997 9998 if test $found = "no" ; then 9999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10001 fi 10002 10003 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10005 fi 10006 10007 CFLAGS="$CFLAGS -Werror=address" 10008 10009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 10010printf %s "checking if $CC supports -Werror=address... " >&6; } 10011 cacheid=xorg_cv_cc_flag__Werror_address 10012 if eval test \${$cacheid+y} 10013then : 10014 printf %s "(cached) " >&6 10015else $as_nop 10016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10017/* end confdefs.h. */ 10018int i; 10019int 10020main (void) 10021{ 10022 10023 ; 10024 return 0; 10025} 10026_ACEOF 10027if ac_fn_c_try_link "$LINENO" 10028then : 10029 eval $cacheid=yes 10030else $as_nop 10031 eval $cacheid=no 10032fi 10033rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10034 conftest$ac_exeext conftest.$ac_ext 10035fi 10036 10037 10038 CFLAGS="$xorg_testset_save_CFLAGS" 10039 10040 eval supported=\$$cacheid 10041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10042printf "%s\n" "$supported" >&6; } 10043 if test "$supported" = "yes" ; then 10044 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 10045 found="yes" 10046 fi 10047 fi 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063xorg_testset_save_CFLAGS="$CFLAGS" 10064 10065if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10068printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10069if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10070then : 10071 printf %s "(cached) " >&6 10072else $as_nop 10073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10074/* end confdefs.h. */ 10075int i; 10076_ACEOF 10077if ac_fn_c_try_compile "$LINENO" 10078then : 10079 xorg_cv_cc_flag_unknown_warning_option=yes 10080else $as_nop 10081 xorg_cv_cc_flag_unknown_warning_option=no 10082fi 10083rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10084fi 10085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10086printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10087 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10088 CFLAGS="$xorg_testset_save_CFLAGS" 10089fi 10090 10091if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10094 fi 10095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10097printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10098if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10099then : 10100 printf %s "(cached) " >&6 10101else $as_nop 10102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10103/* end confdefs.h. */ 10104int i; 10105_ACEOF 10106if ac_fn_c_try_compile "$LINENO" 10107then : 10108 xorg_cv_cc_flag_unused_command_line_argument=yes 10109else $as_nop 10110 xorg_cv_cc_flag_unused_command_line_argument=no 10111fi 10112rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10113fi 10114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10115printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10116 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10117 CFLAGS="$xorg_testset_save_CFLAGS" 10118fi 10119 10120found="no" 10121 10122 if test $found = "no" ; then 10123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10125 fi 10126 10127 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10129 fi 10130 10131 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 10132 10133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 10134printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 10135 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 10136 if eval test \${$cacheid+y} 10137then : 10138 printf %s "(cached) " >&6 10139else $as_nop 10140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10141/* end confdefs.h. */ 10142int i; 10143int 10144main (void) 10145{ 10146 10147 ; 10148 return 0; 10149} 10150_ACEOF 10151if ac_fn_c_try_link "$LINENO" 10152then : 10153 eval $cacheid=yes 10154else $as_nop 10155 eval $cacheid=no 10156fi 10157rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10158 conftest$ac_exeext conftest.$ac_ext 10159fi 10160 10161 10162 CFLAGS="$xorg_testset_save_CFLAGS" 10163 10164 eval supported=\$$cacheid 10165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10166printf "%s\n" "$supported" >&6; } 10167 if test "$supported" = "yes" ; then 10168 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 10169 found="yes" 10170 fi 10171 fi 10172 10173 if test $found = "no" ; then 10174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10176 fi 10177 10178 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10180 fi 10181 10182 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 10183 10184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 10185printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 10186 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 10187 if eval test \${$cacheid+y} 10188then : 10189 printf %s "(cached) " >&6 10190else $as_nop 10191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10192/* end confdefs.h. */ 10193int i; 10194int 10195main (void) 10196{ 10197 10198 ; 10199 return 0; 10200} 10201_ACEOF 10202if ac_fn_c_try_link "$LINENO" 10203then : 10204 eval $cacheid=yes 10205else $as_nop 10206 eval $cacheid=no 10207fi 10208rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10209 conftest$ac_exeext conftest.$ac_ext 10210fi 10211 10212 10213 CFLAGS="$xorg_testset_save_CFLAGS" 10214 10215 eval supported=\$$cacheid 10216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10217printf "%s\n" "$supported" >&6; } 10218 if test "$supported" = "yes" ; then 10219 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 10220 found="yes" 10221 fi 10222 fi 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238xorg_testset_save_CFLAGS="$CFLAGS" 10239 10240if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10243printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10244if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10245then : 10246 printf %s "(cached) " >&6 10247else $as_nop 10248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10249/* end confdefs.h. */ 10250int i; 10251_ACEOF 10252if ac_fn_c_try_compile "$LINENO" 10253then : 10254 xorg_cv_cc_flag_unknown_warning_option=yes 10255else $as_nop 10256 xorg_cv_cc_flag_unknown_warning_option=no 10257fi 10258rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10259fi 10260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10261printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10262 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10263 CFLAGS="$xorg_testset_save_CFLAGS" 10264fi 10265 10266if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10269 fi 10270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10272printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10273if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10274then : 10275 printf %s "(cached) " >&6 10276else $as_nop 10277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10278/* end confdefs.h. */ 10279int i; 10280_ACEOF 10281if ac_fn_c_try_compile "$LINENO" 10282then : 10283 xorg_cv_cc_flag_unused_command_line_argument=yes 10284else $as_nop 10285 xorg_cv_cc_flag_unused_command_line_argument=no 10286fi 10287rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10288fi 10289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10290printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10291 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10292 CFLAGS="$xorg_testset_save_CFLAGS" 10293fi 10294 10295found="no" 10296 10297 if test $found = "no" ; then 10298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10300 fi 10301 10302 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10304 fi 10305 10306 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 10307 10308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 10309printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 10310 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 10311 if eval test \${$cacheid+y} 10312then : 10313 printf %s "(cached) " >&6 10314else $as_nop 10315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10316/* end confdefs.h. */ 10317int i; 10318int 10319main (void) 10320{ 10321 10322 ; 10323 return 0; 10324} 10325_ACEOF 10326if ac_fn_c_try_link "$LINENO" 10327then : 10328 eval $cacheid=yes 10329else $as_nop 10330 eval $cacheid=no 10331fi 10332rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10333 conftest$ac_exeext conftest.$ac_ext 10334fi 10335 10336 10337 CFLAGS="$xorg_testset_save_CFLAGS" 10338 10339 eval supported=\$$cacheid 10340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10341printf "%s\n" "$supported" >&6; } 10342 if test "$supported" = "yes" ; then 10343 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 10344 found="yes" 10345 fi 10346 fi 10347 10348 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 10349else 10350{ 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 10351printf "%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;} 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365xorg_testset_save_CFLAGS="$CFLAGS" 10366 10367if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10368 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10370printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10371if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10372then : 10373 printf %s "(cached) " >&6 10374else $as_nop 10375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10376/* end confdefs.h. */ 10377int i; 10378_ACEOF 10379if ac_fn_c_try_compile "$LINENO" 10380then : 10381 xorg_cv_cc_flag_unknown_warning_option=yes 10382else $as_nop 10383 xorg_cv_cc_flag_unknown_warning_option=no 10384fi 10385rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10386fi 10387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10388printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10389 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10390 CFLAGS="$xorg_testset_save_CFLAGS" 10391fi 10392 10393if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10396 fi 10397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10399printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10400if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10401then : 10402 printf %s "(cached) " >&6 10403else $as_nop 10404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10405/* end confdefs.h. */ 10406int i; 10407_ACEOF 10408if ac_fn_c_try_compile "$LINENO" 10409then : 10410 xorg_cv_cc_flag_unused_command_line_argument=yes 10411else $as_nop 10412 xorg_cv_cc_flag_unused_command_line_argument=no 10413fi 10414rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10415fi 10416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10417printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10418 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10419 CFLAGS="$xorg_testset_save_CFLAGS" 10420fi 10421 10422found="no" 10423 10424 if test $found = "no" ; then 10425 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10426 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10427 fi 10428 10429 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10431 fi 10432 10433 CFLAGS="$CFLAGS -Wimplicit" 10434 10435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 10436printf %s "checking if $CC supports -Wimplicit... " >&6; } 10437 cacheid=xorg_cv_cc_flag__Wimplicit 10438 if eval test \${$cacheid+y} 10439then : 10440 printf %s "(cached) " >&6 10441else $as_nop 10442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10443/* end confdefs.h. */ 10444int i; 10445int 10446main (void) 10447{ 10448 10449 ; 10450 return 0; 10451} 10452_ACEOF 10453if ac_fn_c_try_link "$LINENO" 10454then : 10455 eval $cacheid=yes 10456else $as_nop 10457 eval $cacheid=no 10458fi 10459rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10460 conftest$ac_exeext conftest.$ac_ext 10461fi 10462 10463 10464 CFLAGS="$xorg_testset_save_CFLAGS" 10465 10466 eval supported=\$$cacheid 10467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10468printf "%s\n" "$supported" >&6; } 10469 if test "$supported" = "yes" ; then 10470 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 10471 found="yes" 10472 fi 10473 fi 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489xorg_testset_save_CFLAGS="$CFLAGS" 10490 10491if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10492 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10494printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10495if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10496then : 10497 printf %s "(cached) " >&6 10498else $as_nop 10499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10500/* end confdefs.h. */ 10501int i; 10502_ACEOF 10503if ac_fn_c_try_compile "$LINENO" 10504then : 10505 xorg_cv_cc_flag_unknown_warning_option=yes 10506else $as_nop 10507 xorg_cv_cc_flag_unknown_warning_option=no 10508fi 10509rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10510fi 10511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10512printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10513 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10514 CFLAGS="$xorg_testset_save_CFLAGS" 10515fi 10516 10517if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10519 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10520 fi 10521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10523printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10524if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10525then : 10526 printf %s "(cached) " >&6 10527else $as_nop 10528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10529/* end confdefs.h. */ 10530int i; 10531_ACEOF 10532if ac_fn_c_try_compile "$LINENO" 10533then : 10534 xorg_cv_cc_flag_unused_command_line_argument=yes 10535else $as_nop 10536 xorg_cv_cc_flag_unused_command_line_argument=no 10537fi 10538rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10539fi 10540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10541printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10542 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10543 CFLAGS="$xorg_testset_save_CFLAGS" 10544fi 10545 10546found="no" 10547 10548 if test $found = "no" ; then 10549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10551 fi 10552 10553 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10555 fi 10556 10557 CFLAGS="$CFLAGS -Wnonnull" 10558 10559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 10560printf %s "checking if $CC supports -Wnonnull... " >&6; } 10561 cacheid=xorg_cv_cc_flag__Wnonnull 10562 if eval test \${$cacheid+y} 10563then : 10564 printf %s "(cached) " >&6 10565else $as_nop 10566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10567/* end confdefs.h. */ 10568int i; 10569int 10570main (void) 10571{ 10572 10573 ; 10574 return 0; 10575} 10576_ACEOF 10577if ac_fn_c_try_link "$LINENO" 10578then : 10579 eval $cacheid=yes 10580else $as_nop 10581 eval $cacheid=no 10582fi 10583rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10584 conftest$ac_exeext conftest.$ac_ext 10585fi 10586 10587 10588 CFLAGS="$xorg_testset_save_CFLAGS" 10589 10590 eval supported=\$$cacheid 10591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10592printf "%s\n" "$supported" >&6; } 10593 if test "$supported" = "yes" ; then 10594 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 10595 found="yes" 10596 fi 10597 fi 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613xorg_testset_save_CFLAGS="$CFLAGS" 10614 10615if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10616 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10618printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10619if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10620then : 10621 printf %s "(cached) " >&6 10622else $as_nop 10623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10624/* end confdefs.h. */ 10625int i; 10626_ACEOF 10627if ac_fn_c_try_compile "$LINENO" 10628then : 10629 xorg_cv_cc_flag_unknown_warning_option=yes 10630else $as_nop 10631 xorg_cv_cc_flag_unknown_warning_option=no 10632fi 10633rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10634fi 10635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10636printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10637 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10638 CFLAGS="$xorg_testset_save_CFLAGS" 10639fi 10640 10641if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10644 fi 10645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10647printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10648if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10649then : 10650 printf %s "(cached) " >&6 10651else $as_nop 10652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10653/* end confdefs.h. */ 10654int i; 10655_ACEOF 10656if ac_fn_c_try_compile "$LINENO" 10657then : 10658 xorg_cv_cc_flag_unused_command_line_argument=yes 10659else $as_nop 10660 xorg_cv_cc_flag_unused_command_line_argument=no 10661fi 10662rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10663fi 10664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10665printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10666 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10667 CFLAGS="$xorg_testset_save_CFLAGS" 10668fi 10669 10670found="no" 10671 10672 if test $found = "no" ; then 10673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10675 fi 10676 10677 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10679 fi 10680 10681 CFLAGS="$CFLAGS -Winit-self" 10682 10683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 10684printf %s "checking if $CC supports -Winit-self... " >&6; } 10685 cacheid=xorg_cv_cc_flag__Winit_self 10686 if eval test \${$cacheid+y} 10687then : 10688 printf %s "(cached) " >&6 10689else $as_nop 10690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10691/* end confdefs.h. */ 10692int i; 10693int 10694main (void) 10695{ 10696 10697 ; 10698 return 0; 10699} 10700_ACEOF 10701if ac_fn_c_try_link "$LINENO" 10702then : 10703 eval $cacheid=yes 10704else $as_nop 10705 eval $cacheid=no 10706fi 10707rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10708 conftest$ac_exeext conftest.$ac_ext 10709fi 10710 10711 10712 CFLAGS="$xorg_testset_save_CFLAGS" 10713 10714 eval supported=\$$cacheid 10715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10716printf "%s\n" "$supported" >&6; } 10717 if test "$supported" = "yes" ; then 10718 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 10719 found="yes" 10720 fi 10721 fi 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737xorg_testset_save_CFLAGS="$CFLAGS" 10738 10739if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10742printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10743if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10744then : 10745 printf %s "(cached) " >&6 10746else $as_nop 10747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10748/* end confdefs.h. */ 10749int i; 10750_ACEOF 10751if ac_fn_c_try_compile "$LINENO" 10752then : 10753 xorg_cv_cc_flag_unknown_warning_option=yes 10754else $as_nop 10755 xorg_cv_cc_flag_unknown_warning_option=no 10756fi 10757rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10758fi 10759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10760printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10761 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10762 CFLAGS="$xorg_testset_save_CFLAGS" 10763fi 10764 10765if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10768 fi 10769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10771printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10772if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10773then : 10774 printf %s "(cached) " >&6 10775else $as_nop 10776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10777/* end confdefs.h. */ 10778int i; 10779_ACEOF 10780if ac_fn_c_try_compile "$LINENO" 10781then : 10782 xorg_cv_cc_flag_unused_command_line_argument=yes 10783else $as_nop 10784 xorg_cv_cc_flag_unused_command_line_argument=no 10785fi 10786rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10787fi 10788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10789printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10790 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10791 CFLAGS="$xorg_testset_save_CFLAGS" 10792fi 10793 10794found="no" 10795 10796 if test $found = "no" ; then 10797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10799 fi 10800 10801 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10803 fi 10804 10805 CFLAGS="$CFLAGS -Wmain" 10806 10807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 10808printf %s "checking if $CC supports -Wmain... " >&6; } 10809 cacheid=xorg_cv_cc_flag__Wmain 10810 if eval test \${$cacheid+y} 10811then : 10812 printf %s "(cached) " >&6 10813else $as_nop 10814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10815/* end confdefs.h. */ 10816int i; 10817int 10818main (void) 10819{ 10820 10821 ; 10822 return 0; 10823} 10824_ACEOF 10825if ac_fn_c_try_link "$LINENO" 10826then : 10827 eval $cacheid=yes 10828else $as_nop 10829 eval $cacheid=no 10830fi 10831rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10832 conftest$ac_exeext conftest.$ac_ext 10833fi 10834 10835 10836 CFLAGS="$xorg_testset_save_CFLAGS" 10837 10838 eval supported=\$$cacheid 10839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10840printf "%s\n" "$supported" >&6; } 10841 if test "$supported" = "yes" ; then 10842 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 10843 found="yes" 10844 fi 10845 fi 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861xorg_testset_save_CFLAGS="$CFLAGS" 10862 10863if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10866printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10867if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10868then : 10869 printf %s "(cached) " >&6 10870else $as_nop 10871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10872/* end confdefs.h. */ 10873int i; 10874_ACEOF 10875if ac_fn_c_try_compile "$LINENO" 10876then : 10877 xorg_cv_cc_flag_unknown_warning_option=yes 10878else $as_nop 10879 xorg_cv_cc_flag_unknown_warning_option=no 10880fi 10881rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10882fi 10883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10884printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10885 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10886 CFLAGS="$xorg_testset_save_CFLAGS" 10887fi 10888 10889if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10892 fi 10893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10895printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10896if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10897then : 10898 printf %s "(cached) " >&6 10899else $as_nop 10900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10901/* end confdefs.h. */ 10902int i; 10903_ACEOF 10904if ac_fn_c_try_compile "$LINENO" 10905then : 10906 xorg_cv_cc_flag_unused_command_line_argument=yes 10907else $as_nop 10908 xorg_cv_cc_flag_unused_command_line_argument=no 10909fi 10910rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10911fi 10912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10913printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10914 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10915 CFLAGS="$xorg_testset_save_CFLAGS" 10916fi 10917 10918found="no" 10919 10920 if test $found = "no" ; then 10921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10923 fi 10924 10925 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10927 fi 10928 10929 CFLAGS="$CFLAGS -Wmissing-braces" 10930 10931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 10932printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 10933 cacheid=xorg_cv_cc_flag__Wmissing_braces 10934 if eval test \${$cacheid+y} 10935then : 10936 printf %s "(cached) " >&6 10937else $as_nop 10938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10939/* end confdefs.h. */ 10940int i; 10941int 10942main (void) 10943{ 10944 10945 ; 10946 return 0; 10947} 10948_ACEOF 10949if ac_fn_c_try_link "$LINENO" 10950then : 10951 eval $cacheid=yes 10952else $as_nop 10953 eval $cacheid=no 10954fi 10955rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10956 conftest$ac_exeext conftest.$ac_ext 10957fi 10958 10959 10960 CFLAGS="$xorg_testset_save_CFLAGS" 10961 10962 eval supported=\$$cacheid 10963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10964printf "%s\n" "$supported" >&6; } 10965 if test "$supported" = "yes" ; then 10966 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 10967 found="yes" 10968 fi 10969 fi 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985xorg_testset_save_CFLAGS="$CFLAGS" 10986 10987if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10990printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10991if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10992then : 10993 printf %s "(cached) " >&6 10994else $as_nop 10995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10996/* end confdefs.h. */ 10997int i; 10998_ACEOF 10999if ac_fn_c_try_compile "$LINENO" 11000then : 11001 xorg_cv_cc_flag_unknown_warning_option=yes 11002else $as_nop 11003 xorg_cv_cc_flag_unknown_warning_option=no 11004fi 11005rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11006fi 11007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11008printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11009 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11010 CFLAGS="$xorg_testset_save_CFLAGS" 11011fi 11012 11013if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11016 fi 11017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11019printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11020if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11021then : 11022 printf %s "(cached) " >&6 11023else $as_nop 11024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11025/* end confdefs.h. */ 11026int i; 11027_ACEOF 11028if ac_fn_c_try_compile "$LINENO" 11029then : 11030 xorg_cv_cc_flag_unused_command_line_argument=yes 11031else $as_nop 11032 xorg_cv_cc_flag_unused_command_line_argument=no 11033fi 11034rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11035fi 11036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11037printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11038 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11039 CFLAGS="$xorg_testset_save_CFLAGS" 11040fi 11041 11042found="no" 11043 11044 if test $found = "no" ; then 11045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11047 fi 11048 11049 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11051 fi 11052 11053 CFLAGS="$CFLAGS -Wsequence-point" 11054 11055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 11056printf %s "checking if $CC supports -Wsequence-point... " >&6; } 11057 cacheid=xorg_cv_cc_flag__Wsequence_point 11058 if eval test \${$cacheid+y} 11059then : 11060 printf %s "(cached) " >&6 11061else $as_nop 11062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11063/* end confdefs.h. */ 11064int i; 11065int 11066main (void) 11067{ 11068 11069 ; 11070 return 0; 11071} 11072_ACEOF 11073if ac_fn_c_try_link "$LINENO" 11074then : 11075 eval $cacheid=yes 11076else $as_nop 11077 eval $cacheid=no 11078fi 11079rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11080 conftest$ac_exeext conftest.$ac_ext 11081fi 11082 11083 11084 CFLAGS="$xorg_testset_save_CFLAGS" 11085 11086 eval supported=\$$cacheid 11087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11088printf "%s\n" "$supported" >&6; } 11089 if test "$supported" = "yes" ; then 11090 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 11091 found="yes" 11092 fi 11093 fi 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109xorg_testset_save_CFLAGS="$CFLAGS" 11110 11111if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11114printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11115if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11116then : 11117 printf %s "(cached) " >&6 11118else $as_nop 11119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11120/* end confdefs.h. */ 11121int i; 11122_ACEOF 11123if ac_fn_c_try_compile "$LINENO" 11124then : 11125 xorg_cv_cc_flag_unknown_warning_option=yes 11126else $as_nop 11127 xorg_cv_cc_flag_unknown_warning_option=no 11128fi 11129rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11130fi 11131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11132printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11133 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11134 CFLAGS="$xorg_testset_save_CFLAGS" 11135fi 11136 11137if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11140 fi 11141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11143printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11144if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11145then : 11146 printf %s "(cached) " >&6 11147else $as_nop 11148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11149/* end confdefs.h. */ 11150int i; 11151_ACEOF 11152if ac_fn_c_try_compile "$LINENO" 11153then : 11154 xorg_cv_cc_flag_unused_command_line_argument=yes 11155else $as_nop 11156 xorg_cv_cc_flag_unused_command_line_argument=no 11157fi 11158rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11159fi 11160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11161printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11162 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11163 CFLAGS="$xorg_testset_save_CFLAGS" 11164fi 11165 11166found="no" 11167 11168 if test $found = "no" ; then 11169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11171 fi 11172 11173 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11175 fi 11176 11177 CFLAGS="$CFLAGS -Wreturn-type" 11178 11179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 11180printf %s "checking if $CC supports -Wreturn-type... " >&6; } 11181 cacheid=xorg_cv_cc_flag__Wreturn_type 11182 if eval test \${$cacheid+y} 11183then : 11184 printf %s "(cached) " >&6 11185else $as_nop 11186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11187/* end confdefs.h. */ 11188int i; 11189int 11190main (void) 11191{ 11192 11193 ; 11194 return 0; 11195} 11196_ACEOF 11197if ac_fn_c_try_link "$LINENO" 11198then : 11199 eval $cacheid=yes 11200else $as_nop 11201 eval $cacheid=no 11202fi 11203rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11204 conftest$ac_exeext conftest.$ac_ext 11205fi 11206 11207 11208 CFLAGS="$xorg_testset_save_CFLAGS" 11209 11210 eval supported=\$$cacheid 11211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11212printf "%s\n" "$supported" >&6; } 11213 if test "$supported" = "yes" ; then 11214 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 11215 found="yes" 11216 fi 11217 fi 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233xorg_testset_save_CFLAGS="$CFLAGS" 11234 11235if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11238printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11239if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11240then : 11241 printf %s "(cached) " >&6 11242else $as_nop 11243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11244/* end confdefs.h. */ 11245int i; 11246_ACEOF 11247if ac_fn_c_try_compile "$LINENO" 11248then : 11249 xorg_cv_cc_flag_unknown_warning_option=yes 11250else $as_nop 11251 xorg_cv_cc_flag_unknown_warning_option=no 11252fi 11253rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11254fi 11255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11256printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11257 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11258 CFLAGS="$xorg_testset_save_CFLAGS" 11259fi 11260 11261if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11264 fi 11265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11267printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11268if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11269then : 11270 printf %s "(cached) " >&6 11271else $as_nop 11272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11273/* end confdefs.h. */ 11274int i; 11275_ACEOF 11276if ac_fn_c_try_compile "$LINENO" 11277then : 11278 xorg_cv_cc_flag_unused_command_line_argument=yes 11279else $as_nop 11280 xorg_cv_cc_flag_unused_command_line_argument=no 11281fi 11282rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11283fi 11284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11285printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11286 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11287 CFLAGS="$xorg_testset_save_CFLAGS" 11288fi 11289 11290found="no" 11291 11292 if test $found = "no" ; then 11293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11295 fi 11296 11297 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11299 fi 11300 11301 CFLAGS="$CFLAGS -Wtrigraphs" 11302 11303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 11304printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 11305 cacheid=xorg_cv_cc_flag__Wtrigraphs 11306 if eval test \${$cacheid+y} 11307then : 11308 printf %s "(cached) " >&6 11309else $as_nop 11310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11311/* end confdefs.h. */ 11312int i; 11313int 11314main (void) 11315{ 11316 11317 ; 11318 return 0; 11319} 11320_ACEOF 11321if ac_fn_c_try_link "$LINENO" 11322then : 11323 eval $cacheid=yes 11324else $as_nop 11325 eval $cacheid=no 11326fi 11327rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11328 conftest$ac_exeext conftest.$ac_ext 11329fi 11330 11331 11332 CFLAGS="$xorg_testset_save_CFLAGS" 11333 11334 eval supported=\$$cacheid 11335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11336printf "%s\n" "$supported" >&6; } 11337 if test "$supported" = "yes" ; then 11338 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 11339 found="yes" 11340 fi 11341 fi 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357xorg_testset_save_CFLAGS="$CFLAGS" 11358 11359if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11362printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11363if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11364then : 11365 printf %s "(cached) " >&6 11366else $as_nop 11367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11368/* end confdefs.h. */ 11369int i; 11370_ACEOF 11371if ac_fn_c_try_compile "$LINENO" 11372then : 11373 xorg_cv_cc_flag_unknown_warning_option=yes 11374else $as_nop 11375 xorg_cv_cc_flag_unknown_warning_option=no 11376fi 11377rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11378fi 11379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11380printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11381 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11382 CFLAGS="$xorg_testset_save_CFLAGS" 11383fi 11384 11385if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11388 fi 11389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11391printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11392if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11393then : 11394 printf %s "(cached) " >&6 11395else $as_nop 11396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11397/* end confdefs.h. */ 11398int i; 11399_ACEOF 11400if ac_fn_c_try_compile "$LINENO" 11401then : 11402 xorg_cv_cc_flag_unused_command_line_argument=yes 11403else $as_nop 11404 xorg_cv_cc_flag_unused_command_line_argument=no 11405fi 11406rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11407fi 11408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11409printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11410 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11411 CFLAGS="$xorg_testset_save_CFLAGS" 11412fi 11413 11414found="no" 11415 11416 if test $found = "no" ; then 11417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11419 fi 11420 11421 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11423 fi 11424 11425 CFLAGS="$CFLAGS -Warray-bounds" 11426 11427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 11428printf %s "checking if $CC supports -Warray-bounds... " >&6; } 11429 cacheid=xorg_cv_cc_flag__Warray_bounds 11430 if eval test \${$cacheid+y} 11431then : 11432 printf %s "(cached) " >&6 11433else $as_nop 11434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11435/* end confdefs.h. */ 11436int i; 11437int 11438main (void) 11439{ 11440 11441 ; 11442 return 0; 11443} 11444_ACEOF 11445if ac_fn_c_try_link "$LINENO" 11446then : 11447 eval $cacheid=yes 11448else $as_nop 11449 eval $cacheid=no 11450fi 11451rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11452 conftest$ac_exeext conftest.$ac_ext 11453fi 11454 11455 11456 CFLAGS="$xorg_testset_save_CFLAGS" 11457 11458 eval supported=\$$cacheid 11459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11460printf "%s\n" "$supported" >&6; } 11461 if test "$supported" = "yes" ; then 11462 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 11463 found="yes" 11464 fi 11465 fi 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481xorg_testset_save_CFLAGS="$CFLAGS" 11482 11483if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11486printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11487if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11488then : 11489 printf %s "(cached) " >&6 11490else $as_nop 11491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11492/* end confdefs.h. */ 11493int i; 11494_ACEOF 11495if ac_fn_c_try_compile "$LINENO" 11496then : 11497 xorg_cv_cc_flag_unknown_warning_option=yes 11498else $as_nop 11499 xorg_cv_cc_flag_unknown_warning_option=no 11500fi 11501rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11502fi 11503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11504printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11505 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11506 CFLAGS="$xorg_testset_save_CFLAGS" 11507fi 11508 11509if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11512 fi 11513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11515printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11516if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11517then : 11518 printf %s "(cached) " >&6 11519else $as_nop 11520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11521/* end confdefs.h. */ 11522int i; 11523_ACEOF 11524if ac_fn_c_try_compile "$LINENO" 11525then : 11526 xorg_cv_cc_flag_unused_command_line_argument=yes 11527else $as_nop 11528 xorg_cv_cc_flag_unused_command_line_argument=no 11529fi 11530rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11531fi 11532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11533printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11534 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11535 CFLAGS="$xorg_testset_save_CFLAGS" 11536fi 11537 11538found="no" 11539 11540 if test $found = "no" ; then 11541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11543 fi 11544 11545 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11547 fi 11548 11549 CFLAGS="$CFLAGS -Wwrite-strings" 11550 11551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 11552printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 11553 cacheid=xorg_cv_cc_flag__Wwrite_strings 11554 if eval test \${$cacheid+y} 11555then : 11556 printf %s "(cached) " >&6 11557else $as_nop 11558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11559/* end confdefs.h. */ 11560int i; 11561int 11562main (void) 11563{ 11564 11565 ; 11566 return 0; 11567} 11568_ACEOF 11569if ac_fn_c_try_link "$LINENO" 11570then : 11571 eval $cacheid=yes 11572else $as_nop 11573 eval $cacheid=no 11574fi 11575rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11576 conftest$ac_exeext conftest.$ac_ext 11577fi 11578 11579 11580 CFLAGS="$xorg_testset_save_CFLAGS" 11581 11582 eval supported=\$$cacheid 11583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11584printf "%s\n" "$supported" >&6; } 11585 if test "$supported" = "yes" ; then 11586 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 11587 found="yes" 11588 fi 11589 fi 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605xorg_testset_save_CFLAGS="$CFLAGS" 11606 11607if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11610printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11611if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11612then : 11613 printf %s "(cached) " >&6 11614else $as_nop 11615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11616/* end confdefs.h. */ 11617int i; 11618_ACEOF 11619if ac_fn_c_try_compile "$LINENO" 11620then : 11621 xorg_cv_cc_flag_unknown_warning_option=yes 11622else $as_nop 11623 xorg_cv_cc_flag_unknown_warning_option=no 11624fi 11625rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11626fi 11627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11628printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11629 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11630 CFLAGS="$xorg_testset_save_CFLAGS" 11631fi 11632 11633if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11634 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11635 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11636 fi 11637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11639printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11640if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11641then : 11642 printf %s "(cached) " >&6 11643else $as_nop 11644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11645/* end confdefs.h. */ 11646int i; 11647_ACEOF 11648if ac_fn_c_try_compile "$LINENO" 11649then : 11650 xorg_cv_cc_flag_unused_command_line_argument=yes 11651else $as_nop 11652 xorg_cv_cc_flag_unused_command_line_argument=no 11653fi 11654rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11655fi 11656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11657printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11658 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11659 CFLAGS="$xorg_testset_save_CFLAGS" 11660fi 11661 11662found="no" 11663 11664 if test $found = "no" ; then 11665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11667 fi 11668 11669 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11671 fi 11672 11673 CFLAGS="$CFLAGS -Waddress" 11674 11675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 11676printf %s "checking if $CC supports -Waddress... " >&6; } 11677 cacheid=xorg_cv_cc_flag__Waddress 11678 if eval test \${$cacheid+y} 11679then : 11680 printf %s "(cached) " >&6 11681else $as_nop 11682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11683/* end confdefs.h. */ 11684int i; 11685int 11686main (void) 11687{ 11688 11689 ; 11690 return 0; 11691} 11692_ACEOF 11693if ac_fn_c_try_link "$LINENO" 11694then : 11695 eval $cacheid=yes 11696else $as_nop 11697 eval $cacheid=no 11698fi 11699rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11700 conftest$ac_exeext conftest.$ac_ext 11701fi 11702 11703 11704 CFLAGS="$xorg_testset_save_CFLAGS" 11705 11706 eval supported=\$$cacheid 11707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11708printf "%s\n" "$supported" >&6; } 11709 if test "$supported" = "yes" ; then 11710 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 11711 found="yes" 11712 fi 11713 fi 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729xorg_testset_save_CFLAGS="$CFLAGS" 11730 11731if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11734printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11735if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11736then : 11737 printf %s "(cached) " >&6 11738else $as_nop 11739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11740/* end confdefs.h. */ 11741int i; 11742_ACEOF 11743if ac_fn_c_try_compile "$LINENO" 11744then : 11745 xorg_cv_cc_flag_unknown_warning_option=yes 11746else $as_nop 11747 xorg_cv_cc_flag_unknown_warning_option=no 11748fi 11749rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11750fi 11751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11752printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11753 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11754 CFLAGS="$xorg_testset_save_CFLAGS" 11755fi 11756 11757if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11758 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11759 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11760 fi 11761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11763printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11764if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11765then : 11766 printf %s "(cached) " >&6 11767else $as_nop 11768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11769/* end confdefs.h. */ 11770int i; 11771_ACEOF 11772if ac_fn_c_try_compile "$LINENO" 11773then : 11774 xorg_cv_cc_flag_unused_command_line_argument=yes 11775else $as_nop 11776 xorg_cv_cc_flag_unused_command_line_argument=no 11777fi 11778rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11779fi 11780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11781printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11782 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11783 CFLAGS="$xorg_testset_save_CFLAGS" 11784fi 11785 11786found="no" 11787 11788 if test $found = "no" ; then 11789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11791 fi 11792 11793 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11795 fi 11796 11797 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 11798 11799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 11800printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 11801 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 11802 if eval test \${$cacheid+y} 11803then : 11804 printf %s "(cached) " >&6 11805else $as_nop 11806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11807/* end confdefs.h. */ 11808int i; 11809int 11810main (void) 11811{ 11812 11813 ; 11814 return 0; 11815} 11816_ACEOF 11817if ac_fn_c_try_link "$LINENO" 11818then : 11819 eval $cacheid=yes 11820else $as_nop 11821 eval $cacheid=no 11822fi 11823rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11824 conftest$ac_exeext conftest.$ac_ext 11825fi 11826 11827 11828 CFLAGS="$xorg_testset_save_CFLAGS" 11829 11830 eval supported=\$$cacheid 11831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11832printf "%s\n" "$supported" >&6; } 11833 if test "$supported" = "yes" ; then 11834 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 11835 found="yes" 11836 fi 11837 fi 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853xorg_testset_save_CFLAGS="$CFLAGS" 11854 11855if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11858printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11859if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11860then : 11861 printf %s "(cached) " >&6 11862else $as_nop 11863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11864/* end confdefs.h. */ 11865int i; 11866_ACEOF 11867if ac_fn_c_try_compile "$LINENO" 11868then : 11869 xorg_cv_cc_flag_unknown_warning_option=yes 11870else $as_nop 11871 xorg_cv_cc_flag_unknown_warning_option=no 11872fi 11873rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11874fi 11875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11876printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11877 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11878 CFLAGS="$xorg_testset_save_CFLAGS" 11879fi 11880 11881if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11883 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11884 fi 11885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11887printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11888if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11889then : 11890 printf %s "(cached) " >&6 11891else $as_nop 11892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11893/* end confdefs.h. */ 11894int i; 11895_ACEOF 11896if ac_fn_c_try_compile "$LINENO" 11897then : 11898 xorg_cv_cc_flag_unused_command_line_argument=yes 11899else $as_nop 11900 xorg_cv_cc_flag_unused_command_line_argument=no 11901fi 11902rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11903fi 11904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11905printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11906 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11907 CFLAGS="$xorg_testset_save_CFLAGS" 11908fi 11909 11910found="no" 11911 11912 if test $found = "no" ; then 11913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11915 fi 11916 11917 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11919 fi 11920 11921 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 11922 11923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 11924printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 11925 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 11926 if eval test \${$cacheid+y} 11927then : 11928 printf %s "(cached) " >&6 11929else $as_nop 11930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11931/* end confdefs.h. */ 11932int i; 11933int 11934main (void) 11935{ 11936 11937 ; 11938 return 0; 11939} 11940_ACEOF 11941if ac_fn_c_try_link "$LINENO" 11942then : 11943 eval $cacheid=yes 11944else $as_nop 11945 eval $cacheid=no 11946fi 11947rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11948 conftest$ac_exeext conftest.$ac_ext 11949fi 11950 11951 11952 CFLAGS="$xorg_testset_save_CFLAGS" 11953 11954 eval supported=\$$cacheid 11955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11956printf "%s\n" "$supported" >&6; } 11957 if test "$supported" = "yes" ; then 11958 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 11959 found="yes" 11960 fi 11961 fi 11962 11963 11964fi 11965 11966 11967 11968 11969 11970 11971 11972 CWARNFLAGS="$BASE_CFLAGS" 11973 if test "x$GCC" = xyes ; then 11974 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 11975 fi 11976 11977 11978 11979 11980 11981 11982 11983 11984# Check whether --enable-strict-compilation was given. 11985if test ${enable_strict_compilation+y} 11986then : 11987 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 11988else $as_nop 11989 STRICT_COMPILE=no 11990fi 11991 11992 11993 11994 11995 11996 11997STRICT_CFLAGS="" 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011xorg_testset_save_CFLAGS="$CFLAGS" 12012 12013if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12016printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12017if test ${xorg_cv_cc_flag_unknown_warning_option+y} 12018then : 12019 printf %s "(cached) " >&6 12020else $as_nop 12021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12022/* end confdefs.h. */ 12023int i; 12024_ACEOF 12025if ac_fn_c_try_compile "$LINENO" 12026then : 12027 xorg_cv_cc_flag_unknown_warning_option=yes 12028else $as_nop 12029 xorg_cv_cc_flag_unknown_warning_option=no 12030fi 12031rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12032fi 12033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12034printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12035 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12036 CFLAGS="$xorg_testset_save_CFLAGS" 12037fi 12038 12039if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12040 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12041 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12042 fi 12043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12045printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12046if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 12047then : 12048 printf %s "(cached) " >&6 12049else $as_nop 12050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12051/* end confdefs.h. */ 12052int i; 12053_ACEOF 12054if ac_fn_c_try_compile "$LINENO" 12055then : 12056 xorg_cv_cc_flag_unused_command_line_argument=yes 12057else $as_nop 12058 xorg_cv_cc_flag_unused_command_line_argument=no 12059fi 12060rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12061fi 12062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12063printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12064 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12065 CFLAGS="$xorg_testset_save_CFLAGS" 12066fi 12067 12068found="no" 12069 12070 if test $found = "no" ; then 12071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12073 fi 12074 12075 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12077 fi 12078 12079 CFLAGS="$CFLAGS -pedantic" 12080 12081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 12082printf %s "checking if $CC supports -pedantic... " >&6; } 12083 cacheid=xorg_cv_cc_flag__pedantic 12084 if eval test \${$cacheid+y} 12085then : 12086 printf %s "(cached) " >&6 12087else $as_nop 12088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12089/* end confdefs.h. */ 12090int i; 12091int 12092main (void) 12093{ 12094 12095 ; 12096 return 0; 12097} 12098_ACEOF 12099if ac_fn_c_try_link "$LINENO" 12100then : 12101 eval $cacheid=yes 12102else $as_nop 12103 eval $cacheid=no 12104fi 12105rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12106 conftest$ac_exeext conftest.$ac_ext 12107fi 12108 12109 12110 CFLAGS="$xorg_testset_save_CFLAGS" 12111 12112 eval supported=\$$cacheid 12113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12114printf "%s\n" "$supported" >&6; } 12115 if test "$supported" = "yes" ; then 12116 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 12117 found="yes" 12118 fi 12119 fi 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135xorg_testset_save_CFLAGS="$CFLAGS" 12136 12137if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12138 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12140printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12141if test ${xorg_cv_cc_flag_unknown_warning_option+y} 12142then : 12143 printf %s "(cached) " >&6 12144else $as_nop 12145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12146/* end confdefs.h. */ 12147int i; 12148_ACEOF 12149if ac_fn_c_try_compile "$LINENO" 12150then : 12151 xorg_cv_cc_flag_unknown_warning_option=yes 12152else $as_nop 12153 xorg_cv_cc_flag_unknown_warning_option=no 12154fi 12155rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12156fi 12157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12158printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12159 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12160 CFLAGS="$xorg_testset_save_CFLAGS" 12161fi 12162 12163if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12164 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12165 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12166 fi 12167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12169printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12170if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 12171then : 12172 printf %s "(cached) " >&6 12173else $as_nop 12174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12175/* end confdefs.h. */ 12176int i; 12177_ACEOF 12178if ac_fn_c_try_compile "$LINENO" 12179then : 12180 xorg_cv_cc_flag_unused_command_line_argument=yes 12181else $as_nop 12182 xorg_cv_cc_flag_unused_command_line_argument=no 12183fi 12184rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12185fi 12186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12187printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12188 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12189 CFLAGS="$xorg_testset_save_CFLAGS" 12190fi 12191 12192found="no" 12193 12194 if test $found = "no" ; then 12195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12196 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12197 fi 12198 12199 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12201 fi 12202 12203 CFLAGS="$CFLAGS -Werror" 12204 12205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 12206printf %s "checking if $CC supports -Werror... " >&6; } 12207 cacheid=xorg_cv_cc_flag__Werror 12208 if eval test \${$cacheid+y} 12209then : 12210 printf %s "(cached) " >&6 12211else $as_nop 12212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12213/* end confdefs.h. */ 12214int i; 12215int 12216main (void) 12217{ 12218 12219 ; 12220 return 0; 12221} 12222_ACEOF 12223if ac_fn_c_try_link "$LINENO" 12224then : 12225 eval $cacheid=yes 12226else $as_nop 12227 eval $cacheid=no 12228fi 12229rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12230 conftest$ac_exeext conftest.$ac_ext 12231fi 12232 12233 12234 CFLAGS="$xorg_testset_save_CFLAGS" 12235 12236 eval supported=\$$cacheid 12237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12238printf "%s\n" "$supported" >&6; } 12239 if test "$supported" = "yes" ; then 12240 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 12241 found="yes" 12242 fi 12243 fi 12244 12245 if test $found = "no" ; then 12246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12247 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12248 fi 12249 12250 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12252 fi 12253 12254 CFLAGS="$CFLAGS -errwarn" 12255 12256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 12257printf %s "checking if $CC supports -errwarn... " >&6; } 12258 cacheid=xorg_cv_cc_flag__errwarn 12259 if eval test \${$cacheid+y} 12260then : 12261 printf %s "(cached) " >&6 12262else $as_nop 12263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12264/* end confdefs.h. */ 12265int i; 12266int 12267main (void) 12268{ 12269 12270 ; 12271 return 0; 12272} 12273_ACEOF 12274if ac_fn_c_try_link "$LINENO" 12275then : 12276 eval $cacheid=yes 12277else $as_nop 12278 eval $cacheid=no 12279fi 12280rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12281 conftest$ac_exeext conftest.$ac_ext 12282fi 12283 12284 12285 CFLAGS="$xorg_testset_save_CFLAGS" 12286 12287 eval supported=\$$cacheid 12288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12289printf "%s\n" "$supported" >&6; } 12290 if test "$supported" = "yes" ; then 12291 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 12292 found="yes" 12293 fi 12294 fi 12295 12296 12297 12298# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 12299# activate it with -Werror, so we add it here explicitly. 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313xorg_testset_save_CFLAGS="$CFLAGS" 12314 12315if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12318printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12319if test ${xorg_cv_cc_flag_unknown_warning_option+y} 12320then : 12321 printf %s "(cached) " >&6 12322else $as_nop 12323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12324/* end confdefs.h. */ 12325int i; 12326_ACEOF 12327if ac_fn_c_try_compile "$LINENO" 12328then : 12329 xorg_cv_cc_flag_unknown_warning_option=yes 12330else $as_nop 12331 xorg_cv_cc_flag_unknown_warning_option=no 12332fi 12333rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12334fi 12335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12336printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12337 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12338 CFLAGS="$xorg_testset_save_CFLAGS" 12339fi 12340 12341if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12344 fi 12345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12347printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12348if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 12349then : 12350 printf %s "(cached) " >&6 12351else $as_nop 12352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12353/* end confdefs.h. */ 12354int i; 12355_ACEOF 12356if ac_fn_c_try_compile "$LINENO" 12357then : 12358 xorg_cv_cc_flag_unused_command_line_argument=yes 12359else $as_nop 12360 xorg_cv_cc_flag_unused_command_line_argument=no 12361fi 12362rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12363fi 12364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12365printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12366 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12367 CFLAGS="$xorg_testset_save_CFLAGS" 12368fi 12369 12370found="no" 12371 12372 if test $found = "no" ; then 12373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12374 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12375 fi 12376 12377 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12379 fi 12380 12381 CFLAGS="$CFLAGS -Werror=attributes" 12382 12383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 12384printf %s "checking if $CC supports -Werror=attributes... " >&6; } 12385 cacheid=xorg_cv_cc_flag__Werror_attributes 12386 if eval test \${$cacheid+y} 12387then : 12388 printf %s "(cached) " >&6 12389else $as_nop 12390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12391/* end confdefs.h. */ 12392int i; 12393int 12394main (void) 12395{ 12396 12397 ; 12398 return 0; 12399} 12400_ACEOF 12401if ac_fn_c_try_link "$LINENO" 12402then : 12403 eval $cacheid=yes 12404else $as_nop 12405 eval $cacheid=no 12406fi 12407rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12408 conftest$ac_exeext conftest.$ac_ext 12409fi 12410 12411 12412 CFLAGS="$xorg_testset_save_CFLAGS" 12413 12414 eval supported=\$$cacheid 12415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12416printf "%s\n" "$supported" >&6; } 12417 if test "$supported" = "yes" ; then 12418 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 12419 found="yes" 12420 fi 12421 fi 12422 12423 12424 12425if test "x$STRICT_COMPILE" = "xyes"; then 12426 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 12427 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 12428fi 12429 12430 12431 12432 12433 12434 12435cat >>confdefs.h <<_ACEOF 12436#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 12437_ACEOF 12438 12439 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 12440 if test "x$PVM" = "x"; then 12441 PVM="0" 12442 fi 12443 12444printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 12445 12446 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 12447 if test "x$PVP" = "x"; then 12448 PVP="0" 12449 fi 12450 12451printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 12452 12453 12454 12455CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 12456mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 12457|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 12458touch \$(top_srcdir)/ChangeLog; \ 12459echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 12460 12461 12462 12463 12464macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 12465INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 12466mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 12467|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 12468touch \$(top_srcdir)/INSTALL; \ 12469echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 12470 12471 12472 12473 12474 12475 12476case $host_os in 12477 solaris*) 12478 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 12479 # check for a man page file found in later versions that use 12480 # traditional section numbers instead 12481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 12482printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 12483if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 12484then : 12485 printf %s "(cached) " >&6 12486else $as_nop 12487 test "$cross_compiling" = yes && 12488 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 12489if test -r "/usr/share/man/man7/attributes.7"; then 12490 ac_cv_file__usr_share_man_man7_attributes_7=yes 12491else 12492 ac_cv_file__usr_share_man_man7_attributes_7=no 12493fi 12494fi 12495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 12496printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 12497if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 12498then : 12499 SYSV_MAN_SECTIONS=false 12500else $as_nop 12501 SYSV_MAN_SECTIONS=true 12502fi 12503 12504 ;; 12505 *) SYSV_MAN_SECTIONS=false ;; 12506esac 12507 12508if test x$APP_MAN_SUFFIX = x ; then 12509 APP_MAN_SUFFIX=1 12510fi 12511if test x$APP_MAN_DIR = x ; then 12512 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 12513fi 12514 12515if test x$LIB_MAN_SUFFIX = x ; then 12516 LIB_MAN_SUFFIX=3 12517fi 12518if test x$LIB_MAN_DIR = x ; then 12519 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 12520fi 12521 12522if test x$FILE_MAN_SUFFIX = x ; then 12523 case $SYSV_MAN_SECTIONS in 12524 true) FILE_MAN_SUFFIX=4 ;; 12525 *) FILE_MAN_SUFFIX=5 ;; 12526 esac 12527fi 12528if test x$FILE_MAN_DIR = x ; then 12529 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 12530fi 12531 12532if test x$MISC_MAN_SUFFIX = x ; then 12533 case $SYSV_MAN_SECTIONS in 12534 true) MISC_MAN_SUFFIX=5 ;; 12535 *) MISC_MAN_SUFFIX=7 ;; 12536 esac 12537fi 12538if test x$MISC_MAN_DIR = x ; then 12539 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 12540fi 12541 12542if test x$DRIVER_MAN_SUFFIX = x ; then 12543 case $SYSV_MAN_SECTIONS in 12544 true) DRIVER_MAN_SUFFIX=7 ;; 12545 *) DRIVER_MAN_SUFFIX=4 ;; 12546 esac 12547fi 12548if test x$DRIVER_MAN_DIR = x ; then 12549 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 12550fi 12551 12552if test x$ADMIN_MAN_SUFFIX = x ; then 12553 case $SYSV_MAN_SECTIONS in 12554 true) ADMIN_MAN_SUFFIX=1m ;; 12555 *) ADMIN_MAN_SUFFIX=8 ;; 12556 esac 12557fi 12558if test x$ADMIN_MAN_DIR = x ; then 12559 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 12560fi 12561 12562 12563 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576XORG_MAN_PAGE="X Version 11" 12577 12578MAN_SUBSTS="\ 12579 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 12580 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 12581 -e 's|__xservername__|Xorg|g' \ 12582 -e 's|__xconfigfile__|xorg.conf|g' \ 12583 -e 's|__projectroot__|\$(prefix)|g' \ 12584 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 12585 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 12586 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 12587 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 12588 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 12589 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 12590 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 12591 12592 12593 12594# Check whether --enable-silent-rules was given. 12595if test ${enable_silent_rules+y} 12596then : 12597 enableval=$enable_silent_rules; 12598fi 12599 12600case $enable_silent_rules in # ((( 12601 yes) AM_DEFAULT_VERBOSITY=0;; 12602 no) AM_DEFAULT_VERBOSITY=1;; 12603 *) AM_DEFAULT_VERBOSITY=0;; 12604esac 12605am_make=${MAKE-make} 12606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 12607printf %s "checking whether $am_make supports nested variables... " >&6; } 12608if test ${am_cv_make_support_nested_variables+y} 12609then : 12610 printf %s "(cached) " >&6 12611else $as_nop 12612 if printf "%s\n" 'TRUE=$(BAR$(V)) 12613BAR0=false 12614BAR1=true 12615V=1 12616am__doit: 12617 @$(TRUE) 12618.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 12619 am_cv_make_support_nested_variables=yes 12620else 12621 am_cv_make_support_nested_variables=no 12622fi 12623fi 12624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 12625printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 12626if test $am_cv_make_support_nested_variables = yes; then 12627 AM_V='$(V)' 12628 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 12629else 12630 AM_V=$AM_DEFAULT_VERBOSITY 12631 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 12632fi 12633AM_BACKSLASH='\' 12634 12635 12636 12637 12638 12639 12640 12641# Check whether --with-doxygen was given. 12642if test ${with_doxygen+y} 12643then : 12644 withval=$with_doxygen; use_doxygen=$withval 12645else $as_nop 12646 use_doxygen=auto 12647fi 12648 12649 12650 12651if test "x$use_doxygen" = x"auto"; then 12652 # Extract the first word of "doxygen", so it can be a program name with args. 12653set dummy doxygen; ac_word=$2 12654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12655printf %s "checking for $ac_word... " >&6; } 12656if test ${ac_cv_path_DOXYGEN+y} 12657then : 12658 printf %s "(cached) " >&6 12659else $as_nop 12660 case $DOXYGEN in 12661 [\\/]* | ?:[\\/]*) 12662 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 12663 ;; 12664 *) 12665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12666for as_dir in $PATH 12667do 12668 IFS=$as_save_IFS 12669 case $as_dir in #((( 12670 '') as_dir=./ ;; 12671 */) ;; 12672 *) as_dir=$as_dir/ ;; 12673 esac 12674 for ac_exec_ext in '' $ac_executable_extensions; do 12675 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12676 ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext" 12677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12678 break 2 12679 fi 12680done 12681 done 12682IFS=$as_save_IFS 12683 12684 ;; 12685esac 12686fi 12687DOXYGEN=$ac_cv_path_DOXYGEN 12688if test -n "$DOXYGEN"; then 12689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 12690printf "%s\n" "$DOXYGEN" >&6; } 12691else 12692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12693printf "%s\n" "no" >&6; } 12694fi 12695 12696 12697 if test "x$DOXYGEN" = "x"; then 12698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - documentation targets will be skipped" >&5 12699printf "%s\n" "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;} 12700 have_doxygen=no 12701 else 12702 have_doxygen=yes 12703 fi 12704elif test "x$use_doxygen" = x"yes" ; then 12705 # Extract the first word of "doxygen", so it can be a program name with args. 12706set dummy doxygen; ac_word=$2 12707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12708printf %s "checking for $ac_word... " >&6; } 12709if test ${ac_cv_path_DOXYGEN+y} 12710then : 12711 printf %s "(cached) " >&6 12712else $as_nop 12713 case $DOXYGEN in 12714 [\\/]* | ?:[\\/]*) 12715 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 12716 ;; 12717 *) 12718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12719for as_dir in $PATH 12720do 12721 IFS=$as_save_IFS 12722 case $as_dir in #((( 12723 '') as_dir=./ ;; 12724 */) ;; 12725 *) as_dir=$as_dir/ ;; 12726 esac 12727 for ac_exec_ext in '' $ac_executable_extensions; do 12728 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12729 ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext" 12730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12731 break 2 12732 fi 12733done 12734 done 12735IFS=$as_save_IFS 12736 12737 ;; 12738esac 12739fi 12740DOXYGEN=$ac_cv_path_DOXYGEN 12741if test -n "$DOXYGEN"; then 12742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 12743printf "%s\n" "$DOXYGEN" >&6; } 12744else 12745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12746printf "%s\n" "no" >&6; } 12747fi 12748 12749 12750 if test "x$DOXYGEN" = "x"; then 12751 as_fn_error $? "--with-doxygen=yes specified but doxygen not found in PATH" "$LINENO" 5 12752 fi 12753 have_doxygen=yes 12754elif test "x$use_doxygen" = x"no" ; then 12755 if test "x$DOXYGEN" != "x"; then 12756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5 12757printf "%s\n" "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;} 12758 fi 12759 have_doxygen=no 12760else 12761 as_fn_error $? "--with-doxygen expects 'yes' or 'no'" "$LINENO" 5 12762fi 12763if test "$have_doxygen" = yes; then 12764 # scrape the doxygen version 12765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the doxygen version" >&5 12766printf %s "checking the doxygen version... " >&6; } 12767 doxygen_version=`$DOXYGEN --version 2>/dev/null` 12768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $doxygen_version" >&5 12769printf "%s\n" "$doxygen_version" >&6; } 12770 as_arg_v1=$doxygen_version 12771as_arg_v2=1.6.1 12772awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 12773case $? in #( 12774 1) : 12775 if test "x$use_doxygen" = xauto; then 12776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&5 12777printf "%s\n" "$as_me: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&2;} 12778 have_doxygen=no 12779 else 12780 as_fn_error $? "doxygen version $doxygen_version found, but 1.6.1 needed" "$LINENO" 5 12781 fi ;; #( 12782 0) : 12783 ;; #( 12784 2) : 12785 ;; #( 12786 *) : 12787 ;; 12788esac 12789fi 12790 12791HAVE_DOT=no 12792if test "x$have_doxygen" = "xyes"; then 12793 # Extract the first word of "dot", so it can be a program name with args. 12794set dummy dot; ac_word=$2 12795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12796printf %s "checking for $ac_word... " >&6; } 12797if test ${ac_cv_path_DOT+y} 12798then : 12799 printf %s "(cached) " >&6 12800else $as_nop 12801 case $DOT in 12802 [\\/]* | ?:[\\/]*) 12803 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 12804 ;; 12805 *) 12806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12807for as_dir in $PATH 12808do 12809 IFS=$as_save_IFS 12810 case $as_dir in #((( 12811 '') as_dir=./ ;; 12812 */) ;; 12813 *) as_dir=$as_dir/ ;; 12814 esac 12815 for ac_exec_ext in '' $ac_executable_extensions; do 12816 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12817 ac_cv_path_DOT="$as_dir$ac_word$ac_exec_ext" 12818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12819 break 2 12820 fi 12821done 12822 done 12823IFS=$as_save_IFS 12824 12825 ;; 12826esac 12827fi 12828DOT=$ac_cv_path_DOT 12829if test -n "$DOT"; then 12830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 12831printf "%s\n" "$DOT" >&6; } 12832else 12833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12834printf "%s\n" "no" >&6; } 12835fi 12836 12837 12838 if test "x$DOT" != "x"; then 12839 HAVE_DOT=yes 12840 fi 12841fi 12842 12843 12844 if test "$HAVE_DOT" = "yes"; then 12845 HAVE_DOT_TRUE= 12846 HAVE_DOT_FALSE='#' 12847else 12848 HAVE_DOT_TRUE='#' 12849 HAVE_DOT_FALSE= 12850fi 12851 12852 if test "$have_doxygen" = yes; then 12853 HAVE_DOXYGEN_TRUE= 12854 HAVE_DOXYGEN_FALSE='#' 12855else 12856 HAVE_DOXYGEN_TRUE='#' 12857 HAVE_DOXYGEN_FALSE= 12858fi 12859 12860 12861 12862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5 12863printf %s "checking for X.Org SGML entities >= 1.8... " >&6; } 12864XORG_SGML_PATH= 12865if test -n "$PKG_CONFIG" && \ 12866 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5 12867 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5 12868 ac_status=$? 12869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12870 test $ac_status = 0; }; then 12871 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 12872else 12873 : 12874 12875fi 12876 12877# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 12878# the path and the name of the doc stylesheet 12879if test "x$XORG_SGML_PATH" != "x" ; then 12880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 12881printf "%s\n" "$XORG_SGML_PATH" >&6; } 12882 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 12883 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 12884else 12885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12886printf "%s\n" "no" >&6; } 12887fi 12888 12889 12890 12891 12892 if test "x$XSL_STYLESHEET" != "x"; then 12893 HAVE_STYLESHEETS_TRUE= 12894 HAVE_STYLESHEETS_FALSE='#' 12895else 12896 HAVE_STYLESHEETS_TRUE='#' 12897 HAVE_STYLESHEETS_FALSE= 12898fi 12899 12900 12901 12902 12903# Check whether --enable-docs was given. 12904if test ${enable_docs+y} 12905then : 12906 enableval=$enable_docs; build_docs=$enableval 12907else $as_nop 12908 build_docs=yes 12909fi 12910 12911 12912 if test x$build_docs = xyes; then 12913 ENABLE_DOCS_TRUE= 12914 ENABLE_DOCS_FALSE='#' 12915else 12916 ENABLE_DOCS_TRUE='#' 12917 ENABLE_DOCS_FALSE= 12918fi 12919 12920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 12921printf %s "checking whether to build documentation... " >&6; } 12922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5 12923printf "%s\n" "$build_docs" >&6; } 12924 12925 12926 12927# Check whether --enable-devel-docs was given. 12928if test ${enable_devel_docs+y} 12929then : 12930 enableval=$enable_devel_docs; build_devel_docs=$enableval 12931else $as_nop 12932 build_devel_docs=yes 12933fi 12934 12935 12936 if test x$build_devel_docs = xyes; then 12937 ENABLE_DEVEL_DOCS_TRUE= 12938 ENABLE_DEVEL_DOCS_FALSE='#' 12939else 12940 ENABLE_DEVEL_DOCS_TRUE='#' 12941 ENABLE_DEVEL_DOCS_FALSE= 12942fi 12943 12944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5 12945printf %s "checking whether to build developer documentation... " >&6; } 12946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5 12947printf "%s\n" "$build_devel_docs" >&6; } 12948 12949 12950 12951 12952 12953# Check whether --with-xmlto was given. 12954if test ${with_xmlto+y} 12955then : 12956 withval=$with_xmlto; use_xmlto=$withval 12957else $as_nop 12958 use_xmlto=auto 12959fi 12960 12961 12962 12963if test "x$use_xmlto" = x"auto"; then 12964 # Extract the first word of "xmlto", so it can be a program name with args. 12965set dummy xmlto; ac_word=$2 12966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12967printf %s "checking for $ac_word... " >&6; } 12968if test ${ac_cv_path_XMLTO+y} 12969then : 12970 printf %s "(cached) " >&6 12971else $as_nop 12972 case $XMLTO in 12973 [\\/]* | ?:[\\/]*) 12974 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 12975 ;; 12976 *) 12977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12978for as_dir in $PATH 12979do 12980 IFS=$as_save_IFS 12981 case $as_dir in #((( 12982 '') as_dir=./ ;; 12983 */) ;; 12984 *) as_dir=$as_dir/ ;; 12985 esac 12986 for ac_exec_ext in '' $ac_executable_extensions; do 12987 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12988 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 12989 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12990 break 2 12991 fi 12992done 12993 done 12994IFS=$as_save_IFS 12995 12996 ;; 12997esac 12998fi 12999XMLTO=$ac_cv_path_XMLTO 13000if test -n "$XMLTO"; then 13001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 13002printf "%s\n" "$XMLTO" >&6; } 13003else 13004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13005printf "%s\n" "no" >&6; } 13006fi 13007 13008 13009 if test "x$XMLTO" = "x"; then 13010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 13011printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 13012 have_xmlto=no 13013 else 13014 have_xmlto=yes 13015 fi 13016elif test "x$use_xmlto" = x"yes" ; then 13017 # Extract the first word of "xmlto", so it can be a program name with args. 13018set dummy xmlto; ac_word=$2 13019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13020printf %s "checking for $ac_word... " >&6; } 13021if test ${ac_cv_path_XMLTO+y} 13022then : 13023 printf %s "(cached) " >&6 13024else $as_nop 13025 case $XMLTO in 13026 [\\/]* | ?:[\\/]*) 13027 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 13028 ;; 13029 *) 13030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13031for as_dir in $PATH 13032do 13033 IFS=$as_save_IFS 13034 case $as_dir in #((( 13035 '') as_dir=./ ;; 13036 */) ;; 13037 *) as_dir=$as_dir/ ;; 13038 esac 13039 for ac_exec_ext in '' $ac_executable_extensions; do 13040 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13041 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 13042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13043 break 2 13044 fi 13045done 13046 done 13047IFS=$as_save_IFS 13048 13049 ;; 13050esac 13051fi 13052XMLTO=$ac_cv_path_XMLTO 13053if test -n "$XMLTO"; then 13054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 13055printf "%s\n" "$XMLTO" >&6; } 13056else 13057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13058printf "%s\n" "no" >&6; } 13059fi 13060 13061 13062 if test "x$XMLTO" = "x"; then 13063 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 13064 fi 13065 have_xmlto=yes 13066elif test "x$use_xmlto" = x"no" ; then 13067 if test "x$XMLTO" != "x"; then 13068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 13069printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 13070 fi 13071 have_xmlto=no 13072else 13073 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 13074fi 13075 13076# Test for a minimum version of xmlto, if provided. 13077if test "$have_xmlto" = yes; then 13078 # scrape the xmlto version 13079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 13080printf %s "checking the xmlto version... " >&6; } 13081 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 13082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 13083printf "%s\n" "$xmlto_version" >&6; } 13084 as_arg_v1=$xmlto_version 13085as_arg_v2=0.0.20 13086awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 13087case $? in #( 13088 1) : 13089 if test "x$use_xmlto" = xauto; then 13090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5 13091printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;} 13092 have_xmlto=no 13093 else 13094 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5 13095 fi ;; #( 13096 0) : 13097 ;; #( 13098 2) : 13099 ;; #( 13100 *) : 13101 ;; 13102esac 13103fi 13104 13105# Test for the ability of xmlto to generate a text target 13106# 13107# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the 13108# following test for empty XML docbook files. 13109# For compatibility reasons use the following empty XML docbook file and if 13110# it fails try it again with a non-empty XML file. 13111have_xmlto_text=no 13112cat > conftest.xml << "EOF" 13113EOF 13114if test "$have_xmlto" = yes 13115then : 13116 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 13117then : 13118 have_xmlto_text=yes 13119else $as_nop 13120 # Try it again with a non-empty XML file. 13121 cat > conftest.xml << "EOF" 13122<x></x> 13123EOF 13124 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 13125then : 13126 have_xmlto_text=yes 13127else $as_nop 13128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 13129printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 13130fi 13131fi 13132fi 13133rm -f conftest.xml 13134 if test $have_xmlto_text = yes; then 13135 HAVE_XMLTO_TEXT_TRUE= 13136 HAVE_XMLTO_TEXT_FALSE='#' 13137else 13138 HAVE_XMLTO_TEXT_TRUE='#' 13139 HAVE_XMLTO_TEXT_FALSE= 13140fi 13141 13142 if test "$have_xmlto" = yes; then 13143 HAVE_XMLTO_TRUE= 13144 HAVE_XMLTO_FALSE='#' 13145else 13146 HAVE_XMLTO_TRUE='#' 13147 HAVE_XMLTO_FALSE= 13148fi 13149 13150 13151 13152 13153 13154 13155# Check whether --with-fop was given. 13156if test ${with_fop+y} 13157then : 13158 withval=$with_fop; use_fop=$withval 13159else $as_nop 13160 use_fop=auto 13161fi 13162 13163 13164 13165if test "x$use_fop" = x"auto"; then 13166 # Extract the first word of "fop", so it can be a program name with args. 13167set dummy fop; ac_word=$2 13168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13169printf %s "checking for $ac_word... " >&6; } 13170if test ${ac_cv_path_FOP+y} 13171then : 13172 printf %s "(cached) " >&6 13173else $as_nop 13174 case $FOP in 13175 [\\/]* | ?:[\\/]*) 13176 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 13177 ;; 13178 *) 13179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13180for as_dir in $PATH 13181do 13182 IFS=$as_save_IFS 13183 case $as_dir in #((( 13184 '') as_dir=./ ;; 13185 */) ;; 13186 *) as_dir=$as_dir/ ;; 13187 esac 13188 for ac_exec_ext in '' $ac_executable_extensions; do 13189 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13190 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 13191 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13192 break 2 13193 fi 13194done 13195 done 13196IFS=$as_save_IFS 13197 13198 ;; 13199esac 13200fi 13201FOP=$ac_cv_path_FOP 13202if test -n "$FOP"; then 13203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 13204printf "%s\n" "$FOP" >&6; } 13205else 13206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13207printf "%s\n" "no" >&6; } 13208fi 13209 13210 13211 if test "x$FOP" = "x"; then 13212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 13213printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 13214 have_fop=no 13215 else 13216 have_fop=yes 13217 fi 13218elif test "x$use_fop" = x"yes" ; then 13219 # Extract the first word of "fop", so it can be a program name with args. 13220set dummy fop; ac_word=$2 13221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13222printf %s "checking for $ac_word... " >&6; } 13223if test ${ac_cv_path_FOP+y} 13224then : 13225 printf %s "(cached) " >&6 13226else $as_nop 13227 case $FOP in 13228 [\\/]* | ?:[\\/]*) 13229 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 13230 ;; 13231 *) 13232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13233for as_dir in $PATH 13234do 13235 IFS=$as_save_IFS 13236 case $as_dir in #((( 13237 '') as_dir=./ ;; 13238 */) ;; 13239 *) as_dir=$as_dir/ ;; 13240 esac 13241 for ac_exec_ext in '' $ac_executable_extensions; do 13242 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13243 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 13244 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13245 break 2 13246 fi 13247done 13248 done 13249IFS=$as_save_IFS 13250 13251 ;; 13252esac 13253fi 13254FOP=$ac_cv_path_FOP 13255if test -n "$FOP"; then 13256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 13257printf "%s\n" "$FOP" >&6; } 13258else 13259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13260printf "%s\n" "no" >&6; } 13261fi 13262 13263 13264 if test "x$FOP" = "x"; then 13265 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 13266 fi 13267 have_fop=yes 13268elif test "x$use_fop" = x"no" ; then 13269 if test "x$FOP" != "x"; then 13270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 13271printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 13272 fi 13273 have_fop=no 13274else 13275 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 13276fi 13277 13278# Test for a minimum version of fop, if provided. 13279 13280 if test "$have_fop" = yes; then 13281 HAVE_FOP_TRUE= 13282 HAVE_FOP_FALSE='#' 13283else 13284 HAVE_FOP_TRUE='#' 13285 HAVE_FOP_FALSE= 13286fi 13287 13288 13289 13290 13291# Preserves the interface, should it be implemented later 13292 13293 13294 13295# Check whether --with-xsltproc was given. 13296if test ${with_xsltproc+y} 13297then : 13298 withval=$with_xsltproc; use_xsltproc=$withval 13299else $as_nop 13300 use_xsltproc=auto 13301fi 13302 13303 13304 13305if test "x$use_xsltproc" = x"auto"; then 13306 # Extract the first word of "xsltproc", so it can be a program name with args. 13307set dummy xsltproc; ac_word=$2 13308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13309printf %s "checking for $ac_word... " >&6; } 13310if test ${ac_cv_path_XSLTPROC+y} 13311then : 13312 printf %s "(cached) " >&6 13313else $as_nop 13314 case $XSLTPROC in 13315 [\\/]* | ?:[\\/]*) 13316 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 13317 ;; 13318 *) 13319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13320for as_dir in $PATH 13321do 13322 IFS=$as_save_IFS 13323 case $as_dir in #((( 13324 '') as_dir=./ ;; 13325 */) ;; 13326 *) as_dir=$as_dir/ ;; 13327 esac 13328 for ac_exec_ext in '' $ac_executable_extensions; do 13329 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13330 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 13331 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13332 break 2 13333 fi 13334done 13335 done 13336IFS=$as_save_IFS 13337 13338 ;; 13339esac 13340fi 13341XSLTPROC=$ac_cv_path_XSLTPROC 13342if test -n "$XSLTPROC"; then 13343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 13344printf "%s\n" "$XSLTPROC" >&6; } 13345else 13346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13347printf "%s\n" "no" >&6; } 13348fi 13349 13350 13351 if test "x$XSLTPROC" = "x"; then 13352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 13353printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 13354 have_xsltproc=no 13355 else 13356 have_xsltproc=yes 13357 fi 13358elif test "x$use_xsltproc" = x"yes" ; then 13359 # Extract the first word of "xsltproc", so it can be a program name with args. 13360set dummy xsltproc; ac_word=$2 13361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13362printf %s "checking for $ac_word... " >&6; } 13363if test ${ac_cv_path_XSLTPROC+y} 13364then : 13365 printf %s "(cached) " >&6 13366else $as_nop 13367 case $XSLTPROC in 13368 [\\/]* | ?:[\\/]*) 13369 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 13370 ;; 13371 *) 13372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13373for as_dir in $PATH 13374do 13375 IFS=$as_save_IFS 13376 case $as_dir in #((( 13377 '') as_dir=./ ;; 13378 */) ;; 13379 *) as_dir=$as_dir/ ;; 13380 esac 13381 for ac_exec_ext in '' $ac_executable_extensions; do 13382 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13383 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 13384 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13385 break 2 13386 fi 13387done 13388 done 13389IFS=$as_save_IFS 13390 13391 ;; 13392esac 13393fi 13394XSLTPROC=$ac_cv_path_XSLTPROC 13395if test -n "$XSLTPROC"; then 13396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 13397printf "%s\n" "$XSLTPROC" >&6; } 13398else 13399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13400printf "%s\n" "no" >&6; } 13401fi 13402 13403 13404 if test "x$XSLTPROC" = "x"; then 13405 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 13406 fi 13407 have_xsltproc=yes 13408elif test "x$use_xsltproc" = x"no" ; then 13409 if test "x$XSLTPROC" != "x"; then 13410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 13411printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 13412 fi 13413 have_xsltproc=no 13414else 13415 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 13416fi 13417 13418 if test "$have_xsltproc" = yes; then 13419 HAVE_XSLTPROC_TRUE= 13420 HAVE_XSLTPROC_FALSE='#' 13421else 13422 HAVE_XSLTPROC_TRUE='#' 13423 HAVE_XSLTPROC_FALSE= 13424fi 13425 13426 13427 13428 13429 13430 13431 13432# Check for different types of support on different platforms 13433case $host_os in 13434 solaris*) 13435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5 13436printf %s "checking for umem_alloc in -lumem... " >&6; } 13437if test ${ac_cv_lib_umem_umem_alloc+y} 13438then : 13439 printf %s "(cached) " >&6 13440else $as_nop 13441 ac_check_lib_save_LIBS=$LIBS 13442LIBS="-lumem $LIBS" 13443cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13444/* end confdefs.h. */ 13445 13446/* Override any GCC internal prototype to avoid an error. 13447 Use char because int might match the return type of a GCC 13448 builtin and then its argument prototype would still apply. */ 13449char umem_alloc (); 13450int 13451main (void) 13452{ 13453return umem_alloc (); 13454 ; 13455 return 0; 13456} 13457_ACEOF 13458if ac_fn_c_try_link "$LINENO" 13459then : 13460 ac_cv_lib_umem_umem_alloc=yes 13461else $as_nop 13462 ac_cv_lib_umem_umem_alloc=no 13463fi 13464rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13465 conftest$ac_exeext conftest.$ac_ext 13466LIBS=$ac_check_lib_save_LIBS 13467fi 13468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5 13469printf "%s\n" "$ac_cv_lib_umem_umem_alloc" >&6; } 13470if test "x$ac_cv_lib_umem_umem_alloc" = xyes 13471then : 13472 malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default' 13473fi 13474 13475 ;; 13476 *-gnu*) # GNU libc - Value is used as a single byte bit pattern, 13477 # both directly and inverted, so should not be 0 or 255. 13478 malloc_debug_env='MALLOC_PERTURB_=15' 13479 ;; 13480 darwin*) 13481 malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib' 13482 ;; 13483 *bsd*) 13484 malloc_debug_env='MallocPreScribble=1 MallocScribble=1' 13485 ;; 13486esac 13487 13488# User supplied flags override default flags 13489if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then 13490 malloc_debug_env="$XORG_MALLOC_DEBUG_ENV" 13491fi 13492 13493XORG_MALLOC_DEBUG_ENV=$malloc_debug_env 13494 13495 13496 13497 13498 13499 13500 13501# Check whether --enable-unit-tests was given. 13502if test ${enable_unit_tests+y} 13503then : 13504 enableval=$enable_unit_tests; enable_unit_tests=$enableval 13505else $as_nop 13506 enable_unit_tests=auto 13507fi 13508 13509 13510 if test "x$enable_unit_tests" != xno; then 13511 ENABLE_UNIT_TESTS_TRUE= 13512 ENABLE_UNIT_TESTS_FALSE='#' 13513else 13514 ENABLE_UNIT_TESTS_TRUE='#' 13515 ENABLE_UNIT_TESTS_FALSE= 13516fi 13517 13518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build unit test cases" >&5 13519printf %s "checking whether to build unit test cases... " >&6; } 13520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_unit_tests" >&5 13521printf "%s\n" "$enable_unit_tests" >&6; } 13522 13523 13524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-wrap,exit" >&5 13525printf %s "checking whether the linker accepts -Wl,-wrap,exit... " >&6; } 13526if test ${xorg_cv_linker_flags__Wl__wrap_exit+y} 13527then : 13528 printf %s "(cached) " >&6 13529else $as_nop 13530 13531 ax_save_FLAGS=$LDFLAGS 13532 LDFLAGS="-Wl,-wrap,exit" 13533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13534/* end confdefs.h. */ 13535#include <stdlib.h> 13536 void __wrap_exit(int status) { return; } 13537int 13538main (void) 13539{ 13540exit(0); 13541 ; 13542 return 0; 13543} 13544_ACEOF 13545if ac_fn_c_try_link "$LINENO" 13546then : 13547 xorg_cv_linker_flags__Wl__wrap_exit=yes 13548else $as_nop 13549 xorg_cv_linker_flags__Wl__wrap_exit=no 13550fi 13551rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13552 conftest$ac_exeext conftest.$ac_ext 13553 LDFLAGS=$ax_save_FLAGS 13554fi 13555 13556eval xorg_check_linker_flags=$xorg_cv_linker_flags__Wl__wrap_exit 13557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_check_linker_flags" >&5 13558printf "%s\n" "$xorg_check_linker_flags" >&6; } 13559if test "x$xorg_check_linker_flags" = xyes; then 13560 have_ld_wrap=yes 13561else 13562 have_ld_wrap=no 13563fi 13564 13565# Not having ld wrap when unit testing has been explicitly requested is an error 13566if test "x$enable_unit_tests" = x"yes" -a "xoptional" != "xoptional"; then 13567 if test "x$have_ld_wrap" = x"no"; then 13568 as_fn_error $? "--enable-unit-tests=yes specified but ld -wrap support is not available" "$LINENO" 5 13569 fi 13570fi 13571 if test "$have_ld_wrap" = yes; then 13572 HAVE_LD_WRAP_TRUE= 13573 HAVE_LD_WRAP_FALSE='#' 13574else 13575 HAVE_LD_WRAP_TRUE='#' 13576 HAVE_LD_WRAP_FALSE= 13577fi 13578 13579# 13580 13581 13582 13583 13584 13585 13586 13587 13588 13589 13590 13591 13592 13593 13594ac_config_headers="$ac_config_headers include/do-not-use-config.h" 13595 13596ac_config_headers="$ac_config_headers include/xorg-server.h" 13597 13598ac_config_headers="$ac_config_headers include/dix-config.h" 13599 13600ac_config_headers="$ac_config_headers include/xorg-config.h" 13601 13602ac_config_headers="$ac_config_headers include/xkb-config.h" 13603 13604ac_config_headers="$ac_config_headers include/xwin-config.h" 13605 13606ac_config_headers="$ac_config_headers include/version-config.h" 13607 13608 13609# By default we simply use the C compiler to build assembly code. 13610 13611test "${CCAS+set}" = set || CCAS=$CC 13612test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS 13613 13614 13615 13616depcc="$CCAS" am_compiler_list= 13617 13618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 13619printf %s "checking dependency style of $depcc... " >&6; } 13620if test ${am_cv_CCAS_dependencies_compiler_type+y} 13621then : 13622 printf %s "(cached) " >&6 13623else $as_nop 13624 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 13625 # We make a subdir and do the tests there. Otherwise we can end up 13626 # making bogus files that we don't know about and never remove. For 13627 # instance it was reported that on HP-UX the gcc test will end up 13628 # making a dummy file named 'D' -- because '-MD' means "put the output 13629 # in D". 13630 rm -rf conftest.dir 13631 mkdir conftest.dir 13632 # Copy depcomp to subdir because otherwise we won't find it if we're 13633 # using a relative directory. 13634 cp "$am_depcomp" conftest.dir 13635 cd conftest.dir 13636 # We will build objects and dependencies in a subdirectory because 13637 # it helps to detect inapplicable dependency modes. For instance 13638 # both Tru64's cc and ICC support -MD to output dependencies as a 13639 # side effect of compilation, but ICC will put the dependencies in 13640 # the current directory while Tru64 will put them in the object 13641 # directory. 13642 mkdir sub 13643 13644 am_cv_CCAS_dependencies_compiler_type=none 13645 if test "$am_compiler_list" = ""; then 13646 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 13647 fi 13648 am__universal=false 13649 13650 13651 for depmode in $am_compiler_list; do 13652 # Setup a source with many dependencies, because some compilers 13653 # like to wrap large dependency lists on column 80 (with \), and 13654 # we should not choose a depcomp mode which is confused by this. 13655 # 13656 # We need to recreate these files for each test, as the compiler may 13657 # overwrite some of them when testing with obscure command lines. 13658 # This happens at least with the AIX C compiler. 13659 : > sub/conftest.c 13660 for i in 1 2 3 4 5 6; do 13661 echo '#include "conftst'$i'.h"' >> sub/conftest.c 13662 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 13663 # Solaris 10 /bin/sh. 13664 echo '/* dummy */' > sub/conftst$i.h 13665 done 13666 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 13667 13668 # We check with '-c' and '-o' for the sake of the "dashmstdout" 13669 # mode. It turns out that the SunPro C++ compiler does not properly 13670 # handle '-M -o', and we need to detect this. Also, some Intel 13671 # versions had trouble with output in subdirs. 13672 am__obj=sub/conftest.${OBJEXT-o} 13673 am__minus_obj="-o $am__obj" 13674 case $depmode in 13675 gcc) 13676 # This depmode causes a compiler race in universal mode. 13677 test "$am__universal" = false || continue 13678 ;; 13679 nosideeffect) 13680 # After this tag, mechanisms are not by side-effect, so they'll 13681 # only be used when explicitly requested. 13682 if test "x$enable_dependency_tracking" = xyes; then 13683 continue 13684 else 13685 break 13686 fi 13687 ;; 13688 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 13689 # This compiler won't grok '-c -o', but also, the minuso test has 13690 # not run yet. These depmodes are late enough in the game, and 13691 # so weak that their functioning should not be impacted. 13692 am__obj=conftest.${OBJEXT-o} 13693 am__minus_obj= 13694 ;; 13695 none) break ;; 13696 esac 13697 if depmode=$depmode \ 13698 source=sub/conftest.c object=$am__obj \ 13699 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 13700 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 13701 >/dev/null 2>conftest.err && 13702 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 13703 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 13704 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 13705 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 13706 # icc doesn't choke on unknown options, it will just issue warnings 13707 # or remarks (even with -Werror). So we grep stderr for any message 13708 # that says an option was ignored or not supported. 13709 # When given -MP, icc 7.0 and 7.1 complain thusly: 13710 # icc: Command line warning: ignoring option '-M'; no argument required 13711 # The diagnosis changed in icc 8.0: 13712 # icc: Command line remark: option '-MP' not supported 13713 if (grep 'ignoring option' conftest.err || 13714 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 13715 am_cv_CCAS_dependencies_compiler_type=$depmode 13716 break 13717 fi 13718 fi 13719 done 13720 13721 cd .. 13722 rm -rf conftest.dir 13723else 13724 am_cv_CCAS_dependencies_compiler_type=none 13725fi 13726 13727fi 13728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 13729printf "%s\n" "$am_cv_CCAS_dependencies_compiler_type" >&6; } 13730CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type 13731 13732 if 13733 test "x$enable_dependency_tracking" != xno \ 13734 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then 13735 am__fastdepCCAS_TRUE= 13736 am__fastdepCCAS_FALSE='#' 13737else 13738 am__fastdepCCAS_TRUE='#' 13739 am__fastdepCCAS_FALSE= 13740fi 13741 13742 13743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 13744printf %s "checking whether ln -s works... " >&6; } 13745LN_S=$as_ln_s 13746if test "$LN_S" = "ln -s"; then 13747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13748printf "%s\n" "yes" >&6; } 13749else 13750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 13751printf "%s\n" "no, using $LN_S" >&6; } 13752fi 13753 13754 13755case `pwd` in 13756 *\ * | *\ *) 13757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 13758printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 13759esac 13760 13761 13762 13763macro_version='2.4.7' 13764macro_revision='2.4.7' 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774 13775 13776 13777 13778 13779ltmain=$ac_aux_dir/ltmain.sh 13780 13781# Backslashify metacharacters that are still active within 13782# double-quoted strings. 13783sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 13784 13785# Same as above, but do not quote variable references. 13786double_quote_subst='s/\(["`\\]\)/\\\1/g' 13787 13788# Sed substitution to delay expansion of an escaped shell variable in a 13789# double_quote_subst'ed string. 13790delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 13791 13792# Sed substitution to delay expansion of an escaped single quote. 13793delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 13794 13795# Sed substitution to avoid accidental globbing in evaled expressions 13796no_glob_subst='s/\*/\\\*/g' 13797 13798ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13799ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 13800ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 13801 13802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 13803printf %s "checking how to print strings... " >&6; } 13804# Test print first, because it will be a builtin if present. 13805if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 13806 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 13807 ECHO='print -r --' 13808elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 13809 ECHO='printf %s\n' 13810else 13811 # Use this function as a fallback that always works. 13812 func_fallback_echo () 13813 { 13814 eval 'cat <<_LTECHO_EOF 13815$1 13816_LTECHO_EOF' 13817 } 13818 ECHO='func_fallback_echo' 13819fi 13820 13821# func_echo_all arg... 13822# Invoke $ECHO with all args, space-separated. 13823func_echo_all () 13824{ 13825 $ECHO "" 13826} 13827 13828case $ECHO in 13829 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 13830printf "%s\n" "printf" >&6; } ;; 13831 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 13832printf "%s\n" "print -r" >&6; } ;; 13833 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 13834printf "%s\n" "cat" >&6; } ;; 13835esac 13836 13837 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 13851printf %s "checking for a sed that does not truncate output... " >&6; } 13852if test ${ac_cv_path_SED+y} 13853then : 13854 printf %s "(cached) " >&6 13855else $as_nop 13856 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 13857 for ac_i in 1 2 3 4 5 6 7; do 13858 ac_script="$ac_script$as_nl$ac_script" 13859 done 13860 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 13861 { ac_script=; unset ac_script;} 13862 if test -z "$SED"; then 13863 ac_path_SED_found=false 13864 # Loop through the user's path and test for each of PROGNAME-LIST 13865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13866for as_dir in $PATH 13867do 13868 IFS=$as_save_IFS 13869 case $as_dir in #((( 13870 '') as_dir=./ ;; 13871 */) ;; 13872 *) as_dir=$as_dir/ ;; 13873 esac 13874 for ac_prog in sed gsed 13875 do 13876 for ac_exec_ext in '' $ac_executable_extensions; do 13877 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 13878 as_fn_executable_p "$ac_path_SED" || continue 13879# Check for GNU ac_path_SED and select it if it is found. 13880 # Check for GNU $ac_path_SED 13881case `"$ac_path_SED" --version 2>&1` in 13882*GNU*) 13883 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 13884*) 13885 ac_count=0 13886 printf %s 0123456789 >"conftest.in" 13887 while : 13888 do 13889 cat "conftest.in" "conftest.in" >"conftest.tmp" 13890 mv "conftest.tmp" "conftest.in" 13891 cp "conftest.in" "conftest.nl" 13892 printf "%s\n" '' >> "conftest.nl" 13893 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 13894 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13895 as_fn_arith $ac_count + 1 && ac_count=$as_val 13896 if test $ac_count -gt ${ac_path_SED_max-0}; then 13897 # Best one so far, save it but keep looking for a better one 13898 ac_cv_path_SED="$ac_path_SED" 13899 ac_path_SED_max=$ac_count 13900 fi 13901 # 10*(2^10) chars as input seems more than enough 13902 test $ac_count -gt 10 && break 13903 done 13904 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13905esac 13906 13907 $ac_path_SED_found && break 3 13908 done 13909 done 13910 done 13911IFS=$as_save_IFS 13912 if test -z "$ac_cv_path_SED"; then 13913 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 13914 fi 13915else 13916 ac_cv_path_SED=$SED 13917fi 13918 13919fi 13920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 13921printf "%s\n" "$ac_cv_path_SED" >&6; } 13922 SED="$ac_cv_path_SED" 13923 rm -f conftest.sed 13924 13925test -z "$SED" && SED=sed 13926Xsed="$SED -e 1s/^X//" 13927 13928 13929 13930 13931 13932 13933 13934 13935 13936 13937 13938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 13939printf %s "checking for grep that handles long lines and -e... " >&6; } 13940if test ${ac_cv_path_GREP+y} 13941then : 13942 printf %s "(cached) " >&6 13943else $as_nop 13944 if test -z "$GREP"; then 13945 ac_path_GREP_found=false 13946 # Loop through the user's path and test for each of PROGNAME-LIST 13947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13948for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13949do 13950 IFS=$as_save_IFS 13951 case $as_dir in #((( 13952 '') as_dir=./ ;; 13953 */) ;; 13954 *) as_dir=$as_dir/ ;; 13955 esac 13956 for ac_prog in grep ggrep 13957 do 13958 for ac_exec_ext in '' $ac_executable_extensions; do 13959 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 13960 as_fn_executable_p "$ac_path_GREP" || continue 13961# Check for GNU ac_path_GREP and select it if it is found. 13962 # Check for GNU $ac_path_GREP 13963case `"$ac_path_GREP" --version 2>&1` in 13964*GNU*) 13965 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 13966*) 13967 ac_count=0 13968 printf %s 0123456789 >"conftest.in" 13969 while : 13970 do 13971 cat "conftest.in" "conftest.in" >"conftest.tmp" 13972 mv "conftest.tmp" "conftest.in" 13973 cp "conftest.in" "conftest.nl" 13974 printf "%s\n" 'GREP' >> "conftest.nl" 13975 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13976 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13977 as_fn_arith $ac_count + 1 && ac_count=$as_val 13978 if test $ac_count -gt ${ac_path_GREP_max-0}; then 13979 # Best one so far, save it but keep looking for a better one 13980 ac_cv_path_GREP="$ac_path_GREP" 13981 ac_path_GREP_max=$ac_count 13982 fi 13983 # 10*(2^10) chars as input seems more than enough 13984 test $ac_count -gt 10 && break 13985 done 13986 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13987esac 13988 13989 $ac_path_GREP_found && break 3 13990 done 13991 done 13992 done 13993IFS=$as_save_IFS 13994 if test -z "$ac_cv_path_GREP"; then 13995 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13996 fi 13997else 13998 ac_cv_path_GREP=$GREP 13999fi 14000 14001fi 14002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 14003printf "%s\n" "$ac_cv_path_GREP" >&6; } 14004 GREP="$ac_cv_path_GREP" 14005 14006 14007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 14008printf %s "checking for egrep... " >&6; } 14009if test ${ac_cv_path_EGREP+y} 14010then : 14011 printf %s "(cached) " >&6 14012else $as_nop 14013 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 14014 then ac_cv_path_EGREP="$GREP -E" 14015 else 14016 if test -z "$EGREP"; then 14017 ac_path_EGREP_found=false 14018 # Loop through the user's path and test for each of PROGNAME-LIST 14019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14020for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 14021do 14022 IFS=$as_save_IFS 14023 case $as_dir in #((( 14024 '') as_dir=./ ;; 14025 */) ;; 14026 *) as_dir=$as_dir/ ;; 14027 esac 14028 for ac_prog in egrep 14029 do 14030 for ac_exec_ext in '' $ac_executable_extensions; do 14031 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 14032 as_fn_executable_p "$ac_path_EGREP" || continue 14033# Check for GNU ac_path_EGREP and select it if it is found. 14034 # Check for GNU $ac_path_EGREP 14035case `"$ac_path_EGREP" --version 2>&1` in 14036*GNU*) 14037 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 14038*) 14039 ac_count=0 14040 printf %s 0123456789 >"conftest.in" 14041 while : 14042 do 14043 cat "conftest.in" "conftest.in" >"conftest.tmp" 14044 mv "conftest.tmp" "conftest.in" 14045 cp "conftest.in" "conftest.nl" 14046 printf "%s\n" 'EGREP' >> "conftest.nl" 14047 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 14048 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 14049 as_fn_arith $ac_count + 1 && ac_count=$as_val 14050 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 14051 # Best one so far, save it but keep looking for a better one 14052 ac_cv_path_EGREP="$ac_path_EGREP" 14053 ac_path_EGREP_max=$ac_count 14054 fi 14055 # 10*(2^10) chars as input seems more than enough 14056 test $ac_count -gt 10 && break 14057 done 14058 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14059esac 14060 14061 $ac_path_EGREP_found && break 3 14062 done 14063 done 14064 done 14065IFS=$as_save_IFS 14066 if test -z "$ac_cv_path_EGREP"; then 14067 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 14068 fi 14069else 14070 ac_cv_path_EGREP=$EGREP 14071fi 14072 14073 fi 14074fi 14075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 14076printf "%s\n" "$ac_cv_path_EGREP" >&6; } 14077 EGREP="$ac_cv_path_EGREP" 14078 14079 14080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 14081printf %s "checking for fgrep... " >&6; } 14082if test ${ac_cv_path_FGREP+y} 14083then : 14084 printf %s "(cached) " >&6 14085else $as_nop 14086 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 14087 then ac_cv_path_FGREP="$GREP -F" 14088 else 14089 if test -z "$FGREP"; then 14090 ac_path_FGREP_found=false 14091 # Loop through the user's path and test for each of PROGNAME-LIST 14092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14093for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 14094do 14095 IFS=$as_save_IFS 14096 case $as_dir in #((( 14097 '') as_dir=./ ;; 14098 */) ;; 14099 *) as_dir=$as_dir/ ;; 14100 esac 14101 for ac_prog in fgrep 14102 do 14103 for ac_exec_ext in '' $ac_executable_extensions; do 14104 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 14105 as_fn_executable_p "$ac_path_FGREP" || continue 14106# Check for GNU ac_path_FGREP and select it if it is found. 14107 # Check for GNU $ac_path_FGREP 14108case `"$ac_path_FGREP" --version 2>&1` in 14109*GNU*) 14110 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 14111*) 14112 ac_count=0 14113 printf %s 0123456789 >"conftest.in" 14114 while : 14115 do 14116 cat "conftest.in" "conftest.in" >"conftest.tmp" 14117 mv "conftest.tmp" "conftest.in" 14118 cp "conftest.in" "conftest.nl" 14119 printf "%s\n" 'FGREP' >> "conftest.nl" 14120 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 14121 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 14122 as_fn_arith $ac_count + 1 && ac_count=$as_val 14123 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 14124 # Best one so far, save it but keep looking for a better one 14125 ac_cv_path_FGREP="$ac_path_FGREP" 14126 ac_path_FGREP_max=$ac_count 14127 fi 14128 # 10*(2^10) chars as input seems more than enough 14129 test $ac_count -gt 10 && break 14130 done 14131 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14132esac 14133 14134 $ac_path_FGREP_found && break 3 14135 done 14136 done 14137 done 14138IFS=$as_save_IFS 14139 if test -z "$ac_cv_path_FGREP"; then 14140 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 14141 fi 14142else 14143 ac_cv_path_FGREP=$FGREP 14144fi 14145 14146 fi 14147fi 14148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 14149printf "%s\n" "$ac_cv_path_FGREP" >&6; } 14150 FGREP="$ac_cv_path_FGREP" 14151 14152 14153test -z "$GREP" && GREP=grep 14154 14155 14156 14157 14158 14159 14160 14161 14162 14163 14164 14165 14166 14167 14168 14169 14170 14171 14172 14173# Check whether --with-gnu-ld was given. 14174if test ${with_gnu_ld+y} 14175then : 14176 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 14177else $as_nop 14178 with_gnu_ld=no 14179fi 14180 14181ac_prog=ld 14182if test yes = "$GCC"; then 14183 # Check if gcc -print-prog-name=ld gives a path. 14184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 14185printf %s "checking for ld used by $CC... " >&6; } 14186 case $host in 14187 *-*-mingw*) 14188 # gcc leaves a trailing carriage return, which upsets mingw 14189 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 14190 *) 14191 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 14192 esac 14193 case $ac_prog in 14194 # Accept absolute paths. 14195 [\\/]* | ?:[\\/]*) 14196 re_direlt='/[^/][^/]*/\.\./' 14197 # Canonicalize the pathname of ld 14198 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 14199 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 14200 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 14201 done 14202 test -z "$LD" && LD=$ac_prog 14203 ;; 14204 "") 14205 # If it fails, then pretend we aren't using GCC. 14206 ac_prog=ld 14207 ;; 14208 *) 14209 # If it is relative, then search for the first ld in PATH. 14210 with_gnu_ld=unknown 14211 ;; 14212 esac 14213elif test yes = "$with_gnu_ld"; then 14214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 14215printf %s "checking for GNU ld... " >&6; } 14216else 14217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 14218printf %s "checking for non-GNU ld... " >&6; } 14219fi 14220if test ${lt_cv_path_LD+y} 14221then : 14222 printf %s "(cached) " >&6 14223else $as_nop 14224 if test -z "$LD"; then 14225 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14226 for ac_dir in $PATH; do 14227 IFS=$lt_save_ifs 14228 test -z "$ac_dir" && ac_dir=. 14229 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 14230 lt_cv_path_LD=$ac_dir/$ac_prog 14231 # Check to see if the program is GNU ld. I'd rather use --version, 14232 # but apparently some variants of GNU ld only accept -v. 14233 # Break only if it was the GNU/non-GNU ld that we prefer. 14234 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 14235 *GNU* | *'with BFD'*) 14236 test no != "$with_gnu_ld" && break 14237 ;; 14238 *) 14239 test yes != "$with_gnu_ld" && break 14240 ;; 14241 esac 14242 fi 14243 done 14244 IFS=$lt_save_ifs 14245else 14246 lt_cv_path_LD=$LD # Let the user override the test with a path. 14247fi 14248fi 14249 14250LD=$lt_cv_path_LD 14251if test -n "$LD"; then 14252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 14253printf "%s\n" "$LD" >&6; } 14254else 14255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14256printf "%s\n" "no" >&6; } 14257fi 14258test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 14259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 14260printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 14261if test ${lt_cv_prog_gnu_ld+y} 14262then : 14263 printf %s "(cached) " >&6 14264else $as_nop 14265 # I'd rather use --version here, but apparently some GNU lds only accept -v. 14266case `$LD -v 2>&1 </dev/null` in 14267*GNU* | *'with BFD'*) 14268 lt_cv_prog_gnu_ld=yes 14269 ;; 14270*) 14271 lt_cv_prog_gnu_ld=no 14272 ;; 14273esac 14274fi 14275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 14276printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 14277with_gnu_ld=$lt_cv_prog_gnu_ld 14278 14279 14280 14281 14282 14283 14284 14285 14286 14287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 14288printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 14289if test ${lt_cv_path_NM+y} 14290then : 14291 printf %s "(cached) " >&6 14292else $as_nop 14293 if test -n "$NM"; then 14294 # Let the user override the test. 14295 lt_cv_path_NM=$NM 14296else 14297 lt_nm_to_check=${ac_tool_prefix}nm 14298 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 14299 lt_nm_to_check="$lt_nm_to_check nm" 14300 fi 14301 for lt_tmp_nm in $lt_nm_to_check; do 14302 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14303 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 14304 IFS=$lt_save_ifs 14305 test -z "$ac_dir" && ac_dir=. 14306 tmp_nm=$ac_dir/$lt_tmp_nm 14307 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 14308 # Check to see if the nm accepts a BSD-compat flag. 14309 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 14310 # nm: unknown option "B" ignored 14311 # Tru64's nm complains that /dev/null is an invalid object file 14312 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 14313 case $build_os in 14314 mingw*) lt_bad_file=conftest.nm/nofile ;; 14315 *) lt_bad_file=/dev/null ;; 14316 esac 14317 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 14318 *$lt_bad_file* | *'Invalid file or object type'*) 14319 lt_cv_path_NM="$tmp_nm -B" 14320 break 2 14321 ;; 14322 *) 14323 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 14324 */dev/null*) 14325 lt_cv_path_NM="$tmp_nm -p" 14326 break 2 14327 ;; 14328 *) 14329 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 14330 continue # so that we can try to find one that supports BSD flags 14331 ;; 14332 esac 14333 ;; 14334 esac 14335 fi 14336 done 14337 IFS=$lt_save_ifs 14338 done 14339 : ${lt_cv_path_NM=no} 14340fi 14341fi 14342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 14343printf "%s\n" "$lt_cv_path_NM" >&6; } 14344if test no != "$lt_cv_path_NM"; then 14345 NM=$lt_cv_path_NM 14346else 14347 # Didn't find any BSD compatible name lister, look for dumpbin. 14348 if test -n "$DUMPBIN"; then : 14349 # Let the user override the test. 14350 else 14351 if test -n "$ac_tool_prefix"; then 14352 for ac_prog in dumpbin "link -dump" 14353 do 14354 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 14355set dummy $ac_tool_prefix$ac_prog; ac_word=$2 14356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14357printf %s "checking for $ac_word... " >&6; } 14358if test ${ac_cv_prog_DUMPBIN+y} 14359then : 14360 printf %s "(cached) " >&6 14361else $as_nop 14362 if test -n "$DUMPBIN"; then 14363 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 14364else 14365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14366for as_dir in $PATH 14367do 14368 IFS=$as_save_IFS 14369 case $as_dir in #((( 14370 '') as_dir=./ ;; 14371 */) ;; 14372 *) as_dir=$as_dir/ ;; 14373 esac 14374 for ac_exec_ext in '' $ac_executable_extensions; do 14375 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14376 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 14377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14378 break 2 14379 fi 14380done 14381 done 14382IFS=$as_save_IFS 14383 14384fi 14385fi 14386DUMPBIN=$ac_cv_prog_DUMPBIN 14387if test -n "$DUMPBIN"; then 14388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 14389printf "%s\n" "$DUMPBIN" >&6; } 14390else 14391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14392printf "%s\n" "no" >&6; } 14393fi 14394 14395 14396 test -n "$DUMPBIN" && break 14397 done 14398fi 14399if test -z "$DUMPBIN"; then 14400 ac_ct_DUMPBIN=$DUMPBIN 14401 for ac_prog in dumpbin "link -dump" 14402do 14403 # Extract the first word of "$ac_prog", so it can be a program name with args. 14404set dummy $ac_prog; ac_word=$2 14405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14406printf %s "checking for $ac_word... " >&6; } 14407if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 14408then : 14409 printf %s "(cached) " >&6 14410else $as_nop 14411 if test -n "$ac_ct_DUMPBIN"; then 14412 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 14413else 14414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14415for as_dir in $PATH 14416do 14417 IFS=$as_save_IFS 14418 case $as_dir in #((( 14419 '') as_dir=./ ;; 14420 */) ;; 14421 *) as_dir=$as_dir/ ;; 14422 esac 14423 for ac_exec_ext in '' $ac_executable_extensions; do 14424 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14425 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 14426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14427 break 2 14428 fi 14429done 14430 done 14431IFS=$as_save_IFS 14432 14433fi 14434fi 14435ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 14436if test -n "$ac_ct_DUMPBIN"; then 14437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 14438printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 14439else 14440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14441printf "%s\n" "no" >&6; } 14442fi 14443 14444 14445 test -n "$ac_ct_DUMPBIN" && break 14446done 14447 14448 if test "x$ac_ct_DUMPBIN" = x; then 14449 DUMPBIN=":" 14450 else 14451 case $cross_compiling:$ac_tool_warned in 14452yes:) 14453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14454printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14455ac_tool_warned=yes ;; 14456esac 14457 DUMPBIN=$ac_ct_DUMPBIN 14458 fi 14459fi 14460 14461 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 14462 *COFF*) 14463 DUMPBIN="$DUMPBIN -symbols -headers" 14464 ;; 14465 *) 14466 DUMPBIN=: 14467 ;; 14468 esac 14469 fi 14470 14471 if test : != "$DUMPBIN"; then 14472 NM=$DUMPBIN 14473 fi 14474fi 14475test -z "$NM" && NM=nm 14476 14477 14478 14479 14480 14481 14482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 14483printf %s "checking the name lister ($NM) interface... " >&6; } 14484if test ${lt_cv_nm_interface+y} 14485then : 14486 printf %s "(cached) " >&6 14487else $as_nop 14488 lt_cv_nm_interface="BSD nm" 14489 echo "int some_variable = 0;" > conftest.$ac_ext 14490 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 14491 (eval "$ac_compile" 2>conftest.err) 14492 cat conftest.err >&5 14493 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 14494 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 14495 cat conftest.err >&5 14496 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 14497 cat conftest.out >&5 14498 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 14499 lt_cv_nm_interface="MS dumpbin" 14500 fi 14501 rm -f conftest* 14502fi 14503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 14504printf "%s\n" "$lt_cv_nm_interface" >&6; } 14505 14506# find the maximum length of command line arguments 14507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 14508printf %s "checking the maximum length of command line arguments... " >&6; } 14509if test ${lt_cv_sys_max_cmd_len+y} 14510then : 14511 printf %s "(cached) " >&6 14512else $as_nop 14513 i=0 14514 teststring=ABCD 14515 14516 case $build_os in 14517 msdosdjgpp*) 14518 # On DJGPP, this test can blow up pretty badly due to problems in libc 14519 # (any single argument exceeding 2000 bytes causes a buffer overrun 14520 # during glob expansion). Even if it were fixed, the result of this 14521 # check would be larger than it should be. 14522 lt_cv_sys_max_cmd_len=12288; # 12K is about right 14523 ;; 14524 14525 gnu*) 14526 # Under GNU Hurd, this test is not required because there is 14527 # no limit to the length of command line arguments. 14528 # Libtool will interpret -1 as no limit whatsoever 14529 lt_cv_sys_max_cmd_len=-1; 14530 ;; 14531 14532 cygwin* | mingw* | cegcc*) 14533 # On Win9x/ME, this test blows up -- it succeeds, but takes 14534 # about 5 minutes as the teststring grows exponentially. 14535 # Worse, since 9x/ME are not pre-emptively multitasking, 14536 # you end up with a "frozen" computer, even though with patience 14537 # the test eventually succeeds (with a max line length of 256k). 14538 # Instead, let's just punt: use the minimum linelength reported by 14539 # all of the supported platforms: 8192 (on NT/2K/XP). 14540 lt_cv_sys_max_cmd_len=8192; 14541 ;; 14542 14543 mint*) 14544 # On MiNT this can take a long time and run out of memory. 14545 lt_cv_sys_max_cmd_len=8192; 14546 ;; 14547 14548 amigaos*) 14549 # On AmigaOS with pdksh, this test takes hours, literally. 14550 # So we just punt and use a minimum line length of 8192. 14551 lt_cv_sys_max_cmd_len=8192; 14552 ;; 14553 14554 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 14555 # This has been around since 386BSD, at least. Likely further. 14556 if test -x /sbin/sysctl; then 14557 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 14558 elif test -x /usr/sbin/sysctl; then 14559 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 14560 else 14561 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 14562 fi 14563 # And add a safety zone 14564 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 14565 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 14566 ;; 14567 14568 interix*) 14569 # We know the value 262144 and hardcode it with a safety zone (like BSD) 14570 lt_cv_sys_max_cmd_len=196608 14571 ;; 14572 14573 os2*) 14574 # The test takes a long time on OS/2. 14575 lt_cv_sys_max_cmd_len=8192 14576 ;; 14577 14578 osf*) 14579 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 14580 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 14581 # nice to cause kernel panics so lets avoid the loop below. 14582 # First set a reasonable default. 14583 lt_cv_sys_max_cmd_len=16384 14584 # 14585 if test -x /sbin/sysconfig; then 14586 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 14587 *1*) lt_cv_sys_max_cmd_len=-1 ;; 14588 esac 14589 fi 14590 ;; 14591 sco3.2v5*) 14592 lt_cv_sys_max_cmd_len=102400 14593 ;; 14594 sysv5* | sco5v6* | sysv4.2uw2*) 14595 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 14596 if test -n "$kargmax"; then 14597 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 14598 else 14599 lt_cv_sys_max_cmd_len=32768 14600 fi 14601 ;; 14602 *) 14603 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 14604 if test -n "$lt_cv_sys_max_cmd_len" && \ 14605 test undefined != "$lt_cv_sys_max_cmd_len"; then 14606 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 14607 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 14608 else 14609 # Make teststring a little bigger before we do anything with it. 14610 # a 1K string should be a reasonable start. 14611 for i in 1 2 3 4 5 6 7 8; do 14612 teststring=$teststring$teststring 14613 done 14614 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 14615 # If test is not a shell built-in, we'll probably end up computing a 14616 # maximum length that is only half of the actual maximum length, but 14617 # we can't tell. 14618 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 14619 = "X$teststring$teststring"; } >/dev/null 2>&1 && 14620 test 17 != "$i" # 1/2 MB should be enough 14621 do 14622 i=`expr $i + 1` 14623 teststring=$teststring$teststring 14624 done 14625 # Only check the string length outside the loop. 14626 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 14627 teststring= 14628 # Add a significant safety factor because C++ compilers can tack on 14629 # massive amounts of additional arguments before passing them to the 14630 # linker. It appears as though 1/2 is a usable value. 14631 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 14632 fi 14633 ;; 14634 esac 14635 14636fi 14637 14638if test -n "$lt_cv_sys_max_cmd_len"; then 14639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 14640printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 14641else 14642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 14643printf "%s\n" "none" >&6; } 14644fi 14645max_cmd_len=$lt_cv_sys_max_cmd_len 14646 14647 14648 14649 14650 14651 14652: ${CP="cp -f"} 14653: ${MV="mv -f"} 14654: ${RM="rm -f"} 14655 14656if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 14657 lt_unset=unset 14658else 14659 lt_unset=false 14660fi 14661 14662 14663 14664 14665 14666# test EBCDIC or ASCII 14667case `echo X|tr X '\101'` in 14668 A) # ASCII based system 14669 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 14670 lt_SP2NL='tr \040 \012' 14671 lt_NL2SP='tr \015\012 \040\040' 14672 ;; 14673 *) # EBCDIC based system 14674 lt_SP2NL='tr \100 \n' 14675 lt_NL2SP='tr \r\n \100\100' 14676 ;; 14677esac 14678 14679 14680 14681 14682 14683 14684 14685 14686 14687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 14688printf %s "checking how to convert $build file names to $host format... " >&6; } 14689if test ${lt_cv_to_host_file_cmd+y} 14690then : 14691 printf %s "(cached) " >&6 14692else $as_nop 14693 case $host in 14694 *-*-mingw* ) 14695 case $build in 14696 *-*-mingw* ) # actually msys 14697 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 14698 ;; 14699 *-*-cygwin* ) 14700 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 14701 ;; 14702 * ) # otherwise, assume *nix 14703 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 14704 ;; 14705 esac 14706 ;; 14707 *-*-cygwin* ) 14708 case $build in 14709 *-*-mingw* ) # actually msys 14710 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 14711 ;; 14712 *-*-cygwin* ) 14713 lt_cv_to_host_file_cmd=func_convert_file_noop 14714 ;; 14715 * ) # otherwise, assume *nix 14716 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 14717 ;; 14718 esac 14719 ;; 14720 * ) # unhandled hosts (and "normal" native builds) 14721 lt_cv_to_host_file_cmd=func_convert_file_noop 14722 ;; 14723esac 14724 14725fi 14726 14727to_host_file_cmd=$lt_cv_to_host_file_cmd 14728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 14729printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 14730 14731 14732 14733 14734 14735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 14736printf %s "checking how to convert $build file names to toolchain format... " >&6; } 14737if test ${lt_cv_to_tool_file_cmd+y} 14738then : 14739 printf %s "(cached) " >&6 14740else $as_nop 14741 #assume ordinary cross tools, or native build. 14742lt_cv_to_tool_file_cmd=func_convert_file_noop 14743case $host in 14744 *-*-mingw* ) 14745 case $build in 14746 *-*-mingw* ) # actually msys 14747 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 14748 ;; 14749 esac 14750 ;; 14751esac 14752 14753fi 14754 14755to_tool_file_cmd=$lt_cv_to_tool_file_cmd 14756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 14757printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 14758 14759 14760 14761 14762 14763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 14764printf %s "checking for $LD option to reload object files... " >&6; } 14765if test ${lt_cv_ld_reload_flag+y} 14766then : 14767 printf %s "(cached) " >&6 14768else $as_nop 14769 lt_cv_ld_reload_flag='-r' 14770fi 14771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 14772printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 14773reload_flag=$lt_cv_ld_reload_flag 14774case $reload_flag in 14775"" | " "*) ;; 14776*) reload_flag=" $reload_flag" ;; 14777esac 14778reload_cmds='$LD$reload_flag -o $output$reload_objs' 14779case $host_os in 14780 cygwin* | mingw* | pw32* | cegcc*) 14781 if test yes != "$GCC"; then 14782 reload_cmds=false 14783 fi 14784 ;; 14785 darwin*) 14786 if test yes = "$GCC"; then 14787 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 14788 else 14789 reload_cmds='$LD$reload_flag -o $output$reload_objs' 14790 fi 14791 ;; 14792esac 14793 14794 14795 14796 14797 14798 14799 14800 14801 14802if test -n "$ac_tool_prefix"; then 14803 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 14804set dummy ${ac_tool_prefix}file; ac_word=$2 14805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14806printf %s "checking for $ac_word... " >&6; } 14807if test ${ac_cv_prog_FILECMD+y} 14808then : 14809 printf %s "(cached) " >&6 14810else $as_nop 14811 if test -n "$FILECMD"; then 14812 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 14813else 14814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14815for as_dir in $PATH 14816do 14817 IFS=$as_save_IFS 14818 case $as_dir in #((( 14819 '') as_dir=./ ;; 14820 */) ;; 14821 *) as_dir=$as_dir/ ;; 14822 esac 14823 for ac_exec_ext in '' $ac_executable_extensions; do 14824 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14825 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 14826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14827 break 2 14828 fi 14829done 14830 done 14831IFS=$as_save_IFS 14832 14833fi 14834fi 14835FILECMD=$ac_cv_prog_FILECMD 14836if test -n "$FILECMD"; then 14837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 14838printf "%s\n" "$FILECMD" >&6; } 14839else 14840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14841printf "%s\n" "no" >&6; } 14842fi 14843 14844 14845fi 14846if test -z "$ac_cv_prog_FILECMD"; then 14847 ac_ct_FILECMD=$FILECMD 14848 # Extract the first word of "file", so it can be a program name with args. 14849set dummy file; ac_word=$2 14850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14851printf %s "checking for $ac_word... " >&6; } 14852if test ${ac_cv_prog_ac_ct_FILECMD+y} 14853then : 14854 printf %s "(cached) " >&6 14855else $as_nop 14856 if test -n "$ac_ct_FILECMD"; then 14857 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 14858else 14859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14860for as_dir in $PATH 14861do 14862 IFS=$as_save_IFS 14863 case $as_dir in #((( 14864 '') as_dir=./ ;; 14865 */) ;; 14866 *) as_dir=$as_dir/ ;; 14867 esac 14868 for ac_exec_ext in '' $ac_executable_extensions; do 14869 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14870 ac_cv_prog_ac_ct_FILECMD="file" 14871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14872 break 2 14873 fi 14874done 14875 done 14876IFS=$as_save_IFS 14877 14878fi 14879fi 14880ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 14881if test -n "$ac_ct_FILECMD"; then 14882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 14883printf "%s\n" "$ac_ct_FILECMD" >&6; } 14884else 14885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14886printf "%s\n" "no" >&6; } 14887fi 14888 14889 if test "x$ac_ct_FILECMD" = x; then 14890 FILECMD=":" 14891 else 14892 case $cross_compiling:$ac_tool_warned in 14893yes:) 14894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14895printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14896ac_tool_warned=yes ;; 14897esac 14898 FILECMD=$ac_ct_FILECMD 14899 fi 14900else 14901 FILECMD="$ac_cv_prog_FILECMD" 14902fi 14903 14904 14905 14906 14907 14908 14909 14910if test -n "$ac_tool_prefix"; then 14911 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 14912set dummy ${ac_tool_prefix}objdump; ac_word=$2 14913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14914printf %s "checking for $ac_word... " >&6; } 14915if test ${ac_cv_prog_OBJDUMP+y} 14916then : 14917 printf %s "(cached) " >&6 14918else $as_nop 14919 if test -n "$OBJDUMP"; then 14920 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 14921else 14922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14923for as_dir in $PATH 14924do 14925 IFS=$as_save_IFS 14926 case $as_dir in #((( 14927 '') as_dir=./ ;; 14928 */) ;; 14929 *) as_dir=$as_dir/ ;; 14930 esac 14931 for ac_exec_ext in '' $ac_executable_extensions; do 14932 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14933 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 14934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14935 break 2 14936 fi 14937done 14938 done 14939IFS=$as_save_IFS 14940 14941fi 14942fi 14943OBJDUMP=$ac_cv_prog_OBJDUMP 14944if test -n "$OBJDUMP"; then 14945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 14946printf "%s\n" "$OBJDUMP" >&6; } 14947else 14948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14949printf "%s\n" "no" >&6; } 14950fi 14951 14952 14953fi 14954if test -z "$ac_cv_prog_OBJDUMP"; then 14955 ac_ct_OBJDUMP=$OBJDUMP 14956 # Extract the first word of "objdump", so it can be a program name with args. 14957set dummy objdump; ac_word=$2 14958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14959printf %s "checking for $ac_word... " >&6; } 14960if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 14961then : 14962 printf %s "(cached) " >&6 14963else $as_nop 14964 if test -n "$ac_ct_OBJDUMP"; then 14965 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 14966else 14967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14968for as_dir in $PATH 14969do 14970 IFS=$as_save_IFS 14971 case $as_dir in #((( 14972 '') as_dir=./ ;; 14973 */) ;; 14974 *) as_dir=$as_dir/ ;; 14975 esac 14976 for ac_exec_ext in '' $ac_executable_extensions; do 14977 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14978 ac_cv_prog_ac_ct_OBJDUMP="objdump" 14979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14980 break 2 14981 fi 14982done 14983 done 14984IFS=$as_save_IFS 14985 14986fi 14987fi 14988ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 14989if test -n "$ac_ct_OBJDUMP"; then 14990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 14991printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 14992else 14993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14994printf "%s\n" "no" >&6; } 14995fi 14996 14997 if test "x$ac_ct_OBJDUMP" = x; then 14998 OBJDUMP="false" 14999 else 15000 case $cross_compiling:$ac_tool_warned in 15001yes:) 15002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15003printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15004ac_tool_warned=yes ;; 15005esac 15006 OBJDUMP=$ac_ct_OBJDUMP 15007 fi 15008else 15009 OBJDUMP="$ac_cv_prog_OBJDUMP" 15010fi 15011 15012test -z "$OBJDUMP" && OBJDUMP=objdump 15013 15014 15015 15016 15017 15018 15019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 15020printf %s "checking how to recognize dependent libraries... " >&6; } 15021if test ${lt_cv_deplibs_check_method+y} 15022then : 15023 printf %s "(cached) " >&6 15024else $as_nop 15025 lt_cv_file_magic_cmd='$MAGIC_CMD' 15026lt_cv_file_magic_test_file= 15027lt_cv_deplibs_check_method='unknown' 15028# Need to set the preceding variable on all platforms that support 15029# interlibrary dependencies. 15030# 'none' -- dependencies not supported. 15031# 'unknown' -- same as none, but documents that we really don't know. 15032# 'pass_all' -- all dependencies passed with no checks. 15033# 'test_compile' -- check by making test program. 15034# 'file_magic [[regex]]' -- check by looking for files in library path 15035# that responds to the $file_magic_cmd with a given extended regex. 15036# If you have 'file' or equivalent on your system and you're not sure 15037# whether 'pass_all' will *always* work, you probably want this one. 15038 15039case $host_os in 15040aix[4-9]*) 15041 lt_cv_deplibs_check_method=pass_all 15042 ;; 15043 15044beos*) 15045 lt_cv_deplibs_check_method=pass_all 15046 ;; 15047 15048bsdi[45]*) 15049 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 15050 lt_cv_file_magic_cmd='$FILECMD -L' 15051 lt_cv_file_magic_test_file=/shlib/libc.so 15052 ;; 15053 15054cygwin*) 15055 # func_win32_libid is a shell function defined in ltmain.sh 15056 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 15057 lt_cv_file_magic_cmd='func_win32_libid' 15058 ;; 15059 15060mingw* | pw32*) 15061 # Base MSYS/MinGW do not provide the 'file' command needed by 15062 # func_win32_libid shell function, so use a weaker test based on 'objdump', 15063 # unless we find 'file', for example because we are cross-compiling. 15064 if ( file / ) >/dev/null 2>&1; then 15065 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 15066 lt_cv_file_magic_cmd='func_win32_libid' 15067 else 15068 # Keep this pattern in sync with the one in func_win32_libid. 15069 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 15070 lt_cv_file_magic_cmd='$OBJDUMP -f' 15071 fi 15072 ;; 15073 15074cegcc*) 15075 # use the weaker test based on 'objdump'. See mingw*. 15076 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 15077 lt_cv_file_magic_cmd='$OBJDUMP -f' 15078 ;; 15079 15080darwin* | rhapsody*) 15081 lt_cv_deplibs_check_method=pass_all 15082 ;; 15083 15084freebsd* | dragonfly* | midnightbsd*) 15085 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 15086 case $host_cpu in 15087 i*86 ) 15088 # Not sure whether the presence of OpenBSD here was a mistake. 15089 # Let's accept both of them until this is cleared up. 15090 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 15091 lt_cv_file_magic_cmd=$FILECMD 15092 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 15093 ;; 15094 esac 15095 else 15096 lt_cv_deplibs_check_method=pass_all 15097 fi 15098 ;; 15099 15100haiku*) 15101 lt_cv_deplibs_check_method=pass_all 15102 ;; 15103 15104hpux10.20* | hpux11*) 15105 lt_cv_file_magic_cmd=$FILECMD 15106 case $host_cpu in 15107 ia64*) 15108 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 15109 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 15110 ;; 15111 hppa*64*) 15112 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]' 15113 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 15114 ;; 15115 *) 15116 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 15117 lt_cv_file_magic_test_file=/usr/lib/libc.sl 15118 ;; 15119 esac 15120 ;; 15121 15122interix[3-9]*) 15123 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 15124 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 15125 ;; 15126 15127irix5* | irix6* | nonstopux*) 15128 case $LD in 15129 *-32|*"-32 ") libmagic=32-bit;; 15130 *-n32|*"-n32 ") libmagic=N32;; 15131 *-64|*"-64 ") libmagic=64-bit;; 15132 *) libmagic=never-match;; 15133 esac 15134 lt_cv_deplibs_check_method=pass_all 15135 ;; 15136 15137# This must be glibc/ELF. 15138linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15139 lt_cv_deplibs_check_method=pass_all 15140 ;; 15141 15142netbsd*) 15143 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 15144 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 15145 else 15146 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 15147 fi 15148 ;; 15149 15150newos6*) 15151 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 15152 lt_cv_file_magic_cmd=$FILECMD 15153 lt_cv_file_magic_test_file=/usr/lib/libnls.so 15154 ;; 15155 15156*nto* | *qnx*) 15157 lt_cv_deplibs_check_method=pass_all 15158 ;; 15159 15160openbsd* | bitrig*) 15161 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 15162 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 15163 else 15164 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 15165 fi 15166 ;; 15167 15168osf3* | osf4* | osf5*) 15169 lt_cv_deplibs_check_method=pass_all 15170 ;; 15171 15172rdos*) 15173 lt_cv_deplibs_check_method=pass_all 15174 ;; 15175 15176solaris*) 15177 lt_cv_deplibs_check_method=pass_all 15178 ;; 15179 15180sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15181 lt_cv_deplibs_check_method=pass_all 15182 ;; 15183 15184sysv4 | sysv4.3*) 15185 case $host_vendor in 15186 motorola) 15187 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]' 15188 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 15189 ;; 15190 ncr) 15191 lt_cv_deplibs_check_method=pass_all 15192 ;; 15193 sequent) 15194 lt_cv_file_magic_cmd='/bin/file' 15195 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 15196 ;; 15197 sni) 15198 lt_cv_file_magic_cmd='/bin/file' 15199 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 15200 lt_cv_file_magic_test_file=/lib/libc.so 15201 ;; 15202 siemens) 15203 lt_cv_deplibs_check_method=pass_all 15204 ;; 15205 pc) 15206 lt_cv_deplibs_check_method=pass_all 15207 ;; 15208 esac 15209 ;; 15210 15211tpf*) 15212 lt_cv_deplibs_check_method=pass_all 15213 ;; 15214os2*) 15215 lt_cv_deplibs_check_method=pass_all 15216 ;; 15217esac 15218 15219fi 15220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 15221printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 15222 15223file_magic_glob= 15224want_nocaseglob=no 15225if test "$build" = "$host"; then 15226 case $host_os in 15227 mingw* | pw32*) 15228 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 15229 want_nocaseglob=yes 15230 else 15231 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 15232 fi 15233 ;; 15234 esac 15235fi 15236 15237file_magic_cmd=$lt_cv_file_magic_cmd 15238deplibs_check_method=$lt_cv_deplibs_check_method 15239test -z "$deplibs_check_method" && deplibs_check_method=unknown 15240 15241 15242 15243 15244 15245 15246 15247 15248 15249 15250 15251 15252 15253 15254 15255 15256 15257 15258 15259 15260 15261 15262if test -n "$ac_tool_prefix"; then 15263 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 15264set dummy ${ac_tool_prefix}dlltool; ac_word=$2 15265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15266printf %s "checking for $ac_word... " >&6; } 15267if test ${ac_cv_prog_DLLTOOL+y} 15268then : 15269 printf %s "(cached) " >&6 15270else $as_nop 15271 if test -n "$DLLTOOL"; then 15272 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 15273else 15274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15275for as_dir in $PATH 15276do 15277 IFS=$as_save_IFS 15278 case $as_dir in #((( 15279 '') as_dir=./ ;; 15280 */) ;; 15281 *) as_dir=$as_dir/ ;; 15282 esac 15283 for ac_exec_ext in '' $ac_executable_extensions; do 15284 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15285 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 15286 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15287 break 2 15288 fi 15289done 15290 done 15291IFS=$as_save_IFS 15292 15293fi 15294fi 15295DLLTOOL=$ac_cv_prog_DLLTOOL 15296if test -n "$DLLTOOL"; then 15297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 15298printf "%s\n" "$DLLTOOL" >&6; } 15299else 15300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15301printf "%s\n" "no" >&6; } 15302fi 15303 15304 15305fi 15306if test -z "$ac_cv_prog_DLLTOOL"; then 15307 ac_ct_DLLTOOL=$DLLTOOL 15308 # Extract the first word of "dlltool", so it can be a program name with args. 15309set dummy dlltool; ac_word=$2 15310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15311printf %s "checking for $ac_word... " >&6; } 15312if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 15313then : 15314 printf %s "(cached) " >&6 15315else $as_nop 15316 if test -n "$ac_ct_DLLTOOL"; then 15317 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 15318else 15319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15320for as_dir in $PATH 15321do 15322 IFS=$as_save_IFS 15323 case $as_dir in #((( 15324 '') as_dir=./ ;; 15325 */) ;; 15326 *) as_dir=$as_dir/ ;; 15327 esac 15328 for ac_exec_ext in '' $ac_executable_extensions; do 15329 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15330 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 15331 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15332 break 2 15333 fi 15334done 15335 done 15336IFS=$as_save_IFS 15337 15338fi 15339fi 15340ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 15341if test -n "$ac_ct_DLLTOOL"; then 15342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 15343printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 15344else 15345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15346printf "%s\n" "no" >&6; } 15347fi 15348 15349 if test "x$ac_ct_DLLTOOL" = x; then 15350 DLLTOOL="false" 15351 else 15352 case $cross_compiling:$ac_tool_warned in 15353yes:) 15354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15355printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15356ac_tool_warned=yes ;; 15357esac 15358 DLLTOOL=$ac_ct_DLLTOOL 15359 fi 15360else 15361 DLLTOOL="$ac_cv_prog_DLLTOOL" 15362fi 15363 15364test -z "$DLLTOOL" && DLLTOOL=dlltool 15365 15366 15367 15368 15369 15370 15371 15372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 15373printf %s "checking how to associate runtime and link libraries... " >&6; } 15374if test ${lt_cv_sharedlib_from_linklib_cmd+y} 15375then : 15376 printf %s "(cached) " >&6 15377else $as_nop 15378 lt_cv_sharedlib_from_linklib_cmd='unknown' 15379 15380case $host_os in 15381cygwin* | mingw* | pw32* | cegcc*) 15382 # two different shell functions defined in ltmain.sh; 15383 # decide which one to use based on capabilities of $DLLTOOL 15384 case `$DLLTOOL --help 2>&1` in 15385 *--identify-strict*) 15386 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 15387 ;; 15388 *) 15389 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 15390 ;; 15391 esac 15392 ;; 15393*) 15394 # fallback: assume linklib IS sharedlib 15395 lt_cv_sharedlib_from_linklib_cmd=$ECHO 15396 ;; 15397esac 15398 15399fi 15400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 15401printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 15402sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 15403test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 15404 15405 15406 15407 15408 15409 15410 15411if test -n "$ac_tool_prefix"; then 15412 for ac_prog in ar 15413 do 15414 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 15415set dummy $ac_tool_prefix$ac_prog; ac_word=$2 15416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15417printf %s "checking for $ac_word... " >&6; } 15418if test ${ac_cv_prog_AR+y} 15419then : 15420 printf %s "(cached) " >&6 15421else $as_nop 15422 if test -n "$AR"; then 15423 ac_cv_prog_AR="$AR" # Let the user override the test. 15424else 15425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15426for as_dir in $PATH 15427do 15428 IFS=$as_save_IFS 15429 case $as_dir in #((( 15430 '') as_dir=./ ;; 15431 */) ;; 15432 *) as_dir=$as_dir/ ;; 15433 esac 15434 for ac_exec_ext in '' $ac_executable_extensions; do 15435 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15436 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 15437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15438 break 2 15439 fi 15440done 15441 done 15442IFS=$as_save_IFS 15443 15444fi 15445fi 15446AR=$ac_cv_prog_AR 15447if test -n "$AR"; then 15448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 15449printf "%s\n" "$AR" >&6; } 15450else 15451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15452printf "%s\n" "no" >&6; } 15453fi 15454 15455 15456 test -n "$AR" && break 15457 done 15458fi 15459if test -z "$AR"; then 15460 ac_ct_AR=$AR 15461 for ac_prog in ar 15462do 15463 # Extract the first word of "$ac_prog", so it can be a program name with args. 15464set dummy $ac_prog; ac_word=$2 15465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15466printf %s "checking for $ac_word... " >&6; } 15467if test ${ac_cv_prog_ac_ct_AR+y} 15468then : 15469 printf %s "(cached) " >&6 15470else $as_nop 15471 if test -n "$ac_ct_AR"; then 15472 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 15473else 15474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15475for as_dir in $PATH 15476do 15477 IFS=$as_save_IFS 15478 case $as_dir in #((( 15479 '') as_dir=./ ;; 15480 */) ;; 15481 *) as_dir=$as_dir/ ;; 15482 esac 15483 for ac_exec_ext in '' $ac_executable_extensions; do 15484 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15485 ac_cv_prog_ac_ct_AR="$ac_prog" 15486 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15487 break 2 15488 fi 15489done 15490 done 15491IFS=$as_save_IFS 15492 15493fi 15494fi 15495ac_ct_AR=$ac_cv_prog_ac_ct_AR 15496if test -n "$ac_ct_AR"; then 15497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 15498printf "%s\n" "$ac_ct_AR" >&6; } 15499else 15500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15501printf "%s\n" "no" >&6; } 15502fi 15503 15504 15505 test -n "$ac_ct_AR" && break 15506done 15507 15508 if test "x$ac_ct_AR" = x; then 15509 AR="false" 15510 else 15511 case $cross_compiling:$ac_tool_warned in 15512yes:) 15513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15514printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15515ac_tool_warned=yes ;; 15516esac 15517 AR=$ac_ct_AR 15518 fi 15519fi 15520 15521: ${AR=ar} 15522 15523 15524 15525 15526 15527 15528# Use ARFLAGS variable as AR's operation code to sync the variable naming with 15529# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 15530# higher priority because thats what people were doing historically (setting 15531# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 15532# variable obsoleted/removed. 15533 15534test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 15535lt_ar_flags=$AR_FLAGS 15536 15537 15538 15539 15540 15541 15542# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 15543# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 15544 15545 15546 15547 15548 15549 15550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 15551printf %s "checking for archiver @FILE support... " >&6; } 15552if test ${lt_cv_ar_at_file+y} 15553then : 15554 printf %s "(cached) " >&6 15555else $as_nop 15556 lt_cv_ar_at_file=no 15557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15558/* end confdefs.h. */ 15559 15560int 15561main (void) 15562{ 15563 15564 ; 15565 return 0; 15566} 15567_ACEOF 15568if ac_fn_c_try_compile "$LINENO" 15569then : 15570 echo conftest.$ac_objext > conftest.lst 15571 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 15572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 15573 (eval $lt_ar_try) 2>&5 15574 ac_status=$? 15575 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15576 test $ac_status = 0; } 15577 if test 0 -eq "$ac_status"; then 15578 # Ensure the archiver fails upon bogus file names. 15579 rm -f conftest.$ac_objext libconftest.a 15580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 15581 (eval $lt_ar_try) 2>&5 15582 ac_status=$? 15583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15584 test $ac_status = 0; } 15585 if test 0 -ne "$ac_status"; then 15586 lt_cv_ar_at_file=@ 15587 fi 15588 fi 15589 rm -f conftest.* libconftest.a 15590 15591fi 15592rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15593 15594fi 15595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 15596printf "%s\n" "$lt_cv_ar_at_file" >&6; } 15597 15598if test no = "$lt_cv_ar_at_file"; then 15599 archiver_list_spec= 15600else 15601 archiver_list_spec=$lt_cv_ar_at_file 15602fi 15603 15604 15605 15606 15607 15608 15609 15610if test -n "$ac_tool_prefix"; then 15611 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 15612set dummy ${ac_tool_prefix}strip; ac_word=$2 15613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15614printf %s "checking for $ac_word... " >&6; } 15615if test ${ac_cv_prog_STRIP+y} 15616then : 15617 printf %s "(cached) " >&6 15618else $as_nop 15619 if test -n "$STRIP"; then 15620 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 15621else 15622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15623for as_dir in $PATH 15624do 15625 IFS=$as_save_IFS 15626 case $as_dir in #((( 15627 '') as_dir=./ ;; 15628 */) ;; 15629 *) as_dir=$as_dir/ ;; 15630 esac 15631 for ac_exec_ext in '' $ac_executable_extensions; do 15632 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15633 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 15634 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15635 break 2 15636 fi 15637done 15638 done 15639IFS=$as_save_IFS 15640 15641fi 15642fi 15643STRIP=$ac_cv_prog_STRIP 15644if test -n "$STRIP"; then 15645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 15646printf "%s\n" "$STRIP" >&6; } 15647else 15648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15649printf "%s\n" "no" >&6; } 15650fi 15651 15652 15653fi 15654if test -z "$ac_cv_prog_STRIP"; then 15655 ac_ct_STRIP=$STRIP 15656 # Extract the first word of "strip", so it can be a program name with args. 15657set dummy strip; ac_word=$2 15658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15659printf %s "checking for $ac_word... " >&6; } 15660if test ${ac_cv_prog_ac_ct_STRIP+y} 15661then : 15662 printf %s "(cached) " >&6 15663else $as_nop 15664 if test -n "$ac_ct_STRIP"; then 15665 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 15666else 15667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15668for as_dir in $PATH 15669do 15670 IFS=$as_save_IFS 15671 case $as_dir in #((( 15672 '') as_dir=./ ;; 15673 */) ;; 15674 *) as_dir=$as_dir/ ;; 15675 esac 15676 for ac_exec_ext in '' $ac_executable_extensions; do 15677 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15678 ac_cv_prog_ac_ct_STRIP="strip" 15679 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15680 break 2 15681 fi 15682done 15683 done 15684IFS=$as_save_IFS 15685 15686fi 15687fi 15688ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 15689if test -n "$ac_ct_STRIP"; then 15690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 15691printf "%s\n" "$ac_ct_STRIP" >&6; } 15692else 15693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15694printf "%s\n" "no" >&6; } 15695fi 15696 15697 if test "x$ac_ct_STRIP" = x; then 15698 STRIP=":" 15699 else 15700 case $cross_compiling:$ac_tool_warned in 15701yes:) 15702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15703printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15704ac_tool_warned=yes ;; 15705esac 15706 STRIP=$ac_ct_STRIP 15707 fi 15708else 15709 STRIP="$ac_cv_prog_STRIP" 15710fi 15711 15712test -z "$STRIP" && STRIP=: 15713 15714 15715 15716 15717 15718 15719if test -n "$ac_tool_prefix"; then 15720 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 15721set dummy ${ac_tool_prefix}ranlib; ac_word=$2 15722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15723printf %s "checking for $ac_word... " >&6; } 15724if test ${ac_cv_prog_RANLIB+y} 15725then : 15726 printf %s "(cached) " >&6 15727else $as_nop 15728 if test -n "$RANLIB"; then 15729 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 15730else 15731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15732for as_dir in $PATH 15733do 15734 IFS=$as_save_IFS 15735 case $as_dir in #((( 15736 '') as_dir=./ ;; 15737 */) ;; 15738 *) as_dir=$as_dir/ ;; 15739 esac 15740 for ac_exec_ext in '' $ac_executable_extensions; do 15741 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15742 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 15743 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15744 break 2 15745 fi 15746done 15747 done 15748IFS=$as_save_IFS 15749 15750fi 15751fi 15752RANLIB=$ac_cv_prog_RANLIB 15753if test -n "$RANLIB"; then 15754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 15755printf "%s\n" "$RANLIB" >&6; } 15756else 15757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15758printf "%s\n" "no" >&6; } 15759fi 15760 15761 15762fi 15763if test -z "$ac_cv_prog_RANLIB"; then 15764 ac_ct_RANLIB=$RANLIB 15765 # Extract the first word of "ranlib", so it can be a program name with args. 15766set dummy ranlib; ac_word=$2 15767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15768printf %s "checking for $ac_word... " >&6; } 15769if test ${ac_cv_prog_ac_ct_RANLIB+y} 15770then : 15771 printf %s "(cached) " >&6 15772else $as_nop 15773 if test -n "$ac_ct_RANLIB"; then 15774 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 15775else 15776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15777for as_dir in $PATH 15778do 15779 IFS=$as_save_IFS 15780 case $as_dir in #((( 15781 '') as_dir=./ ;; 15782 */) ;; 15783 *) as_dir=$as_dir/ ;; 15784 esac 15785 for ac_exec_ext in '' $ac_executable_extensions; do 15786 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15787 ac_cv_prog_ac_ct_RANLIB="ranlib" 15788 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15789 break 2 15790 fi 15791done 15792 done 15793IFS=$as_save_IFS 15794 15795fi 15796fi 15797ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 15798if test -n "$ac_ct_RANLIB"; then 15799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 15800printf "%s\n" "$ac_ct_RANLIB" >&6; } 15801else 15802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15803printf "%s\n" "no" >&6; } 15804fi 15805 15806 if test "x$ac_ct_RANLIB" = x; then 15807 RANLIB=":" 15808 else 15809 case $cross_compiling:$ac_tool_warned in 15810yes:) 15811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15812printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15813ac_tool_warned=yes ;; 15814esac 15815 RANLIB=$ac_ct_RANLIB 15816 fi 15817else 15818 RANLIB="$ac_cv_prog_RANLIB" 15819fi 15820 15821test -z "$RANLIB" && RANLIB=: 15822 15823 15824 15825 15826 15827 15828# Determine commands to create old-style static archives. 15829old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 15830old_postinstall_cmds='chmod 644 $oldlib' 15831old_postuninstall_cmds= 15832 15833if test -n "$RANLIB"; then 15834 case $host_os in 15835 bitrig* | openbsd*) 15836 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 15837 ;; 15838 *) 15839 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 15840 ;; 15841 esac 15842 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 15843fi 15844 15845case $host_os in 15846 darwin*) 15847 lock_old_archive_extraction=yes ;; 15848 *) 15849 lock_old_archive_extraction=no ;; 15850esac 15851 15852 15853 15854 15855 15856 15857 15858 15859 15860 15861 15862 15863 15864 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# If no C compiler was specified, use CC. 15891LTCC=${LTCC-"$CC"} 15892 15893# If no C compiler flags were specified, use CFLAGS. 15894LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15895 15896# Allow CC to be a program name with arguments. 15897compiler=$CC 15898 15899 15900# Check for command to grab the raw symbol name followed by C symbol from nm. 15901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 15902printf %s "checking command to parse $NM output from $compiler object... " >&6; } 15903if test ${lt_cv_sys_global_symbol_pipe+y} 15904then : 15905 printf %s "(cached) " >&6 15906else $as_nop 15907 15908# These are sane defaults that work on at least a few old systems. 15909# [They come from Ultrix. What could be older than Ultrix?!! ;)] 15910 15911# Character class describing NM global symbol codes. 15912symcode='[BCDEGRST]' 15913 15914# Regexp to match symbols that can be accessed directly from C. 15915sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 15916 15917# Define system-specific variables. 15918case $host_os in 15919aix*) 15920 symcode='[BCDT]' 15921 ;; 15922cygwin* | mingw* | pw32* | cegcc*) 15923 symcode='[ABCDGISTW]' 15924 ;; 15925hpux*) 15926 if test ia64 = "$host_cpu"; then 15927 symcode='[ABCDEGRST]' 15928 fi 15929 ;; 15930irix* | nonstopux*) 15931 symcode='[BCDEGRST]' 15932 ;; 15933osf*) 15934 symcode='[BCDEGQRST]' 15935 ;; 15936solaris*) 15937 symcode='[BDRT]' 15938 ;; 15939sco3.2v5*) 15940 symcode='[DT]' 15941 ;; 15942sysv4.2uw2*) 15943 symcode='[DT]' 15944 ;; 15945sysv5* | sco5v6* | unixware* | OpenUNIX*) 15946 symcode='[ABDT]' 15947 ;; 15948sysv4) 15949 symcode='[DFNSTU]' 15950 ;; 15951esac 15952 15953# If we're using GNU nm, then use its standard symbol codes. 15954case `$NM -V 2>&1` in 15955*GNU* | *'with BFD'*) 15956 symcode='[ABCDGIRSTW]' ;; 15957esac 15958 15959if test "$lt_cv_nm_interface" = "MS dumpbin"; then 15960 # Gets list of data symbols to import. 15961 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 15962 # Adjust the below global symbol transforms to fixup imported variables. 15963 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 15964 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 15965 lt_c_name_lib_hook="\ 15966 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 15967 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 15968else 15969 # Disable hooks by default. 15970 lt_cv_sys_global_symbol_to_import= 15971 lt_cdecl_hook= 15972 lt_c_name_hook= 15973 lt_c_name_lib_hook= 15974fi 15975 15976# Transform an extracted symbol line into a proper C declaration. 15977# Some systems (esp. on ia64) link data and code symbols differently, 15978# so use this general approach. 15979lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 15980$lt_cdecl_hook\ 15981" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 15982" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 15983 15984# Transform an extracted symbol line into symbol name and symbol address 15985lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 15986$lt_c_name_hook\ 15987" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 15988" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 15989 15990# Transform an extracted symbol line into symbol name with lib prefix and 15991# symbol address. 15992lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 15993$lt_c_name_lib_hook\ 15994" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 15995" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 15996" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 15997 15998# Handle CRLF in mingw tool chain 15999opt_cr= 16000case $build_os in 16001mingw*) 16002 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 16003 ;; 16004esac 16005 16006# Try without a prefix underscore, then with it. 16007for ac_symprfx in "" "_"; do 16008 16009 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 16010 symxfrm="\\1 $ac_symprfx\\2 \\2" 16011 16012 # Write the raw and C identifiers. 16013 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 16014 # Fake it for dumpbin and say T for any non-static function, 16015 # D for any global variable and I for any imported variable. 16016 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 16017 # which start with @ or ?. 16018 lt_cv_sys_global_symbol_pipe="$AWK '"\ 16019" {last_section=section; section=\$ 3};"\ 16020" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 16021" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 16022" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 16023" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 16024" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 16025" \$ 0!~/External *\|/{next};"\ 16026" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 16027" {if(hide[section]) next};"\ 16028" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 16029" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 16030" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 16031" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 16032" ' prfx=^$ac_symprfx" 16033 else 16034 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 16035 fi 16036 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 16037 16038 # Check to see that the pipe works correctly. 16039 pipe_works=no 16040 16041 rm -f conftest* 16042 cat > conftest.$ac_ext <<_LT_EOF 16043#ifdef __cplusplus 16044extern "C" { 16045#endif 16046char nm_test_var; 16047void nm_test_func(void); 16048void nm_test_func(void){} 16049#ifdef __cplusplus 16050} 16051#endif 16052int main(){nm_test_var='a';nm_test_func();return(0);} 16053_LT_EOF 16054 16055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16056 (eval $ac_compile) 2>&5 16057 ac_status=$? 16058 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16059 test $ac_status = 0; }; then 16060 # Now try to grab the symbols. 16061 nlist=conftest.nm 16062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 16063 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 16064 ac_status=$? 16065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16066 test $ac_status = 0; } && test -s "$nlist"; then 16067 # Try sorting and uniquifying the output. 16068 if sort "$nlist" | uniq > "$nlist"T; then 16069 mv -f "$nlist"T "$nlist" 16070 else 16071 rm -f "$nlist"T 16072 fi 16073 16074 # Make sure that we snagged all the symbols we need. 16075 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 16076 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 16077 cat <<_LT_EOF > conftest.$ac_ext 16078/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 16079#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 16080/* DATA imports from DLLs on WIN32 can't be const, because runtime 16081 relocations are performed -- see ld's documentation on pseudo-relocs. */ 16082# define LT_DLSYM_CONST 16083#elif defined __osf__ 16084/* This system does not cope well with relocations in const data. */ 16085# define LT_DLSYM_CONST 16086#else 16087# define LT_DLSYM_CONST const 16088#endif 16089 16090#ifdef __cplusplus 16091extern "C" { 16092#endif 16093 16094_LT_EOF 16095 # Now generate the symbol file. 16096 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 16097 16098 cat <<_LT_EOF >> conftest.$ac_ext 16099 16100/* The mapping between symbol names and symbols. */ 16101LT_DLSYM_CONST struct { 16102 const char *name; 16103 void *address; 16104} 16105lt__PROGRAM__LTX_preloaded_symbols[] = 16106{ 16107 { "@PROGRAM@", (void *) 0 }, 16108_LT_EOF 16109 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 16110 cat <<\_LT_EOF >> conftest.$ac_ext 16111 {0, (void *) 0} 16112}; 16113 16114/* This works around a problem in FreeBSD linker */ 16115#ifdef FREEBSD_WORKAROUND 16116static const void *lt_preloaded_setup() { 16117 return lt__PROGRAM__LTX_preloaded_symbols; 16118} 16119#endif 16120 16121#ifdef __cplusplus 16122} 16123#endif 16124_LT_EOF 16125 # Now try linking the two files. 16126 mv conftest.$ac_objext conftstm.$ac_objext 16127 lt_globsym_save_LIBS=$LIBS 16128 lt_globsym_save_CFLAGS=$CFLAGS 16129 LIBS=conftstm.$ac_objext 16130 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 16131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 16132 (eval $ac_link) 2>&5 16133 ac_status=$? 16134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16135 test $ac_status = 0; } && test -s conftest$ac_exeext; then 16136 pipe_works=yes 16137 fi 16138 LIBS=$lt_globsym_save_LIBS 16139 CFLAGS=$lt_globsym_save_CFLAGS 16140 else 16141 echo "cannot find nm_test_func in $nlist" >&5 16142 fi 16143 else 16144 echo "cannot find nm_test_var in $nlist" >&5 16145 fi 16146 else 16147 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 16148 fi 16149 else 16150 echo "$progname: failed program was:" >&5 16151 cat conftest.$ac_ext >&5 16152 fi 16153 rm -rf conftest* conftst* 16154 16155 # Do not use the global_symbol_pipe unless it works. 16156 if test yes = "$pipe_works"; then 16157 break 16158 else 16159 lt_cv_sys_global_symbol_pipe= 16160 fi 16161done 16162 16163fi 16164 16165if test -z "$lt_cv_sys_global_symbol_pipe"; then 16166 lt_cv_sys_global_symbol_to_cdecl= 16167fi 16168if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 16169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 16170printf "%s\n" "failed" >&6; } 16171else 16172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 16173printf "%s\n" "ok" >&6; } 16174fi 16175 16176# Response file support. 16177if test "$lt_cv_nm_interface" = "MS dumpbin"; then 16178 nm_file_list_spec='@' 16179elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 16180 nm_file_list_spec='@' 16181fi 16182 16183 16184 16185 16186 16187 16188 16189 16190 16191 16192 16193 16194 16195 16196 16197 16198 16199 16200 16201 16202 16203 16204 16205 16206 16207 16208 16209 16210 16211 16212 16213 16214 16215 16216 16217 16218 16219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 16220printf %s "checking for sysroot... " >&6; } 16221 16222# Check whether --with-sysroot was given. 16223if test ${with_sysroot+y} 16224then : 16225 withval=$with_sysroot; 16226else $as_nop 16227 with_sysroot=no 16228fi 16229 16230 16231lt_sysroot= 16232case $with_sysroot in #( 16233 yes) 16234 if test yes = "$GCC"; then 16235 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 16236 fi 16237 ;; #( 16238 /*) 16239 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 16240 ;; #( 16241 no|'') 16242 ;; #( 16243 *) 16244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 16245printf "%s\n" "$with_sysroot" >&6; } 16246 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 16247 ;; 16248esac 16249 16250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 16251printf "%s\n" "${lt_sysroot:-no}" >&6; } 16252 16253 16254 16255 16256 16257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 16258printf %s "checking for a working dd... " >&6; } 16259if test ${ac_cv_path_lt_DD+y} 16260then : 16261 printf %s "(cached) " >&6 16262else $as_nop 16263 printf 0123456789abcdef0123456789abcdef >conftest.i 16264cat conftest.i conftest.i >conftest2.i 16265: ${lt_DD:=$DD} 16266if test -z "$lt_DD"; then 16267 ac_path_lt_DD_found=false 16268 # Loop through the user's path and test for each of PROGNAME-LIST 16269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16270for as_dir in $PATH 16271do 16272 IFS=$as_save_IFS 16273 case $as_dir in #((( 16274 '') as_dir=./ ;; 16275 */) ;; 16276 *) as_dir=$as_dir/ ;; 16277 esac 16278 for ac_prog in dd 16279 do 16280 for ac_exec_ext in '' $ac_executable_extensions; do 16281 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 16282 as_fn_executable_p "$ac_path_lt_DD" || continue 16283if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 16284 cmp -s conftest.i conftest.out \ 16285 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 16286fi 16287 $ac_path_lt_DD_found && break 3 16288 done 16289 done 16290 done 16291IFS=$as_save_IFS 16292 if test -z "$ac_cv_path_lt_DD"; then 16293 : 16294 fi 16295else 16296 ac_cv_path_lt_DD=$lt_DD 16297fi 16298 16299rm -f conftest.i conftest2.i conftest.out 16300fi 16301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 16302printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 16303 16304 16305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 16306printf %s "checking how to truncate binary pipes... " >&6; } 16307if test ${lt_cv_truncate_bin+y} 16308then : 16309 printf %s "(cached) " >&6 16310else $as_nop 16311 printf 0123456789abcdef0123456789abcdef >conftest.i 16312cat conftest.i conftest.i >conftest2.i 16313lt_cv_truncate_bin= 16314if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 16315 cmp -s conftest.i conftest.out \ 16316 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 16317fi 16318rm -f conftest.i conftest2.i conftest.out 16319test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 16320fi 16321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 16322printf "%s\n" "$lt_cv_truncate_bin" >&6; } 16323 16324 16325 16326 16327 16328 16329 16330# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 16331func_cc_basename () 16332{ 16333 for cc_temp in $*""; do 16334 case $cc_temp in 16335 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16336 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16337 \-*) ;; 16338 *) break;; 16339 esac 16340 done 16341 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 16342} 16343 16344# Check whether --enable-libtool-lock was given. 16345if test ${enable_libtool_lock+y} 16346then : 16347 enableval=$enable_libtool_lock; 16348fi 16349 16350test no = "$enable_libtool_lock" || enable_libtool_lock=yes 16351 16352# Some flags need to be propagated to the compiler or linker for good 16353# libtool support. 16354case $host in 16355ia64-*-hpux*) 16356 # Find out what ABI is being produced by ac_compile, and set mode 16357 # options accordingly. 16358 echo 'int i;' > conftest.$ac_ext 16359 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16360 (eval $ac_compile) 2>&5 16361 ac_status=$? 16362 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16363 test $ac_status = 0; }; then 16364 case `$FILECMD conftest.$ac_objext` in 16365 *ELF-32*) 16366 HPUX_IA64_MODE=32 16367 ;; 16368 *ELF-64*) 16369 HPUX_IA64_MODE=64 16370 ;; 16371 esac 16372 fi 16373 rm -rf conftest* 16374 ;; 16375*-*-irix6*) 16376 # Find out what ABI is being produced by ac_compile, and set linker 16377 # options accordingly. 16378 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 16379 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16380 (eval $ac_compile) 2>&5 16381 ac_status=$? 16382 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16383 test $ac_status = 0; }; then 16384 if test yes = "$lt_cv_prog_gnu_ld"; then 16385 case `$FILECMD conftest.$ac_objext` in 16386 *32-bit*) 16387 LD="${LD-ld} -melf32bsmip" 16388 ;; 16389 *N32*) 16390 LD="${LD-ld} -melf32bmipn32" 16391 ;; 16392 *64-bit*) 16393 LD="${LD-ld} -melf64bmip" 16394 ;; 16395 esac 16396 else 16397 case `$FILECMD conftest.$ac_objext` in 16398 *32-bit*) 16399 LD="${LD-ld} -32" 16400 ;; 16401 *N32*) 16402 LD="${LD-ld} -n32" 16403 ;; 16404 *64-bit*) 16405 LD="${LD-ld} -64" 16406 ;; 16407 esac 16408 fi 16409 fi 16410 rm -rf conftest* 16411 ;; 16412 16413mips64*-*linux*) 16414 # Find out what ABI is being produced by ac_compile, and set linker 16415 # options accordingly. 16416 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 16417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16418 (eval $ac_compile) 2>&5 16419 ac_status=$? 16420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16421 test $ac_status = 0; }; then 16422 emul=elf 16423 case `$FILECMD conftest.$ac_objext` in 16424 *32-bit*) 16425 emul="${emul}32" 16426 ;; 16427 *64-bit*) 16428 emul="${emul}64" 16429 ;; 16430 esac 16431 case `$FILECMD conftest.$ac_objext` in 16432 *MSB*) 16433 emul="${emul}btsmip" 16434 ;; 16435 *LSB*) 16436 emul="${emul}ltsmip" 16437 ;; 16438 esac 16439 case `$FILECMD conftest.$ac_objext` in 16440 *N32*) 16441 emul="${emul}n32" 16442 ;; 16443 esac 16444 LD="${LD-ld} -m $emul" 16445 fi 16446 rm -rf conftest* 16447 ;; 16448 16449x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 16450s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 16451 # Find out what ABI is being produced by ac_compile, and set linker 16452 # options accordingly. Note that the listed cases only cover the 16453 # situations where additional linker options are needed (such as when 16454 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 16455 # vice versa); the common cases where no linker options are needed do 16456 # not appear in the list. 16457 echo 'int i;' > conftest.$ac_ext 16458 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16459 (eval $ac_compile) 2>&5 16460 ac_status=$? 16461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16462 test $ac_status = 0; }; then 16463 case `$FILECMD conftest.o` in 16464 *32-bit*) 16465 case $host in 16466 x86_64-*kfreebsd*-gnu) 16467 LD="${LD-ld} -m elf_i386_fbsd" 16468 ;; 16469 x86_64-*linux*) 16470 case `$FILECMD conftest.o` in 16471 *x86-64*) 16472 LD="${LD-ld} -m elf32_x86_64" 16473 ;; 16474 *) 16475 LD="${LD-ld} -m elf_i386" 16476 ;; 16477 esac 16478 ;; 16479 powerpc64le-*linux*) 16480 LD="${LD-ld} -m elf32lppclinux" 16481 ;; 16482 powerpc64-*linux*) 16483 LD="${LD-ld} -m elf32ppclinux" 16484 ;; 16485 s390x-*linux*) 16486 LD="${LD-ld} -m elf_s390" 16487 ;; 16488 sparc64-*linux*) 16489 LD="${LD-ld} -m elf32_sparc" 16490 ;; 16491 esac 16492 ;; 16493 *64-bit*) 16494 case $host in 16495 x86_64-*kfreebsd*-gnu) 16496 LD="${LD-ld} -m elf_x86_64_fbsd" 16497 ;; 16498 x86_64-*linux*) 16499 LD="${LD-ld} -m elf_x86_64" 16500 ;; 16501 powerpcle-*linux*) 16502 LD="${LD-ld} -m elf64lppc" 16503 ;; 16504 powerpc-*linux*) 16505 LD="${LD-ld} -m elf64ppc" 16506 ;; 16507 s390*-*linux*|s390*-*tpf*) 16508 LD="${LD-ld} -m elf64_s390" 16509 ;; 16510 sparc*-*linux*) 16511 LD="${LD-ld} -m elf64_sparc" 16512 ;; 16513 esac 16514 ;; 16515 esac 16516 fi 16517 rm -rf conftest* 16518 ;; 16519 16520*-*-sco3.2v5*) 16521 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 16522 SAVE_CFLAGS=$CFLAGS 16523 CFLAGS="$CFLAGS -belf" 16524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 16525printf %s "checking whether the C compiler needs -belf... " >&6; } 16526if test ${lt_cv_cc_needs_belf+y} 16527then : 16528 printf %s "(cached) " >&6 16529else $as_nop 16530 ac_ext=c 16531ac_cpp='$CPP $CPPFLAGS' 16532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16534ac_compiler_gnu=$ac_cv_c_compiler_gnu 16535 16536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16537/* end confdefs.h. */ 16538 16539int 16540main (void) 16541{ 16542 16543 ; 16544 return 0; 16545} 16546_ACEOF 16547if ac_fn_c_try_link "$LINENO" 16548then : 16549 lt_cv_cc_needs_belf=yes 16550else $as_nop 16551 lt_cv_cc_needs_belf=no 16552fi 16553rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16554 conftest$ac_exeext conftest.$ac_ext 16555 ac_ext=c 16556ac_cpp='$CPP $CPPFLAGS' 16557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16559ac_compiler_gnu=$ac_cv_c_compiler_gnu 16560 16561fi 16562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 16563printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 16564 if test yes != "$lt_cv_cc_needs_belf"; then 16565 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 16566 CFLAGS=$SAVE_CFLAGS 16567 fi 16568 ;; 16569*-*solaris*) 16570 # Find out what ABI is being produced by ac_compile, and set linker 16571 # options accordingly. 16572 echo 'int i;' > conftest.$ac_ext 16573 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16574 (eval $ac_compile) 2>&5 16575 ac_status=$? 16576 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16577 test $ac_status = 0; }; then 16578 case `$FILECMD conftest.o` in 16579 *64-bit*) 16580 case $lt_cv_prog_gnu_ld in 16581 yes*) 16582 case $host in 16583 i?86-*-solaris*|x86_64-*-solaris*) 16584 LD="${LD-ld} -m elf_x86_64" 16585 ;; 16586 sparc*-*-solaris*) 16587 LD="${LD-ld} -m elf64_sparc" 16588 ;; 16589 esac 16590 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 16591 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 16592 LD=${LD-ld}_sol2 16593 fi 16594 ;; 16595 *) 16596 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 16597 LD="${LD-ld} -64" 16598 fi 16599 ;; 16600 esac 16601 ;; 16602 esac 16603 fi 16604 rm -rf conftest* 16605 ;; 16606esac 16607 16608need_locks=$enable_libtool_lock 16609 16610if test -n "$ac_tool_prefix"; then 16611 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 16612set dummy ${ac_tool_prefix}mt; ac_word=$2 16613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16614printf %s "checking for $ac_word... " >&6; } 16615if test ${ac_cv_prog_MANIFEST_TOOL+y} 16616then : 16617 printf %s "(cached) " >&6 16618else $as_nop 16619 if test -n "$MANIFEST_TOOL"; then 16620 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 16621else 16622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16623for as_dir in $PATH 16624do 16625 IFS=$as_save_IFS 16626 case $as_dir in #((( 16627 '') as_dir=./ ;; 16628 */) ;; 16629 *) as_dir=$as_dir/ ;; 16630 esac 16631 for ac_exec_ext in '' $ac_executable_extensions; do 16632 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 16633 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 16634 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 16635 break 2 16636 fi 16637done 16638 done 16639IFS=$as_save_IFS 16640 16641fi 16642fi 16643MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 16644if test -n "$MANIFEST_TOOL"; then 16645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 16646printf "%s\n" "$MANIFEST_TOOL" >&6; } 16647else 16648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16649printf "%s\n" "no" >&6; } 16650fi 16651 16652 16653fi 16654if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 16655 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 16656 # Extract the first word of "mt", so it can be a program name with args. 16657set dummy mt; ac_word=$2 16658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16659printf %s "checking for $ac_word... " >&6; } 16660if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 16661then : 16662 printf %s "(cached) " >&6 16663else $as_nop 16664 if test -n "$ac_ct_MANIFEST_TOOL"; then 16665 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 16666else 16667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16668for as_dir in $PATH 16669do 16670 IFS=$as_save_IFS 16671 case $as_dir in #((( 16672 '') as_dir=./ ;; 16673 */) ;; 16674 *) as_dir=$as_dir/ ;; 16675 esac 16676 for ac_exec_ext in '' $ac_executable_extensions; do 16677 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 16678 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 16679 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 16680 break 2 16681 fi 16682done 16683 done 16684IFS=$as_save_IFS 16685 16686fi 16687fi 16688ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 16689if test -n "$ac_ct_MANIFEST_TOOL"; then 16690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 16691printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 16692else 16693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16694printf "%s\n" "no" >&6; } 16695fi 16696 16697 if test "x$ac_ct_MANIFEST_TOOL" = x; then 16698 MANIFEST_TOOL=":" 16699 else 16700 case $cross_compiling:$ac_tool_warned in 16701yes:) 16702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16703printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16704ac_tool_warned=yes ;; 16705esac 16706 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 16707 fi 16708else 16709 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 16710fi 16711 16712test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 16713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 16714printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 16715if test ${lt_cv_path_mainfest_tool+y} 16716then : 16717 printf %s "(cached) " >&6 16718else $as_nop 16719 lt_cv_path_mainfest_tool=no 16720 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 16721 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 16722 cat conftest.err >&5 16723 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 16724 lt_cv_path_mainfest_tool=yes 16725 fi 16726 rm -f conftest* 16727fi 16728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 16729printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 16730if test yes != "$lt_cv_path_mainfest_tool"; then 16731 MANIFEST_TOOL=: 16732fi 16733 16734 16735 16736 16737 16738 16739 case $host_os in 16740 rhapsody* | darwin*) 16741 if test -n "$ac_tool_prefix"; then 16742 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 16743set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 16744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16745printf %s "checking for $ac_word... " >&6; } 16746if test ${ac_cv_prog_DSYMUTIL+y} 16747then : 16748 printf %s "(cached) " >&6 16749else $as_nop 16750 if test -n "$DSYMUTIL"; then 16751 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 16752else 16753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16754for as_dir in $PATH 16755do 16756 IFS=$as_save_IFS 16757 case $as_dir in #((( 16758 '') as_dir=./ ;; 16759 */) ;; 16760 *) as_dir=$as_dir/ ;; 16761 esac 16762 for ac_exec_ext in '' $ac_executable_extensions; do 16763 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 16764 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 16765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 16766 break 2 16767 fi 16768done 16769 done 16770IFS=$as_save_IFS 16771 16772fi 16773fi 16774DSYMUTIL=$ac_cv_prog_DSYMUTIL 16775if test -n "$DSYMUTIL"; then 16776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 16777printf "%s\n" "$DSYMUTIL" >&6; } 16778else 16779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16780printf "%s\n" "no" >&6; } 16781fi 16782 16783 16784fi 16785if test -z "$ac_cv_prog_DSYMUTIL"; then 16786 ac_ct_DSYMUTIL=$DSYMUTIL 16787 # Extract the first word of "dsymutil", so it can be a program name with args. 16788set dummy dsymutil; ac_word=$2 16789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16790printf %s "checking for $ac_word... " >&6; } 16791if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 16792then : 16793 printf %s "(cached) " >&6 16794else $as_nop 16795 if test -n "$ac_ct_DSYMUTIL"; then 16796 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 16797else 16798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16799for as_dir in $PATH 16800do 16801 IFS=$as_save_IFS 16802 case $as_dir in #((( 16803 '') as_dir=./ ;; 16804 */) ;; 16805 *) as_dir=$as_dir/ ;; 16806 esac 16807 for ac_exec_ext in '' $ac_executable_extensions; do 16808 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 16809 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 16810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 16811 break 2 16812 fi 16813done 16814 done 16815IFS=$as_save_IFS 16816 16817fi 16818fi 16819ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 16820if test -n "$ac_ct_DSYMUTIL"; then 16821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 16822printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 16823else 16824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16825printf "%s\n" "no" >&6; } 16826fi 16827 16828 if test "x$ac_ct_DSYMUTIL" = x; then 16829 DSYMUTIL=":" 16830 else 16831 case $cross_compiling:$ac_tool_warned in 16832yes:) 16833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16834printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16835ac_tool_warned=yes ;; 16836esac 16837 DSYMUTIL=$ac_ct_DSYMUTIL 16838 fi 16839else 16840 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 16841fi 16842 16843 if test -n "$ac_tool_prefix"; then 16844 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 16845set dummy ${ac_tool_prefix}nmedit; ac_word=$2 16846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16847printf %s "checking for $ac_word... " >&6; } 16848if test ${ac_cv_prog_NMEDIT+y} 16849then : 16850 printf %s "(cached) " >&6 16851else $as_nop 16852 if test -n "$NMEDIT"; then 16853 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 16854else 16855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16856for as_dir in $PATH 16857do 16858 IFS=$as_save_IFS 16859 case $as_dir in #((( 16860 '') as_dir=./ ;; 16861 */) ;; 16862 *) as_dir=$as_dir/ ;; 16863 esac 16864 for ac_exec_ext in '' $ac_executable_extensions; do 16865 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 16866 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 16867 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 16868 break 2 16869 fi 16870done 16871 done 16872IFS=$as_save_IFS 16873 16874fi 16875fi 16876NMEDIT=$ac_cv_prog_NMEDIT 16877if test -n "$NMEDIT"; then 16878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 16879printf "%s\n" "$NMEDIT" >&6; } 16880else 16881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16882printf "%s\n" "no" >&6; } 16883fi 16884 16885 16886fi 16887if test -z "$ac_cv_prog_NMEDIT"; then 16888 ac_ct_NMEDIT=$NMEDIT 16889 # Extract the first word of "nmedit", so it can be a program name with args. 16890set dummy nmedit; ac_word=$2 16891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16892printf %s "checking for $ac_word... " >&6; } 16893if test ${ac_cv_prog_ac_ct_NMEDIT+y} 16894then : 16895 printf %s "(cached) " >&6 16896else $as_nop 16897 if test -n "$ac_ct_NMEDIT"; then 16898 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 16899else 16900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16901for as_dir in $PATH 16902do 16903 IFS=$as_save_IFS 16904 case $as_dir in #((( 16905 '') as_dir=./ ;; 16906 */) ;; 16907 *) as_dir=$as_dir/ ;; 16908 esac 16909 for ac_exec_ext in '' $ac_executable_extensions; do 16910 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 16911 ac_cv_prog_ac_ct_NMEDIT="nmedit" 16912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 16913 break 2 16914 fi 16915done 16916 done 16917IFS=$as_save_IFS 16918 16919fi 16920fi 16921ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 16922if test -n "$ac_ct_NMEDIT"; then 16923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 16924printf "%s\n" "$ac_ct_NMEDIT" >&6; } 16925else 16926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16927printf "%s\n" "no" >&6; } 16928fi 16929 16930 if test "x$ac_ct_NMEDIT" = x; then 16931 NMEDIT=":" 16932 else 16933 case $cross_compiling:$ac_tool_warned in 16934yes:) 16935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16936printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16937ac_tool_warned=yes ;; 16938esac 16939 NMEDIT=$ac_ct_NMEDIT 16940 fi 16941else 16942 NMEDIT="$ac_cv_prog_NMEDIT" 16943fi 16944 16945 if test -n "$ac_tool_prefix"; then 16946 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 16947set dummy ${ac_tool_prefix}lipo; ac_word=$2 16948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16949printf %s "checking for $ac_word... " >&6; } 16950if test ${ac_cv_prog_LIPO+y} 16951then : 16952 printf %s "(cached) " >&6 16953else $as_nop 16954 if test -n "$LIPO"; then 16955 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 16956else 16957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16958for as_dir in $PATH 16959do 16960 IFS=$as_save_IFS 16961 case $as_dir in #((( 16962 '') as_dir=./ ;; 16963 */) ;; 16964 *) as_dir=$as_dir/ ;; 16965 esac 16966 for ac_exec_ext in '' $ac_executable_extensions; do 16967 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 16968 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 16969 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 16970 break 2 16971 fi 16972done 16973 done 16974IFS=$as_save_IFS 16975 16976fi 16977fi 16978LIPO=$ac_cv_prog_LIPO 16979if test -n "$LIPO"; then 16980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 16981printf "%s\n" "$LIPO" >&6; } 16982else 16983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16984printf "%s\n" "no" >&6; } 16985fi 16986 16987 16988fi 16989if test -z "$ac_cv_prog_LIPO"; then 16990 ac_ct_LIPO=$LIPO 16991 # Extract the first word of "lipo", so it can be a program name with args. 16992set dummy lipo; ac_word=$2 16993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16994printf %s "checking for $ac_word... " >&6; } 16995if test ${ac_cv_prog_ac_ct_LIPO+y} 16996then : 16997 printf %s "(cached) " >&6 16998else $as_nop 16999 if test -n "$ac_ct_LIPO"; then 17000 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 17001else 17002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17003for as_dir in $PATH 17004do 17005 IFS=$as_save_IFS 17006 case $as_dir in #((( 17007 '') as_dir=./ ;; 17008 */) ;; 17009 *) as_dir=$as_dir/ ;; 17010 esac 17011 for ac_exec_ext in '' $ac_executable_extensions; do 17012 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17013 ac_cv_prog_ac_ct_LIPO="lipo" 17014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17015 break 2 17016 fi 17017done 17018 done 17019IFS=$as_save_IFS 17020 17021fi 17022fi 17023ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 17024if test -n "$ac_ct_LIPO"; then 17025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 17026printf "%s\n" "$ac_ct_LIPO" >&6; } 17027else 17028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17029printf "%s\n" "no" >&6; } 17030fi 17031 17032 if test "x$ac_ct_LIPO" = x; then 17033 LIPO=":" 17034 else 17035 case $cross_compiling:$ac_tool_warned in 17036yes:) 17037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17038printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17039ac_tool_warned=yes ;; 17040esac 17041 LIPO=$ac_ct_LIPO 17042 fi 17043else 17044 LIPO="$ac_cv_prog_LIPO" 17045fi 17046 17047 if test -n "$ac_tool_prefix"; then 17048 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 17049set dummy ${ac_tool_prefix}otool; ac_word=$2 17050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17051printf %s "checking for $ac_word... " >&6; } 17052if test ${ac_cv_prog_OTOOL+y} 17053then : 17054 printf %s "(cached) " >&6 17055else $as_nop 17056 if test -n "$OTOOL"; then 17057 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 17058else 17059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17060for as_dir in $PATH 17061do 17062 IFS=$as_save_IFS 17063 case $as_dir in #((( 17064 '') as_dir=./ ;; 17065 */) ;; 17066 *) as_dir=$as_dir/ ;; 17067 esac 17068 for ac_exec_ext in '' $ac_executable_extensions; do 17069 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17070 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 17071 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17072 break 2 17073 fi 17074done 17075 done 17076IFS=$as_save_IFS 17077 17078fi 17079fi 17080OTOOL=$ac_cv_prog_OTOOL 17081if test -n "$OTOOL"; then 17082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 17083printf "%s\n" "$OTOOL" >&6; } 17084else 17085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17086printf "%s\n" "no" >&6; } 17087fi 17088 17089 17090fi 17091if test -z "$ac_cv_prog_OTOOL"; then 17092 ac_ct_OTOOL=$OTOOL 17093 # Extract the first word of "otool", so it can be a program name with args. 17094set dummy otool; ac_word=$2 17095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17096printf %s "checking for $ac_word... " >&6; } 17097if test ${ac_cv_prog_ac_ct_OTOOL+y} 17098then : 17099 printf %s "(cached) " >&6 17100else $as_nop 17101 if test -n "$ac_ct_OTOOL"; then 17102 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 17103else 17104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17105for as_dir in $PATH 17106do 17107 IFS=$as_save_IFS 17108 case $as_dir in #((( 17109 '') as_dir=./ ;; 17110 */) ;; 17111 *) as_dir=$as_dir/ ;; 17112 esac 17113 for ac_exec_ext in '' $ac_executable_extensions; do 17114 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17115 ac_cv_prog_ac_ct_OTOOL="otool" 17116 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17117 break 2 17118 fi 17119done 17120 done 17121IFS=$as_save_IFS 17122 17123fi 17124fi 17125ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 17126if test -n "$ac_ct_OTOOL"; then 17127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 17128printf "%s\n" "$ac_ct_OTOOL" >&6; } 17129else 17130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17131printf "%s\n" "no" >&6; } 17132fi 17133 17134 if test "x$ac_ct_OTOOL" = x; then 17135 OTOOL=":" 17136 else 17137 case $cross_compiling:$ac_tool_warned in 17138yes:) 17139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17140printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17141ac_tool_warned=yes ;; 17142esac 17143 OTOOL=$ac_ct_OTOOL 17144 fi 17145else 17146 OTOOL="$ac_cv_prog_OTOOL" 17147fi 17148 17149 if test -n "$ac_tool_prefix"; then 17150 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 17151set dummy ${ac_tool_prefix}otool64; ac_word=$2 17152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17153printf %s "checking for $ac_word... " >&6; } 17154if test ${ac_cv_prog_OTOOL64+y} 17155then : 17156 printf %s "(cached) " >&6 17157else $as_nop 17158 if test -n "$OTOOL64"; then 17159 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 17160else 17161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17162for as_dir in $PATH 17163do 17164 IFS=$as_save_IFS 17165 case $as_dir in #((( 17166 '') as_dir=./ ;; 17167 */) ;; 17168 *) as_dir=$as_dir/ ;; 17169 esac 17170 for ac_exec_ext in '' $ac_executable_extensions; do 17171 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17172 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 17173 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17174 break 2 17175 fi 17176done 17177 done 17178IFS=$as_save_IFS 17179 17180fi 17181fi 17182OTOOL64=$ac_cv_prog_OTOOL64 17183if test -n "$OTOOL64"; then 17184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 17185printf "%s\n" "$OTOOL64" >&6; } 17186else 17187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17188printf "%s\n" "no" >&6; } 17189fi 17190 17191 17192fi 17193if test -z "$ac_cv_prog_OTOOL64"; then 17194 ac_ct_OTOOL64=$OTOOL64 17195 # Extract the first word of "otool64", so it can be a program name with args. 17196set dummy otool64; ac_word=$2 17197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17198printf %s "checking for $ac_word... " >&6; } 17199if test ${ac_cv_prog_ac_ct_OTOOL64+y} 17200then : 17201 printf %s "(cached) " >&6 17202else $as_nop 17203 if test -n "$ac_ct_OTOOL64"; then 17204 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 17205else 17206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17207for as_dir in $PATH 17208do 17209 IFS=$as_save_IFS 17210 case $as_dir in #((( 17211 '') as_dir=./ ;; 17212 */) ;; 17213 *) as_dir=$as_dir/ ;; 17214 esac 17215 for ac_exec_ext in '' $ac_executable_extensions; do 17216 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17217 ac_cv_prog_ac_ct_OTOOL64="otool64" 17218 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17219 break 2 17220 fi 17221done 17222 done 17223IFS=$as_save_IFS 17224 17225fi 17226fi 17227ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 17228if test -n "$ac_ct_OTOOL64"; then 17229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 17230printf "%s\n" "$ac_ct_OTOOL64" >&6; } 17231else 17232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17233printf "%s\n" "no" >&6; } 17234fi 17235 17236 if test "x$ac_ct_OTOOL64" = x; then 17237 OTOOL64=":" 17238 else 17239 case $cross_compiling:$ac_tool_warned in 17240yes:) 17241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17242printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17243ac_tool_warned=yes ;; 17244esac 17245 OTOOL64=$ac_ct_OTOOL64 17246 fi 17247else 17248 OTOOL64="$ac_cv_prog_OTOOL64" 17249fi 17250 17251 17252 17253 17254 17255 17256 17257 17258 17259 17260 17261 17262 17263 17264 17265 17266 17267 17268 17269 17270 17271 17272 17273 17274 17275 17276 17277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 17278printf %s "checking for -single_module linker flag... " >&6; } 17279if test ${lt_cv_apple_cc_single_mod+y} 17280then : 17281 printf %s "(cached) " >&6 17282else $as_nop 17283 lt_cv_apple_cc_single_mod=no 17284 if test -z "$LT_MULTI_MODULE"; then 17285 # By default we will add the -single_module flag. You can override 17286 # by either setting the environment variable LT_MULTI_MODULE 17287 # non-empty at configure time, or by adding -multi_module to the 17288 # link flags. 17289 rm -rf libconftest.dylib* 17290 echo "int foo(void){return 1;}" > conftest.c 17291 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 17292-dynamiclib -Wl,-single_module conftest.c" >&5 17293 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 17294 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 17295 _lt_result=$? 17296 # If there is a non-empty error log, and "single_module" 17297 # appears in it, assume the flag caused a linker warning 17298 if test -s conftest.err && $GREP single_module conftest.err; then 17299 cat conftest.err >&5 17300 # Otherwise, if the output was created with a 0 exit code from 17301 # the compiler, it worked. 17302 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 17303 lt_cv_apple_cc_single_mod=yes 17304 else 17305 cat conftest.err >&5 17306 fi 17307 rm -rf libconftest.dylib* 17308 rm -f conftest.* 17309 fi 17310fi 17311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 17312printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 17313 17314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 17315printf %s "checking for -exported_symbols_list linker flag... " >&6; } 17316if test ${lt_cv_ld_exported_symbols_list+y} 17317then : 17318 printf %s "(cached) " >&6 17319else $as_nop 17320 lt_cv_ld_exported_symbols_list=no 17321 save_LDFLAGS=$LDFLAGS 17322 echo "_main" > conftest.sym 17323 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 17324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17325/* end confdefs.h. */ 17326 17327int 17328main (void) 17329{ 17330 17331 ; 17332 return 0; 17333} 17334_ACEOF 17335if ac_fn_c_try_link "$LINENO" 17336then : 17337 lt_cv_ld_exported_symbols_list=yes 17338else $as_nop 17339 lt_cv_ld_exported_symbols_list=no 17340fi 17341rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17342 conftest$ac_exeext conftest.$ac_ext 17343 LDFLAGS=$save_LDFLAGS 17344 17345fi 17346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 17347printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 17348 17349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 17350printf %s "checking for -force_load linker flag... " >&6; } 17351if test ${lt_cv_ld_force_load+y} 17352then : 17353 printf %s "(cached) " >&6 17354else $as_nop 17355 lt_cv_ld_force_load=no 17356 cat > conftest.c << _LT_EOF 17357int forced_loaded() { return 2;} 17358_LT_EOF 17359 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 17360 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 17361 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 17362 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 17363 echo "$RANLIB libconftest.a" >&5 17364 $RANLIB libconftest.a 2>&5 17365 cat > conftest.c << _LT_EOF 17366int main() { return 0;} 17367_LT_EOF 17368 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 17369 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 17370 _lt_result=$? 17371 if test -s conftest.err && $GREP force_load conftest.err; then 17372 cat conftest.err >&5 17373 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 17374 lt_cv_ld_force_load=yes 17375 else 17376 cat conftest.err >&5 17377 fi 17378 rm -f conftest.err libconftest.a conftest conftest.c 17379 rm -rf conftest.dSYM 17380 17381fi 17382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 17383printf "%s\n" "$lt_cv_ld_force_load" >&6; } 17384 case $host_os in 17385 rhapsody* | darwin1.[012]) 17386 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 17387 darwin1.*) 17388 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 17389 darwin*) 17390 case $MACOSX_DEPLOYMENT_TARGET,$host in 17391 10.[012],*|,*powerpc*-darwin[5-8]*) 17392 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 17393 *) 17394 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 17395 esac 17396 ;; 17397 esac 17398 if test yes = "$lt_cv_apple_cc_single_mod"; then 17399 _lt_dar_single_mod='$single_module' 17400 fi 17401 if test yes = "$lt_cv_ld_exported_symbols_list"; then 17402 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 17403 else 17404 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 17405 fi 17406 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 17407 _lt_dsymutil='~$DSYMUTIL $lib || :' 17408 else 17409 _lt_dsymutil= 17410 fi 17411 ;; 17412 esac 17413 17414# func_munge_path_list VARIABLE PATH 17415# ----------------------------------- 17416# VARIABLE is name of variable containing _space_ separated list of 17417# directories to be munged by the contents of PATH, which is string 17418# having a format: 17419# "DIR[:DIR]:" 17420# string "DIR[ DIR]" will be prepended to VARIABLE 17421# ":DIR[:DIR]" 17422# string "DIR[ DIR]" will be appended to VARIABLE 17423# "DIRP[:DIRP]::[DIRA:]DIRA" 17424# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 17425# "DIRA[ DIRA]" will be appended to VARIABLE 17426# "DIR[:DIR]" 17427# VARIABLE will be replaced by "DIR[ DIR]" 17428func_munge_path_list () 17429{ 17430 case x$2 in 17431 x) 17432 ;; 17433 *:) 17434 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 17435 ;; 17436 x:*) 17437 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 17438 ;; 17439 *::*) 17440 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 17441 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 17442 ;; 17443 *) 17444 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 17445 ;; 17446 esac 17447} 17448 17449ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 17450" 17451if test "x$ac_cv_header_dlfcn_h" = xyes 17452then : 17453 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 17454 17455fi 17456 17457 17458 17459 17460 17461# Set options 17462# Check whether --enable-static was given. 17463if test ${enable_static+y} 17464then : 17465 enableval=$enable_static; p=${PACKAGE-default} 17466 case $enableval in 17467 yes) enable_static=yes ;; 17468 no) enable_static=no ;; 17469 *) 17470 enable_static=no 17471 # Look at the argument we got. We use all the common list separators. 17472 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 17473 for pkg in $enableval; do 17474 IFS=$lt_save_ifs 17475 if test "X$pkg" = "X$p"; then 17476 enable_static=yes 17477 fi 17478 done 17479 IFS=$lt_save_ifs 17480 ;; 17481 esac 17482else $as_nop 17483 enable_static=no 17484fi 17485 17486 17487 17488 17489 17490 17491 17492enable_win32_dll=yes 17493 17494case $host in 17495*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 17496 if test -n "$ac_tool_prefix"; then 17497 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 17498set dummy ${ac_tool_prefix}as; ac_word=$2 17499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17500printf %s "checking for $ac_word... " >&6; } 17501if test ${ac_cv_prog_AS+y} 17502then : 17503 printf %s "(cached) " >&6 17504else $as_nop 17505 if test -n "$AS"; then 17506 ac_cv_prog_AS="$AS" # Let the user override the test. 17507else 17508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17509for as_dir in $PATH 17510do 17511 IFS=$as_save_IFS 17512 case $as_dir in #((( 17513 '') as_dir=./ ;; 17514 */) ;; 17515 *) as_dir=$as_dir/ ;; 17516 esac 17517 for ac_exec_ext in '' $ac_executable_extensions; do 17518 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17519 ac_cv_prog_AS="${ac_tool_prefix}as" 17520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17521 break 2 17522 fi 17523done 17524 done 17525IFS=$as_save_IFS 17526 17527fi 17528fi 17529AS=$ac_cv_prog_AS 17530if test -n "$AS"; then 17531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 17532printf "%s\n" "$AS" >&6; } 17533else 17534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17535printf "%s\n" "no" >&6; } 17536fi 17537 17538 17539fi 17540if test -z "$ac_cv_prog_AS"; then 17541 ac_ct_AS=$AS 17542 # Extract the first word of "as", so it can be a program name with args. 17543set dummy as; ac_word=$2 17544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17545printf %s "checking for $ac_word... " >&6; } 17546if test ${ac_cv_prog_ac_ct_AS+y} 17547then : 17548 printf %s "(cached) " >&6 17549else $as_nop 17550 if test -n "$ac_ct_AS"; then 17551 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 17552else 17553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17554for as_dir in $PATH 17555do 17556 IFS=$as_save_IFS 17557 case $as_dir in #((( 17558 '') as_dir=./ ;; 17559 */) ;; 17560 *) as_dir=$as_dir/ ;; 17561 esac 17562 for ac_exec_ext in '' $ac_executable_extensions; do 17563 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17564 ac_cv_prog_ac_ct_AS="as" 17565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17566 break 2 17567 fi 17568done 17569 done 17570IFS=$as_save_IFS 17571 17572fi 17573fi 17574ac_ct_AS=$ac_cv_prog_ac_ct_AS 17575if test -n "$ac_ct_AS"; then 17576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 17577printf "%s\n" "$ac_ct_AS" >&6; } 17578else 17579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17580printf "%s\n" "no" >&6; } 17581fi 17582 17583 if test "x$ac_ct_AS" = x; then 17584 AS="false" 17585 else 17586 case $cross_compiling:$ac_tool_warned in 17587yes:) 17588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17589printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17590ac_tool_warned=yes ;; 17591esac 17592 AS=$ac_ct_AS 17593 fi 17594else 17595 AS="$ac_cv_prog_AS" 17596fi 17597 17598 if test -n "$ac_tool_prefix"; then 17599 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 17600set dummy ${ac_tool_prefix}dlltool; ac_word=$2 17601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17602printf %s "checking for $ac_word... " >&6; } 17603if test ${ac_cv_prog_DLLTOOL+y} 17604then : 17605 printf %s "(cached) " >&6 17606else $as_nop 17607 if test -n "$DLLTOOL"; then 17608 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 17609else 17610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17611for as_dir in $PATH 17612do 17613 IFS=$as_save_IFS 17614 case $as_dir in #((( 17615 '') as_dir=./ ;; 17616 */) ;; 17617 *) as_dir=$as_dir/ ;; 17618 esac 17619 for ac_exec_ext in '' $ac_executable_extensions; do 17620 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17621 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 17622 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17623 break 2 17624 fi 17625done 17626 done 17627IFS=$as_save_IFS 17628 17629fi 17630fi 17631DLLTOOL=$ac_cv_prog_DLLTOOL 17632if test -n "$DLLTOOL"; then 17633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 17634printf "%s\n" "$DLLTOOL" >&6; } 17635else 17636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17637printf "%s\n" "no" >&6; } 17638fi 17639 17640 17641fi 17642if test -z "$ac_cv_prog_DLLTOOL"; then 17643 ac_ct_DLLTOOL=$DLLTOOL 17644 # Extract the first word of "dlltool", so it can be a program name with args. 17645set dummy dlltool; ac_word=$2 17646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17647printf %s "checking for $ac_word... " >&6; } 17648if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 17649then : 17650 printf %s "(cached) " >&6 17651else $as_nop 17652 if test -n "$ac_ct_DLLTOOL"; then 17653 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 17654else 17655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17656for as_dir in $PATH 17657do 17658 IFS=$as_save_IFS 17659 case $as_dir in #((( 17660 '') as_dir=./ ;; 17661 */) ;; 17662 *) as_dir=$as_dir/ ;; 17663 esac 17664 for ac_exec_ext in '' $ac_executable_extensions; do 17665 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17666 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 17667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17668 break 2 17669 fi 17670done 17671 done 17672IFS=$as_save_IFS 17673 17674fi 17675fi 17676ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 17677if test -n "$ac_ct_DLLTOOL"; then 17678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 17679printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 17680else 17681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17682printf "%s\n" "no" >&6; } 17683fi 17684 17685 if test "x$ac_ct_DLLTOOL" = x; then 17686 DLLTOOL="false" 17687 else 17688 case $cross_compiling:$ac_tool_warned in 17689yes:) 17690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17691printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17692ac_tool_warned=yes ;; 17693esac 17694 DLLTOOL=$ac_ct_DLLTOOL 17695 fi 17696else 17697 DLLTOOL="$ac_cv_prog_DLLTOOL" 17698fi 17699 17700 if test -n "$ac_tool_prefix"; then 17701 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 17702set dummy ${ac_tool_prefix}objdump; ac_word=$2 17703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17704printf %s "checking for $ac_word... " >&6; } 17705if test ${ac_cv_prog_OBJDUMP+y} 17706then : 17707 printf %s "(cached) " >&6 17708else $as_nop 17709 if test -n "$OBJDUMP"; then 17710 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 17711else 17712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17713for as_dir in $PATH 17714do 17715 IFS=$as_save_IFS 17716 case $as_dir in #((( 17717 '') as_dir=./ ;; 17718 */) ;; 17719 *) as_dir=$as_dir/ ;; 17720 esac 17721 for ac_exec_ext in '' $ac_executable_extensions; do 17722 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17723 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 17724 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17725 break 2 17726 fi 17727done 17728 done 17729IFS=$as_save_IFS 17730 17731fi 17732fi 17733OBJDUMP=$ac_cv_prog_OBJDUMP 17734if test -n "$OBJDUMP"; then 17735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 17736printf "%s\n" "$OBJDUMP" >&6; } 17737else 17738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17739printf "%s\n" "no" >&6; } 17740fi 17741 17742 17743fi 17744if test -z "$ac_cv_prog_OBJDUMP"; then 17745 ac_ct_OBJDUMP=$OBJDUMP 17746 # Extract the first word of "objdump", so it can be a program name with args. 17747set dummy objdump; ac_word=$2 17748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17749printf %s "checking for $ac_word... " >&6; } 17750if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 17751then : 17752 printf %s "(cached) " >&6 17753else $as_nop 17754 if test -n "$ac_ct_OBJDUMP"; then 17755 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 17756else 17757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17758for as_dir in $PATH 17759do 17760 IFS=$as_save_IFS 17761 case $as_dir in #((( 17762 '') as_dir=./ ;; 17763 */) ;; 17764 *) as_dir=$as_dir/ ;; 17765 esac 17766 for ac_exec_ext in '' $ac_executable_extensions; do 17767 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17768 ac_cv_prog_ac_ct_OBJDUMP="objdump" 17769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17770 break 2 17771 fi 17772done 17773 done 17774IFS=$as_save_IFS 17775 17776fi 17777fi 17778ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 17779if test -n "$ac_ct_OBJDUMP"; then 17780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 17781printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 17782else 17783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17784printf "%s\n" "no" >&6; } 17785fi 17786 17787 if test "x$ac_ct_OBJDUMP" = x; then 17788 OBJDUMP="false" 17789 else 17790 case $cross_compiling:$ac_tool_warned in 17791yes:) 17792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17793printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17794ac_tool_warned=yes ;; 17795esac 17796 OBJDUMP=$ac_ct_OBJDUMP 17797 fi 17798else 17799 OBJDUMP="$ac_cv_prog_OBJDUMP" 17800fi 17801 17802 ;; 17803esac 17804 17805test -z "$AS" && AS=as 17806 17807 17808 17809 17810 17811test -z "$DLLTOOL" && DLLTOOL=dlltool 17812 17813 17814 17815 17816 17817test -z "$OBJDUMP" && OBJDUMP=objdump 17818 17819 17820 17821 17822 17823 17824 17825 enable_dlopen=no 17826 17827 17828 17829 # Check whether --enable-shared was given. 17830if test ${enable_shared+y} 17831then : 17832 enableval=$enable_shared; p=${PACKAGE-default} 17833 case $enableval in 17834 yes) enable_shared=yes ;; 17835 no) enable_shared=no ;; 17836 *) 17837 enable_shared=no 17838 # Look at the argument we got. We use all the common list separators. 17839 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 17840 for pkg in $enableval; do 17841 IFS=$lt_save_ifs 17842 if test "X$pkg" = "X$p"; then 17843 enable_shared=yes 17844 fi 17845 done 17846 IFS=$lt_save_ifs 17847 ;; 17848 esac 17849else $as_nop 17850 enable_shared=yes 17851fi 17852 17853 17854 17855 17856 17857 17858 17859 17860 17861 17862 17863# Check whether --with-pic was given. 17864if test ${with_pic+y} 17865then : 17866 withval=$with_pic; lt_p=${PACKAGE-default} 17867 case $withval in 17868 yes|no) pic_mode=$withval ;; 17869 *) 17870 pic_mode=default 17871 # Look at the argument we got. We use all the common list separators. 17872 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 17873 for lt_pkg in $withval; do 17874 IFS=$lt_save_ifs 17875 if test "X$lt_pkg" = "X$lt_p"; then 17876 pic_mode=yes 17877 fi 17878 done 17879 IFS=$lt_save_ifs 17880 ;; 17881 esac 17882else $as_nop 17883 pic_mode=default 17884fi 17885 17886 17887 17888 17889 17890 17891 17892 17893 # Check whether --enable-fast-install was given. 17894if test ${enable_fast_install+y} 17895then : 17896 enableval=$enable_fast_install; p=${PACKAGE-default} 17897 case $enableval in 17898 yes) enable_fast_install=yes ;; 17899 no) enable_fast_install=no ;; 17900 *) 17901 enable_fast_install=no 17902 # Look at the argument we got. We use all the common list separators. 17903 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 17904 for pkg in $enableval; do 17905 IFS=$lt_save_ifs 17906 if test "X$pkg" = "X$p"; then 17907 enable_fast_install=yes 17908 fi 17909 done 17910 IFS=$lt_save_ifs 17911 ;; 17912 esac 17913else $as_nop 17914 enable_fast_install=yes 17915fi 17916 17917 17918 17919 17920 17921 17922 17923 17924 shared_archive_member_spec= 17925case $host,$enable_shared in 17926power*-*-aix[5-9]*,yes) 17927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 17928printf %s "checking which variant of shared library versioning to provide... " >&6; } 17929 17930# Check whether --with-aix-soname was given. 17931if test ${with_aix_soname+y} 17932then : 17933 withval=$with_aix_soname; case $withval in 17934 aix|svr4|both) 17935 ;; 17936 *) 17937 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 17938 ;; 17939 esac 17940 lt_cv_with_aix_soname=$with_aix_soname 17941else $as_nop 17942 if test ${lt_cv_with_aix_soname+y} 17943then : 17944 printf %s "(cached) " >&6 17945else $as_nop 17946 lt_cv_with_aix_soname=aix 17947fi 17948 17949 with_aix_soname=$lt_cv_with_aix_soname 17950fi 17951 17952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 17953printf "%s\n" "$with_aix_soname" >&6; } 17954 if test aix != "$with_aix_soname"; then 17955 # For the AIX way of multilib, we name the shared archive member 17956 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 17957 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 17958 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 17959 # the AIX toolchain works better with OBJECT_MODE set (default 32). 17960 if test 64 = "${OBJECT_MODE-32}"; then 17961 shared_archive_member_spec=shr_64 17962 else 17963 shared_archive_member_spec=shr 17964 fi 17965 fi 17966 ;; 17967*) 17968 with_aix_soname=aix 17969 ;; 17970esac 17971 17972 17973 17974 17975 17976 17977 17978 17979 17980 17981# This can be used to rebuild libtool when needed 17982LIBTOOL_DEPS=$ltmain 17983 17984# Always use our own libtool. 17985LIBTOOL='$(SHELL) $(top_builddir)/libtool' 17986 17987 17988 17989 17990 17991 17992 17993 17994 17995 17996 17997 17998 17999 18000 18001 18002 18003 18004 18005 18006 18007 18008 18009 18010 18011 18012 18013 18014 18015 18016test -z "$LN_S" && LN_S="ln -s" 18017 18018 18019 18020 18021 18022 18023 18024 18025 18026 18027 18028 18029 18030 18031if test -n "${ZSH_VERSION+set}"; then 18032 setopt NO_GLOB_SUBST 18033fi 18034 18035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 18036printf %s "checking for objdir... " >&6; } 18037if test ${lt_cv_objdir+y} 18038then : 18039 printf %s "(cached) " >&6 18040else $as_nop 18041 rm -f .libs 2>/dev/null 18042mkdir .libs 2>/dev/null 18043if test -d .libs; then 18044 lt_cv_objdir=.libs 18045else 18046 # MS-DOS does not allow filenames that begin with a dot. 18047 lt_cv_objdir=_libs 18048fi 18049rmdir .libs 2>/dev/null 18050fi 18051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 18052printf "%s\n" "$lt_cv_objdir" >&6; } 18053objdir=$lt_cv_objdir 18054 18055 18056 18057 18058 18059printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 18060 18061 18062 18063 18064case $host_os in 18065aix3*) 18066 # AIX sometimes has problems with the GCC collect2 program. For some 18067 # reason, if we set the COLLECT_NAMES environment variable, the problems 18068 # vanish in a puff of smoke. 18069 if test set != "${COLLECT_NAMES+set}"; then 18070 COLLECT_NAMES= 18071 export COLLECT_NAMES 18072 fi 18073 ;; 18074esac 18075 18076# Global variables: 18077ofile=libtool 18078can_build_shared=yes 18079 18080# All known linkers require a '.a' archive for static linking (except MSVC and 18081# ICC, which need '.lib'). 18082libext=a 18083 18084with_gnu_ld=$lt_cv_prog_gnu_ld 18085 18086old_CC=$CC 18087old_CFLAGS=$CFLAGS 18088 18089# Set sane defaults for various variables 18090test -z "$CC" && CC=cc 18091test -z "$LTCC" && LTCC=$CC 18092test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 18093test -z "$LD" && LD=ld 18094test -z "$ac_objext" && ac_objext=o 18095 18096func_cc_basename $compiler 18097cc_basename=$func_cc_basename_result 18098 18099 18100# Only perform the check for file, if the check method requires it 18101test -z "$MAGIC_CMD" && MAGIC_CMD=file 18102case $deplibs_check_method in 18103file_magic*) 18104 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 18105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 18106printf %s "checking for ${ac_tool_prefix}file... " >&6; } 18107if test ${lt_cv_path_MAGIC_CMD+y} 18108then : 18109 printf %s "(cached) " >&6 18110else $as_nop 18111 case $MAGIC_CMD in 18112[\\/*] | ?:[\\/]*) 18113 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 18114 ;; 18115*) 18116 lt_save_MAGIC_CMD=$MAGIC_CMD 18117 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 18118 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 18119 for ac_dir in $ac_dummy; do 18120 IFS=$lt_save_ifs 18121 test -z "$ac_dir" && ac_dir=. 18122 if test -f "$ac_dir/${ac_tool_prefix}file"; then 18123 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 18124 if test -n "$file_magic_test_file"; then 18125 case $deplibs_check_method in 18126 "file_magic "*) 18127 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 18128 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 18129 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 18130 $EGREP "$file_magic_regex" > /dev/null; then 18131 : 18132 else 18133 cat <<_LT_EOF 1>&2 18134 18135*** Warning: the command libtool uses to detect shared libraries, 18136*** $file_magic_cmd, produces output that libtool cannot recognize. 18137*** The result is that libtool may fail to recognize shared libraries 18138*** as such. This will affect the creation of libtool libraries that 18139*** depend on shared libraries, but programs linked with such libtool 18140*** libraries will work regardless of this problem. Nevertheless, you 18141*** may want to report the problem to your system manager and/or to 18142*** bug-libtool@gnu.org 18143 18144_LT_EOF 18145 fi ;; 18146 esac 18147 fi 18148 break 18149 fi 18150 done 18151 IFS=$lt_save_ifs 18152 MAGIC_CMD=$lt_save_MAGIC_CMD 18153 ;; 18154esac 18155fi 18156 18157MAGIC_CMD=$lt_cv_path_MAGIC_CMD 18158if test -n "$MAGIC_CMD"; then 18159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 18160printf "%s\n" "$MAGIC_CMD" >&6; } 18161else 18162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18163printf "%s\n" "no" >&6; } 18164fi 18165 18166 18167 18168 18169 18170if test -z "$lt_cv_path_MAGIC_CMD"; then 18171 if test -n "$ac_tool_prefix"; then 18172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 18173printf %s "checking for file... " >&6; } 18174if test ${lt_cv_path_MAGIC_CMD+y} 18175then : 18176 printf %s "(cached) " >&6 18177else $as_nop 18178 case $MAGIC_CMD in 18179[\\/*] | ?:[\\/]*) 18180 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 18181 ;; 18182*) 18183 lt_save_MAGIC_CMD=$MAGIC_CMD 18184 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 18185 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 18186 for ac_dir in $ac_dummy; do 18187 IFS=$lt_save_ifs 18188 test -z "$ac_dir" && ac_dir=. 18189 if test -f "$ac_dir/file"; then 18190 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 18191 if test -n "$file_magic_test_file"; then 18192 case $deplibs_check_method in 18193 "file_magic "*) 18194 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 18195 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 18196 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 18197 $EGREP "$file_magic_regex" > /dev/null; then 18198 : 18199 else 18200 cat <<_LT_EOF 1>&2 18201 18202*** Warning: the command libtool uses to detect shared libraries, 18203*** $file_magic_cmd, produces output that libtool cannot recognize. 18204*** The result is that libtool may fail to recognize shared libraries 18205*** as such. This will affect the creation of libtool libraries that 18206*** depend on shared libraries, but programs linked with such libtool 18207*** libraries will work regardless of this problem. Nevertheless, you 18208*** may want to report the problem to your system manager and/or to 18209*** bug-libtool@gnu.org 18210 18211_LT_EOF 18212 fi ;; 18213 esac 18214 fi 18215 break 18216 fi 18217 done 18218 IFS=$lt_save_ifs 18219 MAGIC_CMD=$lt_save_MAGIC_CMD 18220 ;; 18221esac 18222fi 18223 18224MAGIC_CMD=$lt_cv_path_MAGIC_CMD 18225if test -n "$MAGIC_CMD"; then 18226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 18227printf "%s\n" "$MAGIC_CMD" >&6; } 18228else 18229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18230printf "%s\n" "no" >&6; } 18231fi 18232 18233 18234 else 18235 MAGIC_CMD=: 18236 fi 18237fi 18238 18239 fi 18240 ;; 18241esac 18242 18243# Use C for the default configuration in the libtool script 18244 18245lt_save_CC=$CC 18246ac_ext=c 18247ac_cpp='$CPP $CPPFLAGS' 18248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18250ac_compiler_gnu=$ac_cv_c_compiler_gnu 18251 18252 18253# Source file extension for C test sources. 18254ac_ext=c 18255 18256# Object file extension for compiled C test sources. 18257objext=o 18258objext=$objext 18259 18260# Code to be used in simple compile tests 18261lt_simple_compile_test_code="int some_variable = 0;" 18262 18263# Code to be used in simple link tests 18264lt_simple_link_test_code='int main(){return(0);}' 18265 18266 18267 18268 18269 18270 18271 18272# If no C compiler was specified, use CC. 18273LTCC=${LTCC-"$CC"} 18274 18275# If no C compiler flags were specified, use CFLAGS. 18276LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18277 18278# Allow CC to be a program name with arguments. 18279compiler=$CC 18280 18281# Save the default compiler, since it gets overwritten when the other 18282# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 18283compiler_DEFAULT=$CC 18284 18285# save warnings/boilerplate of simple test code 18286ac_outfile=conftest.$ac_objext 18287echo "$lt_simple_compile_test_code" >conftest.$ac_ext 18288eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18289_lt_compiler_boilerplate=`cat conftest.err` 18290$RM conftest* 18291 18292ac_outfile=conftest.$ac_objext 18293echo "$lt_simple_link_test_code" >conftest.$ac_ext 18294eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18295_lt_linker_boilerplate=`cat conftest.err` 18296$RM -r conftest* 18297 18298 18299## CAVEAT EMPTOR: 18300## There is no encapsulation within the following macros, do not change 18301## the running order or otherwise move them around unless you know exactly 18302## what you are doing... 18303if test -n "$compiler"; then 18304 18305lt_prog_compiler_no_builtin_flag= 18306 18307if test yes = "$GCC"; then 18308 case $cc_basename in 18309 nvcc*) 18310 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 18311 *) 18312 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 18313 esac 18314 18315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 18316printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 18317if test ${lt_cv_prog_compiler_rtti_exceptions+y} 18318then : 18319 printf %s "(cached) " >&6 18320else $as_nop 18321 lt_cv_prog_compiler_rtti_exceptions=no 18322 ac_outfile=conftest.$ac_objext 18323 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18324 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 18325 # Insert the option either (1) after the last *FLAGS variable, or 18326 # (2) before a word containing "conftest.", or (3) at the end. 18327 # Note that $ac_compile itself does not contain backslashes and begins 18328 # with a dollar sign (not a hyphen), so the echo should work correctly. 18329 # The option is referenced via a variable to avoid confusing sed. 18330 lt_compile=`echo "$ac_compile" | $SED \ 18331 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18332 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18333 -e 's:$: $lt_compiler_flag:'` 18334 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 18335 (eval "$lt_compile" 2>conftest.err) 18336 ac_status=$? 18337 cat conftest.err >&5 18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18339 if (exit $ac_status) && test -s "$ac_outfile"; then 18340 # The compiler can only warn and ignore the option if not recognized 18341 # So say no if there are warnings other than the usual output. 18342 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 18343 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 18344 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 18345 lt_cv_prog_compiler_rtti_exceptions=yes 18346 fi 18347 fi 18348 $RM conftest* 18349 18350fi 18351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 18352printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 18353 18354if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 18355 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 18356else 18357 : 18358fi 18359 18360fi 18361 18362 18363 18364 18365 18366 18367 lt_prog_compiler_wl= 18368lt_prog_compiler_pic= 18369lt_prog_compiler_static= 18370 18371 18372 if test yes = "$GCC"; then 18373 lt_prog_compiler_wl='-Wl,' 18374 lt_prog_compiler_static='-static' 18375 18376 case $host_os in 18377 aix*) 18378 # All AIX code is PIC. 18379 if test ia64 = "$host_cpu"; then 18380 # AIX 5 now supports IA64 processor 18381 lt_prog_compiler_static='-Bstatic' 18382 fi 18383 lt_prog_compiler_pic='-fPIC' 18384 ;; 18385 18386 amigaos*) 18387 case $host_cpu in 18388 powerpc) 18389 # see comment about AmigaOS4 .so support 18390 lt_prog_compiler_pic='-fPIC' 18391 ;; 18392 m68k) 18393 # FIXME: we need at least 68020 code to build shared libraries, but 18394 # adding the '-m68020' flag to GCC prevents building anything better, 18395 # like '-m68040'. 18396 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 18397 ;; 18398 esac 18399 ;; 18400 18401 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 18402 # PIC is the default for these OSes. 18403 ;; 18404 18405 mingw* | cygwin* | pw32* | os2* | cegcc*) 18406 # This hack is so that the source file can tell whether it is being 18407 # built for inclusion in a dll (and should export symbols for example). 18408 # Although the cygwin gcc ignores -fPIC, still need this for old-style 18409 # (--disable-auto-import) libraries 18410 lt_prog_compiler_pic='-DDLL_EXPORT' 18411 case $host_os in 18412 os2*) 18413 lt_prog_compiler_static='$wl-static' 18414 ;; 18415 esac 18416 ;; 18417 18418 darwin* | rhapsody*) 18419 # PIC is the default on this platform 18420 # Common symbols not allowed in MH_DYLIB files 18421 lt_prog_compiler_pic='-fno-common' 18422 ;; 18423 18424 haiku*) 18425 # PIC is the default for Haiku. 18426 # The "-static" flag exists, but is broken. 18427 lt_prog_compiler_static= 18428 ;; 18429 18430 hpux*) 18431 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 18432 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 18433 # sets the default TLS model and affects inlining. 18434 case $host_cpu in 18435 hppa*64*) 18436 # +Z the default 18437 ;; 18438 *) 18439 lt_prog_compiler_pic='-fPIC' 18440 ;; 18441 esac 18442 ;; 18443 18444 interix[3-9]*) 18445 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 18446 # Instead, we relocate shared libraries at runtime. 18447 ;; 18448 18449 msdosdjgpp*) 18450 # Just because we use GCC doesn't mean we suddenly get shared libraries 18451 # on systems that don't support them. 18452 lt_prog_compiler_can_build_shared=no 18453 enable_shared=no 18454 ;; 18455 18456 *nto* | *qnx*) 18457 # QNX uses GNU C++, but need to define -shared option too, otherwise 18458 # it will coredump. 18459 lt_prog_compiler_pic='-fPIC -shared' 18460 ;; 18461 18462 sysv4*MP*) 18463 if test -d /usr/nec; then 18464 lt_prog_compiler_pic=-Kconform_pic 18465 fi 18466 ;; 18467 18468 *) 18469 lt_prog_compiler_pic='-fPIC' 18470 ;; 18471 esac 18472 18473 case $cc_basename in 18474 nvcc*) # Cuda Compiler Driver 2.2 18475 lt_prog_compiler_wl='-Xlinker ' 18476 if test -n "$lt_prog_compiler_pic"; then 18477 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 18478 fi 18479 ;; 18480 esac 18481 else 18482 # PORTME Check for flag to pass linker flags through the system compiler. 18483 case $host_os in 18484 aix*) 18485 lt_prog_compiler_wl='-Wl,' 18486 if test ia64 = "$host_cpu"; then 18487 # AIX 5 now supports IA64 processor 18488 lt_prog_compiler_static='-Bstatic' 18489 else 18490 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 18491 fi 18492 ;; 18493 18494 darwin* | rhapsody*) 18495 # PIC is the default on this platform 18496 # Common symbols not allowed in MH_DYLIB files 18497 lt_prog_compiler_pic='-fno-common' 18498 case $cc_basename in 18499 nagfor*) 18500 # NAG Fortran compiler 18501 lt_prog_compiler_wl='-Wl,-Wl,,' 18502 lt_prog_compiler_pic='-PIC' 18503 lt_prog_compiler_static='-Bstatic' 18504 ;; 18505 esac 18506 ;; 18507 18508 mingw* | cygwin* | pw32* | os2* | cegcc*) 18509 # This hack is so that the source file can tell whether it is being 18510 # built for inclusion in a dll (and should export symbols for example). 18511 lt_prog_compiler_pic='-DDLL_EXPORT' 18512 case $host_os in 18513 os2*) 18514 lt_prog_compiler_static='$wl-static' 18515 ;; 18516 esac 18517 ;; 18518 18519 hpux9* | hpux10* | hpux11*) 18520 lt_prog_compiler_wl='-Wl,' 18521 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 18522 # not for PA HP-UX. 18523 case $host_cpu in 18524 hppa*64*|ia64*) 18525 # +Z the default 18526 ;; 18527 *) 18528 lt_prog_compiler_pic='+Z' 18529 ;; 18530 esac 18531 # Is there a better lt_prog_compiler_static that works with the bundled CC? 18532 lt_prog_compiler_static='$wl-a ${wl}archive' 18533 ;; 18534 18535 irix5* | irix6* | nonstopux*) 18536 lt_prog_compiler_wl='-Wl,' 18537 # PIC (with -KPIC) is the default. 18538 lt_prog_compiler_static='-non_shared' 18539 ;; 18540 18541 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 18542 case $cc_basename in 18543 # old Intel for x86_64, which still supported -KPIC. 18544 ecc*) 18545 lt_prog_compiler_wl='-Wl,' 18546 lt_prog_compiler_pic='-KPIC' 18547 lt_prog_compiler_static='-static' 18548 ;; 18549 # icc used to be incompatible with GCC. 18550 # ICC 10 doesn't accept -KPIC any more. 18551 icc* | ifort*) 18552 lt_prog_compiler_wl='-Wl,' 18553 lt_prog_compiler_pic='-fPIC' 18554 lt_prog_compiler_static='-static' 18555 ;; 18556 # Lahey Fortran 8.1. 18557 lf95*) 18558 lt_prog_compiler_wl='-Wl,' 18559 lt_prog_compiler_pic='--shared' 18560 lt_prog_compiler_static='--static' 18561 ;; 18562 nagfor*) 18563 # NAG Fortran compiler 18564 lt_prog_compiler_wl='-Wl,-Wl,,' 18565 lt_prog_compiler_pic='-PIC' 18566 lt_prog_compiler_static='-Bstatic' 18567 ;; 18568 tcc*) 18569 # Fabrice Bellard et al's Tiny C Compiler 18570 lt_prog_compiler_wl='-Wl,' 18571 lt_prog_compiler_pic='-fPIC' 18572 lt_prog_compiler_static='-static' 18573 ;; 18574 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 18575 # Portland Group compilers (*not* the Pentium gcc compiler, 18576 # which looks to be a dead project) 18577 lt_prog_compiler_wl='-Wl,' 18578 lt_prog_compiler_pic='-fpic' 18579 lt_prog_compiler_static='-Bstatic' 18580 ;; 18581 ccc*) 18582 lt_prog_compiler_wl='-Wl,' 18583 # All Alpha code is PIC. 18584 lt_prog_compiler_static='-non_shared' 18585 ;; 18586 xl* | bgxl* | bgf* | mpixl*) 18587 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 18588 lt_prog_compiler_wl='-Wl,' 18589 lt_prog_compiler_pic='-qpic' 18590 lt_prog_compiler_static='-qstaticlink' 18591 ;; 18592 *) 18593 case `$CC -V 2>&1 | $SED 5q` in 18594 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 18595 # Sun Fortran 8.3 passes all unrecognized flags to the linker 18596 lt_prog_compiler_pic='-KPIC' 18597 lt_prog_compiler_static='-Bstatic' 18598 lt_prog_compiler_wl='' 18599 ;; 18600 *Sun\ F* | *Sun*Fortran*) 18601 lt_prog_compiler_pic='-KPIC' 18602 lt_prog_compiler_static='-Bstatic' 18603 lt_prog_compiler_wl='-Qoption ld ' 18604 ;; 18605 *Sun\ C*) 18606 # Sun C 5.9 18607 lt_prog_compiler_pic='-KPIC' 18608 lt_prog_compiler_static='-Bstatic' 18609 lt_prog_compiler_wl='-Wl,' 18610 ;; 18611 *Intel*\ [CF]*Compiler*) 18612 lt_prog_compiler_wl='-Wl,' 18613 lt_prog_compiler_pic='-fPIC' 18614 lt_prog_compiler_static='-static' 18615 ;; 18616 *Portland\ Group*) 18617 lt_prog_compiler_wl='-Wl,' 18618 lt_prog_compiler_pic='-fpic' 18619 lt_prog_compiler_static='-Bstatic' 18620 ;; 18621 esac 18622 ;; 18623 esac 18624 ;; 18625 18626 newsos6) 18627 lt_prog_compiler_pic='-KPIC' 18628 lt_prog_compiler_static='-Bstatic' 18629 ;; 18630 18631 *nto* | *qnx*) 18632 # QNX uses GNU C++, but need to define -shared option too, otherwise 18633 # it will coredump. 18634 lt_prog_compiler_pic='-fPIC -shared' 18635 ;; 18636 18637 osf3* | osf4* | osf5*) 18638 lt_prog_compiler_wl='-Wl,' 18639 # All OSF/1 code is PIC. 18640 lt_prog_compiler_static='-non_shared' 18641 ;; 18642 18643 rdos*) 18644 lt_prog_compiler_static='-non_shared' 18645 ;; 18646 18647 solaris*) 18648 lt_prog_compiler_pic='-KPIC' 18649 lt_prog_compiler_static='-Bstatic' 18650 case $cc_basename in 18651 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 18652 lt_prog_compiler_wl='-Qoption ld ';; 18653 *) 18654 lt_prog_compiler_wl='-Wl,';; 18655 esac 18656 ;; 18657 18658 sunos4*) 18659 lt_prog_compiler_wl='-Qoption ld ' 18660 lt_prog_compiler_pic='-PIC' 18661 lt_prog_compiler_static='-Bstatic' 18662 ;; 18663 18664 sysv4 | sysv4.2uw2* | sysv4.3*) 18665 lt_prog_compiler_wl='-Wl,' 18666 lt_prog_compiler_pic='-KPIC' 18667 lt_prog_compiler_static='-Bstatic' 18668 ;; 18669 18670 sysv4*MP*) 18671 if test -d /usr/nec; then 18672 lt_prog_compiler_pic='-Kconform_pic' 18673 lt_prog_compiler_static='-Bstatic' 18674 fi 18675 ;; 18676 18677 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 18678 lt_prog_compiler_wl='-Wl,' 18679 lt_prog_compiler_pic='-KPIC' 18680 lt_prog_compiler_static='-Bstatic' 18681 ;; 18682 18683 unicos*) 18684 lt_prog_compiler_wl='-Wl,' 18685 lt_prog_compiler_can_build_shared=no 18686 ;; 18687 18688 uts4*) 18689 lt_prog_compiler_pic='-pic' 18690 lt_prog_compiler_static='-Bstatic' 18691 ;; 18692 18693 *) 18694 lt_prog_compiler_can_build_shared=no 18695 ;; 18696 esac 18697 fi 18698 18699case $host_os in 18700 # For platforms that do not support PIC, -DPIC is meaningless: 18701 *djgpp*) 18702 lt_prog_compiler_pic= 18703 ;; 18704 *) 18705 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 18706 ;; 18707esac 18708 18709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 18710printf %s "checking for $compiler option to produce PIC... " >&6; } 18711if test ${lt_cv_prog_compiler_pic+y} 18712then : 18713 printf %s "(cached) " >&6 18714else $as_nop 18715 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 18716fi 18717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 18718printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 18719lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 18720 18721# 18722# Check to make sure the PIC flag actually works. 18723# 18724if test -n "$lt_prog_compiler_pic"; then 18725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 18726printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 18727if test ${lt_cv_prog_compiler_pic_works+y} 18728then : 18729 printf %s "(cached) " >&6 18730else $as_nop 18731 lt_cv_prog_compiler_pic_works=no 18732 ac_outfile=conftest.$ac_objext 18733 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18734 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 18735 # Insert the option either (1) after the last *FLAGS variable, or 18736 # (2) before a word containing "conftest.", or (3) at the end. 18737 # Note that $ac_compile itself does not contain backslashes and begins 18738 # with a dollar sign (not a hyphen), so the echo should work correctly. 18739 # The option is referenced via a variable to avoid confusing sed. 18740 lt_compile=`echo "$ac_compile" | $SED \ 18741 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18742 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18743 -e 's:$: $lt_compiler_flag:'` 18744 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 18745 (eval "$lt_compile" 2>conftest.err) 18746 ac_status=$? 18747 cat conftest.err >&5 18748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18749 if (exit $ac_status) && test -s "$ac_outfile"; then 18750 # The compiler can only warn and ignore the option if not recognized 18751 # So say no if there are warnings other than the usual output. 18752 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 18753 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 18754 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 18755 lt_cv_prog_compiler_pic_works=yes 18756 fi 18757 fi 18758 $RM conftest* 18759 18760fi 18761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 18762printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 18763 18764if test yes = "$lt_cv_prog_compiler_pic_works"; then 18765 case $lt_prog_compiler_pic in 18766 "" | " "*) ;; 18767 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 18768 esac 18769else 18770 lt_prog_compiler_pic= 18771 lt_prog_compiler_can_build_shared=no 18772fi 18773 18774fi 18775 18776 18777 18778 18779 18780 18781 18782 18783 18784 18785 18786# 18787# Check to make sure the static flag actually works. 18788# 18789wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 18790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 18791printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 18792if test ${lt_cv_prog_compiler_static_works+y} 18793then : 18794 printf %s "(cached) " >&6 18795else $as_nop 18796 lt_cv_prog_compiler_static_works=no 18797 save_LDFLAGS=$LDFLAGS 18798 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 18799 echo "$lt_simple_link_test_code" > conftest.$ac_ext 18800 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 18801 # The linker can only warn and ignore the option if not recognized 18802 # So say no if there are warnings 18803 if test -s conftest.err; then 18804 # Append any errors to the config.log. 18805 cat conftest.err 1>&5 18806 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 18807 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 18808 if diff conftest.exp conftest.er2 >/dev/null; then 18809 lt_cv_prog_compiler_static_works=yes 18810 fi 18811 else 18812 lt_cv_prog_compiler_static_works=yes 18813 fi 18814 fi 18815 $RM -r conftest* 18816 LDFLAGS=$save_LDFLAGS 18817 18818fi 18819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 18820printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 18821 18822if test yes = "$lt_cv_prog_compiler_static_works"; then 18823 : 18824else 18825 lt_prog_compiler_static= 18826fi 18827 18828 18829 18830 18831 18832 18833 18834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 18835printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 18836if test ${lt_cv_prog_compiler_c_o+y} 18837then : 18838 printf %s "(cached) " >&6 18839else $as_nop 18840 lt_cv_prog_compiler_c_o=no 18841 $RM -r conftest 2>/dev/null 18842 mkdir conftest 18843 cd conftest 18844 mkdir out 18845 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18846 18847 lt_compiler_flag="-o out/conftest2.$ac_objext" 18848 # Insert the option either (1) after the last *FLAGS variable, or 18849 # (2) before a word containing "conftest.", or (3) at the end. 18850 # Note that $ac_compile itself does not contain backslashes and begins 18851 # with a dollar sign (not a hyphen), so the echo should work correctly. 18852 lt_compile=`echo "$ac_compile" | $SED \ 18853 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18854 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18855 -e 's:$: $lt_compiler_flag:'` 18856 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 18857 (eval "$lt_compile" 2>out/conftest.err) 18858 ac_status=$? 18859 cat out/conftest.err >&5 18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18861 if (exit $ac_status) && test -s out/conftest2.$ac_objext 18862 then 18863 # The compiler can only warn and ignore the option if not recognized 18864 # So say no if there are warnings 18865 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 18866 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 18867 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 18868 lt_cv_prog_compiler_c_o=yes 18869 fi 18870 fi 18871 chmod u+w . 2>&5 18872 $RM conftest* 18873 # SGI C++ compiler will create directory out/ii_files/ for 18874 # template instantiation 18875 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 18876 $RM out/* && rmdir out 18877 cd .. 18878 $RM -r conftest 18879 $RM conftest* 18880 18881fi 18882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 18883printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 18884 18885 18886 18887 18888 18889 18890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 18891printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 18892if test ${lt_cv_prog_compiler_c_o+y} 18893then : 18894 printf %s "(cached) " >&6 18895else $as_nop 18896 lt_cv_prog_compiler_c_o=no 18897 $RM -r conftest 2>/dev/null 18898 mkdir conftest 18899 cd conftest 18900 mkdir out 18901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18902 18903 lt_compiler_flag="-o out/conftest2.$ac_objext" 18904 # Insert the option either (1) after the last *FLAGS variable, or 18905 # (2) before a word containing "conftest.", or (3) at the end. 18906 # Note that $ac_compile itself does not contain backslashes and begins 18907 # with a dollar sign (not a hyphen), so the echo should work correctly. 18908 lt_compile=`echo "$ac_compile" | $SED \ 18909 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18910 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18911 -e 's:$: $lt_compiler_flag:'` 18912 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 18913 (eval "$lt_compile" 2>out/conftest.err) 18914 ac_status=$? 18915 cat out/conftest.err >&5 18916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18917 if (exit $ac_status) && test -s out/conftest2.$ac_objext 18918 then 18919 # The compiler can only warn and ignore the option if not recognized 18920 # So say no if there are warnings 18921 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 18922 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 18923 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 18924 lt_cv_prog_compiler_c_o=yes 18925 fi 18926 fi 18927 chmod u+w . 2>&5 18928 $RM conftest* 18929 # SGI C++ compiler will create directory out/ii_files/ for 18930 # template instantiation 18931 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 18932 $RM out/* && rmdir out 18933 cd .. 18934 $RM -r conftest 18935 $RM conftest* 18936 18937fi 18938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 18939printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 18940 18941 18942 18943 18944hard_links=nottested 18945if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 18946 # do not overwrite the value of need_locks provided by the user 18947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 18948printf %s "checking if we can lock with hard links... " >&6; } 18949 hard_links=yes 18950 $RM conftest* 18951 ln conftest.a conftest.b 2>/dev/null && hard_links=no 18952 touch conftest.a 18953 ln conftest.a conftest.b 2>&5 || hard_links=no 18954 ln conftest.a conftest.b 2>/dev/null && hard_links=no 18955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 18956printf "%s\n" "$hard_links" >&6; } 18957 if test no = "$hard_links"; then 18958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 18959printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 18960 need_locks=warn 18961 fi 18962else 18963 need_locks=no 18964fi 18965 18966 18967 18968 18969 18970 18971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 18972printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 18973 18974 runpath_var= 18975 allow_undefined_flag= 18976 always_export_symbols=no 18977 archive_cmds= 18978 archive_expsym_cmds= 18979 compiler_needs_object=no 18980 enable_shared_with_static_runtimes=no 18981 export_dynamic_flag_spec= 18982 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 18983 hardcode_automatic=no 18984 hardcode_direct=no 18985 hardcode_direct_absolute=no 18986 hardcode_libdir_flag_spec= 18987 hardcode_libdir_separator= 18988 hardcode_minus_L=no 18989 hardcode_shlibpath_var=unsupported 18990 inherit_rpath=no 18991 link_all_deplibs=unknown 18992 module_cmds= 18993 module_expsym_cmds= 18994 old_archive_from_new_cmds= 18995 old_archive_from_expsyms_cmds= 18996 thread_safe_flag_spec= 18997 whole_archive_flag_spec= 18998 # include_expsyms should be a list of space-separated symbols to be *always* 18999 # included in the symbol list 19000 include_expsyms= 19001 # exclude_expsyms can be an extended regexp of symbols to exclude 19002 # it will be wrapped by ' (' and ')$', so one must not match beginning or 19003 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 19004 # as well as any symbol that contains 'd'. 19005 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 19006 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 19007 # platforms (ab)use it in PIC code, but their linkers get confused if 19008 # the symbol is explicitly referenced. Since portable code cannot 19009 # rely on this symbol name, it's probably fine to never include it in 19010 # preloaded symbol tables. 19011 # Exclude shared library initialization/finalization symbols. 19012 extract_expsyms_cmds= 19013 19014 case $host_os in 19015 cygwin* | mingw* | pw32* | cegcc*) 19016 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 19017 # When not using gcc, we currently assume that we are using 19018 # Microsoft Visual C++ or Intel C++ Compiler. 19019 if test yes != "$GCC"; then 19020 with_gnu_ld=no 19021 fi 19022 ;; 19023 interix*) 19024 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 19025 with_gnu_ld=yes 19026 ;; 19027 openbsd* | bitrig*) 19028 with_gnu_ld=no 19029 ;; 19030 esac 19031 19032 ld_shlibs=yes 19033 19034 # On some targets, GNU ld is compatible enough with the native linker 19035 # that we're better off using the native interface for both. 19036 lt_use_gnu_ld_interface=no 19037 if test yes = "$with_gnu_ld"; then 19038 case $host_os in 19039 aix*) 19040 # The AIX port of GNU ld has always aspired to compatibility 19041 # with the native linker. However, as the warning in the GNU ld 19042 # block says, versions before 2.19.5* couldn't really create working 19043 # shared libraries, regardless of the interface used. 19044 case `$LD -v 2>&1` in 19045 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 19046 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 19047 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 19048 *) 19049 lt_use_gnu_ld_interface=yes 19050 ;; 19051 esac 19052 ;; 19053 *) 19054 lt_use_gnu_ld_interface=yes 19055 ;; 19056 esac 19057 fi 19058 19059 if test yes = "$lt_use_gnu_ld_interface"; then 19060 # If archive_cmds runs LD, not CC, wlarc should be empty 19061 wlarc='$wl' 19062 19063 # Set some defaults for GNU ld with shared library support. These 19064 # are reset later if shared libraries are not supported. Putting them 19065 # here allows them to be overridden if necessary. 19066 runpath_var=LD_RUN_PATH 19067 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 19068 export_dynamic_flag_spec='$wl--export-dynamic' 19069 # ancient GNU ld didn't support --whole-archive et. al. 19070 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 19071 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 19072 else 19073 whole_archive_flag_spec= 19074 fi 19075 supports_anon_versioning=no 19076 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 19077 *GNU\ gold*) supports_anon_versioning=yes ;; 19078 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 19079 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 19080 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 19081 *\ 2.11.*) ;; # other 2.11 versions 19082 *) supports_anon_versioning=yes ;; 19083 esac 19084 19085 # See if GNU ld supports shared libraries. 19086 case $host_os in 19087 aix[3-9]*) 19088 # On AIX/PPC, the GNU linker is very broken 19089 if test ia64 != "$host_cpu"; then 19090 ld_shlibs=no 19091 cat <<_LT_EOF 1>&2 19092 19093*** Warning: the GNU linker, at least up to release 2.19, is reported 19094*** to be unable to reliably create shared libraries on AIX. 19095*** Therefore, libtool is disabling shared libraries support. If you 19096*** really care for shared libraries, you may want to install binutils 19097*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 19098*** You will then need to restart the configuration process. 19099 19100_LT_EOF 19101 fi 19102 ;; 19103 19104 amigaos*) 19105 case $host_cpu in 19106 powerpc) 19107 # see comment about AmigaOS4 .so support 19108 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19109 archive_expsym_cmds='' 19110 ;; 19111 m68k) 19112 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)' 19113 hardcode_libdir_flag_spec='-L$libdir' 19114 hardcode_minus_L=yes 19115 ;; 19116 esac 19117 ;; 19118 19119 beos*) 19120 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 19121 allow_undefined_flag=unsupported 19122 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 19123 # support --undefined. This deserves some investigation. FIXME 19124 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19125 else 19126 ld_shlibs=no 19127 fi 19128 ;; 19129 19130 cygwin* | mingw* | pw32* | cegcc*) 19131 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 19132 # as there is no search path for DLLs. 19133 hardcode_libdir_flag_spec='-L$libdir' 19134 export_dynamic_flag_spec='$wl--export-all-symbols' 19135 allow_undefined_flag=unsupported 19136 always_export_symbols=no 19137 enable_shared_with_static_runtimes=yes 19138 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' 19139 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 19140 19141 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 19142 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 19143 # If the export-symbols file already is a .def file, use it as 19144 # is; otherwise, prepend EXPORTS... 19145 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 19146 cp $export_symbols $output_objdir/$soname.def; 19147 else 19148 echo EXPORTS > $output_objdir/$soname.def; 19149 cat $export_symbols >> $output_objdir/$soname.def; 19150 fi~ 19151 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 19152 else 19153 ld_shlibs=no 19154 fi 19155 ;; 19156 19157 haiku*) 19158 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19159 link_all_deplibs=yes 19160 ;; 19161 19162 os2*) 19163 hardcode_libdir_flag_spec='-L$libdir' 19164 hardcode_minus_L=yes 19165 allow_undefined_flag=unsupported 19166 shrext_cmds=.dll 19167 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 19168 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 19169 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 19170 $ECHO EXPORTS >> $output_objdir/$libname.def~ 19171 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 19172 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 19173 emximp -o $lib $output_objdir/$libname.def' 19174 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 19175 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 19176 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 19177 $ECHO EXPORTS >> $output_objdir/$libname.def~ 19178 prefix_cmds="$SED"~ 19179 if test EXPORTS = "`$SED 1q $export_symbols`"; then 19180 prefix_cmds="$prefix_cmds -e 1d"; 19181 fi~ 19182 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 19183 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 19184 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 19185 emximp -o $lib $output_objdir/$libname.def' 19186 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 19187 enable_shared_with_static_runtimes=yes 19188 file_list_spec='@' 19189 ;; 19190 19191 interix[3-9]*) 19192 hardcode_direct=no 19193 hardcode_shlibpath_var=no 19194 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 19195 export_dynamic_flag_spec='$wl-E' 19196 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 19197 # Instead, shared libraries are loaded at an image base (0x10000000 by 19198 # default) and relocated if they conflict, which is a slow very memory 19199 # consuming and fragmenting process. To avoid this, we pick a random, 19200 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 19201 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 19202 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 19203 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' 19204 ;; 19205 19206 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 19207 tmp_diet=no 19208 if test linux-dietlibc = "$host_os"; then 19209 case $cc_basename in 19210 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 19211 esac 19212 fi 19213 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 19214 && test no = "$tmp_diet" 19215 then 19216 tmp_addflag=' $pic_flag' 19217 tmp_sharedflag='-shared' 19218 case $cc_basename,$host_cpu in 19219 pgcc*) # Portland Group C compiler 19220 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' 19221 tmp_addflag=' $pic_flag' 19222 ;; 19223 pgf77* | pgf90* | pgf95* | pgfortran*) 19224 # Portland Group f77 and f90 compilers 19225 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' 19226 tmp_addflag=' $pic_flag -Mnomain' ;; 19227 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 19228 tmp_addflag=' -i_dynamic' ;; 19229 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 19230 tmp_addflag=' -i_dynamic -nofor_main' ;; 19231 ifc* | ifort*) # Intel Fortran compiler 19232 tmp_addflag=' -nofor_main' ;; 19233 lf95*) # Lahey Fortran 8.1 19234 whole_archive_flag_spec= 19235 tmp_sharedflag='--shared' ;; 19236 nagfor*) # NAGFOR 5.3 19237 tmp_sharedflag='-Wl,-shared' ;; 19238 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 19239 tmp_sharedflag='-qmkshrobj' 19240 tmp_addflag= ;; 19241 nvcc*) # Cuda Compiler Driver 2.2 19242 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' 19243 compiler_needs_object=yes 19244 ;; 19245 esac 19246 case `$CC -V 2>&1 | $SED 5q` in 19247 *Sun\ C*) # Sun C 5.9 19248 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' 19249 compiler_needs_object=yes 19250 tmp_sharedflag='-G' ;; 19251 *Sun\ F*) # Sun Fortran 8.3 19252 tmp_sharedflag='-G' ;; 19253 esac 19254 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19255 19256 if test yes = "$supports_anon_versioning"; then 19257 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 19258 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 19259 echo "local: *; };" >> $output_objdir/$libname.ver~ 19260 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 19261 fi 19262 19263 case $cc_basename in 19264 tcc*) 19265 export_dynamic_flag_spec='-rdynamic' 19266 ;; 19267 xlf* | bgf* | bgxlf* | mpixlf*) 19268 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 19269 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 19270 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 19271 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 19272 if test yes = "$supports_anon_versioning"; then 19273 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 19274 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 19275 echo "local: *; };" >> $output_objdir/$libname.ver~ 19276 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 19277 fi 19278 ;; 19279 esac 19280 else 19281 ld_shlibs=no 19282 fi 19283 ;; 19284 19285 netbsd*) 19286 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 19287 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 19288 wlarc= 19289 else 19290 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19291 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 19292 fi 19293 ;; 19294 19295 solaris*) 19296 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 19297 ld_shlibs=no 19298 cat <<_LT_EOF 1>&2 19299 19300*** Warning: The releases 2.8.* of the GNU linker cannot reliably 19301*** create shared libraries on Solaris systems. Therefore, libtool 19302*** is disabling shared libraries support. We urge you to upgrade GNU 19303*** binutils to release 2.9.1 or newer. Another option is to modify 19304*** your PATH or compiler configuration so that the native linker is 19305*** used, and then restart. 19306 19307_LT_EOF 19308 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 19309 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19310 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 19311 else 19312 ld_shlibs=no 19313 fi 19314 ;; 19315 19316 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 19317 case `$LD -v 2>&1` in 19318 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 19319 ld_shlibs=no 19320 cat <<_LT_EOF 1>&2 19321 19322*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 19323*** reliably create shared libraries on SCO systems. Therefore, libtool 19324*** is disabling shared libraries support. We urge you to upgrade GNU 19325*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 19326*** your PATH or compiler configuration so that the native linker is 19327*** used, and then restart. 19328 19329_LT_EOF 19330 ;; 19331 *) 19332 # For security reasons, it is highly recommended that you always 19333 # use absolute paths for naming shared libraries, and exclude the 19334 # DT_RUNPATH tag from executables and libraries. But doing so 19335 # requires that you compile everything twice, which is a pain. 19336 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 19337 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 19338 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19339 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 19340 else 19341 ld_shlibs=no 19342 fi 19343 ;; 19344 esac 19345 ;; 19346 19347 sunos4*) 19348 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 19349 wlarc= 19350 hardcode_direct=yes 19351 hardcode_shlibpath_var=no 19352 ;; 19353 19354 *) 19355 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 19356 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19357 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 19358 else 19359 ld_shlibs=no 19360 fi 19361 ;; 19362 esac 19363 19364 if test no = "$ld_shlibs"; then 19365 runpath_var= 19366 hardcode_libdir_flag_spec= 19367 export_dynamic_flag_spec= 19368 whole_archive_flag_spec= 19369 fi 19370 else 19371 # PORTME fill in a description of your system's linker (not GNU ld) 19372 case $host_os in 19373 aix3*) 19374 allow_undefined_flag=unsupported 19375 always_export_symbols=yes 19376 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' 19377 # Note: this linker hardcodes the directories in LIBPATH if there 19378 # are no directories specified by -L. 19379 hardcode_minus_L=yes 19380 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 19381 # Neither direct hardcoding nor static linking is supported with a 19382 # broken collect2. 19383 hardcode_direct=unsupported 19384 fi 19385 ;; 19386 19387 aix[4-9]*) 19388 if test ia64 = "$host_cpu"; then 19389 # On IA64, the linker does run time linking by default, so we don't 19390 # have to do anything special. 19391 aix_use_runtimelinking=no 19392 exp_sym_flag='-Bexport' 19393 no_entry_flag= 19394 else 19395 # If we're using GNU nm, then we don't want the "-C" option. 19396 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 19397 # Without the "-l" option, or with the "-B" option, AIX nm treats 19398 # weak defined symbols like other global defined symbols, whereas 19399 # GNU nm marks them as "W". 19400 # While the 'weak' keyword is ignored in the Export File, we need 19401 # it in the Import File for the 'aix-soname' feature, so we have 19402 # to replace the "-B" option with "-P" for AIX nm. 19403 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 19404 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' 19405 else 19406 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' 19407 fi 19408 aix_use_runtimelinking=no 19409 19410 # Test if we are trying to use run time linking or normal 19411 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 19412 # have runtime linking enabled, and use it for executables. 19413 # For shared libraries, we enable/disable runtime linking 19414 # depending on the kind of the shared library created - 19415 # when "with_aix_soname,aix_use_runtimelinking" is: 19416 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 19417 # "aix,yes" lib.so shared, rtl:yes, for executables 19418 # lib.a static archive 19419 # "both,no" lib.so.V(shr.o) shared, rtl:yes 19420 # lib.a(lib.so.V) shared, rtl:no, for executables 19421 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 19422 # lib.a(lib.so.V) shared, rtl:no 19423 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 19424 # lib.a static archive 19425 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 19426 for ld_flag in $LDFLAGS; do 19427 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 19428 aix_use_runtimelinking=yes 19429 break 19430 fi 19431 done 19432 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 19433 # With aix-soname=svr4, we create the lib.so.V shared archives only, 19434 # so we don't have lib.a shared libs to link our executables. 19435 # We have to force runtime linking in this case. 19436 aix_use_runtimelinking=yes 19437 LDFLAGS="$LDFLAGS -Wl,-brtl" 19438 fi 19439 ;; 19440 esac 19441 19442 exp_sym_flag='-bexport' 19443 no_entry_flag='-bnoentry' 19444 fi 19445 19446 # When large executables or shared objects are built, AIX ld can 19447 # have problems creating the table of contents. If linking a library 19448 # or program results in "error TOC overflow" add -mminimal-toc to 19449 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 19450 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 19451 19452 archive_cmds='' 19453 hardcode_direct=yes 19454 hardcode_direct_absolute=yes 19455 hardcode_libdir_separator=':' 19456 link_all_deplibs=yes 19457 file_list_spec='$wl-f,' 19458 case $with_aix_soname,$aix_use_runtimelinking in 19459 aix,*) ;; # traditional, no import file 19460 svr4,* | *,yes) # use import file 19461 # The Import File defines what to hardcode. 19462 hardcode_direct=no 19463 hardcode_direct_absolute=no 19464 ;; 19465 esac 19466 19467 if test yes = "$GCC"; then 19468 case $host_os in aix4.[012]|aix4.[012].*) 19469 # We only want to do this on AIX 4.2 and lower, the check 19470 # below for broken collect2 doesn't work under 4.3+ 19471 collect2name=`$CC -print-prog-name=collect2` 19472 if test -f "$collect2name" && 19473 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 19474 then 19475 # We have reworked collect2 19476 : 19477 else 19478 # We have old collect2 19479 hardcode_direct=unsupported 19480 # It fails to find uninstalled libraries when the uninstalled 19481 # path is not listed in the libpath. Setting hardcode_minus_L 19482 # to unsupported forces relinking 19483 hardcode_minus_L=yes 19484 hardcode_libdir_flag_spec='-L$libdir' 19485 hardcode_libdir_separator= 19486 fi 19487 ;; 19488 esac 19489 shared_flag='-shared' 19490 if test yes = "$aix_use_runtimelinking"; then 19491 shared_flag="$shared_flag "'$wl-G' 19492 fi 19493 # Need to ensure runtime linking is disabled for the traditional 19494 # shared library, or the linker may eventually find shared libraries 19495 # /with/ Import File - we do not want to mix them. 19496 shared_flag_aix='-shared' 19497 shared_flag_svr4='-shared $wl-G' 19498 else 19499 # not using gcc 19500 if test ia64 = "$host_cpu"; then 19501 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 19502 # chokes on -Wl,-G. The following line is correct: 19503 shared_flag='-G' 19504 else 19505 if test yes = "$aix_use_runtimelinking"; then 19506 shared_flag='$wl-G' 19507 else 19508 shared_flag='$wl-bM:SRE' 19509 fi 19510 shared_flag_aix='$wl-bM:SRE' 19511 shared_flag_svr4='$wl-G' 19512 fi 19513 fi 19514 19515 export_dynamic_flag_spec='$wl-bexpall' 19516 # It seems that -bexpall does not export symbols beginning with 19517 # underscore (_), so it is better to generate a list of symbols to export. 19518 always_export_symbols=yes 19519 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 19520 # Warning - without using the other runtime loading flags (-brtl), 19521 # -berok will link without error, but may produce a broken library. 19522 allow_undefined_flag='-berok' 19523 # Determine the default libpath from the value encoded in an 19524 # empty executable. 19525 if test set = "${lt_cv_aix_libpath+set}"; then 19526 aix_libpath=$lt_cv_aix_libpath 19527else 19528 if test ${lt_cv_aix_libpath_+y} 19529then : 19530 printf %s "(cached) " >&6 19531else $as_nop 19532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19533/* end confdefs.h. */ 19534 19535int 19536main (void) 19537{ 19538 19539 ; 19540 return 0; 19541} 19542_ACEOF 19543if ac_fn_c_try_link "$LINENO" 19544then : 19545 19546 lt_aix_libpath_sed=' 19547 /Import File Strings/,/^$/ { 19548 /^0/ { 19549 s/^0 *\([^ ]*\) *$/\1/ 19550 p 19551 } 19552 }' 19553 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 19554 # Check for a 64-bit object if we didn't find anything. 19555 if test -z "$lt_cv_aix_libpath_"; then 19556 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 19557 fi 19558fi 19559rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19560 conftest$ac_exeext conftest.$ac_ext 19561 if test -z "$lt_cv_aix_libpath_"; then 19562 lt_cv_aix_libpath_=/usr/lib:/lib 19563 fi 19564 19565fi 19566 19567 aix_libpath=$lt_cv_aix_libpath_ 19568fi 19569 19570 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 19571 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 19572 else 19573 if test ia64 = "$host_cpu"; then 19574 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 19575 allow_undefined_flag="-z nodefs" 19576 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" 19577 else 19578 # Determine the default libpath from the value encoded in an 19579 # empty executable. 19580 if test set = "${lt_cv_aix_libpath+set}"; then 19581 aix_libpath=$lt_cv_aix_libpath 19582else 19583 if test ${lt_cv_aix_libpath_+y} 19584then : 19585 printf %s "(cached) " >&6 19586else $as_nop 19587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19588/* end confdefs.h. */ 19589 19590int 19591main (void) 19592{ 19593 19594 ; 19595 return 0; 19596} 19597_ACEOF 19598if ac_fn_c_try_link "$LINENO" 19599then : 19600 19601 lt_aix_libpath_sed=' 19602 /Import File Strings/,/^$/ { 19603 /^0/ { 19604 s/^0 *\([^ ]*\) *$/\1/ 19605 p 19606 } 19607 }' 19608 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 19609 # Check for a 64-bit object if we didn't find anything. 19610 if test -z "$lt_cv_aix_libpath_"; then 19611 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 19612 fi 19613fi 19614rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19615 conftest$ac_exeext conftest.$ac_ext 19616 if test -z "$lt_cv_aix_libpath_"; then 19617 lt_cv_aix_libpath_=/usr/lib:/lib 19618 fi 19619 19620fi 19621 19622 aix_libpath=$lt_cv_aix_libpath_ 19623fi 19624 19625 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 19626 # Warning - without using the other run time loading flags, 19627 # -berok will link without error, but may produce a broken library. 19628 no_undefined_flag=' $wl-bernotok' 19629 allow_undefined_flag=' $wl-berok' 19630 if test yes = "$with_gnu_ld"; then 19631 # We only use this code for GNU lds that support --whole-archive. 19632 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 19633 else 19634 # Exported symbols can be pulled into shared objects from archives 19635 whole_archive_flag_spec='$convenience' 19636 fi 19637 archive_cmds_need_lc=yes 19638 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 19639 # -brtl affects multiple linker settings, -berok does not and is overridden later 19640 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 19641 if test svr4 != "$with_aix_soname"; then 19642 # This is similar to how AIX traditionally builds its shared libraries. 19643 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' 19644 fi 19645 if test aix != "$with_aix_soname"; then 19646 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' 19647 else 19648 # used by -dlpreopen to get the symbols 19649 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 19650 fi 19651 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 19652 fi 19653 fi 19654 ;; 19655 19656 amigaos*) 19657 case $host_cpu in 19658 powerpc) 19659 # see comment about AmigaOS4 .so support 19660 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19661 archive_expsym_cmds='' 19662 ;; 19663 m68k) 19664 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)' 19665 hardcode_libdir_flag_spec='-L$libdir' 19666 hardcode_minus_L=yes 19667 ;; 19668 esac 19669 ;; 19670 19671 bsdi[45]*) 19672 export_dynamic_flag_spec=-rdynamic 19673 ;; 19674 19675 cygwin* | mingw* | pw32* | cegcc*) 19676 # When not using gcc, we currently assume that we are using 19677 # Microsoft Visual C++ or Intel C++ Compiler. 19678 # hardcode_libdir_flag_spec is actually meaningless, as there is 19679 # no search path for DLLs. 19680 case $cc_basename in 19681 cl* | icl*) 19682 # Native MSVC or ICC 19683 hardcode_libdir_flag_spec=' ' 19684 allow_undefined_flag=unsupported 19685 always_export_symbols=yes 19686 file_list_spec='@' 19687 # Tell ltmain to make .lib files, not .a files. 19688 libext=lib 19689 # Tell ltmain to make .dll files, not .so files. 19690 shrext_cmds=.dll 19691 # FIXME: Setting linknames here is a bad hack. 19692 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 19693 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 19694 cp "$export_symbols" "$output_objdir/$soname.def"; 19695 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 19696 else 19697 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 19698 fi~ 19699 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 19700 linknames=' 19701 # The linker will not automatically build a static lib if we build a DLL. 19702 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 19703 enable_shared_with_static_runtimes=yes 19704 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 19705 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 19706 # Don't use ranlib 19707 old_postinstall_cmds='chmod 644 $oldlib' 19708 postlink_cmds='lt_outputfile="@OUTPUT@"~ 19709 lt_tool_outputfile="@TOOL_OUTPUT@"~ 19710 case $lt_outputfile in 19711 *.exe|*.EXE) ;; 19712 *) 19713 lt_outputfile=$lt_outputfile.exe 19714 lt_tool_outputfile=$lt_tool_outputfile.exe 19715 ;; 19716 esac~ 19717 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 19718 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 19719 $RM "$lt_outputfile.manifest"; 19720 fi' 19721 ;; 19722 *) 19723 # Assume MSVC and ICC wrapper 19724 hardcode_libdir_flag_spec=' ' 19725 allow_undefined_flag=unsupported 19726 # Tell ltmain to make .lib files, not .a files. 19727 libext=lib 19728 # Tell ltmain to make .dll files, not .so files. 19729 shrext_cmds=.dll 19730 # FIXME: Setting linknames here is a bad hack. 19731 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 19732 # The linker will automatically build a .lib file if we build a DLL. 19733 old_archive_from_new_cmds='true' 19734 # FIXME: Should let the user specify the lib program. 19735 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 19736 enable_shared_with_static_runtimes=yes 19737 ;; 19738 esac 19739 ;; 19740 19741 darwin* | rhapsody*) 19742 19743 19744 archive_cmds_need_lc=no 19745 hardcode_direct=no 19746 hardcode_automatic=yes 19747 hardcode_shlibpath_var=unsupported 19748 if test yes = "$lt_cv_ld_force_load"; then 19749 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\"`' 19750 19751 else 19752 whole_archive_flag_spec='' 19753 fi 19754 link_all_deplibs=yes 19755 allow_undefined_flag=$_lt_dar_allow_undefined 19756 case $cc_basename in 19757 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 19758 *) _lt_dar_can_shared=$GCC ;; 19759 esac 19760 if test yes = "$_lt_dar_can_shared"; then 19761 output_verbose_link_cmd=func_echo_all 19762 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 19763 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 19764 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" 19765 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" 19766 19767 else 19768 ld_shlibs=no 19769 fi 19770 19771 ;; 19772 19773 dgux*) 19774 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19775 hardcode_libdir_flag_spec='-L$libdir' 19776 hardcode_shlibpath_var=no 19777 ;; 19778 19779 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 19780 # support. Future versions do this automatically, but an explicit c++rt0.o 19781 # does not break anything, and helps significantly (at the cost of a little 19782 # extra space). 19783 freebsd2.2*) 19784 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 19785 hardcode_libdir_flag_spec='-R$libdir' 19786 hardcode_direct=yes 19787 hardcode_shlibpath_var=no 19788 ;; 19789 19790 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 19791 freebsd2.*) 19792 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 19793 hardcode_direct=yes 19794 hardcode_minus_L=yes 19795 hardcode_shlibpath_var=no 19796 ;; 19797 19798 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 19799 freebsd* | dragonfly* | midnightbsd*) 19800 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 19801 hardcode_libdir_flag_spec='-R$libdir' 19802 hardcode_direct=yes 19803 hardcode_shlibpath_var=no 19804 ;; 19805 19806 hpux9*) 19807 if test yes = "$GCC"; then 19808 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' 19809 else 19810 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' 19811 fi 19812 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 19813 hardcode_libdir_separator=: 19814 hardcode_direct=yes 19815 19816 # hardcode_minus_L: Not really in the search PATH, 19817 # but as the default location of the library. 19818 hardcode_minus_L=yes 19819 export_dynamic_flag_spec='$wl-E' 19820 ;; 19821 19822 hpux10*) 19823 if test yes,no = "$GCC,$with_gnu_ld"; then 19824 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 19825 else 19826 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 19827 fi 19828 if test no = "$with_gnu_ld"; then 19829 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 19830 hardcode_libdir_separator=: 19831 hardcode_direct=yes 19832 hardcode_direct_absolute=yes 19833 export_dynamic_flag_spec='$wl-E' 19834 # hardcode_minus_L: Not really in the search PATH, 19835 # but as the default location of the library. 19836 hardcode_minus_L=yes 19837 fi 19838 ;; 19839 19840 hpux11*) 19841 if test yes,no = "$GCC,$with_gnu_ld"; then 19842 case $host_cpu in 19843 hppa*64*) 19844 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 19845 ;; 19846 ia64*) 19847 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 19848 ;; 19849 *) 19850 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 19851 ;; 19852 esac 19853 else 19854 case $host_cpu in 19855 hppa*64*) 19856 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 19857 ;; 19858 ia64*) 19859 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 19860 ;; 19861 *) 19862 19863 # Older versions of the 11.00 compiler do not understand -b yet 19864 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 19865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 19866printf %s "checking if $CC understands -b... " >&6; } 19867if test ${lt_cv_prog_compiler__b+y} 19868then : 19869 printf %s "(cached) " >&6 19870else $as_nop 19871 lt_cv_prog_compiler__b=no 19872 save_LDFLAGS=$LDFLAGS 19873 LDFLAGS="$LDFLAGS -b" 19874 echo "$lt_simple_link_test_code" > conftest.$ac_ext 19875 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 19876 # The linker can only warn and ignore the option if not recognized 19877 # So say no if there are warnings 19878 if test -s conftest.err; then 19879 # Append any errors to the config.log. 19880 cat conftest.err 1>&5 19881 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 19882 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19883 if diff conftest.exp conftest.er2 >/dev/null; then 19884 lt_cv_prog_compiler__b=yes 19885 fi 19886 else 19887 lt_cv_prog_compiler__b=yes 19888 fi 19889 fi 19890 $RM -r conftest* 19891 LDFLAGS=$save_LDFLAGS 19892 19893fi 19894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 19895printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 19896 19897if test yes = "$lt_cv_prog_compiler__b"; then 19898 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 19899else 19900 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 19901fi 19902 19903 ;; 19904 esac 19905 fi 19906 if test no = "$with_gnu_ld"; then 19907 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 19908 hardcode_libdir_separator=: 19909 19910 case $host_cpu in 19911 hppa*64*|ia64*) 19912 hardcode_direct=no 19913 hardcode_shlibpath_var=no 19914 ;; 19915 *) 19916 hardcode_direct=yes 19917 hardcode_direct_absolute=yes 19918 export_dynamic_flag_spec='$wl-E' 19919 19920 # hardcode_minus_L: Not really in the search PATH, 19921 # but as the default location of the library. 19922 hardcode_minus_L=yes 19923 ;; 19924 esac 19925 fi 19926 ;; 19927 19928 irix5* | irix6* | nonstopux*) 19929 if test yes = "$GCC"; then 19930 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' 19931 # Try to use the -exported_symbol ld option, if it does not 19932 # work, assume that -exports_file does not work either and 19933 # implicitly export all symbols. 19934 # This should be the same for all languages, so no per-tag cache variable. 19935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 19936printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 19937if test ${lt_cv_irix_exported_symbol+y} 19938then : 19939 printf %s "(cached) " >&6 19940else $as_nop 19941 save_LDFLAGS=$LDFLAGS 19942 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 19943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19944/* end confdefs.h. */ 19945int foo (void) { return 0; } 19946_ACEOF 19947if ac_fn_c_try_link "$LINENO" 19948then : 19949 lt_cv_irix_exported_symbol=yes 19950else $as_nop 19951 lt_cv_irix_exported_symbol=no 19952fi 19953rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19954 conftest$ac_exeext conftest.$ac_ext 19955 LDFLAGS=$save_LDFLAGS 19956fi 19957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 19958printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 19959 if test yes = "$lt_cv_irix_exported_symbol"; then 19960 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' 19961 fi 19962 else 19963 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' 19964 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' 19965 fi 19966 archive_cmds_need_lc='no' 19967 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 19968 hardcode_libdir_separator=: 19969 inherit_rpath=yes 19970 link_all_deplibs=yes 19971 ;; 19972 19973 linux*) 19974 case $cc_basename in 19975 tcc*) 19976 # Fabrice Bellard et al's Tiny C Compiler 19977 ld_shlibs=yes 19978 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 19979 ;; 19980 esac 19981 ;; 19982 19983 netbsd*) 19984 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 19985 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 19986 else 19987 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 19988 fi 19989 hardcode_libdir_flag_spec='-R$libdir' 19990 hardcode_direct=yes 19991 hardcode_shlibpath_var=no 19992 ;; 19993 19994 newsos6) 19995 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19996 hardcode_direct=yes 19997 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 19998 hardcode_libdir_separator=: 19999 hardcode_shlibpath_var=no 20000 ;; 20001 20002 *nto* | *qnx*) 20003 ;; 20004 20005 openbsd* | bitrig*) 20006 if test -f /usr/libexec/ld.so; then 20007 hardcode_direct=yes 20008 hardcode_shlibpath_var=no 20009 hardcode_direct_absolute=yes 20010 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 20011 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 20012 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 20013 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 20014 export_dynamic_flag_spec='$wl-E' 20015 else 20016 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 20017 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 20018 fi 20019 else 20020 ld_shlibs=no 20021 fi 20022 ;; 20023 20024 os2*) 20025 hardcode_libdir_flag_spec='-L$libdir' 20026 hardcode_minus_L=yes 20027 allow_undefined_flag=unsupported 20028 shrext_cmds=.dll 20029 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 20030 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 20031 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 20032 $ECHO EXPORTS >> $output_objdir/$libname.def~ 20033 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 20034 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 20035 emximp -o $lib $output_objdir/$libname.def' 20036 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 20037 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 20038 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 20039 $ECHO EXPORTS >> $output_objdir/$libname.def~ 20040 prefix_cmds="$SED"~ 20041 if test EXPORTS = "`$SED 1q $export_symbols`"; then 20042 prefix_cmds="$prefix_cmds -e 1d"; 20043 fi~ 20044 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 20045 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 20046 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 20047 emximp -o $lib $output_objdir/$libname.def' 20048 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 20049 enable_shared_with_static_runtimes=yes 20050 file_list_spec='@' 20051 ;; 20052 20053 osf3*) 20054 if test yes = "$GCC"; then 20055 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 20056 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' 20057 else 20058 allow_undefined_flag=' -expect_unresolved \*' 20059 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' 20060 fi 20061 archive_cmds_need_lc='no' 20062 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 20063 hardcode_libdir_separator=: 20064 ;; 20065 20066 osf4* | osf5*) # as osf3* with the addition of -msym flag 20067 if test yes = "$GCC"; then 20068 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 20069 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' 20070 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 20071 else 20072 allow_undefined_flag=' -expect_unresolved \*' 20073 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' 20074 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~ 20075 $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' 20076 20077 # Both c and cxx compiler support -rpath directly 20078 hardcode_libdir_flag_spec='-rpath $libdir' 20079 fi 20080 archive_cmds_need_lc='no' 20081 hardcode_libdir_separator=: 20082 ;; 20083 20084 solaris*) 20085 no_undefined_flag=' -z defs' 20086 if test yes = "$GCC"; then 20087 wlarc='$wl' 20088 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 20089 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20090 $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' 20091 else 20092 case `$CC -V 2>&1` in 20093 *"Compilers 5.0"*) 20094 wlarc='' 20095 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 20096 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20097 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 20098 ;; 20099 *) 20100 wlarc='$wl' 20101 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 20102 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20103 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 20104 ;; 20105 esac 20106 fi 20107 hardcode_libdir_flag_spec='-R$libdir' 20108 hardcode_shlibpath_var=no 20109 case $host_os in 20110 solaris2.[0-5] | solaris2.[0-5].*) ;; 20111 *) 20112 # The compiler driver will combine and reorder linker options, 20113 # but understands '-z linker_flag'. GCC discards it without '$wl', 20114 # but is careful enough not to reorder. 20115 # Supported since Solaris 2.6 (maybe 2.5.1?) 20116 if test yes = "$GCC"; then 20117 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 20118 else 20119 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 20120 fi 20121 ;; 20122 esac 20123 link_all_deplibs=yes 20124 ;; 20125 20126 sunos4*) 20127 if test sequent = "$host_vendor"; then 20128 # Use $CC to link under sequent, because it throws in some extra .o 20129 # files that make .init and .fini sections work. 20130 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 20131 else 20132 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 20133 fi 20134 hardcode_libdir_flag_spec='-L$libdir' 20135 hardcode_direct=yes 20136 hardcode_minus_L=yes 20137 hardcode_shlibpath_var=no 20138 ;; 20139 20140 sysv4) 20141 case $host_vendor in 20142 sni) 20143 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20144 hardcode_direct=yes # is this really true??? 20145 ;; 20146 siemens) 20147 ## LD is ld it makes a PLAMLIB 20148 ## CC just makes a GrossModule. 20149 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 20150 reload_cmds='$CC -r -o $output$reload_objs' 20151 hardcode_direct=no 20152 ;; 20153 motorola) 20154 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20155 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 20156 ;; 20157 esac 20158 runpath_var='LD_RUN_PATH' 20159 hardcode_shlibpath_var=no 20160 ;; 20161 20162 sysv4.3*) 20163 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20164 hardcode_shlibpath_var=no 20165 export_dynamic_flag_spec='-Bexport' 20166 ;; 20167 20168 sysv4*MP*) 20169 if test -d /usr/nec; then 20170 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20171 hardcode_shlibpath_var=no 20172 runpath_var=LD_RUN_PATH 20173 hardcode_runpath_var=yes 20174 ld_shlibs=yes 20175 fi 20176 ;; 20177 20178 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 20179 no_undefined_flag='$wl-z,text' 20180 archive_cmds_need_lc=no 20181 hardcode_shlibpath_var=no 20182 runpath_var='LD_RUN_PATH' 20183 20184 if test yes = "$GCC"; then 20185 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20186 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20187 else 20188 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20189 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20190 fi 20191 ;; 20192 20193 sysv5* | sco3.2v5* | sco5v6*) 20194 # Note: We CANNOT use -z defs as we might desire, because we do not 20195 # link with -lc, and that would cause any symbols used from libc to 20196 # always be unresolved, which means just about no library would 20197 # ever link correctly. If we're not using GNU ld we use -z text 20198 # though, which does catch some bad symbols but isn't as heavy-handed 20199 # as -z defs. 20200 no_undefined_flag='$wl-z,text' 20201 allow_undefined_flag='$wl-z,nodefs' 20202 archive_cmds_need_lc=no 20203 hardcode_shlibpath_var=no 20204 hardcode_libdir_flag_spec='$wl-R,$libdir' 20205 hardcode_libdir_separator=':' 20206 link_all_deplibs=yes 20207 export_dynamic_flag_spec='$wl-Bexport' 20208 runpath_var='LD_RUN_PATH' 20209 20210 if test yes = "$GCC"; then 20211 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20212 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20213 else 20214 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20215 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20216 fi 20217 ;; 20218 20219 uts4*) 20220 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20221 hardcode_libdir_flag_spec='-L$libdir' 20222 hardcode_shlibpath_var=no 20223 ;; 20224 20225 *) 20226 ld_shlibs=no 20227 ;; 20228 esac 20229 20230 if test sni = "$host_vendor"; then 20231 case $host in 20232 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 20233 export_dynamic_flag_spec='$wl-Blargedynsym' 20234 ;; 20235 esac 20236 fi 20237 fi 20238 20239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 20240printf "%s\n" "$ld_shlibs" >&6; } 20241test no = "$ld_shlibs" && can_build_shared=no 20242 20243with_gnu_ld=$with_gnu_ld 20244 20245 20246 20247 20248 20249 20250 20251 20252 20253 20254 20255 20256 20257 20258 20259# 20260# Do we need to explicitly link libc? 20261# 20262case "x$archive_cmds_need_lc" in 20263x|xyes) 20264 # Assume -lc should be added 20265 archive_cmds_need_lc=yes 20266 20267 if test yes,yes = "$GCC,$enable_shared"; then 20268 case $archive_cmds in 20269 *'~'*) 20270 # FIXME: we may have to deal with multi-command sequences. 20271 ;; 20272 '$CC '*) 20273 # Test whether the compiler implicitly links with -lc since on some 20274 # systems, -lgcc has to come before -lc. If gcc already passes -lc 20275 # to ld, don't add -lc before -lgcc. 20276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 20277printf %s "checking whether -lc should be explicitly linked in... " >&6; } 20278if test ${lt_cv_archive_cmds_need_lc+y} 20279then : 20280 printf %s "(cached) " >&6 20281else $as_nop 20282 $RM conftest* 20283 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 20284 20285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 20286 (eval $ac_compile) 2>&5 20287 ac_status=$? 20288 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20289 test $ac_status = 0; } 2>conftest.err; then 20290 soname=conftest 20291 lib=conftest 20292 libobjs=conftest.$ac_objext 20293 deplibs= 20294 wl=$lt_prog_compiler_wl 20295 pic_flag=$lt_prog_compiler_pic 20296 compiler_flags=-v 20297 linker_flags=-v 20298 verstring= 20299 output_objdir=. 20300 libname=conftest 20301 lt_save_allow_undefined_flag=$allow_undefined_flag 20302 allow_undefined_flag= 20303 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 20304 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 20305 ac_status=$? 20306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20307 test $ac_status = 0; } 20308 then 20309 lt_cv_archive_cmds_need_lc=no 20310 else 20311 lt_cv_archive_cmds_need_lc=yes 20312 fi 20313 allow_undefined_flag=$lt_save_allow_undefined_flag 20314 else 20315 cat conftest.err 1>&5 20316 fi 20317 $RM conftest* 20318 20319fi 20320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 20321printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 20322 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 20323 ;; 20324 esac 20325 fi 20326 ;; 20327esac 20328 20329 20330 20331 20332 20333 20334 20335 20336 20337 20338 20339 20340 20341 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 20481printf %s "checking dynamic linker characteristics... " >&6; } 20482 20483if test yes = "$GCC"; then 20484 case $host_os in 20485 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 20486 *) lt_awk_arg='/^libraries:/' ;; 20487 esac 20488 case $host_os in 20489 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 20490 *) lt_sed_strip_eq='s|=/|/|g' ;; 20491 esac 20492 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 20493 case $lt_search_path_spec in 20494 *\;*) 20495 # if the path contains ";" then we assume it to be the separator 20496 # otherwise default to the standard path separator (i.e. ":") - it is 20497 # assumed that no part of a normal pathname contains ";" but that should 20498 # okay in the real world where ";" in dirpaths is itself problematic. 20499 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 20500 ;; 20501 *) 20502 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 20503 ;; 20504 esac 20505 # Ok, now we have the path, separated by spaces, we can step through it 20506 # and add multilib dir if necessary... 20507 lt_tmp_lt_search_path_spec= 20508 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 20509 # ...but if some path component already ends with the multilib dir we assume 20510 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 20511 case "$lt_multi_os_dir; $lt_search_path_spec " in 20512 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 20513 lt_multi_os_dir= 20514 ;; 20515 esac 20516 for lt_sys_path in $lt_search_path_spec; do 20517 if test -d "$lt_sys_path$lt_multi_os_dir"; then 20518 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 20519 elif test -n "$lt_multi_os_dir"; then 20520 test -d "$lt_sys_path" && \ 20521 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 20522 fi 20523 done 20524 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 20525BEGIN {RS = " "; FS = "/|\n";} { 20526 lt_foo = ""; 20527 lt_count = 0; 20528 for (lt_i = NF; lt_i > 0; lt_i--) { 20529 if ($lt_i != "" && $lt_i != ".") { 20530 if ($lt_i == "..") { 20531 lt_count++; 20532 } else { 20533 if (lt_count == 0) { 20534 lt_foo = "/" $lt_i lt_foo; 20535 } else { 20536 lt_count--; 20537 } 20538 } 20539 } 20540 } 20541 if (lt_foo != "") { lt_freq[lt_foo]++; } 20542 if (lt_freq[lt_foo] == 1) { print lt_foo; } 20543}'` 20544 # AWK program above erroneously prepends '/' to C:/dos/paths 20545 # for these hosts. 20546 case $host_os in 20547 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 20548 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 20549 esac 20550 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 20551else 20552 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 20553fi 20554library_names_spec= 20555libname_spec='lib$name' 20556soname_spec= 20557shrext_cmds=.so 20558postinstall_cmds= 20559postuninstall_cmds= 20560finish_cmds= 20561finish_eval= 20562shlibpath_var= 20563shlibpath_overrides_runpath=unknown 20564version_type=none 20565dynamic_linker="$host_os ld.so" 20566sys_lib_dlsearch_path_spec="/lib /usr/lib" 20567need_lib_prefix=unknown 20568hardcode_into_libs=no 20569 20570# when you set need_version to no, make sure it does not cause -set_version 20571# flags to be left without arguments 20572need_version=unknown 20573 20574 20575 20576case $host_os in 20577aix3*) 20578 version_type=linux # correct to gnu/linux during the next big refactor 20579 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 20580 shlibpath_var=LIBPATH 20581 20582 # AIX 3 has no versioning support, so we append a major version to the name. 20583 soname_spec='$libname$release$shared_ext$major' 20584 ;; 20585 20586aix[4-9]*) 20587 version_type=linux # correct to gnu/linux during the next big refactor 20588 need_lib_prefix=no 20589 need_version=no 20590 hardcode_into_libs=yes 20591 if test ia64 = "$host_cpu"; then 20592 # AIX 5 supports IA64 20593 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 20594 shlibpath_var=LD_LIBRARY_PATH 20595 else 20596 # With GCC up to 2.95.x, collect2 would create an import file 20597 # for dependence libraries. The import file would start with 20598 # the line '#! .'. This would cause the generated library to 20599 # depend on '.', always an invalid library. This was fixed in 20600 # development snapshots of GCC prior to 3.0. 20601 case $host_os in 20602 aix4 | aix4.[01] | aix4.[01].*) 20603 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 20604 echo ' yes ' 20605 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 20606 : 20607 else 20608 can_build_shared=no 20609 fi 20610 ;; 20611 esac 20612 # Using Import Files as archive members, it is possible to support 20613 # filename-based versioning of shared library archives on AIX. While 20614 # this would work for both with and without runtime linking, it will 20615 # prevent static linking of such archives. So we do filename-based 20616 # shared library versioning with .so extension only, which is used 20617 # when both runtime linking and shared linking is enabled. 20618 # Unfortunately, runtime linking may impact performance, so we do 20619 # not want this to be the default eventually. Also, we use the 20620 # versioned .so libs for executables only if there is the -brtl 20621 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 20622 # To allow for filename-based versioning support, we need to create 20623 # libNAME.so.V as an archive file, containing: 20624 # *) an Import File, referring to the versioned filename of the 20625 # archive as well as the shared archive member, telling the 20626 # bitwidth (32 or 64) of that shared object, and providing the 20627 # list of exported symbols of that shared object, eventually 20628 # decorated with the 'weak' keyword 20629 # *) the shared object with the F_LOADONLY flag set, to really avoid 20630 # it being seen by the linker. 20631 # At run time we better use the real file rather than another symlink, 20632 # but for link time we create the symlink libNAME.so -> libNAME.so.V 20633 20634 case $with_aix_soname,$aix_use_runtimelinking in 20635 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 20636 # soname into executable. Probably we can add versioning support to 20637 # collect2, so additional links can be useful in future. 20638 aix,yes) # traditional libtool 20639 dynamic_linker='AIX unversionable lib.so' 20640 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 20641 # instead of lib<name>.a to let people know that these are not 20642 # typical AIX shared libraries. 20643 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20644 ;; 20645 aix,no) # traditional AIX only 20646 dynamic_linker='AIX lib.a(lib.so.V)' 20647 # We preserve .a as extension for shared libraries through AIX4.2 20648 # and later when we are not doing run time linking. 20649 library_names_spec='$libname$release.a $libname.a' 20650 soname_spec='$libname$release$shared_ext$major' 20651 ;; 20652 svr4,*) # full svr4 only 20653 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 20654 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 20655 # We do not specify a path in Import Files, so LIBPATH fires. 20656 shlibpath_overrides_runpath=yes 20657 ;; 20658 *,yes) # both, prefer svr4 20659 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 20660 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 20661 # unpreferred sharedlib libNAME.a needs extra handling 20662 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"' 20663 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"' 20664 # We do not specify a path in Import Files, so LIBPATH fires. 20665 shlibpath_overrides_runpath=yes 20666 ;; 20667 *,no) # both, prefer aix 20668 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 20669 library_names_spec='$libname$release.a $libname.a' 20670 soname_spec='$libname$release$shared_ext$major' 20671 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 20672 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)' 20673 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"' 20674 ;; 20675 esac 20676 shlibpath_var=LIBPATH 20677 fi 20678 ;; 20679 20680amigaos*) 20681 case $host_cpu in 20682 powerpc) 20683 # Since July 2007 AmigaOS4 officially supports .so libraries. 20684 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 20685 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20686 ;; 20687 m68k) 20688 library_names_spec='$libname.ixlibrary $libname.a' 20689 # Create ${libname}_ixlibrary.a entries in /sys/libs. 20690 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' 20691 ;; 20692 esac 20693 ;; 20694 20695beos*) 20696 library_names_spec='$libname$shared_ext' 20697 dynamic_linker="$host_os ld.so" 20698 shlibpath_var=LIBRARY_PATH 20699 ;; 20700 20701bsdi[45]*) 20702 version_type=linux # correct to gnu/linux during the next big refactor 20703 need_version=no 20704 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20705 soname_spec='$libname$release$shared_ext$major' 20706 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 20707 shlibpath_var=LD_LIBRARY_PATH 20708 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 20709 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 20710 # the default ld.so.conf also contains /usr/contrib/lib and 20711 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 20712 # libtool to hard-code these into programs 20713 ;; 20714 20715cygwin* | mingw* | pw32* | cegcc*) 20716 version_type=windows 20717 shrext_cmds=.dll 20718 need_version=no 20719 need_lib_prefix=no 20720 20721 case $GCC,$cc_basename in 20722 yes,*) 20723 # gcc 20724 library_names_spec='$libname.dll.a' 20725 # DLL is installed to $(libdir)/../bin by postinstall_cmds 20726 postinstall_cmds='base_file=`basename \$file`~ 20727 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 20728 dldir=$destdir/`dirname \$dlpath`~ 20729 test -d \$dldir || mkdir -p \$dldir~ 20730 $install_prog $dir/$dlname \$dldir/$dlname~ 20731 chmod a+x \$dldir/$dlname~ 20732 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 20733 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 20734 fi' 20735 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 20736 dlpath=$dir/\$dldll~ 20737 $RM \$dlpath' 20738 shlibpath_overrides_runpath=yes 20739 20740 case $host_os in 20741 cygwin*) 20742 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 20743 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 20744 20745 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 20746 ;; 20747 mingw* | cegcc*) 20748 # MinGW DLLs use traditional 'lib' prefix 20749 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 20750 ;; 20751 pw32*) 20752 # pw32 DLLs use 'pw' prefix rather than 'lib' 20753 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 20754 ;; 20755 esac 20756 dynamic_linker='Win32 ld.exe' 20757 ;; 20758 20759 *,cl* | *,icl*) 20760 # Native MSVC or ICC 20761 libname_spec='$name' 20762 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 20763 library_names_spec='$libname.dll.lib' 20764 20765 case $build_os in 20766 mingw*) 20767 sys_lib_search_path_spec= 20768 lt_save_ifs=$IFS 20769 IFS=';' 20770 for lt_path in $LIB 20771 do 20772 IFS=$lt_save_ifs 20773 # Let DOS variable expansion print the short 8.3 style file name. 20774 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 20775 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 20776 done 20777 IFS=$lt_save_ifs 20778 # Convert to MSYS style. 20779 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 20780 ;; 20781 cygwin*) 20782 # Convert to unix form, then to dos form, then back to unix form 20783 # but this time dos style (no spaces!) so that the unix form looks 20784 # like /cygdrive/c/PROGRA~1:/cygdr... 20785 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 20786 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 20787 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 20788 ;; 20789 *) 20790 sys_lib_search_path_spec=$LIB 20791 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 20792 # It is most probably a Windows format PATH. 20793 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 20794 else 20795 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 20796 fi 20797 # FIXME: find the short name or the path components, as spaces are 20798 # common. (e.g. "Program Files" -> "PROGRA~1") 20799 ;; 20800 esac 20801 20802 # DLL is installed to $(libdir)/../bin by postinstall_cmds 20803 postinstall_cmds='base_file=`basename \$file`~ 20804 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 20805 dldir=$destdir/`dirname \$dlpath`~ 20806 test -d \$dldir || mkdir -p \$dldir~ 20807 $install_prog $dir/$dlname \$dldir/$dlname' 20808 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 20809 dlpath=$dir/\$dldll~ 20810 $RM \$dlpath' 20811 shlibpath_overrides_runpath=yes 20812 dynamic_linker='Win32 link.exe' 20813 ;; 20814 20815 *) 20816 # Assume MSVC and ICC wrapper 20817 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 20818 dynamic_linker='Win32 ld.exe' 20819 ;; 20820 esac 20821 # FIXME: first we should search . and the directory the executable is in 20822 shlibpath_var=PATH 20823 ;; 20824 20825darwin* | rhapsody*) 20826 dynamic_linker="$host_os dyld" 20827 version_type=darwin 20828 need_lib_prefix=no 20829 need_version=no 20830 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 20831 soname_spec='$libname$release$major$shared_ext' 20832 shlibpath_overrides_runpath=yes 20833 shlibpath_var=DYLD_LIBRARY_PATH 20834 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 20835 20836 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 20837 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 20838 ;; 20839 20840dgux*) 20841 version_type=linux # correct to gnu/linux during the next big refactor 20842 need_lib_prefix=no 20843 need_version=no 20844 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20845 soname_spec='$libname$release$shared_ext$major' 20846 shlibpath_var=LD_LIBRARY_PATH 20847 ;; 20848 20849freebsd* | dragonfly* | midnightbsd*) 20850 # DragonFly does not have aout. When/if they implement a new 20851 # versioning mechanism, adjust this. 20852 if test -x /usr/bin/objformat; then 20853 objformat=`/usr/bin/objformat` 20854 else 20855 case $host_os in 20856 freebsd[23].*) objformat=aout ;; 20857 *) objformat=elf ;; 20858 esac 20859 fi 20860 version_type=freebsd-$objformat 20861 case $version_type in 20862 freebsd-elf*) 20863 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20864 soname_spec='$libname$release$shared_ext$major' 20865 need_version=no 20866 need_lib_prefix=no 20867 ;; 20868 freebsd-*) 20869 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 20870 need_version=yes 20871 ;; 20872 esac 20873 shlibpath_var=LD_LIBRARY_PATH 20874 case $host_os in 20875 freebsd2.*) 20876 shlibpath_overrides_runpath=yes 20877 ;; 20878 freebsd3.[01]* | freebsdelf3.[01]*) 20879 shlibpath_overrides_runpath=yes 20880 hardcode_into_libs=yes 20881 ;; 20882 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 20883 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 20884 shlibpath_overrides_runpath=no 20885 hardcode_into_libs=yes 20886 ;; 20887 *) # from 4.6 on, and DragonFly 20888 shlibpath_overrides_runpath=yes 20889 hardcode_into_libs=yes 20890 ;; 20891 esac 20892 ;; 20893 20894haiku*) 20895 version_type=linux # correct to gnu/linux during the next big refactor 20896 need_lib_prefix=no 20897 need_version=no 20898 dynamic_linker="$host_os runtime_loader" 20899 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20900 soname_spec='$libname$release$shared_ext$major' 20901 shlibpath_var=LIBRARY_PATH 20902 shlibpath_overrides_runpath=no 20903 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 20904 hardcode_into_libs=yes 20905 ;; 20906 20907hpux9* | hpux10* | hpux11*) 20908 # Give a soname corresponding to the major version so that dld.sl refuses to 20909 # link against other versions. 20910 version_type=sunos 20911 need_lib_prefix=no 20912 need_version=no 20913 case $host_cpu in 20914 ia64*) 20915 shrext_cmds='.so' 20916 hardcode_into_libs=yes 20917 dynamic_linker="$host_os dld.so" 20918 shlibpath_var=LD_LIBRARY_PATH 20919 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 20920 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20921 soname_spec='$libname$release$shared_ext$major' 20922 if test 32 = "$HPUX_IA64_MODE"; then 20923 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 20924 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 20925 else 20926 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 20927 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 20928 fi 20929 ;; 20930 hppa*64*) 20931 shrext_cmds='.sl' 20932 hardcode_into_libs=yes 20933 dynamic_linker="$host_os dld.sl" 20934 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 20935 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 20936 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20937 soname_spec='$libname$release$shared_ext$major' 20938 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 20939 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 20940 ;; 20941 *) 20942 shrext_cmds='.sl' 20943 dynamic_linker="$host_os dld.sl" 20944 shlibpath_var=SHLIB_PATH 20945 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 20946 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20947 soname_spec='$libname$release$shared_ext$major' 20948 ;; 20949 esac 20950 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 20951 postinstall_cmds='chmod 555 $lib' 20952 # or fails outright, so override atomically: 20953 install_override_mode=555 20954 ;; 20955 20956interix[3-9]*) 20957 version_type=linux # correct to gnu/linux during the next big refactor 20958 need_lib_prefix=no 20959 need_version=no 20960 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20961 soname_spec='$libname$release$shared_ext$major' 20962 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 20963 shlibpath_var=LD_LIBRARY_PATH 20964 shlibpath_overrides_runpath=no 20965 hardcode_into_libs=yes 20966 ;; 20967 20968irix5* | irix6* | nonstopux*) 20969 case $host_os in 20970 nonstopux*) version_type=nonstopux ;; 20971 *) 20972 if test yes = "$lt_cv_prog_gnu_ld"; then 20973 version_type=linux # correct to gnu/linux during the next big refactor 20974 else 20975 version_type=irix 20976 fi ;; 20977 esac 20978 need_lib_prefix=no 20979 need_version=no 20980 soname_spec='$libname$release$shared_ext$major' 20981 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 20982 case $host_os in 20983 irix5* | nonstopux*) 20984 libsuff= shlibsuff= 20985 ;; 20986 *) 20987 case $LD in # libtool.m4 will add one of these switches to LD 20988 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 20989 libsuff= shlibsuff= libmagic=32-bit;; 20990 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 20991 libsuff=32 shlibsuff=N32 libmagic=N32;; 20992 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 20993 libsuff=64 shlibsuff=64 libmagic=64-bit;; 20994 *) libsuff= shlibsuff= libmagic=never-match;; 20995 esac 20996 ;; 20997 esac 20998 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 20999 shlibpath_overrides_runpath=no 21000 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 21001 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 21002 hardcode_into_libs=yes 21003 ;; 21004 21005# No shared lib support for Linux oldld, aout, or coff. 21006linux*oldld* | linux*aout* | linux*coff*) 21007 dynamic_linker=no 21008 ;; 21009 21010linux*android*) 21011 version_type=none # Android doesn't support versioned libraries. 21012 need_lib_prefix=no 21013 need_version=no 21014 library_names_spec='$libname$release$shared_ext' 21015 soname_spec='$libname$release$shared_ext' 21016 finish_cmds= 21017 shlibpath_var=LD_LIBRARY_PATH 21018 shlibpath_overrides_runpath=yes 21019 21020 # This implies no fast_install, which is unacceptable. 21021 # Some rework will be needed to allow for fast_install 21022 # before this can be enabled. 21023 hardcode_into_libs=yes 21024 21025 dynamic_linker='Android linker' 21026 # Don't embed -rpath directories since the linker doesn't support them. 21027 hardcode_libdir_flag_spec='-L$libdir' 21028 ;; 21029 21030# This must be glibc/ELF. 21031linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 21032 version_type=linux # correct to gnu/linux during the next big refactor 21033 need_lib_prefix=no 21034 need_version=no 21035 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21036 soname_spec='$libname$release$shared_ext$major' 21037 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 21038 shlibpath_var=LD_LIBRARY_PATH 21039 shlibpath_overrides_runpath=no 21040 21041 # Some binutils ld are patched to set DT_RUNPATH 21042 if test ${lt_cv_shlibpath_overrides_runpath+y} 21043then : 21044 printf %s "(cached) " >&6 21045else $as_nop 21046 lt_cv_shlibpath_overrides_runpath=no 21047 save_LDFLAGS=$LDFLAGS 21048 save_libdir=$libdir 21049 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 21050 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 21051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21052/* end confdefs.h. */ 21053 21054int 21055main (void) 21056{ 21057 21058 ; 21059 return 0; 21060} 21061_ACEOF 21062if ac_fn_c_try_link "$LINENO" 21063then : 21064 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 21065then : 21066 lt_cv_shlibpath_overrides_runpath=yes 21067fi 21068fi 21069rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21070 conftest$ac_exeext conftest.$ac_ext 21071 LDFLAGS=$save_LDFLAGS 21072 libdir=$save_libdir 21073 21074fi 21075 21076 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 21077 21078 # This implies no fast_install, which is unacceptable. 21079 # Some rework will be needed to allow for fast_install 21080 # before this can be enabled. 21081 hardcode_into_libs=yes 21082 21083 # Add ABI-specific directories to the system library path. 21084 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 21085 21086 # Ideally, we could use ldconfig to report *all* directores which are 21087 # searched for libraries, however this is still not possible. Aside from not 21088 # being certain /sbin/ldconfig is available, command 21089 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 21090 # even though it is searched at run-time. Try to do the best guess by 21091 # appending ld.so.conf contents (and includes) to the search path. 21092 if test -f /etc/ld.so.conf; then 21093 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' ' '` 21094 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 21095 fi 21096 21097 # We used to test for /lib/ld.so.1 and disable shared libraries on 21098 # powerpc, because MkLinux only supported shared libraries with the 21099 # GNU dynamic linker. Since this was broken with cross compilers, 21100 # most powerpc-linux boxes support dynamic linking these days and 21101 # people can always --disable-shared, the test was removed, and we 21102 # assume the GNU/Linux dynamic linker is in use. 21103 dynamic_linker='GNU/Linux ld.so' 21104 ;; 21105 21106netbsd*) 21107 version_type=sunos 21108 need_lib_prefix=no 21109 need_version=no 21110 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 21111 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 21112 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 21113 dynamic_linker='NetBSD (a.out) ld.so' 21114 else 21115 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21116 soname_spec='$libname$release$shared_ext$major' 21117 dynamic_linker='NetBSD ld.elf_so' 21118 fi 21119 shlibpath_var=LD_LIBRARY_PATH 21120 shlibpath_overrides_runpath=yes 21121 hardcode_into_libs=yes 21122 ;; 21123 21124newsos6) 21125 version_type=linux # correct to gnu/linux during the next big refactor 21126 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21127 shlibpath_var=LD_LIBRARY_PATH 21128 shlibpath_overrides_runpath=yes 21129 ;; 21130 21131*nto* | *qnx*) 21132 version_type=qnx 21133 need_lib_prefix=no 21134 need_version=no 21135 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21136 soname_spec='$libname$release$shared_ext$major' 21137 shlibpath_var=LD_LIBRARY_PATH 21138 shlibpath_overrides_runpath=no 21139 hardcode_into_libs=yes 21140 dynamic_linker='ldqnx.so' 21141 ;; 21142 21143openbsd* | bitrig*) 21144 version_type=sunos 21145 sys_lib_dlsearch_path_spec=/usr/lib 21146 need_lib_prefix=no 21147 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 21148 need_version=no 21149 else 21150 need_version=yes 21151 fi 21152 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 21153 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 21154 shlibpath_var=LD_LIBRARY_PATH 21155 shlibpath_overrides_runpath=yes 21156 ;; 21157 21158os2*) 21159 libname_spec='$name' 21160 version_type=windows 21161 shrext_cmds=.dll 21162 need_version=no 21163 need_lib_prefix=no 21164 # OS/2 can only load a DLL with a base name of 8 characters or less. 21165 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 21166 v=$($ECHO $release$versuffix | tr -d .-); 21167 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 21168 $ECHO $n$v`$shared_ext' 21169 library_names_spec='${libname}_dll.$libext' 21170 dynamic_linker='OS/2 ld.exe' 21171 shlibpath_var=BEGINLIBPATH 21172 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 21173 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 21174 postinstall_cmds='base_file=`basename \$file`~ 21175 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 21176 dldir=$destdir/`dirname \$dlpath`~ 21177 test -d \$dldir || mkdir -p \$dldir~ 21178 $install_prog $dir/$dlname \$dldir/$dlname~ 21179 chmod a+x \$dldir/$dlname~ 21180 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 21181 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 21182 fi' 21183 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 21184 dlpath=$dir/\$dldll~ 21185 $RM \$dlpath' 21186 ;; 21187 21188osf3* | osf4* | osf5*) 21189 version_type=osf 21190 need_lib_prefix=no 21191 need_version=no 21192 soname_spec='$libname$release$shared_ext$major' 21193 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21194 shlibpath_var=LD_LIBRARY_PATH 21195 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 21196 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 21197 ;; 21198 21199rdos*) 21200 dynamic_linker=no 21201 ;; 21202 21203solaris*) 21204 version_type=linux # correct to gnu/linux during the next big refactor 21205 need_lib_prefix=no 21206 need_version=no 21207 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21208 soname_spec='$libname$release$shared_ext$major' 21209 shlibpath_var=LD_LIBRARY_PATH 21210 shlibpath_overrides_runpath=yes 21211 hardcode_into_libs=yes 21212 # ldd complains unless libraries are executable 21213 postinstall_cmds='chmod +x $lib' 21214 ;; 21215 21216sunos4*) 21217 version_type=sunos 21218 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 21219 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 21220 shlibpath_var=LD_LIBRARY_PATH 21221 shlibpath_overrides_runpath=yes 21222 if test yes = "$with_gnu_ld"; then 21223 need_lib_prefix=no 21224 fi 21225 need_version=yes 21226 ;; 21227 21228sysv4 | sysv4.3*) 21229 version_type=linux # correct to gnu/linux during the next big refactor 21230 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21231 soname_spec='$libname$release$shared_ext$major' 21232 shlibpath_var=LD_LIBRARY_PATH 21233 case $host_vendor in 21234 sni) 21235 shlibpath_overrides_runpath=no 21236 need_lib_prefix=no 21237 runpath_var=LD_RUN_PATH 21238 ;; 21239 siemens) 21240 need_lib_prefix=no 21241 ;; 21242 motorola) 21243 need_lib_prefix=no 21244 need_version=no 21245 shlibpath_overrides_runpath=no 21246 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 21247 ;; 21248 esac 21249 ;; 21250 21251sysv4*MP*) 21252 if test -d /usr/nec; then 21253 version_type=linux # correct to gnu/linux during the next big refactor 21254 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 21255 soname_spec='$libname$shared_ext.$major' 21256 shlibpath_var=LD_LIBRARY_PATH 21257 fi 21258 ;; 21259 21260sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 21261 version_type=sco 21262 need_lib_prefix=no 21263 need_version=no 21264 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 21265 soname_spec='$libname$release$shared_ext$major' 21266 shlibpath_var=LD_LIBRARY_PATH 21267 shlibpath_overrides_runpath=yes 21268 hardcode_into_libs=yes 21269 if test yes = "$with_gnu_ld"; then 21270 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 21271 else 21272 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 21273 case $host_os in 21274 sco3.2v5*) 21275 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 21276 ;; 21277 esac 21278 fi 21279 sys_lib_dlsearch_path_spec='/usr/lib' 21280 ;; 21281 21282tpf*) 21283 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 21284 version_type=linux # correct to gnu/linux during the next big refactor 21285 need_lib_prefix=no 21286 need_version=no 21287 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21288 shlibpath_var=LD_LIBRARY_PATH 21289 shlibpath_overrides_runpath=no 21290 hardcode_into_libs=yes 21291 ;; 21292 21293uts4*) 21294 version_type=linux # correct to gnu/linux during the next big refactor 21295 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21296 soname_spec='$libname$release$shared_ext$major' 21297 shlibpath_var=LD_LIBRARY_PATH 21298 ;; 21299 21300*) 21301 dynamic_linker=no 21302 ;; 21303esac 21304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 21305printf "%s\n" "$dynamic_linker" >&6; } 21306test no = "$dynamic_linker" && can_build_shared=no 21307 21308variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 21309if test yes = "$GCC"; then 21310 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 21311fi 21312 21313if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 21314 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 21315fi 21316 21317if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 21318 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 21319fi 21320 21321# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 21322configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 21323 21324# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 21325func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 21326 21327# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 21328configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 21329 21330 21331 21332 21333 21334 21335 21336 21337 21338 21339 21340 21341 21342 21343 21344 21345 21346 21347 21348 21349 21350 21351 21352 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 21427printf %s "checking how to hardcode library paths into programs... " >&6; } 21428hardcode_action= 21429if test -n "$hardcode_libdir_flag_spec" || 21430 test -n "$runpath_var" || 21431 test yes = "$hardcode_automatic"; then 21432 21433 # We can hardcode non-existent directories. 21434 if test no != "$hardcode_direct" && 21435 # If the only mechanism to avoid hardcoding is shlibpath_var, we 21436 # have to relink, otherwise we might link with an installed library 21437 # when we should be linking with a yet-to-be-installed one 21438 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 21439 test no != "$hardcode_minus_L"; then 21440 # Linking always hardcodes the temporary library directory. 21441 hardcode_action=relink 21442 else 21443 # We can link without hardcoding, and we can hardcode nonexisting dirs. 21444 hardcode_action=immediate 21445 fi 21446else 21447 # We cannot hardcode anything, or else we can only hardcode existing 21448 # directories. 21449 hardcode_action=unsupported 21450fi 21451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 21452printf "%s\n" "$hardcode_action" >&6; } 21453 21454if test relink = "$hardcode_action" || 21455 test yes = "$inherit_rpath"; then 21456 # Fast installation is not supported 21457 enable_fast_install=no 21458elif test yes = "$shlibpath_overrides_runpath" || 21459 test no = "$enable_shared"; then 21460 # Fast installation is not necessary 21461 enable_fast_install=needless 21462fi 21463 21464 21465 21466 21467 21468 21469 if test yes != "$enable_dlopen"; then 21470 enable_dlopen=unknown 21471 enable_dlopen_self=unknown 21472 enable_dlopen_self_static=unknown 21473else 21474 lt_cv_dlopen=no 21475 lt_cv_dlopen_libs= 21476 21477 case $host_os in 21478 beos*) 21479 lt_cv_dlopen=load_add_on 21480 lt_cv_dlopen_libs= 21481 lt_cv_dlopen_self=yes 21482 ;; 21483 21484 mingw* | pw32* | cegcc*) 21485 lt_cv_dlopen=LoadLibrary 21486 lt_cv_dlopen_libs= 21487 ;; 21488 21489 cygwin*) 21490 lt_cv_dlopen=dlopen 21491 lt_cv_dlopen_libs= 21492 ;; 21493 21494 darwin*) 21495 # if libdl is installed we need to link against it 21496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 21497printf %s "checking for dlopen in -ldl... " >&6; } 21498if test ${ac_cv_lib_dl_dlopen+y} 21499then : 21500 printf %s "(cached) " >&6 21501else $as_nop 21502 ac_check_lib_save_LIBS=$LIBS 21503LIBS="-ldl $LIBS" 21504cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21505/* end confdefs.h. */ 21506 21507/* Override any GCC internal prototype to avoid an error. 21508 Use char because int might match the return type of a GCC 21509 builtin and then its argument prototype would still apply. */ 21510char dlopen (); 21511int 21512main (void) 21513{ 21514return dlopen (); 21515 ; 21516 return 0; 21517} 21518_ACEOF 21519if ac_fn_c_try_link "$LINENO" 21520then : 21521 ac_cv_lib_dl_dlopen=yes 21522else $as_nop 21523 ac_cv_lib_dl_dlopen=no 21524fi 21525rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21526 conftest$ac_exeext conftest.$ac_ext 21527LIBS=$ac_check_lib_save_LIBS 21528fi 21529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 21530printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 21531if test "x$ac_cv_lib_dl_dlopen" = xyes 21532then : 21533 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 21534else $as_nop 21535 21536 lt_cv_dlopen=dyld 21537 lt_cv_dlopen_libs= 21538 lt_cv_dlopen_self=yes 21539 21540fi 21541 21542 ;; 21543 21544 tpf*) 21545 # Don't try to run any link tests for TPF. We know it's impossible 21546 # because TPF is a cross-compiler, and we know how we open DSOs. 21547 lt_cv_dlopen=dlopen 21548 lt_cv_dlopen_libs= 21549 lt_cv_dlopen_self=no 21550 ;; 21551 21552 *) 21553 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 21554if test "x$ac_cv_func_shl_load" = xyes 21555then : 21556 lt_cv_dlopen=shl_load 21557else $as_nop 21558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 21559printf %s "checking for shl_load in -ldld... " >&6; } 21560if test ${ac_cv_lib_dld_shl_load+y} 21561then : 21562 printf %s "(cached) " >&6 21563else $as_nop 21564 ac_check_lib_save_LIBS=$LIBS 21565LIBS="-ldld $LIBS" 21566cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21567/* end confdefs.h. */ 21568 21569/* Override any GCC internal prototype to avoid an error. 21570 Use char because int might match the return type of a GCC 21571 builtin and then its argument prototype would still apply. */ 21572char shl_load (); 21573int 21574main (void) 21575{ 21576return shl_load (); 21577 ; 21578 return 0; 21579} 21580_ACEOF 21581if ac_fn_c_try_link "$LINENO" 21582then : 21583 ac_cv_lib_dld_shl_load=yes 21584else $as_nop 21585 ac_cv_lib_dld_shl_load=no 21586fi 21587rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21588 conftest$ac_exeext conftest.$ac_ext 21589LIBS=$ac_check_lib_save_LIBS 21590fi 21591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 21592printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 21593if test "x$ac_cv_lib_dld_shl_load" = xyes 21594then : 21595 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 21596else $as_nop 21597 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 21598if test "x$ac_cv_func_dlopen" = xyes 21599then : 21600 lt_cv_dlopen=dlopen 21601else $as_nop 21602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 21603printf %s "checking for dlopen in -ldl... " >&6; } 21604if test ${ac_cv_lib_dl_dlopen+y} 21605then : 21606 printf %s "(cached) " >&6 21607else $as_nop 21608 ac_check_lib_save_LIBS=$LIBS 21609LIBS="-ldl $LIBS" 21610cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21611/* end confdefs.h. */ 21612 21613/* Override any GCC internal prototype to avoid an error. 21614 Use char because int might match the return type of a GCC 21615 builtin and then its argument prototype would still apply. */ 21616char dlopen (); 21617int 21618main (void) 21619{ 21620return dlopen (); 21621 ; 21622 return 0; 21623} 21624_ACEOF 21625if ac_fn_c_try_link "$LINENO" 21626then : 21627 ac_cv_lib_dl_dlopen=yes 21628else $as_nop 21629 ac_cv_lib_dl_dlopen=no 21630fi 21631rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21632 conftest$ac_exeext conftest.$ac_ext 21633LIBS=$ac_check_lib_save_LIBS 21634fi 21635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 21636printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 21637if test "x$ac_cv_lib_dl_dlopen" = xyes 21638then : 21639 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 21640else $as_nop 21641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 21642printf %s "checking for dlopen in -lsvld... " >&6; } 21643if test ${ac_cv_lib_svld_dlopen+y} 21644then : 21645 printf %s "(cached) " >&6 21646else $as_nop 21647 ac_check_lib_save_LIBS=$LIBS 21648LIBS="-lsvld $LIBS" 21649cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21650/* end confdefs.h. */ 21651 21652/* Override any GCC internal prototype to avoid an error. 21653 Use char because int might match the return type of a GCC 21654 builtin and then its argument prototype would still apply. */ 21655char dlopen (); 21656int 21657main (void) 21658{ 21659return dlopen (); 21660 ; 21661 return 0; 21662} 21663_ACEOF 21664if ac_fn_c_try_link "$LINENO" 21665then : 21666 ac_cv_lib_svld_dlopen=yes 21667else $as_nop 21668 ac_cv_lib_svld_dlopen=no 21669fi 21670rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21671 conftest$ac_exeext conftest.$ac_ext 21672LIBS=$ac_check_lib_save_LIBS 21673fi 21674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 21675printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 21676if test "x$ac_cv_lib_svld_dlopen" = xyes 21677then : 21678 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 21679else $as_nop 21680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 21681printf %s "checking for dld_link in -ldld... " >&6; } 21682if test ${ac_cv_lib_dld_dld_link+y} 21683then : 21684 printf %s "(cached) " >&6 21685else $as_nop 21686 ac_check_lib_save_LIBS=$LIBS 21687LIBS="-ldld $LIBS" 21688cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21689/* end confdefs.h. */ 21690 21691/* Override any GCC internal prototype to avoid an error. 21692 Use char because int might match the return type of a GCC 21693 builtin and then its argument prototype would still apply. */ 21694char dld_link (); 21695int 21696main (void) 21697{ 21698return dld_link (); 21699 ; 21700 return 0; 21701} 21702_ACEOF 21703if ac_fn_c_try_link "$LINENO" 21704then : 21705 ac_cv_lib_dld_dld_link=yes 21706else $as_nop 21707 ac_cv_lib_dld_dld_link=no 21708fi 21709rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21710 conftest$ac_exeext conftest.$ac_ext 21711LIBS=$ac_check_lib_save_LIBS 21712fi 21713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 21714printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 21715if test "x$ac_cv_lib_dld_dld_link" = xyes 21716then : 21717 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 21718fi 21719 21720 21721fi 21722 21723 21724fi 21725 21726 21727fi 21728 21729 21730fi 21731 21732 21733fi 21734 21735 ;; 21736 esac 21737 21738 if test no = "$lt_cv_dlopen"; then 21739 enable_dlopen=no 21740 else 21741 enable_dlopen=yes 21742 fi 21743 21744 case $lt_cv_dlopen in 21745 dlopen) 21746 save_CPPFLAGS=$CPPFLAGS 21747 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 21748 21749 save_LDFLAGS=$LDFLAGS 21750 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 21751 21752 save_LIBS=$LIBS 21753 LIBS="$lt_cv_dlopen_libs $LIBS" 21754 21755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 21756printf %s "checking whether a program can dlopen itself... " >&6; } 21757if test ${lt_cv_dlopen_self+y} 21758then : 21759 printf %s "(cached) " >&6 21760else $as_nop 21761 if test yes = "$cross_compiling"; then : 21762 lt_cv_dlopen_self=cross 21763else 21764 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 21765 lt_status=$lt_dlunknown 21766 cat > conftest.$ac_ext <<_LT_EOF 21767#line $LINENO "configure" 21768#include "confdefs.h" 21769 21770#if HAVE_DLFCN_H 21771#include <dlfcn.h> 21772#endif 21773 21774#include <stdio.h> 21775 21776#ifdef RTLD_GLOBAL 21777# define LT_DLGLOBAL RTLD_GLOBAL 21778#else 21779# ifdef DL_GLOBAL 21780# define LT_DLGLOBAL DL_GLOBAL 21781# else 21782# define LT_DLGLOBAL 0 21783# endif 21784#endif 21785 21786/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 21787 find out it does not work in some platform. */ 21788#ifndef LT_DLLAZY_OR_NOW 21789# ifdef RTLD_LAZY 21790# define LT_DLLAZY_OR_NOW RTLD_LAZY 21791# else 21792# ifdef DL_LAZY 21793# define LT_DLLAZY_OR_NOW DL_LAZY 21794# else 21795# ifdef RTLD_NOW 21796# define LT_DLLAZY_OR_NOW RTLD_NOW 21797# else 21798# ifdef DL_NOW 21799# define LT_DLLAZY_OR_NOW DL_NOW 21800# else 21801# define LT_DLLAZY_OR_NOW 0 21802# endif 21803# endif 21804# endif 21805# endif 21806#endif 21807 21808/* When -fvisibility=hidden is used, assume the code has been annotated 21809 correspondingly for the symbols needed. */ 21810#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 21811int fnord () __attribute__((visibility("default"))); 21812#endif 21813 21814int fnord () { return 42; } 21815int main () 21816{ 21817 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 21818 int status = $lt_dlunknown; 21819 21820 if (self) 21821 { 21822 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 21823 else 21824 { 21825 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 21826 else puts (dlerror ()); 21827 } 21828 /* dlclose (self); */ 21829 } 21830 else 21831 puts (dlerror ()); 21832 21833 return status; 21834} 21835_LT_EOF 21836 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 21837 (eval $ac_link) 2>&5 21838 ac_status=$? 21839 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21840 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 21841 (./conftest; exit; ) >&5 2>/dev/null 21842 lt_status=$? 21843 case x$lt_status in 21844 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 21845 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 21846 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 21847 esac 21848 else : 21849 # compilation failed 21850 lt_cv_dlopen_self=no 21851 fi 21852fi 21853rm -fr conftest* 21854 21855 21856fi 21857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 21858printf "%s\n" "$lt_cv_dlopen_self" >&6; } 21859 21860 if test yes = "$lt_cv_dlopen_self"; then 21861 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 21862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 21863printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 21864if test ${lt_cv_dlopen_self_static+y} 21865then : 21866 printf %s "(cached) " >&6 21867else $as_nop 21868 if test yes = "$cross_compiling"; then : 21869 lt_cv_dlopen_self_static=cross 21870else 21871 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 21872 lt_status=$lt_dlunknown 21873 cat > conftest.$ac_ext <<_LT_EOF 21874#line $LINENO "configure" 21875#include "confdefs.h" 21876 21877#if HAVE_DLFCN_H 21878#include <dlfcn.h> 21879#endif 21880 21881#include <stdio.h> 21882 21883#ifdef RTLD_GLOBAL 21884# define LT_DLGLOBAL RTLD_GLOBAL 21885#else 21886# ifdef DL_GLOBAL 21887# define LT_DLGLOBAL DL_GLOBAL 21888# else 21889# define LT_DLGLOBAL 0 21890# endif 21891#endif 21892 21893/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 21894 find out it does not work in some platform. */ 21895#ifndef LT_DLLAZY_OR_NOW 21896# ifdef RTLD_LAZY 21897# define LT_DLLAZY_OR_NOW RTLD_LAZY 21898# else 21899# ifdef DL_LAZY 21900# define LT_DLLAZY_OR_NOW DL_LAZY 21901# else 21902# ifdef RTLD_NOW 21903# define LT_DLLAZY_OR_NOW RTLD_NOW 21904# else 21905# ifdef DL_NOW 21906# define LT_DLLAZY_OR_NOW DL_NOW 21907# else 21908# define LT_DLLAZY_OR_NOW 0 21909# endif 21910# endif 21911# endif 21912# endif 21913#endif 21914 21915/* When -fvisibility=hidden is used, assume the code has been annotated 21916 correspondingly for the symbols needed. */ 21917#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 21918int fnord () __attribute__((visibility("default"))); 21919#endif 21920 21921int fnord () { return 42; } 21922int main () 21923{ 21924 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 21925 int status = $lt_dlunknown; 21926 21927 if (self) 21928 { 21929 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 21930 else 21931 { 21932 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 21933 else puts (dlerror ()); 21934 } 21935 /* dlclose (self); */ 21936 } 21937 else 21938 puts (dlerror ()); 21939 21940 return status; 21941} 21942_LT_EOF 21943 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 21944 (eval $ac_link) 2>&5 21945 ac_status=$? 21946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21947 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 21948 (./conftest; exit; ) >&5 2>/dev/null 21949 lt_status=$? 21950 case x$lt_status in 21951 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 21952 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 21953 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 21954 esac 21955 else : 21956 # compilation failed 21957 lt_cv_dlopen_self_static=no 21958 fi 21959fi 21960rm -fr conftest* 21961 21962 21963fi 21964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 21965printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 21966 fi 21967 21968 CPPFLAGS=$save_CPPFLAGS 21969 LDFLAGS=$save_LDFLAGS 21970 LIBS=$save_LIBS 21971 ;; 21972 esac 21973 21974 case $lt_cv_dlopen_self in 21975 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 21976 *) enable_dlopen_self=unknown ;; 21977 esac 21978 21979 case $lt_cv_dlopen_self_static in 21980 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 21981 *) enable_dlopen_self_static=unknown ;; 21982 esac 21983fi 21984 21985 21986 21987 21988 21989 21990 21991 21992 21993 21994 21995 21996 21997 21998 21999 22000 22001striplib= 22002old_striplib= 22003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 22004printf %s "checking whether stripping libraries is possible... " >&6; } 22005if test -z "$STRIP"; then 22006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22007printf "%s\n" "no" >&6; } 22008else 22009 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 22010 old_striplib="$STRIP --strip-debug" 22011 striplib="$STRIP --strip-unneeded" 22012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22013printf "%s\n" "yes" >&6; } 22014 else 22015 case $host_os in 22016 darwin*) 22017 # FIXME - insert some real tests, host_os isn't really good enough 22018 striplib="$STRIP -x" 22019 old_striplib="$STRIP -S" 22020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22021printf "%s\n" "yes" >&6; } 22022 ;; 22023 freebsd*) 22024 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 22025 old_striplib="$STRIP --strip-debug" 22026 striplib="$STRIP --strip-unneeded" 22027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22028printf "%s\n" "yes" >&6; } 22029 else 22030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22031printf "%s\n" "no" >&6; } 22032 fi 22033 ;; 22034 *) 22035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22036printf "%s\n" "no" >&6; } 22037 ;; 22038 esac 22039 fi 22040fi 22041 22042 22043 22044 22045 22046 22047 22048 22049 22050 22051 22052 22053 # Report what library types will actually be built 22054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 22055printf %s "checking if libtool supports shared libraries... " >&6; } 22056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 22057printf "%s\n" "$can_build_shared" >&6; } 22058 22059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 22060printf %s "checking whether to build shared libraries... " >&6; } 22061 test no = "$can_build_shared" && enable_shared=no 22062 22063 # On AIX, shared libraries and static libraries use the same namespace, and 22064 # are all built from PIC. 22065 case $host_os in 22066 aix3*) 22067 test yes = "$enable_shared" && enable_static=no 22068 if test -n "$RANLIB"; then 22069 archive_cmds="$archive_cmds~\$RANLIB \$lib" 22070 postinstall_cmds='$RANLIB $lib' 22071 fi 22072 ;; 22073 22074 aix[4-9]*) 22075 if test ia64 != "$host_cpu"; then 22076 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 22077 yes,aix,yes) ;; # shared object as lib.so file only 22078 yes,svr4,*) ;; # shared object as lib.so archive member only 22079 yes,*) enable_static=no ;; # shared object in lib.a archive as well 22080 esac 22081 fi 22082 ;; 22083 esac 22084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 22085printf "%s\n" "$enable_shared" >&6; } 22086 22087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 22088printf %s "checking whether to build static libraries... " >&6; } 22089 # Make sure either enable_shared or enable_static is yes. 22090 test yes = "$enable_shared" || enable_static=yes 22091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 22092printf "%s\n" "$enable_static" >&6; } 22093 22094 22095 22096 22097fi 22098ac_ext=c 22099ac_cpp='$CPP $CPPFLAGS' 22100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22102ac_compiler_gnu=$ac_cv_c_compiler_gnu 22103 22104CC=$lt_save_CC 22105 22106 22107 22108 22109 22110 22111 22112 22113 22114 22115 22116 22117 22118 22119 22120 ac_config_commands="$ac_config_commands libtool" 22121 22122 22123 22124 22125# Only expand once: 22126 22127 22128 22129 22130 22131 22132 22133 22134 22135if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 22136 if test -n "$ac_tool_prefix"; then 22137 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 22138set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 22139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22140printf %s "checking for $ac_word... " >&6; } 22141if test ${ac_cv_path_PKG_CONFIG+y} 22142then : 22143 printf %s "(cached) " >&6 22144else $as_nop 22145 case $PKG_CONFIG in 22146 [\\/]* | ?:[\\/]*) 22147 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 22148 ;; 22149 *) 22150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22151for as_dir in $PATH 22152do 22153 IFS=$as_save_IFS 22154 case $as_dir in #((( 22155 '') as_dir=./ ;; 22156 */) ;; 22157 *) as_dir=$as_dir/ ;; 22158 esac 22159 for ac_exec_ext in '' $ac_executable_extensions; do 22160 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 22161 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 22162 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 22163 break 2 22164 fi 22165done 22166 done 22167IFS=$as_save_IFS 22168 22169 ;; 22170esac 22171fi 22172PKG_CONFIG=$ac_cv_path_PKG_CONFIG 22173if test -n "$PKG_CONFIG"; then 22174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 22175printf "%s\n" "$PKG_CONFIG" >&6; } 22176else 22177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22178printf "%s\n" "no" >&6; } 22179fi 22180 22181 22182fi 22183if test -z "$ac_cv_path_PKG_CONFIG"; then 22184 ac_pt_PKG_CONFIG=$PKG_CONFIG 22185 # Extract the first word of "pkg-config", so it can be a program name with args. 22186set dummy pkg-config; ac_word=$2 22187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22188printf %s "checking for $ac_word... " >&6; } 22189if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 22190then : 22191 printf %s "(cached) " >&6 22192else $as_nop 22193 case $ac_pt_PKG_CONFIG in 22194 [\\/]* | ?:[\\/]*) 22195 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 22196 ;; 22197 *) 22198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22199for as_dir in $PATH 22200do 22201 IFS=$as_save_IFS 22202 case $as_dir in #((( 22203 '') as_dir=./ ;; 22204 */) ;; 22205 *) as_dir=$as_dir/ ;; 22206 esac 22207 for ac_exec_ext in '' $ac_executable_extensions; do 22208 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 22209 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 22210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 22211 break 2 22212 fi 22213done 22214 done 22215IFS=$as_save_IFS 22216 22217 ;; 22218esac 22219fi 22220ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 22221if test -n "$ac_pt_PKG_CONFIG"; then 22222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 22223printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 22224else 22225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22226printf "%s\n" "no" >&6; } 22227fi 22228 22229 if test "x$ac_pt_PKG_CONFIG" = x; then 22230 PKG_CONFIG="" 22231 else 22232 case $cross_compiling:$ac_tool_warned in 22233yes:) 22234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 22235printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 22236ac_tool_warned=yes ;; 22237esac 22238 PKG_CONFIG=$ac_pt_PKG_CONFIG 22239 fi 22240else 22241 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 22242fi 22243 22244fi 22245if test -n "$PKG_CONFIG"; then 22246 _pkg_min_version=0.9.0 22247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 22248printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 22249 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 22250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22251printf "%s\n" "yes" >&6; } 22252 else 22253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22254printf "%s\n" "no" >&6; } 22255 PKG_CONFIG="" 22256 fi 22257fi 22258for ac_prog in flex lex 22259do 22260 # Extract the first word of "$ac_prog", so it can be a program name with args. 22261set dummy $ac_prog; ac_word=$2 22262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22263printf %s "checking for $ac_word... " >&6; } 22264if test ${ac_cv_prog_LEX+y} 22265then : 22266 printf %s "(cached) " >&6 22267else $as_nop 22268 if test -n "$LEX"; then 22269 ac_cv_prog_LEX="$LEX" # Let the user override the test. 22270else 22271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22272for as_dir in $PATH 22273do 22274 IFS=$as_save_IFS 22275 case $as_dir in #((( 22276 '') as_dir=./ ;; 22277 */) ;; 22278 *) as_dir=$as_dir/ ;; 22279 esac 22280 for ac_exec_ext in '' $ac_executable_extensions; do 22281 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 22282 ac_cv_prog_LEX="$ac_prog" 22283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 22284 break 2 22285 fi 22286done 22287 done 22288IFS=$as_save_IFS 22289 22290fi 22291fi 22292LEX=$ac_cv_prog_LEX 22293if test -n "$LEX"; then 22294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 22295printf "%s\n" "$LEX" >&6; } 22296else 22297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22298printf "%s\n" "no" >&6; } 22299fi 22300 22301 22302 test -n "$LEX" && break 22303done 22304test -n "$LEX" || LEX=":" 22305 22306 if test "x$LEX" != "x:"; then 22307 cat >conftest.l <<_ACEOF 22308%{ 22309#ifdef __cplusplus 22310extern "C" 22311#endif 22312int yywrap(void); 22313%} 22314%% 22315a { ECHO; } 22316b { REJECT; } 22317c { yymore (); } 22318d { yyless (1); } 22319e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 22320#ifdef __cplusplus 22321 yyless ((yyinput () != 0)); 22322#else 22323 yyless ((input () != 0)); 22324#endif 22325 } 22326f { unput (yytext[0]); } 22327. { BEGIN INITIAL; } 22328%% 22329#ifdef YYTEXT_POINTER 22330extern char *yytext; 22331#endif 22332int 22333yywrap (void) 22334{ 22335 return 1; 22336} 22337int 22338main (void) 22339{ 22340 return ! yylex (); 22341} 22342_ACEOF 22343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5 22344printf %s "checking for lex output file root... " >&6; } 22345if test ${ac_cv_prog_lex_root+y} 22346then : 22347 printf %s "(cached) " >&6 22348else $as_nop 22349 22350ac_cv_prog_lex_root=unknown 22351{ { ac_try="$LEX conftest.l" 22352case "(($ac_try" in 22353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22354 *) ac_try_echo=$ac_try;; 22355esac 22356eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 22357printf "%s\n" "$ac_try_echo"; } >&5 22358 (eval "$LEX conftest.l") 2>&5 22359 ac_status=$? 22360 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22361 test $ac_status = 0; } && 22362if test -f lex.yy.c; then 22363 ac_cv_prog_lex_root=lex.yy 22364elif test -f lexyy.c; then 22365 ac_cv_prog_lex_root=lexyy 22366fi 22367fi 22368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 22369printf "%s\n" "$ac_cv_prog_lex_root" >&6; } 22370if test "$ac_cv_prog_lex_root" = unknown 22371then : 22372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5 22373printf "%s\n" "$as_me: WARNING: cannot find output from $LEX; giving up on $LEX" >&2;} 22374 LEX=: LEXLIB= 22375fi 22376LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 22377 22378if test ${LEXLIB+y} 22379then : 22380 22381else $as_nop 22382 22383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5 22384printf %s "checking for lex library... " >&6; } 22385if test ${ac_cv_lib_lex+y} 22386then : 22387 printf %s "(cached) " >&6 22388else $as_nop 22389 22390 ac_save_LIBS="$LIBS" 22391 ac_found=false 22392 for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do 22393 case $ac_cv_lib_lex in #( 22394 'none needed') : 22395 ;; #( 22396 'not found') : 22397 break ;; #( 22398 *) : 22399 LIBS="$ac_cv_lib_lex $ac_save_LIBS" ;; #( 22400 *) : 22401 ;; 22402esac 22403 22404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22405/* end confdefs.h. */ 22406`cat $LEX_OUTPUT_ROOT.c` 22407_ACEOF 22408if ac_fn_c_try_link "$LINENO" 22409then : 22410 ac_found=: 22411fi 22412rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22413 conftest$ac_exeext conftest.$ac_ext 22414 if $ac_found; then 22415 break 22416 fi 22417 done 22418 LIBS="$ac_save_LIBS" 22419 22420fi 22421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 22422printf "%s\n" "$ac_cv_lib_lex" >&6; } 22423 if test "$ac_cv_lib_lex" = 'not found' 22424then : 22425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5 22426printf "%s\n" "$as_me: WARNING: required lex library not found; giving up on $LEX" >&2;} 22427 LEX=: LEXLIB= 22428elif test "$ac_cv_lib_lex" = 'none needed' 22429then : 22430 LEXLIB='' 22431else $as_nop 22432 LEXLIB=$ac_cv_lib_lex 22433fi 22434 ac_save_LIBS="$LIBS" 22435 LIBS= 22436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing yywrap" >&5 22437printf %s "checking for library containing yywrap... " >&6; } 22438if test ${ac_cv_search_yywrap+y} 22439then : 22440 printf %s "(cached) " >&6 22441else $as_nop 22442 ac_func_search_save_LIBS=$LIBS 22443cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22444/* end confdefs.h. */ 22445 22446/* Override any GCC internal prototype to avoid an error. 22447 Use char because int might match the return type of a GCC 22448 builtin and then its argument prototype would still apply. */ 22449char yywrap (); 22450int 22451main (void) 22452{ 22453return yywrap (); 22454 ; 22455 return 0; 22456} 22457_ACEOF 22458for ac_lib in '' fl l 22459do 22460 if test -z "$ac_lib"; then 22461 ac_res="none required" 22462 else 22463 ac_res=-l$ac_lib 22464 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22465 fi 22466 if ac_fn_c_try_link "$LINENO" 22467then : 22468 ac_cv_search_yywrap=$ac_res 22469fi 22470rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22471 conftest$ac_exeext 22472 if test ${ac_cv_search_yywrap+y} 22473then : 22474 break 22475fi 22476done 22477if test ${ac_cv_search_yywrap+y} 22478then : 22479 22480else $as_nop 22481 ac_cv_search_yywrap=no 22482fi 22483rm conftest.$ac_ext 22484LIBS=$ac_func_search_save_LIBS 22485fi 22486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_yywrap" >&5 22487printf "%s\n" "$ac_cv_search_yywrap" >&6; } 22488ac_res=$ac_cv_search_yywrap 22489if test "$ac_res" != no 22490then : 22491 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22492 LEXLIB="$LIBS" 22493fi 22494 22495 LIBS="$ac_save_LIBS" 22496fi 22497 22498 22499if test "$LEX" != : 22500then : 22501 22502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 22503printf %s "checking whether yytext is a pointer... " >&6; } 22504if test ${ac_cv_prog_lex_yytext_pointer+y} 22505then : 22506 printf %s "(cached) " >&6 22507else $as_nop 22508 # POSIX says lex can declare yytext either as a pointer or an array; the 22509# default is implementation-dependent. Figure out which it is, since 22510# not all implementations provide the %pointer and %array declarations. 22511ac_cv_prog_lex_yytext_pointer=no 22512cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22513/* end confdefs.h. */ 22514 22515 #define YYTEXT_POINTER 1 22516`cat $LEX_OUTPUT_ROOT.c` 22517_ACEOF 22518if ac_fn_c_try_compile "$LINENO" 22519then : 22520 ac_cv_prog_lex_yytext_pointer=yes 22521fi 22522rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22523 22524fi 22525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 22526printf "%s\n" "$ac_cv_prog_lex_yytext_pointer" >&6; } 22527if test $ac_cv_prog_lex_yytext_pointer = yes; then 22528 22529printf "%s\n" "#define YYTEXT_POINTER 1" >>confdefs.h 22530 22531fi 22532 22533fi 22534rm -f conftest.l $LEX_OUTPUT_ROOT.c 22535 22536fi 22537for ac_prog in 'bison -y' byacc 22538do 22539 # Extract the first word of "$ac_prog", so it can be a program name with args. 22540set dummy $ac_prog; ac_word=$2 22541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22542printf %s "checking for $ac_word... " >&6; } 22543if test ${ac_cv_prog_YACC+y} 22544then : 22545 printf %s "(cached) " >&6 22546else $as_nop 22547 if test -n "$YACC"; then 22548 ac_cv_prog_YACC="$YACC" # Let the user override the test. 22549else 22550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22551for as_dir in $PATH 22552do 22553 IFS=$as_save_IFS 22554 case $as_dir in #((( 22555 '') as_dir=./ ;; 22556 */) ;; 22557 *) as_dir=$as_dir/ ;; 22558 esac 22559 for ac_exec_ext in '' $ac_executable_extensions; do 22560 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 22561 ac_cv_prog_YACC="$ac_prog" 22562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 22563 break 2 22564 fi 22565done 22566 done 22567IFS=$as_save_IFS 22568 22569fi 22570fi 22571YACC=$ac_cv_prog_YACC 22572if test -n "$YACC"; then 22573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 22574printf "%s\n" "$YACC" >&6; } 22575else 22576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22577printf "%s\n" "no" >&6; } 22578fi 22579 22580 22581 test -n "$YACC" && break 22582done 22583test -n "$YACC" || YACC="yacc" 22584 22585# Check whether --enable-largefile was given. 22586if test ${enable_largefile+y} 22587then : 22588 enableval=$enable_largefile; 22589fi 22590 22591if test "$enable_largefile" != no; then 22592 22593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 22594printf %s "checking for special C compiler options needed for large files... " >&6; } 22595if test ${ac_cv_sys_largefile_CC+y} 22596then : 22597 printf %s "(cached) " >&6 22598else $as_nop 22599 ac_cv_sys_largefile_CC=no 22600 if test "$GCC" != yes; then 22601 ac_save_CC=$CC 22602 while :; do 22603 # IRIX 6.2 and later do not support large files by default, 22604 # so use the C compiler's -n32 option if that helps. 22605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22606/* end confdefs.h. */ 22607#include <sys/types.h> 22608 /* Check that off_t can represent 2**63 - 1 correctly. 22609 We can't simply define LARGE_OFF_T to be 9223372036854775807, 22610 since some C++ compilers masquerading as C compilers 22611 incorrectly reject 9223372036854775807. */ 22612#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 22613 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 22614 && LARGE_OFF_T % 2147483647 == 1) 22615 ? 1 : -1]; 22616int 22617main (void) 22618{ 22619 22620 ; 22621 return 0; 22622} 22623_ACEOF 22624 if ac_fn_c_try_compile "$LINENO" 22625then : 22626 break 22627fi 22628rm -f core conftest.err conftest.$ac_objext conftest.beam 22629 CC="$CC -n32" 22630 if ac_fn_c_try_compile "$LINENO" 22631then : 22632 ac_cv_sys_largefile_CC=' -n32'; break 22633fi 22634rm -f core conftest.err conftest.$ac_objext conftest.beam 22635 break 22636 done 22637 CC=$ac_save_CC 22638 rm -f conftest.$ac_ext 22639 fi 22640fi 22641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 22642printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } 22643 if test "$ac_cv_sys_largefile_CC" != no; then 22644 CC=$CC$ac_cv_sys_largefile_CC 22645 fi 22646 22647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 22648printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 22649if test ${ac_cv_sys_file_offset_bits+y} 22650then : 22651 printf %s "(cached) " >&6 22652else $as_nop 22653 while :; do 22654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22655/* end confdefs.h. */ 22656#include <sys/types.h> 22657 /* Check that off_t can represent 2**63 - 1 correctly. 22658 We can't simply define LARGE_OFF_T to be 9223372036854775807, 22659 since some C++ compilers masquerading as C compilers 22660 incorrectly reject 9223372036854775807. */ 22661#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 22662 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 22663 && LARGE_OFF_T % 2147483647 == 1) 22664 ? 1 : -1]; 22665int 22666main (void) 22667{ 22668 22669 ; 22670 return 0; 22671} 22672_ACEOF 22673if ac_fn_c_try_compile "$LINENO" 22674then : 22675 ac_cv_sys_file_offset_bits=no; break 22676fi 22677rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22679/* end confdefs.h. */ 22680#define _FILE_OFFSET_BITS 64 22681#include <sys/types.h> 22682 /* Check that off_t can represent 2**63 - 1 correctly. 22683 We can't simply define LARGE_OFF_T to be 9223372036854775807, 22684 since some C++ compilers masquerading as C compilers 22685 incorrectly reject 9223372036854775807. */ 22686#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 22687 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 22688 && LARGE_OFF_T % 2147483647 == 1) 22689 ? 1 : -1]; 22690int 22691main (void) 22692{ 22693 22694 ; 22695 return 0; 22696} 22697_ACEOF 22698if ac_fn_c_try_compile "$LINENO" 22699then : 22700 ac_cv_sys_file_offset_bits=64; break 22701fi 22702rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22703 ac_cv_sys_file_offset_bits=unknown 22704 break 22705done 22706fi 22707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 22708printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } 22709case $ac_cv_sys_file_offset_bits in #( 22710 no | unknown) ;; 22711 *) 22712printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h 22713;; 22714esac 22715rm -rf conftest* 22716 if test $ac_cv_sys_file_offset_bits = unknown; then 22717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 22718printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } 22719if test ${ac_cv_sys_large_files+y} 22720then : 22721 printf %s "(cached) " >&6 22722else $as_nop 22723 while :; do 22724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22725/* end confdefs.h. */ 22726#include <sys/types.h> 22727 /* Check that off_t can represent 2**63 - 1 correctly. 22728 We can't simply define LARGE_OFF_T to be 9223372036854775807, 22729 since some C++ compilers masquerading as C compilers 22730 incorrectly reject 9223372036854775807. */ 22731#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 22732 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 22733 && LARGE_OFF_T % 2147483647 == 1) 22734 ? 1 : -1]; 22735int 22736main (void) 22737{ 22738 22739 ; 22740 return 0; 22741} 22742_ACEOF 22743if ac_fn_c_try_compile "$LINENO" 22744then : 22745 ac_cv_sys_large_files=no; break 22746fi 22747rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22749/* end confdefs.h. */ 22750#define _LARGE_FILES 1 22751#include <sys/types.h> 22752 /* Check that off_t can represent 2**63 - 1 correctly. 22753 We can't simply define LARGE_OFF_T to be 9223372036854775807, 22754 since some C++ compilers masquerading as C compilers 22755 incorrectly reject 9223372036854775807. */ 22756#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 22757 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 22758 && LARGE_OFF_T % 2147483647 == 1) 22759 ? 1 : -1]; 22760int 22761main (void) 22762{ 22763 22764 ; 22765 return 0; 22766} 22767_ACEOF 22768if ac_fn_c_try_compile "$LINENO" 22769then : 22770 ac_cv_sys_large_files=1; break 22771fi 22772rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22773 ac_cv_sys_large_files=unknown 22774 break 22775done 22776fi 22777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 22778printf "%s\n" "$ac_cv_sys_large_files" >&6; } 22779case $ac_cv_sys_large_files in #( 22780 no | unknown) ;; 22781 *) 22782printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h 22783;; 22784esac 22785rm -rf conftest* 22786 fi 22787fi 22788 22789ac_ext=c 22790ac_cpp='$CPP $CPPFLAGS' 22791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22793ac_compiler_gnu=$ac_cv_c_compiler_gnu 22794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 22795printf %s "checking how to run the C preprocessor... " >&6; } 22796# On Suns, sometimes $CPP names a directory. 22797if test -n "$CPP" && test -d "$CPP"; then 22798 CPP= 22799fi 22800if test -z "$CPP"; then 22801 if test ${ac_cv_prog_CPP+y} 22802then : 22803 printf %s "(cached) " >&6 22804else $as_nop 22805 # Double quotes because $CC needs to be expanded 22806 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 22807 do 22808 ac_preproc_ok=false 22809for ac_c_preproc_warn_flag in '' yes 22810do 22811 # Use a header file that comes with gcc, so configuring glibc 22812 # with a fresh cross-compiler works. 22813 # On the NeXT, cc -E runs the code through the compiler's parser, 22814 # not just through cpp. "Syntax error" is here to catch this case. 22815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22816/* end confdefs.h. */ 22817#include <limits.h> 22818 Syntax error 22819_ACEOF 22820if ac_fn_c_try_cpp "$LINENO" 22821then : 22822 22823else $as_nop 22824 # Broken: fails on valid input. 22825continue 22826fi 22827rm -f conftest.err conftest.i conftest.$ac_ext 22828 22829 # OK, works on sane cases. Now check whether nonexistent headers 22830 # can be detected and how. 22831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22832/* end confdefs.h. */ 22833#include <ac_nonexistent.h> 22834_ACEOF 22835if ac_fn_c_try_cpp "$LINENO" 22836then : 22837 # Broken: success on invalid input. 22838continue 22839else $as_nop 22840 # Passes both tests. 22841ac_preproc_ok=: 22842break 22843fi 22844rm -f conftest.err conftest.i conftest.$ac_ext 22845 22846done 22847# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 22848rm -f conftest.i conftest.err conftest.$ac_ext 22849if $ac_preproc_ok 22850then : 22851 break 22852fi 22853 22854 done 22855 ac_cv_prog_CPP=$CPP 22856 22857fi 22858 CPP=$ac_cv_prog_CPP 22859else 22860 ac_cv_prog_CPP=$CPP 22861fi 22862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 22863printf "%s\n" "$CPP" >&6; } 22864ac_preproc_ok=false 22865for ac_c_preproc_warn_flag in '' yes 22866do 22867 # Use a header file that comes with gcc, so configuring glibc 22868 # with a fresh cross-compiler works. 22869 # On the NeXT, cc -E runs the code through the compiler's parser, 22870 # not just through cpp. "Syntax error" is here to catch this case. 22871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22872/* end confdefs.h. */ 22873#include <limits.h> 22874 Syntax error 22875_ACEOF 22876if ac_fn_c_try_cpp "$LINENO" 22877then : 22878 22879else $as_nop 22880 # Broken: fails on valid input. 22881continue 22882fi 22883rm -f conftest.err conftest.i conftest.$ac_ext 22884 22885 # OK, works on sane cases. Now check whether nonexistent headers 22886 # can be detected and how. 22887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22888/* end confdefs.h. */ 22889#include <ac_nonexistent.h> 22890_ACEOF 22891if ac_fn_c_try_cpp "$LINENO" 22892then : 22893 # Broken: success on invalid input. 22894continue 22895else $as_nop 22896 # Passes both tests. 22897ac_preproc_ok=: 22898break 22899fi 22900rm -f conftest.err conftest.i conftest.$ac_ext 22901 22902done 22903# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 22904rm -f conftest.i conftest.err conftest.$ac_ext 22905if $ac_preproc_ok 22906then : 22907 22908else $as_nop 22909 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22910printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 22911as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 22912See \`config.log' for more details" "$LINENO" 5; } 22913fi 22914 22915ac_ext=c 22916ac_cpp='$CPP $CPPFLAGS' 22917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22919ac_compiler_gnu=$ac_cv_c_compiler_gnu 22920 22921 22922 22923if test -n "$ac_tool_prefix"; then 22924 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args. 22925set dummy ${ac_tool_prefix}cpp; ac_word=$2 22926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22927printf %s "checking for $ac_word... " >&6; } 22928if test ${ac_cv_path_RAWCPP+y} 22929then : 22930 printf %s "(cached) " >&6 22931else $as_nop 22932 case $RAWCPP in 22933 [\\/]* | ?:[\\/]*) 22934 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path. 22935 ;; 22936 *) 22937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22938as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 22939for as_dir in $as_dummy 22940do 22941 IFS=$as_save_IFS 22942 case $as_dir in #((( 22943 '') as_dir=./ ;; 22944 */) ;; 22945 *) as_dir=$as_dir/ ;; 22946 esac 22947 for ac_exec_ext in '' $ac_executable_extensions; do 22948 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 22949 ac_cv_path_RAWCPP="$as_dir$ac_word$ac_exec_ext" 22950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 22951 break 2 22952 fi 22953done 22954 done 22955IFS=$as_save_IFS 22956 22957 ;; 22958esac 22959fi 22960RAWCPP=$ac_cv_path_RAWCPP 22961if test -n "$RAWCPP"; then 22962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5 22963printf "%s\n" "$RAWCPP" >&6; } 22964else 22965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22966printf "%s\n" "no" >&6; } 22967fi 22968 22969 22970fi 22971if test -z "$ac_cv_path_RAWCPP"; then 22972 ac_pt_RAWCPP=$RAWCPP 22973 # Extract the first word of "cpp", so it can be a program name with args. 22974set dummy cpp; ac_word=$2 22975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22976printf %s "checking for $ac_word... " >&6; } 22977if test ${ac_cv_path_ac_pt_RAWCPP+y} 22978then : 22979 printf %s "(cached) " >&6 22980else $as_nop 22981 case $ac_pt_RAWCPP in 22982 [\\/]* | ?:[\\/]*) 22983 ac_cv_path_ac_pt_RAWCPP="$ac_pt_RAWCPP" # Let the user override the test with a path. 22984 ;; 22985 *) 22986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22987as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 22988for as_dir in $as_dummy 22989do 22990 IFS=$as_save_IFS 22991 case $as_dir in #((( 22992 '') as_dir=./ ;; 22993 */) ;; 22994 *) as_dir=$as_dir/ ;; 22995 esac 22996 for ac_exec_ext in '' $ac_executable_extensions; do 22997 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 22998 ac_cv_path_ac_pt_RAWCPP="$as_dir$ac_word$ac_exec_ext" 22999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 23000 break 2 23001 fi 23002done 23003 done 23004IFS=$as_save_IFS 23005 23006 ;; 23007esac 23008fi 23009ac_pt_RAWCPP=$ac_cv_path_ac_pt_RAWCPP 23010if test -n "$ac_pt_RAWCPP"; then 23011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RAWCPP" >&5 23012printf "%s\n" "$ac_pt_RAWCPP" >&6; } 23013else 23014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23015printf "%s\n" "no" >&6; } 23016fi 23017 23018 if test "x$ac_pt_RAWCPP" = x; then 23019 RAWCPP="${CPP}" 23020 else 23021 case $cross_compiling:$ac_tool_warned in 23022yes:) 23023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 23024printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 23025ac_tool_warned=yes ;; 23026esac 23027 RAWCPP=$ac_pt_RAWCPP 23028 fi 23029else 23030 RAWCPP="$ac_cv_path_RAWCPP" 23031fi 23032 23033 23034# Check for flag to avoid builtin definitions - assumes unix is predefined, 23035# which is not the best choice for supporting other OS'es, but covers most 23036# of the ones we need for now. 23037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5 23038printf %s "checking if $RAWCPP requires -undef... " >&6; } 23039cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23040/* end confdefs.h. */ 23041Does cpp redefine unix ? 23042_ACEOF 23043if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 23044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23045printf "%s\n" "no" >&6; } 23046else 23047 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 23048 RAWCPPFLAGS=-undef 23049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23050printf "%s\n" "yes" >&6; } 23051 # under Cygwin unix is still defined even with -undef 23052 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 23053 RAWCPPFLAGS="-undef -ansi" 23054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5 23055printf "%s\n" "yes, with -ansi" >&6; } 23056 else 23057 as_fn_error $? "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5 23058 fi 23059fi 23060rm -f conftest.$ac_ext 23061 23062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5 23063printf %s "checking if $RAWCPP requires -traditional... " >&6; } 23064cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23065/* end confdefs.h. */ 23066Does cpp preserve "whitespace"? 23067_ACEOF 23068if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 23069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23070printf "%s\n" "no" >&6; } 23071else 23072 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 23073 TRADITIONALCPPFLAGS="-traditional" 23074 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 23075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23076printf "%s\n" "yes" >&6; } 23077 else 23078 as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5 23079 fi 23080fi 23081rm -f conftest.$ac_ext 23082 23083 23084 23085 23086# Quoted so that make will expand $(CWARNFLAGS) in makefiles to allow 23087# easier overrides at build time. 23088XSERVER_CFLAGS='$(CWARNFLAGS)' 23089 23090if test "x$GCC" = xyes ; then 23091 XSERVER_CFLAGS="$XSERVER_CFLAGS -fno-strict-aliasing" 23092fi 23093 23094 23095# Check whether --with-dtrace was given. 23096if test ${with_dtrace+y} 23097then : 23098 withval=$with_dtrace; WDTRACE=$withval 23099else $as_nop 23100 WDTRACE=auto 23101fi 23102 23103if test "x$WDTRACE" = "xyes" -o "x$WDTRACE" = "xauto" ; then 23104 # Extract the first word of "dtrace", so it can be a program name with args. 23105set dummy dtrace; ac_word=$2 23106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23107printf %s "checking for $ac_word... " >&6; } 23108if test ${ac_cv_path_DTRACE+y} 23109then : 23110 printf %s "(cached) " >&6 23111else $as_nop 23112 case $DTRACE in 23113 [\\/]* | ?:[\\/]*) 23114 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 23115 ;; 23116 *) 23117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23118as_dummy="$PATH:/usr/sbin" 23119for as_dir in $as_dummy 23120do 23121 IFS=$as_save_IFS 23122 case $as_dir in #((( 23123 '') as_dir=./ ;; 23124 */) ;; 23125 *) as_dir=$as_dir/ ;; 23126 esac 23127 for ac_exec_ext in '' $ac_executable_extensions; do 23128 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 23129 ac_cv_path_DTRACE="$as_dir$ac_word$ac_exec_ext" 23130 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 23131 break 2 23132 fi 23133done 23134 done 23135IFS=$as_save_IFS 23136 23137 test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not_found" 23138 ;; 23139esac 23140fi 23141DTRACE=$ac_cv_path_DTRACE 23142if test -n "$DTRACE"; then 23143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 23144printf "%s\n" "$DTRACE" >&6; } 23145else 23146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23147printf "%s\n" "no" >&6; } 23148fi 23149 23150 23151 if test "x$DTRACE" = "xnot_found" ; then 23152 if test "x$WDTRACE" = "xyes" ; then 23153 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23154printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 23155as_fn_error $? "dtrace requested but not found 23156See \`config.log' for more details" "$LINENO" 5; } 23157 fi 23158 WDTRACE="no" 23159 else 23160 ac_fn_c_check_header_compile "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default" 23161if test "x$ac_cv_header_sys_sdt_h" = xyes 23162then : 23163 HAS_SDT_H="yes" 23164else $as_nop 23165 HAS_SDT_H="no" 23166fi 23167 23168 if test "x$WDTRACE" = "xauto" -a "x$HAS_SDT_H" = "xno" ; then 23169 WDTRACE="no" 23170 fi 23171 fi 23172fi 23173if test "x$WDTRACE" != "xno" ; then 23174 23175printf "%s\n" "#define XSERVER_DTRACE 1" >>confdefs.h 23176 23177 23178# Solaris/OpenSolaris require dtrace -G to build dtrace probe information into 23179# object files, and require linking with those as relocatable objects, not .a 23180# archives. MacOS X handles all this in the normal compiler toolchain, and on 23181# some releases (like Tiger), will error out on dtrace -G. For now, other 23182# platforms with Dtrace ports are assumed to support -G (the FreeBSD and Linux 23183# ports appear to, based on my web searches, but have not yet been tested). 23184 case $host_os in 23185 darwin*) SPECIAL_DTRACE_OBJECTS=no ;; 23186 *) SPECIAL_DTRACE_OBJECTS=yes ;; 23187 esac 23188fi 23189 if test "x$WDTRACE" != "xno"; then 23190 XSERVER_DTRACE_TRUE= 23191 XSERVER_DTRACE_FALSE='#' 23192else 23193 XSERVER_DTRACE_TRUE='#' 23194 XSERVER_DTRACE_FALSE= 23195fi 23196 23197 if test "x$SPECIAL_DTRACE_OBJECTS" = "xyes"; then 23198 SPECIAL_DTRACE_OBJECTS_TRUE= 23199 SPECIAL_DTRACE_OBJECTS_FALSE='#' 23200else 23201 SPECIAL_DTRACE_OBJECTS_TRUE='#' 23202 SPECIAL_DTRACE_OBJECTS_FALSE= 23203fi 23204 23205 23206ac_header_dirent=no 23207for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 23208 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 23209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 23210printf %s "checking for $ac_hdr that defines DIR... " >&6; } 23211if eval test \${$as_ac_Header+y} 23212then : 23213 printf %s "(cached) " >&6 23214else $as_nop 23215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23216/* end confdefs.h. */ 23217#include <sys/types.h> 23218#include <$ac_hdr> 23219 23220int 23221main (void) 23222{ 23223if ((DIR *) 0) 23224return 0; 23225 ; 23226 return 0; 23227} 23228_ACEOF 23229if ac_fn_c_try_compile "$LINENO" 23230then : 23231 eval "$as_ac_Header=yes" 23232else $as_nop 23233 eval "$as_ac_Header=no" 23234fi 23235rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23236fi 23237eval ac_res=\$$as_ac_Header 23238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 23239printf "%s\n" "$ac_res" >&6; } 23240if eval test \"x\$"$as_ac_Header"\" = x"yes" 23241then : 23242 cat >>confdefs.h <<_ACEOF 23243#define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1 23244_ACEOF 23245 23246ac_header_dirent=$ac_hdr; break 23247fi 23248 23249done 23250# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 23251if test $ac_header_dirent = dirent.h; then 23252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 23253printf %s "checking for library containing opendir... " >&6; } 23254if test ${ac_cv_search_opendir+y} 23255then : 23256 printf %s "(cached) " >&6 23257else $as_nop 23258 ac_func_search_save_LIBS=$LIBS 23259cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23260/* end confdefs.h. */ 23261 23262/* Override any GCC internal prototype to avoid an error. 23263 Use char because int might match the return type of a GCC 23264 builtin and then its argument prototype would still apply. */ 23265char opendir (); 23266int 23267main (void) 23268{ 23269return opendir (); 23270 ; 23271 return 0; 23272} 23273_ACEOF 23274for ac_lib in '' dir 23275do 23276 if test -z "$ac_lib"; then 23277 ac_res="none required" 23278 else 23279 ac_res=-l$ac_lib 23280 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 23281 fi 23282 if ac_fn_c_try_link "$LINENO" 23283then : 23284 ac_cv_search_opendir=$ac_res 23285fi 23286rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23287 conftest$ac_exeext 23288 if test ${ac_cv_search_opendir+y} 23289then : 23290 break 23291fi 23292done 23293if test ${ac_cv_search_opendir+y} 23294then : 23295 23296else $as_nop 23297 ac_cv_search_opendir=no 23298fi 23299rm conftest.$ac_ext 23300LIBS=$ac_func_search_save_LIBS 23301fi 23302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 23303printf "%s\n" "$ac_cv_search_opendir" >&6; } 23304ac_res=$ac_cv_search_opendir 23305if test "$ac_res" != no 23306then : 23307 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 23308 23309fi 23310 23311else 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. */ 23325char opendir (); 23326int 23327main (void) 23328{ 23329return opendir (); 23330 ; 23331 return 0; 23332} 23333_ACEOF 23334for ac_lib in '' x 23335do 23336 if test -z "$ac_lib"; then 23337 ac_res="none required" 23338 else 23339 ac_res=-l$ac_lib 23340 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 23341 fi 23342 if ac_fn_c_try_link "$LINENO" 23343then : 23344 ac_cv_search_opendir=$ac_res 23345fi 23346rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23347 conftest$ac_exeext 23348 if test ${ac_cv_search_opendir+y} 23349then : 23350 break 23351fi 23352done 23353if test ${ac_cv_search_opendir+y} 23354then : 23355 23356else $as_nop 23357 ac_cv_search_opendir=no 23358fi 23359rm conftest.$ac_ext 23360LIBS=$ac_func_search_save_LIBS 23361fi 23362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 23363printf "%s\n" "$ac_cv_search_opendir" >&6; } 23364ac_res=$ac_cv_search_opendir 23365if test "$ac_res" != no 23366then : 23367 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 23368 23369fi 23370 23371fi 23372 23373# Autoupdate added the next two lines to ensure that your configure 23374# script's behavior did not change. They are probably safe to remove. 23375 23376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 23377printf %s "checking for egrep... " >&6; } 23378if test ${ac_cv_path_EGREP+y} 23379then : 23380 printf %s "(cached) " >&6 23381else $as_nop 23382 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 23383 then ac_cv_path_EGREP="$GREP -E" 23384 else 23385 if test -z "$EGREP"; then 23386 ac_path_EGREP_found=false 23387 # Loop through the user's path and test for each of PROGNAME-LIST 23388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23389for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 23390do 23391 IFS=$as_save_IFS 23392 case $as_dir in #((( 23393 '') as_dir=./ ;; 23394 */) ;; 23395 *) as_dir=$as_dir/ ;; 23396 esac 23397 for ac_prog in egrep 23398 do 23399 for ac_exec_ext in '' $ac_executable_extensions; do 23400 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 23401 as_fn_executable_p "$ac_path_EGREP" || continue 23402# Check for GNU ac_path_EGREP and select it if it is found. 23403 # Check for GNU $ac_path_EGREP 23404case `"$ac_path_EGREP" --version 2>&1` in 23405*GNU*) 23406 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 23407*) 23408 ac_count=0 23409 printf %s 0123456789 >"conftest.in" 23410 while : 23411 do 23412 cat "conftest.in" "conftest.in" >"conftest.tmp" 23413 mv "conftest.tmp" "conftest.in" 23414 cp "conftest.in" "conftest.nl" 23415 printf "%s\n" 'EGREP' >> "conftest.nl" 23416 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 23417 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 23418 as_fn_arith $ac_count + 1 && ac_count=$as_val 23419 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 23420 # Best one so far, save it but keep looking for a better one 23421 ac_cv_path_EGREP="$ac_path_EGREP" 23422 ac_path_EGREP_max=$ac_count 23423 fi 23424 # 10*(2^10) chars as input seems more than enough 23425 test $ac_count -gt 10 && break 23426 done 23427 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 23428esac 23429 23430 $ac_path_EGREP_found && break 3 23431 done 23432 done 23433 done 23434IFS=$as_save_IFS 23435 if test -z "$ac_cv_path_EGREP"; then 23436 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 23437 fi 23438else 23439 ac_cv_path_EGREP=$EGREP 23440fi 23441 23442 fi 23443fi 23444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 23445printf "%s\n" "$ac_cv_path_EGREP" >&6; } 23446 EGREP="$ac_cv_path_EGREP" 23447 23448 23449 23450ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" 23451if test "x$ac_cv_header_fcntl_h" = xyes 23452then : 23453 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h 23454 23455fi 23456ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 23457if test "x$ac_cv_header_stdlib_h" = xyes 23458then : 23459 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h 23460 23461fi 23462ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" 23463if test "x$ac_cv_header_string_h" = xyes 23464then : 23465 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h 23466 23467fi 23468ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 23469if test "x$ac_cv_header_unistd_h" = xyes 23470then : 23471 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h 23472 23473fi 23474ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 23475if test "x$ac_cv_header_dlfcn_h" = xyes 23476then : 23477 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 23478 23479fi 23480ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$ac_includes_default" 23481if test "x$ac_cv_header_stropts_h" = xyes 23482then : 23483 printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h 23484 23485fi 23486ac_fn_c_check_header_compile "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default" 23487if test "x$ac_cv_header_fnmatch_h" = xyes 23488then : 23489 printf "%s\n" "#define HAVE_FNMATCH_H 1" >>confdefs.h 23490 23491fi 23492ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" 23493if test "x$ac_cv_header_sys_mkdev_h" = xyes 23494then : 23495 printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h 23496 23497fi 23498ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" 23499if test "x$ac_cv_header_sys_sysmacros_h" = xyes 23500then : 23501 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h 23502 23503fi 23504ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default" 23505if test "x$ac_cv_header_sys_utsname_h" = xyes 23506then : 23507 printf "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h 23508 23509fi 23510 23511 23512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 23513printf %s "checking for an ANSI C-conforming const... " >&6; } 23514if test ${ac_cv_c_const+y} 23515then : 23516 printf %s "(cached) " >&6 23517else $as_nop 23518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23519/* end confdefs.h. */ 23520 23521int 23522main (void) 23523{ 23524 23525#ifndef __cplusplus 23526 /* Ultrix mips cc rejects this sort of thing. */ 23527 typedef int charset[2]; 23528 const charset cs = { 0, 0 }; 23529 /* SunOS 4.1.1 cc rejects this. */ 23530 char const *const *pcpcc; 23531 char **ppc; 23532 /* NEC SVR4.0.2 mips cc rejects this. */ 23533 struct point {int x, y;}; 23534 static struct point const zero = {0,0}; 23535 /* IBM XL C 1.02.0.0 rejects this. 23536 It does not let you subtract one const X* pointer from another in 23537 an arm of an if-expression whose if-part is not a constant 23538 expression */ 23539 const char *g = "string"; 23540 pcpcc = &g + (g ? g-g : 0); 23541 /* HPUX 7.0 cc rejects these. */ 23542 ++pcpcc; 23543 ppc = (char**) pcpcc; 23544 pcpcc = (char const *const *) ppc; 23545 { /* SCO 3.2v4 cc rejects this sort of thing. */ 23546 char tx; 23547 char *t = &tx; 23548 char const *s = 0 ? (char *) 0 : (char const *) 0; 23549 23550 *t++ = 0; 23551 if (s) return 0; 23552 } 23553 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 23554 int x[] = {25, 17}; 23555 const int *foo = &x[0]; 23556 ++foo; 23557 } 23558 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 23559 typedef const int *iptr; 23560 iptr p = 0; 23561 ++p; 23562 } 23563 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying 23564 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 23565 struct s { int j; const int *ap[3]; } bx; 23566 struct s *b = &bx; b->j = 5; 23567 } 23568 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 23569 const int foo = 10; 23570 if (!foo) return 0; 23571 } 23572 return !cs[0] && !zero.x; 23573#endif 23574 23575 ; 23576 return 0; 23577} 23578_ACEOF 23579if ac_fn_c_try_compile "$LINENO" 23580then : 23581 ac_cv_c_const=yes 23582else $as_nop 23583 ac_cv_c_const=no 23584fi 23585rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23586fi 23587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 23588printf "%s\n" "$ac_cv_c_const" >&6; } 23589if test $ac_cv_c_const = no; then 23590 23591printf "%s\n" "#define const /**/" >>confdefs.h 23592 23593fi 23594 23595 23596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for typeof syntax and keyword spelling" >&5 23597printf %s "checking for typeof syntax and keyword spelling... " >&6; } 23598if test ${ac_cv_c_typeof+y} 23599then : 23600 printf %s "(cached) " >&6 23601else $as_nop 23602 ac_cv_c_typeof=no 23603 for ac_kw in typeof __typeof__ no; do 23604 test $ac_kw = no && break 23605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23606/* end confdefs.h. */ 23607 23608int 23609main (void) 23610{ 23611 23612 int value; 23613 typedef struct { 23614 char a [1 23615 + ! (($ac_kw (value)) 23616 (($ac_kw (value)) 0 < ($ac_kw (value)) -1 23617 ? ($ac_kw (value)) - 1 23618 : ~ (~ ($ac_kw (value)) 0 23619 << sizeof ($ac_kw (value)))))]; } 23620 ac__typeof_type_; 23621 return 23622 (! ((void) ((ac__typeof_type_ *) 0), 0)); 23623 23624 ; 23625 return 0; 23626} 23627_ACEOF 23628if ac_fn_c_try_compile "$LINENO" 23629then : 23630 ac_cv_c_typeof=$ac_kw 23631fi 23632rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23633 test $ac_cv_c_typeof != no && break 23634 done 23635fi 23636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_typeof" >&5 23637printf "%s\n" "$ac_cv_c_typeof" >&6; } 23638 if test $ac_cv_c_typeof != no; then 23639 23640printf "%s\n" "#define HAVE_TYPEOF 1" >>confdefs.h 23641 23642 if test $ac_cv_c_typeof != typeof; then 23643 23644printf "%s\n" "#define typeof $ac_cv_c_typeof" >>confdefs.h 23645 23646 fi 23647 fi 23648 23649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 23650printf %s "checking whether byte ordering is bigendian... " >&6; } 23651if test ${ac_cv_c_bigendian+y} 23652then : 23653 printf %s "(cached) " >&6 23654else $as_nop 23655 ac_cv_c_bigendian=unknown 23656 # See if we're dealing with a universal compiler. 23657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23658/* end confdefs.h. */ 23659#ifndef __APPLE_CC__ 23660 not a universal capable compiler 23661 #endif 23662 typedef int dummy; 23663 23664_ACEOF 23665if ac_fn_c_try_compile "$LINENO" 23666then : 23667 23668 # Check for potential -arch flags. It is not universal unless 23669 # there are at least two -arch flags with different values. 23670 ac_arch= 23671 ac_prev= 23672 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 23673 if test -n "$ac_prev"; then 23674 case $ac_word in 23675 i?86 | x86_64 | ppc | ppc64) 23676 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 23677 ac_arch=$ac_word 23678 else 23679 ac_cv_c_bigendian=universal 23680 break 23681 fi 23682 ;; 23683 esac 23684 ac_prev= 23685 elif test "x$ac_word" = "x-arch"; then 23686 ac_prev=arch 23687 fi 23688 done 23689fi 23690rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23691 if test $ac_cv_c_bigendian = unknown; then 23692 # See if sys/param.h defines the BYTE_ORDER macro. 23693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23694/* end confdefs.h. */ 23695#include <sys/types.h> 23696 #include <sys/param.h> 23697 23698int 23699main (void) 23700{ 23701#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 23702 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 23703 && LITTLE_ENDIAN) 23704 bogus endian macros 23705 #endif 23706 23707 ; 23708 return 0; 23709} 23710_ACEOF 23711if ac_fn_c_try_compile "$LINENO" 23712then : 23713 # It does; now see whether it defined to BIG_ENDIAN or not. 23714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23715/* end confdefs.h. */ 23716#include <sys/types.h> 23717 #include <sys/param.h> 23718 23719int 23720main (void) 23721{ 23722#if BYTE_ORDER != BIG_ENDIAN 23723 not big endian 23724 #endif 23725 23726 ; 23727 return 0; 23728} 23729_ACEOF 23730if ac_fn_c_try_compile "$LINENO" 23731then : 23732 ac_cv_c_bigendian=yes 23733else $as_nop 23734 ac_cv_c_bigendian=no 23735fi 23736rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23737fi 23738rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23739 fi 23740 if test $ac_cv_c_bigendian = unknown; then 23741 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 23742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23743/* end confdefs.h. */ 23744#include <limits.h> 23745 23746int 23747main (void) 23748{ 23749#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 23750 bogus endian macros 23751 #endif 23752 23753 ; 23754 return 0; 23755} 23756_ACEOF 23757if ac_fn_c_try_compile "$LINENO" 23758then : 23759 # It does; now see whether it defined to _BIG_ENDIAN or not. 23760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23761/* end confdefs.h. */ 23762#include <limits.h> 23763 23764int 23765main (void) 23766{ 23767#ifndef _BIG_ENDIAN 23768 not big endian 23769 #endif 23770 23771 ; 23772 return 0; 23773} 23774_ACEOF 23775if ac_fn_c_try_compile "$LINENO" 23776then : 23777 ac_cv_c_bigendian=yes 23778else $as_nop 23779 ac_cv_c_bigendian=no 23780fi 23781rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23782fi 23783rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23784 fi 23785 if test $ac_cv_c_bigendian = unknown; then 23786 # Compile a test program. 23787 if test "$cross_compiling" = yes 23788then : 23789 # Try to guess by grepping values from an object file. 23790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23791/* end confdefs.h. */ 23792unsigned short int ascii_mm[] = 23793 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 23794 unsigned short int ascii_ii[] = 23795 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 23796 int use_ascii (int i) { 23797 return ascii_mm[i] + ascii_ii[i]; 23798 } 23799 unsigned short int ebcdic_ii[] = 23800 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 23801 unsigned short int ebcdic_mm[] = 23802 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 23803 int use_ebcdic (int i) { 23804 return ebcdic_mm[i] + ebcdic_ii[i]; 23805 } 23806 extern int foo; 23807 23808int 23809main (void) 23810{ 23811return use_ascii (foo) == use_ebcdic (foo); 23812 ; 23813 return 0; 23814} 23815_ACEOF 23816if ac_fn_c_try_compile "$LINENO" 23817then : 23818 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 23819 ac_cv_c_bigendian=yes 23820 fi 23821 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 23822 if test "$ac_cv_c_bigendian" = unknown; then 23823 ac_cv_c_bigendian=no 23824 else 23825 # finding both strings is unlikely to happen, but who knows? 23826 ac_cv_c_bigendian=unknown 23827 fi 23828 fi 23829fi 23830rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23831else $as_nop 23832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23833/* end confdefs.h. */ 23834$ac_includes_default 23835int 23836main (void) 23837{ 23838 23839 /* Are we little or big endian? From Harbison&Steele. */ 23840 union 23841 { 23842 long int l; 23843 char c[sizeof (long int)]; 23844 } u; 23845 u.l = 1; 23846 return u.c[sizeof (long int) - 1] == 1; 23847 23848 ; 23849 return 0; 23850} 23851_ACEOF 23852if ac_fn_c_try_run "$LINENO" 23853then : 23854 ac_cv_c_bigendian=no 23855else $as_nop 23856 ac_cv_c_bigendian=yes 23857fi 23858rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23859 conftest.$ac_objext conftest.beam conftest.$ac_ext 23860fi 23861 23862 fi 23863fi 23864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 23865printf "%s\n" "$ac_cv_c_bigendian" >&6; } 23866 case $ac_cv_c_bigendian in #( 23867 yes) 23868 23869printf "%s\n" "#define X_BYTE_ORDER X_BIG_ENDIAN" >>confdefs.h 23870;; #( 23871 no) 23872 23873printf "%s\n" "#define X_BYTE_ORDER X_LITTLE_ENDIAN" >>confdefs.h 23874 ;; #( 23875 universal) 23876 23877printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 23878 23879 ;; #( 23880 *) 23881 as_fn_error $? "unknown endianness 23882 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 23883 esac 23884 23885 23886# The cast to long int works around a bug in the HP C Compiler 23887# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23888# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23889# This bug is HP SR number 8606223364. 23890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 23891printf %s "checking size of unsigned long... " >&6; } 23892if test ${ac_cv_sizeof_unsigned_long+y} 23893then : 23894 printf %s "(cached) " >&6 23895else $as_nop 23896 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default" 23897then : 23898 23899else $as_nop 23900 if test "$ac_cv_type_unsigned_long" = yes; then 23901 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23902printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 23903as_fn_error 77 "cannot compute sizeof (unsigned long) 23904See \`config.log' for more details" "$LINENO" 5; } 23905 else 23906 ac_cv_sizeof_unsigned_long=0 23907 fi 23908fi 23909 23910fi 23911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 23912printf "%s\n" "$ac_cv_sizeof_unsigned_long" >&6; } 23913 23914 23915 23916printf "%s\n" "#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long" >>confdefs.h 23917 23918 23919if test "$ac_cv_sizeof_unsigned_long" = 8; then 23920 23921printf "%s\n" "#define _XSERVER64 1" >>confdefs.h 23922 23923fi 23924 23925 23926 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default 23927" 23928if test "x$ac_cv_type_pid_t" = xyes 23929then : 23930 23931else $as_nop 23932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23933/* end confdefs.h. */ 23934 23935 #if defined _WIN64 && !defined __CYGWIN__ 23936 LLP64 23937 #endif 23938 23939int 23940main (void) 23941{ 23942 23943 ; 23944 return 0; 23945} 23946 23947_ACEOF 23948if ac_fn_c_try_compile "$LINENO" 23949then : 23950 ac_pid_type='int' 23951else $as_nop 23952 ac_pid_type='__int64' 23953fi 23954rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23955 23956printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h 23957 23958 23959fi 23960 23961 23962 23963ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 23964if test "x$ac_cv_func_dlopen" = xyes 23965then : 23966 23967else $as_nop 23968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 23969printf %s "checking for dlopen in -ldl... " >&6; } 23970if test ${ac_cv_lib_dl_dlopen+y} 23971then : 23972 printf %s "(cached) " >&6 23973else $as_nop 23974 ac_check_lib_save_LIBS=$LIBS 23975LIBS="-ldl $LIBS" 23976cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23977/* end confdefs.h. */ 23978 23979/* Override any GCC internal prototype to avoid an error. 23980 Use char because int might match the return type of a GCC 23981 builtin and then its argument prototype would still apply. */ 23982char dlopen (); 23983int 23984main (void) 23985{ 23986return dlopen (); 23987 ; 23988 return 0; 23989} 23990_ACEOF 23991if ac_fn_c_try_link "$LINENO" 23992then : 23993 ac_cv_lib_dl_dlopen=yes 23994else $as_nop 23995 ac_cv_lib_dl_dlopen=no 23996fi 23997rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23998 conftest$ac_exeext conftest.$ac_ext 23999LIBS=$ac_check_lib_save_LIBS 24000fi 24001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 24002printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 24003if test "x$ac_cv_lib_dl_dlopen" = xyes 24004then : 24005 DLOPEN_LIBS="-ldl" 24006fi 24007 24008fi 24009 24010 24011 24012ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace" 24013if test "x$ac_cv_func_backtrace" = xyes 24014then : 24015 printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h 24016 24017fi 24018ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid" 24019if test "x$ac_cv_func_geteuid" = xyes 24020then : 24021 printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h 24022 24023fi 24024ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid" 24025if test "x$ac_cv_func_getuid" = xyes 24026then : 24027 printf "%s\n" "#define HAVE_GETUID 1" >>confdefs.h 24028 24029fi 24030ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid" 24031if test "x$ac_cv_func_issetugid" = xyes 24032then : 24033 printf "%s\n" "#define HAVE_ISSETUGID 1" >>confdefs.h 24034 24035fi 24036ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid" 24037if test "x$ac_cv_func_getresuid" = xyes 24038then : 24039 printf "%s\n" "#define HAVE_GETRESUID 1" >>confdefs.h 24040 24041fi 24042ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize" 24043if test "x$ac_cv_func_getdtablesize" = xyes 24044then : 24045 printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h 24046 24047fi 24048ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 24049if test "x$ac_cv_func_getifaddrs" = xyes 24050then : 24051 printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h 24052 24053fi 24054ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid" 24055if test "x$ac_cv_func_getpeereid" = xyes 24056then : 24057 printf "%s\n" "#define HAVE_GETPEEREID 1" >>confdefs.h 24058 24059fi 24060ac_fn_c_check_func "$LINENO" "getpeerucred" "ac_cv_func_getpeerucred" 24061if test "x$ac_cv_func_getpeerucred" = xyes 24062then : 24063 printf "%s\n" "#define HAVE_GETPEERUCRED 1" >>confdefs.h 24064 24065fi 24066ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname" 24067if test "x$ac_cv_func_getprogname" = xyes 24068then : 24069 printf "%s\n" "#define HAVE_GETPROGNAME 1" >>confdefs.h 24070 24071fi 24072ac_fn_c_check_func "$LINENO" "getzoneid" "ac_cv_func_getzoneid" 24073if test "x$ac_cv_func_getzoneid" = xyes 24074then : 24075 printf "%s\n" "#define HAVE_GETZONEID 1" >>confdefs.h 24076 24077fi 24078ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" 24079if test "x$ac_cv_func_mmap" = xyes 24080then : 24081 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h 24082 24083fi 24084ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate" 24085if test "x$ac_cv_func_posix_fallocate" = xyes 24086then : 24087 printf "%s\n" "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h 24088 24089fi 24090ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid" 24091if test "x$ac_cv_func_seteuid" = xyes 24092then : 24093 printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h 24094 24095fi 24096ac_fn_c_check_func "$LINENO" "shmctl64" "ac_cv_func_shmctl64" 24097if test "x$ac_cv_func_shmctl64" = xyes 24098then : 24099 printf "%s\n" "#define HAVE_SHMCTL64 1" >>confdefs.h 24100 24101fi 24102ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp" 24103if test "x$ac_cv_func_strncasecmp" = xyes 24104then : 24105 printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h 24106 24107fi 24108ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" 24109if test "x$ac_cv_func_vasprintf" = xyes 24110then : 24111 printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h 24112 24113fi 24114ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf" 24115if test "x$ac_cv_func_vsnprintf" = xyes 24116then : 24117 printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h 24118 24119fi 24120ac_fn_c_check_func "$LINENO" "walkcontext" "ac_cv_func_walkcontext" 24121if test "x$ac_cv_func_walkcontext" = xyes 24122then : 24123 printf "%s\n" "#define HAVE_WALKCONTEXT 1" >>confdefs.h 24124 24125fi 24126ac_fn_c_check_func "$LINENO" "setitimer" "ac_cv_func_setitimer" 24127if test "x$ac_cv_func_setitimer" = xyes 24128then : 24129 printf "%s\n" "#define HAVE_SETITIMER 1" >>confdefs.h 24130 24131fi 24132ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 24133if test "x$ac_cv_func_poll" = xyes 24134then : 24135 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h 24136 24137fi 24138ac_fn_c_check_func "$LINENO" "epoll_create1" "ac_cv_func_epoll_create1" 24139if test "x$ac_cv_func_epoll_create1" = xyes 24140then : 24141 printf "%s\n" "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h 24142 24143fi 24144ac_fn_c_check_func "$LINENO" "mkostemp" "ac_cv_func_mkostemp" 24145if test "x$ac_cv_func_mkostemp" = xyes 24146then : 24147 printf "%s\n" "#define HAVE_MKOSTEMP 1" >>confdefs.h 24148 24149fi 24150ac_fn_c_check_func "$LINENO" "memfd_create" "ac_cv_func_memfd_create" 24151if test "x$ac_cv_func_memfd_create" = xyes 24152then : 24153 printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h 24154 24155fi 24156ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask" 24157if test "x$ac_cv_func_sigprocmask" = xyes 24158then : 24159 printf "%s\n" "#define HAVE_SIGPROCMASK 1" >>confdefs.h 24160 24161fi 24162ac_fn_c_check_func "$LINENO" "isastream" "ac_cv_func_isastream" 24163if test "x$ac_cv_func_isastream" = xyes 24164then : 24165 printf "%s\n" "#define HAVE_ISASTREAM 1" >>confdefs.h 24166 24167fi 24168 24169 24170ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray" 24171if test "x$ac_cv_func_reallocarray" = xyes 24172then : 24173 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h 24174 24175else $as_nop 24176 case " $LIBOBJS " in 24177 *" reallocarray.$ac_objext "* ) ;; 24178 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext" 24179 ;; 24180esac 24181 24182fi 24183ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 24184if test "x$ac_cv_func_strcasecmp" = xyes 24185then : 24186 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 24187 24188else $as_nop 24189 case " $LIBOBJS " in 24190 *" strcasecmp.$ac_objext "* ) ;; 24191 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" 24192 ;; 24193esac 24194 24195fi 24196ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr" 24197if test "x$ac_cv_func_strcasestr" = xyes 24198then : 24199 printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h 24200 24201else $as_nop 24202 case " $LIBOBJS " in 24203 *" strcasestr.$ac_objext "* ) ;; 24204 *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext" 24205 ;; 24206esac 24207 24208fi 24209ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 24210if test "x$ac_cv_func_strlcat" = xyes 24211then : 24212 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h 24213 24214else $as_nop 24215 case " $LIBOBJS " in 24216 *" strlcat.$ac_objext "* ) ;; 24217 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 24218 ;; 24219esac 24220 24221fi 24222ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 24223if test "x$ac_cv_func_strlcpy" = xyes 24224then : 24225 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 24226 24227else $as_nop 24228 case " $LIBOBJS " in 24229 *" strlcpy.$ac_objext "* ) ;; 24230 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 24231 ;; 24232esac 24233 24234fi 24235ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup" 24236if test "x$ac_cv_func_strndup" = xyes 24237then : 24238 printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h 24239 24240else $as_nop 24241 case " $LIBOBJS " in 24242 *" strndup.$ac_objext "* ) ;; 24243 *) LIBOBJS="$LIBOBJS strndup.$ac_objext" 24244 ;; 24245esac 24246 24247fi 24248ac_fn_c_check_func "$LINENO" "timingsafe_memcmp" "ac_cv_func_timingsafe_memcmp" 24249if test "x$ac_cv_func_timingsafe_memcmp" = xyes 24250then : 24251 printf "%s\n" "#define HAVE_TIMINGSAFE_MEMCMP 1" >>confdefs.h 24252 24253else $as_nop 24254 case " $LIBOBJS " in 24255 *" timingsafe_memcmp.$ac_objext "* ) ;; 24256 *) LIBOBJS="$LIBOBJS timingsafe_memcmp.$ac_objext" 24257 ;; 24258esac 24259 24260fi 24261 24262 if test "x$ac_cv_func_poll" = "xyes"; then 24263 POLL_TRUE= 24264 POLL_FALSE='#' 24265else 24266 POLL_TRUE='#' 24267 POLL_FALSE= 24268fi 24269 24270 24271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf in -lbsd" >&5 24272printf %s "checking for arc4random_buf in -lbsd... " >&6; } 24273if test ${ac_cv_lib_bsd_arc4random_buf+y} 24274then : 24275 printf %s "(cached) " >&6 24276else $as_nop 24277 ac_check_lib_save_LIBS=$LIBS 24278LIBS="-lbsd $LIBS" 24279cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24280/* end confdefs.h. */ 24281 24282/* Override any GCC internal prototype to avoid an error. 24283 Use char because int might match the return type of a GCC 24284 builtin and then its argument prototype would still apply. */ 24285char arc4random_buf (); 24286int 24287main (void) 24288{ 24289return arc4random_buf (); 24290 ; 24291 return 0; 24292} 24293_ACEOF 24294if ac_fn_c_try_link "$LINENO" 24295then : 24296 ac_cv_lib_bsd_arc4random_buf=yes 24297else $as_nop 24298 ac_cv_lib_bsd_arc4random_buf=no 24299fi 24300rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24301 conftest$ac_exeext conftest.$ac_ext 24302LIBS=$ac_check_lib_save_LIBS 24303fi 24304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_arc4random_buf" >&5 24305printf "%s\n" "$ac_cv_lib_bsd_arc4random_buf" >&6; } 24306if test "x$ac_cv_lib_bsd_arc4random_buf" = xyes 24307then : 24308 printf "%s\n" "#define HAVE_LIBBSD 1" >>confdefs.h 24309 24310 LIBS="-lbsd $LIBS" 24311 24312fi 24313 24314ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf" 24315if test "x$ac_cv_func_arc4random_buf" = xyes 24316then : 24317 printf "%s\n" "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h 24318 24319fi 24320 24321 24322ac_fn_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h> 24323" "$ac_c_undeclared_builtin_options" "CFLAGS" 24324if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes 24325then : 24326 ac_have_decl=1 24327else $as_nop 24328 ac_have_decl=0 24329fi 24330printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl" >>confdefs.h 24331 24332 24333 24334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SO_PEERCRED in sys/socket.h" >&5 24335printf %s "checking for SO_PEERCRED in sys/socket.h... " >&6; } 24336if test ${xorg_cv_sys_have_so_peercred+y} 24337then : 24338 printf %s "(cached) " >&6 24339else $as_nop 24340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24341/* end confdefs.h. */ 24342 24343#include <sys/types.h> 24344#include <sys/socket.h> 24345#ifdef SO_PEERCRED 24346yes_have_so_peercred 24347#endif 24348 24349_ACEOF 24350if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 24351 $EGREP "yes_have_so_peercred" >/dev/null 2>&1 24352then : 24353 xorg_cv_sys_have_so_peercred=yes 24354else $as_nop 24355 xorg_cv_sys_have_so_peercred=no 24356fi 24357rm -rf conftest* 24358 24359fi 24360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_sys_have_so_peercred" >&5 24361printf "%s\n" "$xorg_cv_sys_have_so_peercred" >&6; } 24362 24363if test "x$ac_cv_func_getpeereid" = xno && test "x$ac_cv_func_getpeerucred" = xno && test "x$xorg_cv_sys_have_so_peercred" = xno ; then 24364 24365printf "%s\n" "#define NO_LOCAL_CLIENT_CRED 1" >>confdefs.h 24366 24367fi 24368 24369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 24370printf %s "checking for sqrt in -lm... " >&6; } 24371if test ${ac_cv_lib_m_sqrt+y} 24372then : 24373 printf %s "(cached) " >&6 24374else $as_nop 24375 ac_check_lib_save_LIBS=$LIBS 24376LIBS="-lm $LIBS" 24377cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24378/* end confdefs.h. */ 24379 24380/* Override any GCC internal prototype to avoid an error. 24381 Use char because int might match the return type of a GCC 24382 builtin and then its argument prototype would still apply. */ 24383char sqrt (); 24384int 24385main (void) 24386{ 24387return sqrt (); 24388 ; 24389 return 0; 24390} 24391_ACEOF 24392if ac_fn_c_try_link "$LINENO" 24393then : 24394 ac_cv_lib_m_sqrt=yes 24395else $as_nop 24396 ac_cv_lib_m_sqrt=no 24397fi 24398rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24399 conftest$ac_exeext conftest.$ac_ext 24400LIBS=$ac_check_lib_save_LIBS 24401fi 24402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 24403printf "%s\n" "$ac_cv_lib_m_sqrt" >&6; } 24404if test "x$ac_cv_lib_m_sqrt" = xyes 24405then : 24406 printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h 24407 24408 LIBS="-lm $LIBS" 24409 24410fi 24411 24412ac_fn_c_check_func "$LINENO" "cbrt" "ac_cv_func_cbrt" 24413if test "x$ac_cv_func_cbrt" = xyes 24414then : 24415 printf "%s\n" "#define HAVE_CBRT 1" >>confdefs.h 24416 24417fi 24418 24419 24420# Check whether --enable-agp was given. 24421if test ${enable_agp+y} 24422then : 24423 enableval=$enable_agp; AGP=$enableval 24424else $as_nop 24425 AGP=auto 24426fi 24427 24428if test "x$AGP" = "xauto" ; then 24429 for ac_header in linux/agpgart.h sys/agpio.h sys/agpgart.h 24430do : 24431 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh` 24432ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 24433if eval test \"x\$"$as_ac_Header"\" = x"yes" 24434then : 24435 cat >>confdefs.h <<_ACEOF 24436#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1 24437_ACEOF 24438 AGP=yes 24439fi 24440 24441done 24442fi 24443 if test "x$AGP" = xyes; then 24444 AGP_TRUE= 24445 AGP_FALSE='#' 24446else 24447 AGP_TRUE='#' 24448 AGP_FALSE= 24449fi 24450 24451 24452 for ac_header in linux/fb.h 24453do : 24454 ac_fn_c_check_header_compile "$LINENO" "linux/fb.h" "ac_cv_header_linux_fb_h" "$ac_includes_default" 24455if test "x$ac_cv_header_linux_fb_h" = xyes 24456then : 24457 printf "%s\n" "#define HAVE_LINUX_FB_H 1" >>confdefs.h 24458 FBDEV=yes 24459fi 24460 24461done 24462 if test "x$FBDEV" = xyes; then 24463 FBDEVHW_TRUE= 24464 FBDEVHW_FALSE='#' 24465else 24466 FBDEVHW_TRUE='#' 24467 FBDEVHW_FALSE= 24468fi 24469 24470 24471 for ac_header in sys/linker.h 24472do : 24473 ac_fn_c_check_header_compile "$LINENO" "sys/linker.h" "ac_cv_header_sys_linker_h" "#include <sys/param.h> 24474" 24475if test "x$ac_cv_header_sys_linker_h" = xyes 24476then : 24477 printf "%s\n" "#define HAVE_SYS_LINKER_H 1" >>confdefs.h 24478 ac_cv_sys_linker_h=yes 24479else $as_nop 24480 ac_cv_sys_linker_h=no 24481fi 24482 24483done 24484 if test "x$ac_cv_sys_linker_h" = xyes; then 24485 FREEBSD_KLDLOAD_TRUE= 24486 FREEBSD_KLDLOAD_FALSE='#' 24487else 24488 FREEBSD_KLDLOAD_TRUE='#' 24489 FREEBSD_KLDLOAD_FALSE= 24490fi 24491 24492 24493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SYSV IPC" >&5 24494printf %s "checking for SYSV IPC... " >&6; } 24495if test ${ac_cv_sysv_ipc+y} 24496then : 24497 printf %s "(cached) " >&6 24498else $as_nop 24499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24500/* end confdefs.h. */ 24501 24502#include <sys/types.h> 24503#include <sys/ipc.h> 24504#include <sys/shm.h> 24505#include <sys/stat.h> 24506 24507int 24508main (void) 24509{ 24510 24511{ 24512 int id; 24513 id = shmget(IPC_PRIVATE, 512, S_IRUSR | S_IWUSR); 24514 if (id < 0) return -1; 24515 return shmctl(id, IPC_RMID, 0); 24516} 24517 ; 24518 return 0; 24519} 24520_ACEOF 24521if ac_fn_c_try_link "$LINENO" 24522then : 24523 ac_cv_sysv_ipc=yes 24524else $as_nop 24525 ac_cv_sysv_ipc=no 24526fi 24527rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24528 conftest$ac_exeext conftest.$ac_ext 24529fi 24530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_ipc" >&5 24531printf "%s\n" "$ac_cv_sysv_ipc" >&6; } 24532if test "x$ac_cv_sysv_ipc" = xyes; then 24533 24534printf "%s\n" "#define HAVE_SYSV_IPC 1" >>confdefs.h 24535 24536fi 24537 24538if test -c /dev/xf86 ; then 24539 24540printf "%s\n" "#define HAS_APERTURE_DRV 1" >>confdefs.h 24541 24542fi 24543 24544ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default" 24545if test "x$ac_cv_header_execinfo_h" = xyes 24546then : 24547 24548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lc" >&5 24549printf %s "checking for backtrace in -lc... " >&6; } 24550if test ${ac_cv_lib_c_backtrace+y} 24551then : 24552 printf %s "(cached) " >&6 24553else $as_nop 24554 ac_check_lib_save_LIBS=$LIBS 24555LIBS="-lc $LIBS" 24556cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24557/* end confdefs.h. */ 24558 24559/* Override any GCC internal prototype to avoid an error. 24560 Use char because int might match the return type of a GCC 24561 builtin and then its argument prototype would still apply. */ 24562char backtrace (); 24563int 24564main (void) 24565{ 24566return backtrace (); 24567 ; 24568 return 0; 24569} 24570_ACEOF 24571if ac_fn_c_try_link "$LINENO" 24572then : 24573 ac_cv_lib_c_backtrace=yes 24574else $as_nop 24575 ac_cv_lib_c_backtrace=no 24576fi 24577rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24578 conftest$ac_exeext conftest.$ac_ext 24579LIBS=$ac_check_lib_save_LIBS 24580fi 24581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_backtrace" >&5 24582printf "%s\n" "$ac_cv_lib_c_backtrace" >&6; } 24583if test "x$ac_cv_lib_c_backtrace" = xyes 24584then : 24585 24586 24587printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h 24588 24589 24590printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h 24591 24592 24593fi 24594 24595 24596fi 24597 24598 24599DEFAULT_INT10="x86emu" 24600 24601 24602case $host_cpu in 24603 alpha*) 24604 ALPHA_VIDEO=yes 24605 case $host_os in 24606 *freebsd*) SYS_LIBS=-lio ;; 24607 *netbsd*) 24608printf "%s\n" "#define USE_ALPHA_PIO 1" >>confdefs.h 24609 ;; 24610 esac 24611 GLX_ARCH_DEFINES="-D__GLX_ALIGN64 -mieee" 24612 ;; 24613 arm*) 24614 ARM_VIDEO=yes 24615 DEFAULT_INT10="stub" 24616 ;; 24617 i*86) 24618 I386_VIDEO=yes 24619 case $host_os in 24620 *freebsd*) printf "%s\n" "#define USE_DEV_IO 1" >>confdefs.h 24621 ;; 24622 *dragonfly*) printf "%s\n" "#define USE_DEV_IO 1" >>confdefs.h 24623 ;; 24624 *netbsd*) printf "%s\n" "#define USE_I386_IOPL 1" >>confdefs.h 24625 24626 SYS_LIBS=-li386 24627 ;; 24628 *openbsd*) printf "%s\n" "#define USE_I386_IOPL 1" >>confdefs.h 24629 24630 SYS_LIBS=-li386 24631 ;; 24632 esac 24633 ;; 24634 powerpc*) 24635 PPC_VIDEO=yes 24636 case $host_os in 24637 *freebsd*) DEFAULT_INT10=stub ;; 24638 esac 24639 ;; 24640 sparc*) 24641 SPARC64_VIDEO=yes 24642 BSD_ARCH_SOURCES="sparc64_video.c ioperm_noop.c" 24643 GLX_ARCH_DEFINES="-D__GLX_ALIGN64" 24644 ;; 24645 x86_64*|amd64*) 24646 I386_VIDEO=yes 24647 case $host_os in 24648 *freebsd*) 24649printf "%s\n" "#define USE_DEV_IO 1" >>confdefs.h 24650 ;; 24651 *dragonfly*) 24652printf "%s\n" "#define USE_DEV_IO 1" >>confdefs.h 24653 ;; 24654 *netbsd*) 24655printf "%s\n" "#define USE_I386_IOPL 1" >>confdefs.h 24656 24657 SYS_LIBS=-lx86_64 24658 ;; 24659 *openbsd*) 24660printf "%s\n" "#define USE_AMD64_IOPL 1" >>confdefs.h 24661 24662 SYS_LIBS=-lamd64 24663 ;; 24664 esac 24665 GLX_ARCH_DEFINES="-D__GLX_ALIGN64" 24666 ;; 24667 ia64*) 24668 GLX_ARCH_DEFINES="-D__GLX_ALIGN64" 24669 ;; 24670 s390*) 24671 GLX_ARCH_DEFINES="-D__GLX_ALIGN64" 24672 ;; 24673esac 24674 24675 24676 if test "x$ALPHA_VIDEO" = xyes; then 24677 ALPHA_VIDEO_TRUE= 24678 ALPHA_VIDEO_FALSE='#' 24679else 24680 ALPHA_VIDEO_TRUE='#' 24681 ALPHA_VIDEO_FALSE= 24682fi 24683 24684 if test "x$ARM_VIDEO" = xyes; then 24685 ARM_VIDEO_TRUE= 24686 ARM_VIDEO_FALSE='#' 24687else 24688 ARM_VIDEO_TRUE='#' 24689 ARM_VIDEO_FALSE= 24690fi 24691 24692 if test "x$I386_VIDEO" = xyes; then 24693 I386_VIDEO_TRUE= 24694 I386_VIDEO_FALSE='#' 24695else 24696 I386_VIDEO_TRUE='#' 24697 I386_VIDEO_FALSE= 24698fi 24699 24700 if test "x$PPC_VIDEO" = xyes; then 24701 PPC_VIDEO_TRUE= 24702 PPC_VIDEO_FALSE='#' 24703else 24704 PPC_VIDEO_TRUE='#' 24705 PPC_VIDEO_FALSE= 24706fi 24707 24708 if test "x$SPARC64_VIDEO" = xyes; then 24709 SPARC64_VIDEO_TRUE= 24710 SPARC64_VIDEO_FALSE='#' 24711else 24712 SPARC64_VIDEO_TRUE='#' 24713 SPARC64_VIDEO_FALSE= 24714fi 24715 24716 24717DRI=no 24718case $host_os in 24719 *freebsd* | *dragonfly*) 24720 case $host_os in 24721 kfreebsd*-gnu) ;; 24722 *) 24723printf "%s\n" "#define CSRG_BASED 1" >>confdefs.h 24724 ;; 24725 esac 24726 24727printf "%s\n" "#define PCCONS_SUPPORT 1" >>confdefs.h 24728 24729 24730printf "%s\n" "#define PCVT_SUPPORT 1" >>confdefs.h 24731 24732 24733printf "%s\n" "#define SYSCONS_SUPPORT 1" >>confdefs.h 24734 24735 DRI=yes 24736 ;; 24737 *netbsd*) 24738 24739printf "%s\n" "#define CSRG_BASED 1" >>confdefs.h 24740 24741 24742printf "%s\n" "#define PCCONS_SUPPORT 1" >>confdefs.h 24743 24744 24745printf "%s\n" "#define PCVT_SUPPORT 1" >>confdefs.h 24746 24747 24748printf "%s\n" "#define WSCONS_SUPPORT 1" >>confdefs.h 24749 24750 DRI=yes 24751 ;; 24752 *openbsd*) 24753 24754printf "%s\n" "#define CSRG_BASED 1" >>confdefs.h 24755 24756 24757printf "%s\n" "#define PCVT_SUPPORT 1" >>confdefs.h 24758 24759 24760printf "%s\n" "#define WSCONS_SUPPORT 1" >>confdefs.h 24761 24762 ;; 24763 *linux*) 24764 DRI=yes 24765 ;; 24766 *solaris*) 24767 DRI=yes 24768 ;; 24769 darwin*) 24770 24771printf "%s\n" "#define CSRG_BASED 1" >>confdefs.h 24772 24773 ;; 24774 cygwin*|mingw*) 24775 CFLAGS="$CFLAGS -DFD_SETSIZE=512" 24776 ;; 24777esac 24778 24779PVMAJOR=`echo $PACKAGE_VERSION | cut -d . -f 1` 24780 24781VENDOR_RELEASE="((10000000) + (($PVMAJOR) * 100000) + (($PVM) * 1000) + $PVP)" 24782VENDOR_MAN_VERSION="Version ${PACKAGE_VERSION}" 24783 24784VENDOR_NAME="The X.Org Foundation" 24785VENDOR_NAME_SHORT="X.Org" 24786VENDOR_WEB="http://wiki.x.org" 24787 24788# Check whether --enable-werror was given. 24789if test ${enable_werror+y} 24790then : 24791 enableval=$enable_werror; as_fn_error $? "--enable-werror has been replaced by --enable-strict-compilation" "$LINENO" 5 24792fi 24793 24794 24795# Check whether --enable-debug was given. 24796if test ${enable_debug+y} 24797then : 24798 enableval=$enable_debug; DEBUGGING=$enableval 24799else $as_nop 24800 DEBUGGING=no 24801fi 24802 24803 24804# Check whether --with-int10 was given. 24805if test ${with_int10+y} 24806then : 24807 withval=$with_int10; INT10="$withval" 24808else $as_nop 24809 INT10="$DEFAULT_INT10" 24810fi 24811 24812 24813# Check whether --with-vendor-name was given. 24814if test ${with_vendor_name+y} 24815then : 24816 withval=$with_vendor_name; VENDOR_NAME="$withval" 24817fi 24818 24819 24820# Check whether --with-vendor-name-short was given. 24821if test ${with_vendor_name_short+y} 24822then : 24823 withval=$with_vendor_name_short; VENDOR_NAME_SHORT="$withval" 24824fi 24825 24826 24827# Check whether --with-vendor-web was given. 24828if test ${with_vendor_web+y} 24829then : 24830 withval=$with_vendor_web; VENDOR_WEB="$withval" 24831fi 24832 24833 24834# Check whether --with-module-dir was given. 24835if test ${with_module_dir+y} 24836then : 24837 withval=$with_module_dir; moduledir="$withval" 24838else $as_nop 24839 moduledir="${libdir}/xorg/modules" 24840fi 24841 24842 24843# Check whether --with-log-dir was given. 24844if test ${with_log_dir+y} 24845then : 24846 withval=$with_log_dir; logdir="$withval" 24847else $as_nop 24848 logdir="$localstatedir/log" 24849fi 24850 24851 24852# Check whether --with-builder-addr was given. 24853if test ${with_builder_addr+y} 24854then : 24855 withval=$with_builder_addr; BUILDERADDR="$withval" 24856else $as_nop 24857 BUILDERADDR="xorg@lists.freedesktop.org" 24858fi 24859 24860 24861# Check whether --with-builderstring was given. 24862if test ${with_builderstring+y} 24863then : 24864 withval=$with_builderstring; BUILDERSTRING="$withval" 24865 24866fi 24867 24868# Check whether --enable-listen-tcp was given. 24869if test ${enable_listen_tcp+y} 24870then : 24871 enableval=$enable_listen_tcp; LISTEN_TCP=$enableval 24872else $as_nop 24873 LISTEN_TCP=no 24874fi 24875 24876# Check whether --enable-listen-unix was given. 24877if test ${enable_listen_unix+y} 24878then : 24879 enableval=$enable_listen_unix; LISTEN_UNIX=$enableval 24880else $as_nop 24881 LISTEN_UNIX=yes 24882fi 24883 24884 24885# Check whether --enable-listen-local was given. 24886if test ${enable_listen_local+y} 24887then : 24888 enableval=$enable_listen_local; LISTEN_LOCAL=$enableval 24889else $as_nop 24890 LISTEN_LOCAL=yes 24891fi 24892 24893 24894case $host_os in 24895 linux*) 24896 FALLBACK_INPUT_DRIVER="libinput" 24897 ;; 24898 *) 24899 FALLBACK_INPUT_DRIVER="" 24900 ;; 24901esac 24902 24903# Check whether --with-fallback-input-driver was given. 24904if test ${with_fallback_input_driver+y} 24905then : 24906 withval=$with_fallback_input_driver; FALLBACK_INPUT_DRIVER=$withval 24907fi 24908 24909if test "x$FALLBACK_INPUT_DRIVER" = "xno"; then 24910 FALLBACK_INPUT_DRIVER="" 24911fi 24912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fallback input driver" >&5 24913printf %s "checking for fallback input driver... " >&6; } 24914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FALLBACK_INPUT_DRIVER" >&5 24915printf "%s\n" "$FALLBACK_INPUT_DRIVER" >&6; } 24916 24917printf "%s\n" "#define FALLBACK_INPUT_DRIVER \"$FALLBACK_INPUT_DRIVER\"" >>confdefs.h 24918 24919 24920 24921 24922 24923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5 24924printf %s "checking for root directory for font files... " >&6; } 24925 24926# Check whether --with-fontrootdir was given. 24927if test ${with_fontrootdir+y} 24928then : 24929 withval=$with_fontrootdir; FONTROOTDIR="$withval" 24930fi 24931 24932 # if --with-fontrootdir not specified... 24933 if test "x${FONTROOTDIR}" = "x"; then 24934 FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil` 24935 fi 24936 # ...and if pkg-config didn't find fontdir in fontutil.pc... 24937 if test "x${FONTROOTDIR}" = "x"; then 24938 FONTROOTDIR="${datadir}/fonts/X11" 24939 fi 24940 24941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5 24942printf "%s\n" "${FONTROOTDIR}" >&6; } 24943 24944 24945 24946 24947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for misc files" >&5 24948printf %s "checking for directory for misc files... " >&6; } 24949 24950# Check whether --with-fontmiscdir was given. 24951if test ${with_fontmiscdir+y} 24952then : 24953 withval=$with_fontmiscdir; FONTMISCDIR="${withval}" 24954else $as_nop 24955 FONTMISCDIR='${FONTROOTDIR}/misc' 24956fi 24957 24958 24959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTMISCDIR}" >&5 24960printf "%s\n" "${FONTMISCDIR}" >&6; } 24961 24962 24963 24964 24965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for OTF files" >&5 24966printf %s "checking for directory for OTF files... " >&6; } 24967 24968# Check whether --with-fontotfdir was given. 24969if test ${with_fontotfdir+y} 24970then : 24971 withval=$with_fontotfdir; FONTOTFDIR="${withval}" 24972else $as_nop 24973 FONTOTFDIR='${FONTROOTDIR}/OTF' 24974fi 24975 24976 24977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTOTFDIR}" >&5 24978printf "%s\n" "${FONTOTFDIR}" >&6; } 24979 24980 24981 24982 24983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for TTF files" >&5 24984printf %s "checking for directory for TTF files... " >&6; } 24985 24986# Check whether --with-fontttfdir was given. 24987if test ${with_fontttfdir+y} 24988then : 24989 withval=$with_fontttfdir; FONTTTFDIR="${withval}" 24990else $as_nop 24991 FONTTTFDIR='${FONTROOTDIR}/TTF' 24992fi 24993 24994 24995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTTTFDIR}" >&5 24996printf "%s\n" "${FONTTTFDIR}" >&6; } 24997 24998 24999 25000 25001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for Type1 files" >&5 25002printf %s "checking for directory for Type1 files... " >&6; } 25003 25004# Check whether --with-fonttype1dir was given. 25005if test ${with_fonttype1dir+y} 25006then : 25007 withval=$with_fonttype1dir; FONTTYPE1DIR="${withval}" 25008else $as_nop 25009 FONTTYPE1DIR='${FONTROOTDIR}/Type1' 25010fi 25011 25012 25013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTTYPE1DIR}" >&5 25014printf "%s\n" "${FONTTYPE1DIR}" >&6; } 25015 25016 25017 25018 25019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for 75dpi files" >&5 25020printf %s "checking for directory for 75dpi files... " >&6; } 25021 25022# Check whether --with-font75dpidir was given. 25023if test ${with_font75dpidir+y} 25024then : 25025 withval=$with_font75dpidir; FONT75DPIDIR="${withval}" 25026else $as_nop 25027 FONT75DPIDIR='${FONTROOTDIR}/75dpi' 25028fi 25029 25030 25031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONT75DPIDIR}" >&5 25032printf "%s\n" "${FONT75DPIDIR}" >&6; } 25033 25034 25035 25036 25037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for 100dpi files" >&5 25038printf %s "checking for directory for 100dpi files... " >&6; } 25039 25040# Check whether --with-font100dpidir was given. 25041if test ${with_font100dpidir+y} 25042then : 25043 withval=$with_font100dpidir; FONT100DPIDIR="${withval}" 25044else $as_nop 25045 FONT100DPIDIR='${FONTROOTDIR}/100dpi' 25046fi 25047 25048 25049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONT100DPIDIR}" >&5 25050printf "%s\n" "${FONT100DPIDIR}" >&6; } 25051 25052 25053DEFAULT_FONT_PATH="${FONTMISCDIR}/,${FONTTTFDIR}/,${FONTOTFDIR}/,${FONTTYPE1DIR}/,${FONT100DPIDIR}/,${FONT75DPIDIR}/" 25054case $host_os in 25055 darwin*) DEFAULT_FONT_PATH="${DEFAULT_FONT_PATH},/Library/Fonts,/System/Library/Fonts" ;; 25056esac 25057 25058 25059# Check whether --with-default-font-path was given. 25060if test ${with_default_font_path+y} 25061then : 25062 withval=$with_default_font_path; FONTPATH="$withval" 25063else $as_nop 25064 FONTPATH="${DEFAULT_FONT_PATH}" 25065fi 25066 25067 25068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default font path" >&5 25069printf %s "checking for default font path... " >&6; } 25070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FONTPATH" >&5 25071printf "%s\n" "$FONTPATH" >&6; } 25072 25073 25074# Check whether --with-xkb-path was given. 25075if test ${with_xkb_path+y} 25076then : 25077 withval=$with_xkb_path; XKBPATH="$withval" 25078else $as_nop 25079 XKBPATH="auto" 25080fi 25081 25082 25083# Check whether --with-xkb-output was given. 25084if test ${with_xkb_output+y} 25085then : 25086 withval=$with_xkb_output; XKBOUTPUT="$withval" 25087else $as_nop 25088 XKBOUTPUT="compiled" 25089fi 25090 25091 25092# Check whether --with-default-xkb-rules was given. 25093if test ${with_default_xkb_rules+y} 25094then : 25095 withval=$with_default_xkb_rules; XKB_DFLT_RULES="$withval" 25096else $as_nop 25097 XKB_DFLT_RULES="" 25098fi 25099 25100 25101# Check whether --with-default-xkb-model was given. 25102if test ${with_default_xkb_model+y} 25103then : 25104 withval=$with_default_xkb_model; XKB_DFLT_MODEL="$withval" 25105else $as_nop 25106 XKB_DFLT_MODEL="pc105" 25107fi 25108 25109 25110# Check whether --with-default-xkb-layout was given. 25111if test ${with_default_xkb_layout+y} 25112then : 25113 withval=$with_default_xkb_layout; XKB_DFLT_LAYOUT="$withval" 25114else $as_nop 25115 XKB_DFLT_LAYOUT="us" 25116fi 25117 25118 25119# Check whether --with-default-xkb-variant was given. 25120if test ${with_default_xkb_variant+y} 25121then : 25122 withval=$with_default_xkb_variant; XKB_DFLT_VARIANT="$withval" 25123else $as_nop 25124 XKB_DFLT_VARIANT="" 25125fi 25126 25127 25128# Check whether --with-default-xkb-options was given. 25129if test ${with_default_xkb_options+y} 25130then : 25131 withval=$with_default_xkb_options; XKB_DFLT_OPTIONS="$withval" 25132else $as_nop 25133 XKB_DFLT_OPTIONS="" 25134fi 25135 25136 25137# Check whether --with-serverconfig-path was given. 25138if test ${with_serverconfig_path+y} 25139then : 25140 withval=$with_serverconfig_path; SERVERCONFIG="$withval" 25141else $as_nop 25142 SERVERCONFIG="${libdir}/xorg" 25143fi 25144 25145 25146# Check whether --with-apple-applications-dir was given. 25147if test ${with_apple_applications_dir+y} 25148then : 25149 withval=$with_apple_applications_dir; APPLE_APPLICATIONS_DIR="${withval}" 25150else $as_nop 25151 APPLE_APPLICATIONS_DIR="/Applications/Utilities" 25152fi 25153 25154 25155 25156# Check whether --with-apple-application-name was given. 25157if test ${with_apple_application_name+y} 25158then : 25159 withval=$with_apple_application_name; APPLE_APPLICATION_NAME="${withval}" 25160else $as_nop 25161 APPLE_APPLICATION_NAME="X11" 25162fi 25163 25164 25165 25166# Check whether --with-bundle-id-prefix was given. 25167if test ${with_bundle_id_prefix+y} 25168then : 25169 withval=$with_bundle_id_prefix; BUNDLE_ID_PREFIX="${withval}" 25170fi 25171 25172 25173 25174printf "%s\n" "#define BUNDLE_ID_PREFIX \"$BUNDLE_ID_PREFIX\"" >>confdefs.h 25175 25176 25177 25178# Check whether --with-bundle-version was given. 25179if test ${with_bundle_version+y} 25180then : 25181 withval=$with_bundle_version; BUNDLE_VERSION="${withval}" 25182else $as_nop 25183 BUNDLE_VERSION="21.1.6" 25184fi 25185 25186 25187 25188# Check whether --with-bundle-version-string was given. 25189if test ${with_bundle_version_string+y} 25190then : 25191 withval=$with_bundle_version_string; BUNDLE_VERSION_STRING="${withval}" 25192else $as_nop 25193 BUNDLE_VERSION_STRING="${PACKAGE_VERSION}" 25194fi 25195 25196 25197# Check whether --enable-sparkle was given. 25198if test ${enable_sparkle+y} 25199then : 25200 enableval=$enable_sparkle; XQUARTZ_SPARKLE="${enableval}" 25201else $as_nop 25202 XQUARTZ_SPARKLE="no" 25203fi 25204 25205 25206 25207# Check whether --with-sparkle-feed-url was given. 25208if test ${with_sparkle_feed_url+y} 25209then : 25210 withval=$with_sparkle_feed_url; XQUARTZ_SPARKLE_FEED_URL="${withval}" 25211else $as_nop 25212 XQUARTZ_SPARKLE_FEED_URL="https://www.xquartz.org/releases/sparkle/release.xml" 25213fi 25214 25215 25216# Check whether --enable-visibility was given. 25217if test ${enable_visibility+y} 25218then : 25219 enableval=$enable_visibility; SYMBOL_VISIBILITY=$enableval 25220else $as_nop 25221 SYMBOL_VISIBILITY=auto 25222fi 25223 25224 25225 25226# Check whether --with-khronos-spec-dir was given. 25227if test ${with_khronos_spec_dir+y} 25228then : 25229 withval=$with_khronos_spec_dir; KHRONOS_SPEC_DIR="${withval}" 25230else $as_nop 25231 KHRONOS_SPEC_DIR=auto 25232fi 25233 25234 25235# Check whether --enable-composite was given. 25236if test ${enable_composite+y} 25237then : 25238 enableval=$enable_composite; COMPOSITE=$enableval 25239else $as_nop 25240 COMPOSITE=yes 25241fi 25242 25243# Check whether --enable-mitshm was given. 25244if test ${enable_mitshm+y} 25245then : 25246 enableval=$enable_mitshm; MITSHM=$enableval 25247else $as_nop 25248 MITSHM=auto 25249fi 25250 25251# Check whether --enable-xres was given. 25252if test ${enable_xres+y} 25253then : 25254 enableval=$enable_xres; RES=$enableval 25255else $as_nop 25256 RES=yes 25257fi 25258 25259# Check whether --enable-record was given. 25260if test ${enable_record+y} 25261then : 25262 enableval=$enable_record; RECORD=$enableval 25263else $as_nop 25264 RECORD=yes 25265fi 25266 25267# Check whether --enable-xv was given. 25268if test ${enable_xv+y} 25269then : 25270 enableval=$enable_xv; XV=$enableval 25271else $as_nop 25272 XV=yes 25273fi 25274 25275# Check whether --enable-xvmc was given. 25276if test ${enable_xvmc+y} 25277then : 25278 enableval=$enable_xvmc; XVMC=$enableval 25279else $as_nop 25280 XVMC=yes 25281fi 25282 25283# Check whether --enable-dga was given. 25284if test ${enable_dga+y} 25285then : 25286 enableval=$enable_dga; DGA=$enableval 25287else $as_nop 25288 DGA=auto 25289fi 25290 25291# Check whether --enable-screensaver was given. 25292if test ${enable_screensaver+y} 25293then : 25294 enableval=$enable_screensaver; SCREENSAVER=$enableval 25295else $as_nop 25296 SCREENSAVER=yes 25297fi 25298 25299# Check whether --enable-xdmcp was given. 25300if test ${enable_xdmcp+y} 25301then : 25302 enableval=$enable_xdmcp; XDMCP=$enableval 25303else $as_nop 25304 XDMCP=auto 25305fi 25306 25307# Check whether --enable-xdm-auth-1 was given. 25308if test ${enable_xdm_auth_1+y} 25309then : 25310 enableval=$enable_xdm_auth_1; XDMAUTH=$enableval 25311else $as_nop 25312 XDMAUTH=auto 25313fi 25314 25315# Check whether --enable-glx was given. 25316if test ${enable_glx+y} 25317then : 25318 enableval=$enable_glx; GLX=$enableval 25319else $as_nop 25320 GLX=yes 25321fi 25322 25323# Check whether --enable-dri was given. 25324if test ${enable_dri+y} 25325then : 25326 enableval=$enable_dri; DRI=$enableval 25327fi 25328 25329# Check whether --enable-dri2 was given. 25330if test ${enable_dri2+y} 25331then : 25332 enableval=$enable_dri2; DRI2=$enableval 25333else $as_nop 25334 DRI2=auto 25335fi 25336 25337# Check whether --enable-dri3 was given. 25338if test ${enable_dri3+y} 25339then : 25340 enableval=$enable_dri3; DRI3=$enableval 25341else $as_nop 25342 DRI3=auto 25343fi 25344 25345# Check whether --enable-present was given. 25346if test ${enable_present+y} 25347then : 25348 enableval=$enable_present; PRESENT=$enableval 25349else $as_nop 25350 PRESENT=yes 25351fi 25352 25353# Check whether --enable-xinerama was given. 25354if test ${enable_xinerama+y} 25355then : 25356 enableval=$enable_xinerama; XINERAMA=$enableval 25357else $as_nop 25358 XINERAMA=yes 25359fi 25360 25361# Check whether --enable-xf86vidmode was given. 25362if test ${enable_xf86vidmode+y} 25363then : 25364 enableval=$enable_xf86vidmode; XF86VIDMODE=$enableval 25365else $as_nop 25366 XF86VIDMODE=auto 25367fi 25368 25369# Check whether --enable-xace was given. 25370if test ${enable_xace+y} 25371then : 25372 enableval=$enable_xace; XACE=$enableval 25373else $as_nop 25374 XACE=yes 25375fi 25376 25377# Check whether --enable-xselinux was given. 25378if test ${enable_xselinux+y} 25379then : 25380 enableval=$enable_xselinux; XSELINUX=$enableval 25381else $as_nop 25382 XSELINUX=no 25383fi 25384 25385# Check whether --enable-xcsecurity was given. 25386if test ${enable_xcsecurity+y} 25387then : 25388 enableval=$enable_xcsecurity; XCSECURITY=$enableval 25389else $as_nop 25390 XCSECURITY=no 25391fi 25392 25393# Check whether --enable-dbe was given. 25394if test ${enable_dbe+y} 25395then : 25396 enableval=$enable_dbe; DBE=$enableval 25397else $as_nop 25398 DBE=yes 25399fi 25400 25401# Check whether --enable-xf86bigfont was given. 25402if test ${enable_xf86bigfont+y} 25403then : 25404 enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval 25405else $as_nop 25406 XF86BIGFONT=no 25407fi 25408 25409# Check whether --enable-dpms was given. 25410if test ${enable_dpms+y} 25411then : 25412 enableval=$enable_dpms; DPMSExtension=$enableval 25413else $as_nop 25414 DPMSExtension=yes 25415fi 25416 25417# Check whether --enable-config-udev was given. 25418if test ${enable_config_udev+y} 25419then : 25420 enableval=$enable_config_udev; CONFIG_UDEV=$enableval 25421else $as_nop 25422 CONFIG_UDEV=auto 25423fi 25424 25425# Check whether --enable-config-udev-kms was given. 25426if test ${enable_config_udev_kms+y} 25427then : 25428 enableval=$enable_config_udev_kms; CONFIG_UDEV_KMS=$enableval 25429else $as_nop 25430 CONFIG_UDEV_KMS=auto 25431fi 25432 25433# Check whether --enable-config-hal was given. 25434if test ${enable_config_hal+y} 25435then : 25436 enableval=$enable_config_hal; CONFIG_HAL=$enableval 25437else $as_nop 25438 CONFIG_HAL=auto 25439fi 25440 25441# Check whether --enable-config-wscons was given. 25442if test ${enable_config_wscons+y} 25443then : 25444 enableval=$enable_config_wscons; CONFIG_WSCONS=$enableval 25445else $as_nop 25446 CONFIG_WSCONS=auto 25447fi 25448 25449# Check whether --enable-xfree86-utils was given. 25450if test ${enable_xfree86_utils+y} 25451then : 25452 enableval=$enable_xfree86_utils; XF86UTILS=$enableval 25453else $as_nop 25454 XF86UTILS=yes 25455fi 25456 25457# Check whether --enable-vgahw was given. 25458if test ${enable_vgahw+y} 25459then : 25460 enableval=$enable_vgahw; VGAHW=$enableval 25461else $as_nop 25462 VGAHW=yes 25463fi 25464 25465# Check whether --enable-int10-module was given. 25466if test ${enable_int10_module+y} 25467then : 25468 enableval=$enable_int10_module; INT10MODULE=$enableval 25469else $as_nop 25470 INT10MODULE=yes 25471fi 25472 25473# Check whether --enable-windowsdri was given. 25474if test ${enable_windowsdri+y} 25475then : 25476 enableval=$enable_windowsdri; WINDOWSDRI=$enableval 25477else $as_nop 25478 WINDOWSDRI=auto 25479fi 25480 25481# Check whether --enable-libdrm was given. 25482if test ${enable_libdrm+y} 25483then : 25484 enableval=$enable_libdrm; DRM=$enableval 25485else $as_nop 25486 DRM=yes 25487fi 25488 25489# Check whether --enable-clientids was given. 25490if test ${enable_clientids+y} 25491then : 25492 enableval=$enable_clientids; CLIENTIDS=$enableval 25493else $as_nop 25494 CLIENTIDS=yes 25495fi 25496 25497# Check whether --enable-pciaccess was given. 25498if test ${enable_pciaccess+y} 25499then : 25500 enableval=$enable_pciaccess; PCI=$enableval 25501else $as_nop 25502 PCI=yes 25503fi 25504 25505# Check whether --enable-linux_acpi was given. 25506if test ${enable_linux_acpi+y} 25507then : 25508 enableval=$enable_linux_acpi; enable_linux_acpi=$enableval 25509else $as_nop 25510 enable_linux_acpi=yes 25511fi 25512 25513# Check whether --enable-linux_apm was given. 25514if test ${enable_linux_apm+y} 25515then : 25516 enableval=$enable_linux_apm; enable_linux_apm=$enableval 25517else $as_nop 25518 enable_linux_apm=yes 25519fi 25520 25521# Check whether --enable-systemd-logind was given. 25522if test ${enable_systemd_logind+y} 25523then : 25524 enableval=$enable_systemd_logind; SYSTEMD_LOGIND=$enableval 25525else $as_nop 25526 SYSTEMD_LOGIND=auto 25527fi 25528 25529# Check whether --enable-suid-wrapper was given. 25530if test ${enable_suid_wrapper+y} 25531then : 25532 enableval=$enable_suid_wrapper; SUID_WRAPPER=$enableval 25533else $as_nop 25534 SUID_WRAPPER=no 25535fi 25536 25537 25538# Check whether --enable-xorg was given. 25539if test ${enable_xorg+y} 25540then : 25541 enableval=$enable_xorg; XORG=$enableval 25542else $as_nop 25543 XORG=auto 25544fi 25545 25546# Check whether --enable-xvfb was given. 25547if test ${enable_xvfb+y} 25548then : 25549 enableval=$enable_xvfb; XVFB=$enableval 25550else $as_nop 25551 XVFB=yes 25552fi 25553 25554# Check whether --enable-xnest was given. 25555if test ${enable_xnest+y} 25556then : 25557 enableval=$enable_xnest; XNEST=$enableval 25558else $as_nop 25559 XNEST=auto 25560fi 25561 25562# Check whether --enable-xquartz was given. 25563if test ${enable_xquartz+y} 25564then : 25565 enableval=$enable_xquartz; XQUARTZ=$enableval 25566else $as_nop 25567 XQUARTZ=auto 25568fi 25569 25570# Check whether --enable-standalone-xpbproxy was given. 25571if test ${enable_standalone_xpbproxy+y} 25572then : 25573 enableval=$enable_standalone_xpbproxy; STANDALONE_XPBPROXY=$enableval 25574else $as_nop 25575 STANDALONE_XPBPROXY=no 25576fi 25577 25578# Check whether --enable-xwin was given. 25579if test ${enable_xwin+y} 25580then : 25581 enableval=$enable_xwin; XWIN=$enableval 25582else $as_nop 25583 XWIN=auto 25584fi 25585 25586# Check whether --enable-glamor was given. 25587if test ${enable_glamor+y} 25588then : 25589 enableval=$enable_glamor; GLAMOR=$enableval 25590else $as_nop 25591 GLAMOR=auto 25592fi 25593 25594# Check whether --enable-xf86-input-inputtest was given. 25595if test ${enable_xf86_input_inputtest+y} 25596then : 25597 enableval=$enable_xf86_input_inputtest; XORG_DRIVER_INPUT_INPUTTEST=$enableval 25598else $as_nop 25599 XORG_DRIVER_INPUT_INPUTTEST=yes 25600fi 25601 25602# Check whether --enable-kdrive was given. 25603if test ${enable_kdrive+y} 25604then : 25605 enableval=$enable_kdrive; KDRIVE=$enableval 25606else $as_nop 25607 KDRIVE=no 25608fi 25609 25610# Check whether --enable-xephyr was given. 25611if test ${enable_xephyr+y} 25612then : 25613 enableval=$enable_xephyr; XEPHYR=$enableval 25614else $as_nop 25615 XEPHYR=auto 25616fi 25617 25618# Check whether --enable-libunwind was given. 25619if test ${enable_libunwind+y} 25620then : 25621 enableval=$enable_libunwind; LIBUNWIND="$enableval" 25622else $as_nop 25623 LIBUNWIND="auto" 25624fi 25625 25626# Check whether --enable-xshmfence was given. 25627if test ${enable_xshmfence+y} 25628then : 25629 enableval=$enable_xshmfence; XSHMFENCE="$enableval" 25630else $as_nop 25631 XSHMFENCE="auto" 25632fi 25633 25634 25635 25636# Check whether --enable-install-setuid was given. 25637if test ${enable_install_setuid+y} 25638then : 25639 enableval=$enable_install_setuid; SETUID=$enableval 25640else $as_nop 25641 SETUID=auto 25642fi 25643 25644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if we can install the Xorg server as root" >&5 25645printf %s "checking to see if we can install the Xorg server as root... " >&6; } 25646if test "x$SETUID" = "xauto" ; then 25647 case $host_os in 25648 cygwin*) SETUID="no" ;; 25649 mingw*) SETUID="no" ;; 25650 darwin*) SETUID="no" ;; 25651 *) 25652 case $host_cpu in 25653 sparc) SETUID="no" ;; 25654 *) SETUID="yes" ;; 25655 esac 25656 esac 25657 if test "x$SETUID" = xyes; then 25658 touch testfile 25659 chown root testfile > /dev/null 2>&1 || SETUID="no" 25660 rm -f testfile 25661 fi 25662fi 25663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SETUID" >&5 25664printf "%s\n" "$SETUID" >&6; } 25665 if test "x$SETUID" = "xyes"; then 25666 INSTALL_SETUID_TRUE= 25667 INSTALL_SETUID_FALSE='#' 25668else 25669 INSTALL_SETUID_TRUE='#' 25670 INSTALL_SETUID_FALSE= 25671fi 25672 25673 25674 25675 25676# Transport selection macro from xtrans.m4 25677 25678 25679 case $host_os in 25680 mingw*) unixdef="no" ;; 25681 *) unixdef="yes" ;; 25682 esac 25683 # Check whether --enable-unix-transport was given. 25684if test ${enable_unix_transport+y} 25685then : 25686 enableval=$enable_unix_transport; UNIXCONN=$enableval 25687else $as_nop 25688 UNIXCONN=$unixdef 25689fi 25690 25691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 25692printf %s "checking if Xtrans should support UNIX socket connections... " >&6; } 25693 if test "$UNIXCONN" = "yes"; then 25694 25695printf "%s\n" "#define UNIXCONN 1" >>confdefs.h 25696 25697 fi 25698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 25699printf "%s\n" "$UNIXCONN" >&6; } 25700 # Check whether --enable-tcp-transport was given. 25701if test ${enable_tcp_transport+y} 25702then : 25703 enableval=$enable_tcp_transport; TCPCONN=$enableval 25704else $as_nop 25705 TCPCONN=yes 25706fi 25707 25708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 25709printf %s "checking if Xtrans should support TCP socket connections... " >&6; } 25710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 25711printf "%s\n" "$TCPCONN" >&6; } 25712 if test "$TCPCONN" = "yes"; then 25713 25714printf "%s\n" "#define TCPCONN 1" >>confdefs.h 25715 25716 25717 # SVR4 hides these in libraries other than libc 25718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 25719printf %s "checking for library containing socket... " >&6; } 25720if test ${ac_cv_search_socket+y} 25721then : 25722 printf %s "(cached) " >&6 25723else $as_nop 25724 ac_func_search_save_LIBS=$LIBS 25725cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25726/* end confdefs.h. */ 25727 25728/* Override any GCC internal prototype to avoid an error. 25729 Use char because int might match the return type of a GCC 25730 builtin and then its argument prototype would still apply. */ 25731char socket (); 25732int 25733main (void) 25734{ 25735return socket (); 25736 ; 25737 return 0; 25738} 25739_ACEOF 25740for ac_lib in '' socket 25741do 25742 if test -z "$ac_lib"; then 25743 ac_res="none required" 25744 else 25745 ac_res=-l$ac_lib 25746 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 25747 fi 25748 if ac_fn_c_try_link "$LINENO" 25749then : 25750 ac_cv_search_socket=$ac_res 25751fi 25752rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25753 conftest$ac_exeext 25754 if test ${ac_cv_search_socket+y} 25755then : 25756 break 25757fi 25758done 25759if test ${ac_cv_search_socket+y} 25760then : 25761 25762else $as_nop 25763 ac_cv_search_socket=no 25764fi 25765rm conftest.$ac_ext 25766LIBS=$ac_func_search_save_LIBS 25767fi 25768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 25769printf "%s\n" "$ac_cv_search_socket" >&6; } 25770ac_res=$ac_cv_search_socket 25771if test "$ac_res" != no 25772then : 25773 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 25774 25775fi 25776 25777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 25778printf %s "checking for library containing gethostbyname... " >&6; } 25779if test ${ac_cv_search_gethostbyname+y} 25780then : 25781 printf %s "(cached) " >&6 25782else $as_nop 25783 ac_func_search_save_LIBS=$LIBS 25784cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25785/* end confdefs.h. */ 25786 25787/* Override any GCC internal prototype to avoid an error. 25788 Use char because int might match the return type of a GCC 25789 builtin and then its argument prototype would still apply. */ 25790char gethostbyname (); 25791int 25792main (void) 25793{ 25794return gethostbyname (); 25795 ; 25796 return 0; 25797} 25798_ACEOF 25799for ac_lib in '' nsl 25800do 25801 if test -z "$ac_lib"; then 25802 ac_res="none required" 25803 else 25804 ac_res=-l$ac_lib 25805 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 25806 fi 25807 if ac_fn_c_try_link "$LINENO" 25808then : 25809 ac_cv_search_gethostbyname=$ac_res 25810fi 25811rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25812 conftest$ac_exeext 25813 if test ${ac_cv_search_gethostbyname+y} 25814then : 25815 break 25816fi 25817done 25818if test ${ac_cv_search_gethostbyname+y} 25819then : 25820 25821else $as_nop 25822 ac_cv_search_gethostbyname=no 25823fi 25824rm conftest.$ac_ext 25825LIBS=$ac_func_search_save_LIBS 25826fi 25827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 25828printf "%s\n" "$ac_cv_search_gethostbyname" >&6; } 25829ac_res=$ac_cv_search_gethostbyname 25830if test "$ac_res" != no 25831then : 25832 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 25833 25834fi 25835 25836 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 25837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 25838printf %s "checking for main in -lws2_32... " >&6; } 25839if test ${ac_cv_lib_ws2_32_main+y} 25840then : 25841 printf %s "(cached) " >&6 25842else $as_nop 25843 ac_check_lib_save_LIBS=$LIBS 25844LIBS="-lws2_32 $LIBS" 25845cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25846/* end confdefs.h. */ 25847 25848 25849int 25850main (void) 25851{ 25852return main (); 25853 ; 25854 return 0; 25855} 25856_ACEOF 25857if ac_fn_c_try_link "$LINENO" 25858then : 25859 ac_cv_lib_ws2_32_main=yes 25860else $as_nop 25861 ac_cv_lib_ws2_32_main=no 25862fi 25863rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25864 conftest$ac_exeext conftest.$ac_ext 25865LIBS=$ac_check_lib_save_LIBS 25866fi 25867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 25868printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; } 25869if test "x$ac_cv_lib_ws2_32_main" = xyes 25870then : 25871 printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h 25872 25873 LIBS="-lws2_32 $LIBS" 25874 25875fi 25876 25877 fi 25878 25879 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 25880 # Check whether --enable-ipv6 was given. 25881if test ${enable_ipv6+y} 25882then : 25883 enableval=$enable_ipv6; IPV6CONN=$enableval 25884else $as_nop 25885 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 25886if test "x$ac_cv_func_getaddrinfo" = xyes 25887then : 25888 IPV6CONN=yes 25889else $as_nop 25890 IPV6CONN=no 25891fi 25892 25893fi 25894 25895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 25896printf %s "checking if IPv6 support should be built... " >&6; } 25897 if test "$IPV6CONN" = "yes"; then 25898 25899printf "%s\n" "#define IPv6 1" >>confdefs.h 25900 25901 fi 25902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 25903printf "%s\n" "$IPV6CONN" >&6; } 25904 25905 # 4.3BSD-Reno added a new member to struct sockaddr_in 25906 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 25907#include <sys/types.h> 25908#include <sys/socket.h> 25909#include <netinet/in.h> 25910 25911" 25912if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes 25913then : 25914 25915printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h 25916 25917fi 25918 25919 25920 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 25921 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 25922$ac_includes_default 25923#include <sys/socket.h> 25924" 25925if test "x$ac_cv_type_socklen_t" = xyes 25926then : 25927 25928printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h 25929 25930 25931fi 25932 25933 25934 # XPG4v2/UNIX95 added msg_control - check to see if we need to define 25935 # _XOPEN_SOURCE to get it (such as on Solaris) 25936 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 25937$ac_includes_default 25938#include <sys/socket.h> 25939 25940" 25941if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 25942then : 25943 25944fi 25945 25946 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03 25947 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 25948 unset ac_cv_member_struct_msghdr_msg_control 25949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5 25950printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;} 25951 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 25952#define _XOPEN_SOURCE 600 25953$ac_includes_default 25954#include <sys/socket.h> 25955 25956" 25957if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 25958then : 25959 25960printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h 25961 25962 25963fi 25964 25965 fi 25966 # If that didn't work, fall back to XPG5/UNIX98 with C89 25967 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 25968 unset ac_cv_member_struct_msghdr_msg_control 25969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5 25970printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;} 25971 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 25972#define _XOPEN_SOURCE 500 25973$ac_includes_default 25974#include <sys/socket.h> 25975 25976" 25977if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 25978then : 25979 25980printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 25981 25982 25983fi 25984 25985 fi 25986 25987 25988 25989 fi 25990 case $host_os in 25991 solaris*|sco*|sysv4*) localdef="yes" ;; 25992 *) localdef="no" ;; 25993 esac 25994 # Check whether --enable-local-transport was given. 25995if test ${enable_local_transport+y} 25996then : 25997 enableval=$enable_local_transport; LOCALCONN=$enableval 25998else $as_nop 25999 LOCALCONN=$localdef 26000fi 26001 26002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 26003printf %s "checking if Xtrans should support os-specific local connections... " >&6; } 26004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 26005printf "%s\n" "$LOCALCONN" >&6; } 26006 if test "$LOCALCONN" = "yes"; then 26007 26008printf "%s\n" "#define LOCALCONN 1" >>confdefs.h 26009 26010 fi 26011 26012 # Other functions Xtrans may need 26013 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 26014if test "x$ac_cv_func_strcasecmp" = xyes 26015then : 26016 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 26017 26018fi 26019ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 26020if test "x$ac_cv_func_strlcpy" = xyes 26021then : 26022 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 26023 26024fi 26025 26026 26027 26028 26029# Secure RPC detection macro from xtrans.m4 26030 26031 # Check whether --enable-secure-rpc was given. 26032if test ${enable_secure_rpc+y} 26033then : 26034 enableval=$enable_secure_rpc; SECURE_RPC=$enableval 26035else $as_nop 26036 SECURE_RPC="try" 26037fi 26038 26039 26040 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then 26041 FOUND_SECURE_RPC="no" 26042 26043 for ac_func in authdes_seccreate authdes_create 26044do : 26045 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh` 26046ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 26047if eval test \"x\$"$as_ac_var"\" = x"yes" 26048then : 26049 cat >>confdefs.h <<_ACEOF 26050#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 26051_ACEOF 26052 FOUND_SECURE_RPC="yes" 26053fi 26054 26055done 26056 if test "x$FOUND_SECURE_RPC" = "xno" ; then 26057 if test "x$SECURE_RPC" = "xyes" ; then 26058 as_fn_error $? "Secure RPC requested, but required functions not found" "$LINENO" 5 26059 fi 26060 SECURE_RPC="no" 26061 else 26062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5 26063printf %s "checking for library containing getsecretkey... " >&6; } 26064if test ${ac_cv_search_getsecretkey+y} 26065then : 26066 printf %s "(cached) " >&6 26067else $as_nop 26068 ac_func_search_save_LIBS=$LIBS 26069cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26070/* end confdefs.h. */ 26071 26072/* Override any GCC internal prototype to avoid an error. 26073 Use char because int might match the return type of a GCC 26074 builtin and then its argument prototype would still apply. */ 26075char getsecretkey (); 26076int 26077main (void) 26078{ 26079return getsecretkey (); 26080 ; 26081 return 0; 26082} 26083_ACEOF 26084for ac_lib in '' rpcsvc 26085do 26086 if test -z "$ac_lib"; then 26087 ac_res="none required" 26088 else 26089 ac_res=-l$ac_lib 26090 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 26091 fi 26092 if ac_fn_c_try_link "$LINENO" 26093then : 26094 ac_cv_search_getsecretkey=$ac_res 26095fi 26096rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26097 conftest$ac_exeext 26098 if test ${ac_cv_search_getsecretkey+y} 26099then : 26100 break 26101fi 26102done 26103if test ${ac_cv_search_getsecretkey+y} 26104then : 26105 26106else $as_nop 26107 ac_cv_search_getsecretkey=no 26108fi 26109rm conftest.$ac_ext 26110LIBS=$ac_func_search_save_LIBS 26111fi 26112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5 26113printf "%s\n" "$ac_cv_search_getsecretkey" >&6; } 26114ac_res=$ac_cv_search_getsecretkey 26115if test "$ac_res" != no 26116then : 26117 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 26118 26119fi 26120 26121 SECURE_RPC="yes" 26122 fi 26123 fi 26124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5 26125printf %s "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; } 26126 if test "x$SECURE_RPC" = "xyes" ; then 26127 26128printf "%s\n" "#define SECURE_RPC 1" >>confdefs.h 26129 26130 fi 26131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5 26132printf "%s\n" "$SECURE_RPC" >&6; } 26133 26134 if test "x$SECURE_RPC" = xyes; then 26135 SECURE_RPC_TRUE= 26136 SECURE_RPC_FALSE='#' 26137else 26138 SECURE_RPC_TRUE='#' 26139 SECURE_RPC_FALSE= 26140fi 26141 26142 26143 if test "x$INT10" = xvm86; then 26144 INT10_VM86_TRUE= 26145 INT10_VM86_FALSE='#' 26146else 26147 INT10_VM86_TRUE='#' 26148 INT10_VM86_FALSE= 26149fi 26150 26151 if test "x$INT10" = xx86emu; then 26152 INT10_X86EMU_TRUE= 26153 INT10_X86EMU_FALSE='#' 26154else 26155 INT10_X86EMU_TRUE='#' 26156 INT10_X86EMU_FALSE= 26157fi 26158 26159 if test "x$INT10" = xstub; then 26160 INT10_STUB_TRUE= 26161 INT10_STUB_FALSE='#' 26162else 26163 INT10_STUB_TRUE='#' 26164 INT10_STUB_FALSE= 26165fi 26166 26167 26168case $host_os in 26169 cygwin* | mingw*) 26170 CONFIG_HAL=no 26171 CONFIG_UDEV=no 26172 CONFIG_UDEV_KMS=no 26173 DGA=no 26174 DRM=no 26175 DRI2=no 26176 DRI3=no 26177 INT10MODULE=no 26178 PCI=no 26179 VGAHW=no 26180 XF86UTILS=no 26181 XF86VIDMODE=no 26182 XSELINUX=no 26183 SYMBOL_VISIBILITY=no 26184 ;; 26185 darwin*) 26186 PCI=no 26187 INT10MODULE=no 26188 VGAHW=no 26189 DRM=no 26190 DRI2=no 26191 DRI3=no 26192 26193 if test x$XQUARTZ = xauto; then 26194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build Xquartz" >&5 26195printf %s "checking whether to build Xquartz... " >&6; } 26196if test ${xorg_cv_Carbon_framework+y} 26197then : 26198 printf %s "(cached) " >&6 26199else $as_nop 26200 26201 save_LDFLAGS=$LDFLAGS 26202 LDFLAGS="$LDFLAGS -framework Carbon" 26203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26204/* end confdefs.h. */ 26205char FSFindFolder(); int main() { FSFindFolder(); return 0;} 26206_ACEOF 26207if ac_fn_c_try_link "$LINENO" 26208then : 26209 xorg_cv_Carbon_framework=yes 26210else $as_nop 26211 xorg_cv_Carbon_framework=no 26212fi 26213rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26214 conftest$ac_exeext conftest.$ac_ext 26215 LDFLAGS=$save_LDFLAGS 26216fi 26217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_Carbon_framework" >&5 26218printf "%s\n" "$xorg_cv_Carbon_framework" >&6; } 26219 26220 if test "X$xorg_cv_Carbon_framework" = Xyes; then 26221 XQUARTZ=yes 26222 else 26223 XQUARTZ=no 26224 fi 26225 fi 26226 26227 if test "x$XQUARTZ" = xyes ; then 26228 XQUARTZ=yes 26229 XVFB=no 26230 XNEST=no 26231 26232 COMPOSITE=no 26233 DGA=no 26234 DPMSExtension=no 26235 XF86VIDMODE=no 26236 fi 26237 ;; 26238 gnu*) 26239 DRM=no 26240 DRI2=no 26241 DRI3=no 26242 ;; 26243 *) XQUARTZ=no ;; 26244esac 26245 26246XEXT_INC='-I$(top_srcdir)/Xext' 26247XEXT_LIB='$(top_builddir)/Xext/libXext.la' 26248 26249VIDEOPROTO="videoproto" 26250COMPOSITEPROTO="compositeproto >= 0.4" 26251RECORDPROTO="recordproto >= 1.13.99.1" 26252SCRNSAVERPROTO="scrnsaverproto >= 1.1" 26253RESOURCEPROTO="resourceproto >= 1.2.0" 26254DRIPROTO="xf86driproto >= 2.1.0" 26255DRI2PROTO="dri2proto >= 2.8" 26256DRI3PROTO="dri3proto >= 1.2" 26257XINERAMAPROTO="xineramaproto" 26258BIGFONTPROTO="xf86bigfontproto >= 1.2.0" 26259DGAPROTO="xf86dgaproto >= 2.0.99.1" 26260GLPROTO="glproto >= 1.4.17" 26261VIDMODEPROTO="xf86vidmodeproto >= 2.2.99.1" 26262APPLEWMPROTO="applewmproto >= 1.4" 26263LIBXSHMFENCE="xshmfence >= 1.1" 26264 26265XPROTO="xproto >= 7.0.31" 26266RANDRPROTO="randrproto >= 1.6.0" 26267RENDERPROTO="renderproto >= 0.11" 26268XEXTPROTO="xextproto >= 7.2.99.901" 26269INPUTPROTO="inputproto >= 2.3.99.1" 26270KBPROTO="kbproto >= 1.0.3" 26271FONTSPROTO="fontsproto >= 2.1.3" 26272FIXESPROTO="fixesproto >= 6.0" 26273DAMAGEPROTO="damageproto >= 1.1" 26274XCMISCPROTO="xcmiscproto >= 1.2.0" 26275BIGREQSPROTO="bigreqsproto >= 1.1.0" 26276XTRANS="xtrans >= 1.3.5" 26277PRESENTPROTO="presentproto >= 1.2" 26278 26279LIBAPPLEWM="applewm >= 1.4" 26280LIBDRI="dri >= 7.8.0" 26281LIBDRM="libdrm >= 2.4.89" 26282LIBEGL="egl" 26283LIBGBM="gbm >= 10.2.0" 26284LIBGL="gl >= 1.2" 26285LIBXEXT="xext >= 1.0.99.4" 26286LIBXFONT="xfont2 >= 2.0.0" 26287LIBXI="xi >= 1.2.99.1" 26288LIBXTST="xtst >= 1.0.99.2" 26289LIBPCIACCESS="pciaccess >= 0.12.901" 26290LIBUDEV="libudev >= 143" 26291LIBSELINUX="libselinux >= 2.0.86" 26292LIBDBUS="dbus-1 >= 1.0" 26293LIBPIXMAN="pixman-1 >= 0.27.2" 26294LIBXCVT="libxcvt" 26295 26296 26297pkg_failed=no 26298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PIXMAN" >&5 26299printf %s "checking for PIXMAN... " >&6; } 26300 26301if test -n "$PIXMAN_CFLAGS"; then 26302 pkg_cv_PIXMAN_CFLAGS="$PIXMAN_CFLAGS" 26303 elif test -n "$PKG_CONFIG"; then 26304 if test -n "$PKG_CONFIG" && \ 26305 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPIXMAN\""; } >&5 26306 ($PKG_CONFIG --exists --print-errors "$LIBPIXMAN") 2>&5 26307 ac_status=$? 26308 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26309 test $ac_status = 0; }; then 26310 pkg_cv_PIXMAN_CFLAGS=`$PKG_CONFIG --cflags "$LIBPIXMAN" 2>/dev/null` 26311 test "x$?" != "x0" && pkg_failed=yes 26312else 26313 pkg_failed=yes 26314fi 26315 else 26316 pkg_failed=untried 26317fi 26318if test -n "$PIXMAN_LIBS"; then 26319 pkg_cv_PIXMAN_LIBS="$PIXMAN_LIBS" 26320 elif test -n "$PKG_CONFIG"; then 26321 if test -n "$PKG_CONFIG" && \ 26322 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPIXMAN\""; } >&5 26323 ($PKG_CONFIG --exists --print-errors "$LIBPIXMAN") 2>&5 26324 ac_status=$? 26325 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26326 test $ac_status = 0; }; then 26327 pkg_cv_PIXMAN_LIBS=`$PKG_CONFIG --libs "$LIBPIXMAN" 2>/dev/null` 26328 test "x$?" != "x0" && pkg_failed=yes 26329else 26330 pkg_failed=yes 26331fi 26332 else 26333 pkg_failed=untried 26334fi 26335 26336 26337 26338if test $pkg_failed = yes; then 26339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26340printf "%s\n" "no" >&6; } 26341 26342if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 26343 _pkg_short_errors_supported=yes 26344else 26345 _pkg_short_errors_supported=no 26346fi 26347 if test $_pkg_short_errors_supported = yes; then 26348 PIXMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBPIXMAN" 2>&1` 26349 else 26350 PIXMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBPIXMAN" 2>&1` 26351 fi 26352 # Put the nasty error message in config.log where it belongs 26353 echo "$PIXMAN_PKG_ERRORS" >&5 26354 26355 as_fn_error $? "Package requirements ($LIBPIXMAN) were not met: 26356 26357$PIXMAN_PKG_ERRORS 26358 26359Consider adjusting the PKG_CONFIG_PATH environment variable if you 26360installed software in a non-standard prefix. 26361 26362Alternatively, you may set the environment variables PIXMAN_CFLAGS 26363and PIXMAN_LIBS to avoid the need to call pkg-config. 26364See the pkg-config man page for more details." "$LINENO" 5 26365elif test $pkg_failed = untried; then 26366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26367printf "%s\n" "no" >&6; } 26368 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26369printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 26370as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 26371is in your PATH or set the PKG_CONFIG environment variable to the full 26372path to pkg-config. 26373 26374Alternatively, you may set the environment variables PIXMAN_CFLAGS 26375and PIXMAN_LIBS to avoid the need to call pkg-config. 26376See the pkg-config man page for more details. 26377 26378To get pkg-config, see <http://pkg-config.freedesktop.org/>. 26379See \`config.log' for more details" "$LINENO" 5; } 26380else 26381 PIXMAN_CFLAGS=$pkg_cv_PIXMAN_CFLAGS 26382 PIXMAN_LIBS=$pkg_cv_PIXMAN_LIBS 26383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26384printf "%s\n" "yes" >&6; } 26385 26386fi 26387REQUIRED_LIBS="$REQUIRED_LIBS $LIBPIXMAN $LIBXFONT xau" 26388 26389SDK_REQUIRED_MODULES="$XPROTO $RANDRPROTO $RENDERPROTO $XEXTPROTO $INPUTPROTO $KBPROTO $FONTSPROTO $LIBPIXMAN $LIBXCVT" 26390# Make SDK_REQUIRED_MODULES available for inclusion in xorg-server.pc 26391 26392 26393ac_fn_check_decl "$LINENO" "PTHREAD_MUTEX_RECURSIVE" "ac_cv_have_decl_PTHREAD_MUTEX_RECURSIVE" "#include <pthread.h> 26394" "$ac_c_undeclared_builtin_options" "CFLAGS" 26395if test "x$ac_cv_have_decl_PTHREAD_MUTEX_RECURSIVE" = xyes 26396then : 26397 HAVE_RECURSIVE_MUTEX=yes 26398else $as_nop 26399 HAVE_RECURSIVE_MUTEX=no 26400fi 26401 26402THREAD_DEFAULT=no 26403 26404if test "x$HAVE_RECURSIVE_MUTEX" = "xyes" ; then 26405 THREAD_DEFAULT=yes 26406fi 26407 26408case $host_os in 26409 mingw*) THREAD_DEFAULT=no ;; 26410 *) 26411esac 26412 26413# Check whether --enable-input-thread was given. 26414if test ${enable_input_thread+y} 26415then : 26416 enableval=$enable_input_thread; INPUTTHREAD=$enableval 26417else $as_nop 26418 INPUTTHREAD=$THREAD_DEFAULT 26419fi 26420 26421 26422if test "x$INPUTTHREAD" = "xyes" ; then 26423 26424 26425ac_ext=c 26426ac_cpp='$CPP $CPPFLAGS' 26427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26429ac_compiler_gnu=$ac_cv_c_compiler_gnu 26430 26431ax_pthread_ok=no 26432 26433# We used to check for pthread.h first, but this fails if pthread.h 26434# requires special compiler flags (e.g. on True64 or Sequent). 26435# It gets checked for in the link test anyway. 26436 26437# First of all, check if the user has set any of the PTHREAD_LIBS, 26438# etcetera environment variables, and if threads linking works using 26439# them: 26440if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 26441 save_CFLAGS="$CFLAGS" 26442 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 26443 save_LIBS="$LIBS" 26444 LIBS="$PTHREAD_LIBS $LIBS" 26445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 26446printf %s "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 26447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26448/* end confdefs.h. */ 26449 26450/* Override any GCC internal prototype to avoid an error. 26451 Use char because int might match the return type of a GCC 26452 builtin and then its argument prototype would still apply. */ 26453char pthread_join (); 26454int 26455main (void) 26456{ 26457return pthread_join (); 26458 ; 26459 return 0; 26460} 26461_ACEOF 26462if ac_fn_c_try_link "$LINENO" 26463then : 26464 ax_pthread_ok=yes 26465fi 26466rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26467 conftest$ac_exeext conftest.$ac_ext 26468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 26469printf "%s\n" "$ax_pthread_ok" >&6; } 26470 if test x"$ax_pthread_ok" = xno; then 26471 PTHREAD_LIBS="" 26472 PTHREAD_CFLAGS="" 26473 fi 26474 LIBS="$save_LIBS" 26475 CFLAGS="$save_CFLAGS" 26476fi 26477 26478# We must check for the threads library under a number of different 26479# names; the ordering is very important because some systems 26480# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 26481# libraries is broken (non-POSIX). 26482 26483# Create a list of thread flags to try. Items starting with a "-" are 26484# C compiler flags, and other items are library names, except for "none" 26485# which indicates that we try without any flags at all, and "pthread-config" 26486# which is a program returning the flags for the Pth emulation library. 26487 26488ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 26489 26490# The ordering *is* (sometimes) important. Some notes on the 26491# individual items follow: 26492 26493# pthreads: AIX (must check this before -lpthread) 26494# none: in case threads are in libc; should be tried before -Kthread and 26495# other compiler flags to prevent continual compiler warnings 26496# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 26497# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 26498# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 26499# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 26500# -pthreads: Solaris/gcc 26501# -mthreads: Mingw32/gcc, Lynx/gcc 26502# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 26503# doesn't hurt to check since this sometimes defines pthreads too; 26504# also defines -D_REENTRANT) 26505# ... -mt is also the pthreads flag for HP/aCC 26506# pthread: Linux, etcetera 26507# --thread-safe: KAI C++ 26508# pthread-config: use pthread-config program (for GNU Pth library) 26509 26510case ${host_os} in 26511 solaris*) 26512 26513 # On Solaris (at least, for some versions), libc contains stubbed 26514 # (non-functional) versions of the pthreads routines, so link-based 26515 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 26516 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 26517 # a function called by this macro, so we could check for that, but 26518 # who knows whether they'll stub that too in a future libc.) So, 26519 # we'll just look for -pthreads and -lpthread first: 26520 26521 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 26522 ;; 26523 26524 darwin*) 26525 ax_pthread_flags="-pthread $ax_pthread_flags" 26526 ;; 26527 netbsd*) 26528 # use libc stubs, don't link against libpthread, to allow 26529 # dynamic loading 26530 ax_pthread_flags="" 26531 ;; 26532esac 26533 26534# Clang doesn't consider unrecognized options an error unless we specify 26535# -Werror. We throw in some extra Clang-specific options to ensure that 26536# this doesn't happen for GCC, which also accepts -Werror. 26537 26538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5 26539printf %s "checking if compiler needs -Werror to reject unknown flags... " >&6; } 26540save_CFLAGS="$CFLAGS" 26541ax_pthread_extra_flags="-Werror" 26542CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument" 26543cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26544/* end confdefs.h. */ 26545int foo(void); 26546int 26547main (void) 26548{ 26549foo() 26550 ; 26551 return 0; 26552} 26553_ACEOF 26554if ac_fn_c_try_compile "$LINENO" 26555then : 26556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26557printf "%s\n" "yes" >&6; } 26558else $as_nop 26559 ax_pthread_extra_flags= 26560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26561printf "%s\n" "no" >&6; } 26562fi 26563rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26564CFLAGS="$save_CFLAGS" 26565 26566if test x"$ax_pthread_ok" = xno; then 26567for flag in $ax_pthread_flags; do 26568 26569 case $flag in 26570 none) 26571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 26572printf %s "checking whether pthreads work without any flags... " >&6; } 26573 ;; 26574 26575 -*) 26576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 26577printf %s "checking whether pthreads work with $flag... " >&6; } 26578 PTHREAD_CFLAGS="$flag" 26579 ;; 26580 26581 pthread-config) 26582 # Extract the first word of "pthread-config", so it can be a program name with args. 26583set dummy pthread-config; ac_word=$2 26584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26585printf %s "checking for $ac_word... " >&6; } 26586if test ${ac_cv_prog_ax_pthread_config+y} 26587then : 26588 printf %s "(cached) " >&6 26589else $as_nop 26590 if test -n "$ax_pthread_config"; then 26591 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 26592else 26593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26594for as_dir in $PATH 26595do 26596 IFS=$as_save_IFS 26597 case $as_dir in #((( 26598 '') as_dir=./ ;; 26599 */) ;; 26600 *) as_dir=$as_dir/ ;; 26601 esac 26602 for ac_exec_ext in '' $ac_executable_extensions; do 26603 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 26604 ac_cv_prog_ax_pthread_config="yes" 26605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 26606 break 2 26607 fi 26608done 26609 done 26610IFS=$as_save_IFS 26611 26612 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 26613fi 26614fi 26615ax_pthread_config=$ac_cv_prog_ax_pthread_config 26616if test -n "$ax_pthread_config"; then 26617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 26618printf "%s\n" "$ax_pthread_config" >&6; } 26619else 26620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26621printf "%s\n" "no" >&6; } 26622fi 26623 26624 26625 if test x"$ax_pthread_config" = xno; then continue; fi 26626 PTHREAD_CFLAGS="`pthread-config --cflags`" 26627 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 26628 ;; 26629 26630 *) 26631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 26632printf %s "checking for the pthreads library -l$flag... " >&6; } 26633 PTHREAD_LIBS="-l$flag" 26634 ;; 26635 esac 26636 26637 save_LIBS="$LIBS" 26638 save_CFLAGS="$CFLAGS" 26639 LIBS="$PTHREAD_LIBS $LIBS" 26640 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags" 26641 26642 # Check for various functions. We must include pthread.h, 26643 # since some functions may be macros. (On the Sequent, we 26644 # need a special flag -Kthread to make this header compile.) 26645 # We check for pthread_join because it is in -lpthread on IRIX 26646 # while pthread_create is in libc. We check for pthread_attr_init 26647 # due to DEC craziness with -lpthreads. We check for 26648 # pthread_cleanup_push because it is one of the few pthread 26649 # functions on Solaris that doesn't have a non-functional libc stub. 26650 # We try pthread_create on general principles. 26651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26652/* end confdefs.h. */ 26653#include <pthread.h> 26654 static void routine(void *a) { a = 0; } 26655 static void *start_routine(void *a) { return a; } 26656int 26657main (void) 26658{ 26659pthread_t th; pthread_attr_t attr; 26660 pthread_create(&th, 0, start_routine, 0); 26661 pthread_join(th, 0); 26662 pthread_attr_init(&attr); 26663 pthread_cleanup_push(routine, 0); 26664 pthread_cleanup_pop(0) /* ; */ 26665 ; 26666 return 0; 26667} 26668_ACEOF 26669if ac_fn_c_try_link "$LINENO" 26670then : 26671 ax_pthread_ok=yes 26672fi 26673rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26674 conftest$ac_exeext conftest.$ac_ext 26675 26676 LIBS="$save_LIBS" 26677 CFLAGS="$save_CFLAGS" 26678 26679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 26680printf "%s\n" "$ax_pthread_ok" >&6; } 26681 if test "x$ax_pthread_ok" = xyes; then 26682 break; 26683 fi 26684 26685 PTHREAD_LIBS="" 26686 PTHREAD_CFLAGS="" 26687done 26688fi 26689 26690# Various other checks: 26691if test "x$ax_pthread_ok" = xyes; then 26692 save_LIBS="$LIBS" 26693 LIBS="$PTHREAD_LIBS $LIBS" 26694 save_CFLAGS="$CFLAGS" 26695 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 26696 26697 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 26698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 26699printf %s "checking for joinable pthread attribute... " >&6; } 26700 attr_name=unknown 26701 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 26702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26703/* end confdefs.h. */ 26704#include <pthread.h> 26705int 26706main (void) 26707{ 26708int attr = $attr; return attr /* ; */ 26709 ; 26710 return 0; 26711} 26712_ACEOF 26713if ac_fn_c_try_link "$LINENO" 26714then : 26715 attr_name=$attr; break 26716fi 26717rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26718 conftest$ac_exeext conftest.$ac_ext 26719 done 26720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 26721printf "%s\n" "$attr_name" >&6; } 26722 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 26723 26724printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $attr_name" >>confdefs.h 26725 26726 fi 26727 26728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 26729printf %s "checking if more special flags are required for pthreads... " >&6; } 26730 flag=no 26731 case ${host_os} in 26732 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; 26733 osf* | hpux*) flag="-D_REENTRANT";; 26734 solaris*) 26735 if test "$GCC" = "yes"; then 26736 flag="-D_REENTRANT" 26737 else 26738 # TODO: What about Clang on Solaris? 26739 flag="-mt -D_REENTRANT" 26740 fi 26741 ;; 26742 esac 26743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $flag" >&5 26744printf "%s\n" "$flag" >&6; } 26745 if test "x$flag" != xno; then 26746 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 26747 fi 26748 26749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 26750printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; } 26751if test ${ax_cv_PTHREAD_PRIO_INHERIT+y} 26752then : 26753 printf %s "(cached) " >&6 26754else $as_nop 26755 26756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26757/* end confdefs.h. */ 26758#include <pthread.h> 26759int 26760main (void) 26761{ 26762int i = PTHREAD_PRIO_INHERIT; 26763 ; 26764 return 0; 26765} 26766_ACEOF 26767if ac_fn_c_try_link "$LINENO" 26768then : 26769 ax_cv_PTHREAD_PRIO_INHERIT=yes 26770else $as_nop 26771 ax_cv_PTHREAD_PRIO_INHERIT=no 26772fi 26773rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26774 conftest$ac_exeext conftest.$ac_ext 26775 26776fi 26777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 26778printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 26779 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" 26780then : 26781 26782printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 26783 26784fi 26785 26786 LIBS="$save_LIBS" 26787 CFLAGS="$save_CFLAGS" 26788 26789 # More AIX lossage: compile with *_r variant 26790 if test "x$GCC" != xyes; then 26791 case $host_os in 26792 aix*) 26793 case "x/$CC" in #( 26794 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 26795 #handle absolute path differently from PATH based program lookup 26796 case "x$CC" in #( 26797 x/*) : 26798 if as_fn_executable_p ${CC}_r 26799then : 26800 PTHREAD_CC="${CC}_r" 26801fi ;; #( 26802 *) : 26803 for ac_prog in ${CC}_r 26804do 26805 # Extract the first word of "$ac_prog", so it can be a program name with args. 26806set dummy $ac_prog; ac_word=$2 26807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26808printf %s "checking for $ac_word... " >&6; } 26809if test ${ac_cv_prog_PTHREAD_CC+y} 26810then : 26811 printf %s "(cached) " >&6 26812else $as_nop 26813 if test -n "$PTHREAD_CC"; then 26814 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 26815else 26816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26817for as_dir in $PATH 26818do 26819 IFS=$as_save_IFS 26820 case $as_dir in #((( 26821 '') as_dir=./ ;; 26822 */) ;; 26823 *) as_dir=$as_dir/ ;; 26824 esac 26825 for ac_exec_ext in '' $ac_executable_extensions; do 26826 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 26827 ac_cv_prog_PTHREAD_CC="$ac_prog" 26828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 26829 break 2 26830 fi 26831done 26832 done 26833IFS=$as_save_IFS 26834 26835fi 26836fi 26837PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 26838if test -n "$PTHREAD_CC"; then 26839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 26840printf "%s\n" "$PTHREAD_CC" >&6; } 26841else 26842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26843printf "%s\n" "no" >&6; } 26844fi 26845 26846 26847 test -n "$PTHREAD_CC" && break 26848done 26849test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 26850 ;; 26851esac ;; #( 26852 *) : 26853 ;; 26854esac 26855 ;; 26856 esac 26857 fi 26858fi 26859 26860test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 26861 26862 26863 26864 26865 26866# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 26867if test x"$ax_pthread_ok" = xyes; then 26868 26869printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h 26870 26871 : 26872else 26873 ax_pthread_ok=no 26874 as_fn_error $? "threaded input requested but no pthread support has been found" "$LINENO" 5 26875fi 26876ac_ext=c 26877ac_cpp='$CPP $CPPFLAGS' 26878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26880ac_compiler_gnu=$ac_cv_c_compiler_gnu 26881 26882 26883 SYS_LIBS="$SYS_LIBS $PTHREAD_LIBS" 26884 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 26885 26886printf "%s\n" "#define INPUTTHREAD 1" >>confdefs.h 26887 26888 26889 save_LIBS="$LIBS" 26890 LIBS="$LIBS $SYS_LIBS" 26891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np(const char*)" >&5 26892printf %s "checking for pthread_setname_np(const char*)... " >&6; } 26893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26894/* end confdefs.h. */ 26895#include <pthread.h> 26896int 26897main (void) 26898{ 26899pthread_setname_np("example") 26900 ; 26901 return 0; 26902} 26903_ACEOF 26904if ac_fn_c_try_link "$LINENO" 26905then : 26906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26907printf "%s\n" "yes" >&6; } 26908 26909printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP_WITHOUT_TID 1" >>confdefs.h 26910 26911else $as_nop 26912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26913printf "%s\n" "no" >&6; } 26914fi 26915rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26916 conftest$ac_exeext conftest.$ac_ext 26917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np(pthread_t, const char*)" >&5 26918printf %s "checking for pthread_setname_np(pthread_t, const char*)... " >&6; } 26919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26920/* end confdefs.h. */ 26921#include <pthread.h> 26922int 26923main (void) 26924{ 26925pthread_setname_np(pthread_self(), "example") 26926 ; 26927 return 0; 26928} 26929_ACEOF 26930if ac_fn_c_try_link "$LINENO" 26931then : 26932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26933printf "%s\n" "yes" >&6; } 26934 26935printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP_WITH_TID 1" >>confdefs.h 26936 26937else $as_nop 26938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26939printf "%s\n" "no" >&6; } 26940fi 26941rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26942 conftest$ac_exeext conftest.$ac_ext 26943 LIBS="$save_LIBS" 26944fi 26945 26946REQUIRED_MODULES="$FIXESPROTO $DAMAGEPROTO $XCMISCPROTO $XTRANS $BIGREQSPROTO $SDK_REQUIRED_MODULES" 26947 26948LIBSYSTEMD="libsystemd >= 209" 26949 26950# Check whether --with-systemd-daemon was given. 26951if test ${with_systemd_daemon+y} 26952then : 26953 withval=$with_systemd_daemon; WITH_SYSTEMD_DAEMON=$withval 26954else $as_nop 26955 WITH_SYSTEMD_DAEMON=auto 26956fi 26957 26958if test "x$WITH_SYSTEMD_DAEMON" = "xyes" -o "x$WITH_SYSTEMD_DAEMON" = "xauto" ; then 26959 26960pkg_failed=no 26961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5 26962printf %s "checking for SYSTEMD_DAEMON... " >&6; } 26963 26964if test -n "$SYSTEMD_DAEMON_CFLAGS"; then 26965 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS" 26966 elif test -n "$PKG_CONFIG"; then 26967 if test -n "$PKG_CONFIG" && \ 26968 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSYSTEMD\""; } >&5 26969 ($PKG_CONFIG --exists --print-errors "$LIBSYSTEMD") 2>&5 26970 ac_status=$? 26971 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26972 test $ac_status = 0; }; then 26973 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "$LIBSYSTEMD" 2>/dev/null` 26974 test "x$?" != "x0" && pkg_failed=yes 26975else 26976 pkg_failed=yes 26977fi 26978 else 26979 pkg_failed=untried 26980fi 26981if test -n "$SYSTEMD_DAEMON_LIBS"; then 26982 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS" 26983 elif test -n "$PKG_CONFIG"; then 26984 if test -n "$PKG_CONFIG" && \ 26985 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSYSTEMD\""; } >&5 26986 ($PKG_CONFIG --exists --print-errors "$LIBSYSTEMD") 2>&5 26987 ac_status=$? 26988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26989 test $ac_status = 0; }; then 26990 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "$LIBSYSTEMD" 2>/dev/null` 26991 test "x$?" != "x0" && pkg_failed=yes 26992else 26993 pkg_failed=yes 26994fi 26995 else 26996 pkg_failed=untried 26997fi 26998 26999 27000 27001if test $pkg_failed = yes; then 27002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27003printf "%s\n" "no" >&6; } 27004 27005if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 27006 _pkg_short_errors_supported=yes 27007else 27008 _pkg_short_errors_supported=no 27009fi 27010 if test $_pkg_short_errors_supported = yes; then 27011 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBSYSTEMD" 2>&1` 27012 else 27013 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBSYSTEMD" 2>&1` 27014 fi 27015 # Put the nasty error message in config.log where it belongs 27016 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5 27017 27018 27019pkg_failed=no 27020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5 27021printf %s "checking for SYSTEMD_DAEMON... " >&6; } 27022 27023if test -n "$SYSTEMD_DAEMON_CFLAGS"; then 27024 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS" 27025 elif test -n "$PKG_CONFIG"; then 27026 if test -n "$PKG_CONFIG" && \ 27027 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 27028 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 27029 ac_status=$? 27030 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27031 test $ac_status = 0; }; then 27032 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null` 27033 test "x$?" != "x0" && pkg_failed=yes 27034else 27035 pkg_failed=yes 27036fi 27037 else 27038 pkg_failed=untried 27039fi 27040if test -n "$SYSTEMD_DAEMON_LIBS"; then 27041 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS" 27042 elif test -n "$PKG_CONFIG"; then 27043 if test -n "$PKG_CONFIG" && \ 27044 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 27045 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 27046 ac_status=$? 27047 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27048 test $ac_status = 0; }; then 27049 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null` 27050 test "x$?" != "x0" && pkg_failed=yes 27051else 27052 pkg_failed=yes 27053fi 27054 else 27055 pkg_failed=untried 27056fi 27057 27058 27059 27060if test $pkg_failed = yes; then 27061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27062printf "%s\n" "no" >&6; } 27063 27064if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 27065 _pkg_short_errors_supported=yes 27066else 27067 _pkg_short_errors_supported=no 27068fi 27069 if test $_pkg_short_errors_supported = yes; then 27070 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 27071 else 27072 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 27073 fi 27074 # Put the nasty error message in config.log where it belongs 27075 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5 27076 27077 HAVE_SYSTEMD_DAEMON=no 27078elif test $pkg_failed = untried; then 27079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27080printf "%s\n" "no" >&6; } 27081 HAVE_SYSTEMD_DAEMON=no 27082else 27083 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS 27084 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS 27085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27086printf "%s\n" "yes" >&6; } 27087 HAVE_SYSTEMD_DAEMON=yes; 27088 LIBSYSTEMD_DAEMON=libsystemd-daemon 27089fi 27090elif test $pkg_failed = untried; then 27091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27092printf "%s\n" "no" >&6; } 27093 27094pkg_failed=no 27095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5 27096printf %s "checking for SYSTEMD_DAEMON... " >&6; } 27097 27098if test -n "$SYSTEMD_DAEMON_CFLAGS"; then 27099 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS" 27100 elif test -n "$PKG_CONFIG"; then 27101 if test -n "$PKG_CONFIG" && \ 27102 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 27103 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 27104 ac_status=$? 27105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27106 test $ac_status = 0; }; then 27107 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null` 27108 test "x$?" != "x0" && pkg_failed=yes 27109else 27110 pkg_failed=yes 27111fi 27112 else 27113 pkg_failed=untried 27114fi 27115if test -n "$SYSTEMD_DAEMON_LIBS"; then 27116 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS" 27117 elif test -n "$PKG_CONFIG"; then 27118 if test -n "$PKG_CONFIG" && \ 27119 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 27120 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 27121 ac_status=$? 27122 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27123 test $ac_status = 0; }; then 27124 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null` 27125 test "x$?" != "x0" && pkg_failed=yes 27126else 27127 pkg_failed=yes 27128fi 27129 else 27130 pkg_failed=untried 27131fi 27132 27133 27134 27135if test $pkg_failed = yes; then 27136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27137printf "%s\n" "no" >&6; } 27138 27139if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 27140 _pkg_short_errors_supported=yes 27141else 27142 _pkg_short_errors_supported=no 27143fi 27144 if test $_pkg_short_errors_supported = yes; then 27145 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 27146 else 27147 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 27148 fi 27149 # Put the nasty error message in config.log where it belongs 27150 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5 27151 27152 HAVE_SYSTEMD_DAEMON=no 27153elif test $pkg_failed = untried; then 27154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27155printf "%s\n" "no" >&6; } 27156 HAVE_SYSTEMD_DAEMON=no 27157else 27158 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS 27159 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS 27160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27161printf "%s\n" "yes" >&6; } 27162 HAVE_SYSTEMD_DAEMON=yes; 27163 LIBSYSTEMD_DAEMON=libsystemd-daemon 27164fi 27165else 27166 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS 27167 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS 27168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27169printf "%s\n" "yes" >&6; } 27170 HAVE_SYSTEMD_DAEMON=yes; 27171 LIBSYSTEMD_DAEMON="$LIBSYSTEMD" 27172fi 27173 if test "x$HAVE_SYSTEMD_DAEMON" = xyes; then 27174 27175printf "%s\n" "#define HAVE_SYSTEMD_DAEMON 1" >>confdefs.h 27176 27177 REQUIRED_LIBS="$REQUIRED_LIBS $LIBSYSTEMD_DAEMON" 27178 elif test "x$WITH_SYSTEMD_DAEMON" = xyes; then 27179 as_fn_error $? "systemd support requested but no library has been found" "$LINENO" 5 27180 fi 27181fi 27182 if test "x$HAVE_SYSTEMD_DAEMON" = "xyes"; then 27183 HAVE_SYSTEMD_DAEMON_TRUE= 27184 HAVE_SYSTEMD_DAEMON_FALSE='#' 27185else 27186 HAVE_SYSTEMD_DAEMON_TRUE='#' 27187 HAVE_SYSTEMD_DAEMON_FALSE= 27188fi 27189 27190 27191if test "x$CONFIG_UDEV" = xyes && test "x$CONFIG_HAL" = xyes; then 27192 as_fn_error $? "Hotplugging through both libudev and hal not allowed" "$LINENO" 5 27193fi 27194 27195 27196pkg_failed=no 27197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5 27198printf %s "checking for UDEV... " >&6; } 27199 27200if test -n "$UDEV_CFLAGS"; then 27201 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS" 27202 elif test -n "$PKG_CONFIG"; then 27203 if test -n "$PKG_CONFIG" && \ 27204 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBUDEV\""; } >&5 27205 ($PKG_CONFIG --exists --print-errors "$LIBUDEV") 2>&5 27206 ac_status=$? 27207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27208 test $ac_status = 0; }; then 27209 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "$LIBUDEV" 2>/dev/null` 27210 test "x$?" != "x0" && pkg_failed=yes 27211else 27212 pkg_failed=yes 27213fi 27214 else 27215 pkg_failed=untried 27216fi 27217if test -n "$UDEV_LIBS"; then 27218 pkg_cv_UDEV_LIBS="$UDEV_LIBS" 27219 elif test -n "$PKG_CONFIG"; then 27220 if test -n "$PKG_CONFIG" && \ 27221 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBUDEV\""; } >&5 27222 ($PKG_CONFIG --exists --print-errors "$LIBUDEV") 2>&5 27223 ac_status=$? 27224 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27225 test $ac_status = 0; }; then 27226 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "$LIBUDEV" 2>/dev/null` 27227 test "x$?" != "x0" && pkg_failed=yes 27228else 27229 pkg_failed=yes 27230fi 27231 else 27232 pkg_failed=untried 27233fi 27234 27235 27236 27237if test $pkg_failed = yes; then 27238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27239printf "%s\n" "no" >&6; } 27240 27241if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 27242 _pkg_short_errors_supported=yes 27243else 27244 _pkg_short_errors_supported=no 27245fi 27246 if test $_pkg_short_errors_supported = yes; then 27247 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBUDEV" 2>&1` 27248 else 27249 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBUDEV" 2>&1` 27250 fi 27251 # Put the nasty error message in config.log where it belongs 27252 echo "$UDEV_PKG_ERRORS" >&5 27253 27254 HAVE_LIBUDEV=no 27255elif test $pkg_failed = untried; then 27256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27257printf "%s\n" "no" >&6; } 27258 HAVE_LIBUDEV=no 27259else 27260 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS 27261 UDEV_LIBS=$pkg_cv_UDEV_LIBS 27262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27263printf "%s\n" "yes" >&6; } 27264 HAVE_LIBUDEV=yes 27265fi 27266if test "x$CONFIG_UDEV" = xauto; then 27267 CONFIG_UDEV="$HAVE_LIBUDEV" 27268fi 27269 if test "x$CONFIG_UDEV" = xyes; then 27270 CONFIG_UDEV_TRUE= 27271 CONFIG_UDEV_FALSE='#' 27272else 27273 CONFIG_UDEV_TRUE='#' 27274 CONFIG_UDEV_FALSE= 27275fi 27276 27277if test "x$CONFIG_UDEV" = xyes; then 27278 CONFIG_HAL=no 27279 if test "x$CONFIG_UDEV_KMS" = xauto; then 27280 CONFIG_UDEV_KMS="$HAVE_LIBUDEV" 27281 fi 27282 if ! test "x$HAVE_LIBUDEV" = xyes; then 27283 as_fn_error $? "udev configuration API requested, but libudev is not installed" "$LINENO" 5 27284 fi 27285 27286printf "%s\n" "#define CONFIG_UDEV 1" >>confdefs.h 27287 27288 if test "x$CONFIG_UDEV_KMS" = xyes; then 27289 27290printf "%s\n" "#define CONFIG_UDEV_KMS 1" >>confdefs.h 27291 27292 fi 27293 SAVE_LIBS=$LIBS 27294 SAVE_CFLAGS=$CFLAGS 27295 CFLAGS="$CFLAGS $UDEV_CFLAGS" 27296 LIBS=$UDEV_LIBS 27297 ac_fn_c_check_func "$LINENO" "udev_monitor_filter_add_match_tag" "ac_cv_func_udev_monitor_filter_add_match_tag" 27298if test "x$ac_cv_func_udev_monitor_filter_add_match_tag" = xyes 27299then : 27300 printf "%s\n" "#define HAVE_UDEV_MONITOR_FILTER_ADD_MATCH_TAG 1" >>confdefs.h 27301 27302fi 27303 27304 ac_fn_c_check_func "$LINENO" "udev_enumerate_add_match_tag" "ac_cv_func_udev_enumerate_add_match_tag" 27305if test "x$ac_cv_func_udev_enumerate_add_match_tag" = xyes 27306then : 27307 printf "%s\n" "#define HAVE_UDEV_ENUMERATE_ADD_MATCH_TAG 1" >>confdefs.h 27308 27309fi 27310 27311 LIBS=$SAVE_LIBS 27312 CFLAGS=$SAVE_CFLAGS 27313fi 27314 if test "x$CONFIG_UDEV_KMS" = xyes; then 27315 CONFIG_UDEV_KMS_TRUE= 27316 CONFIG_UDEV_KMS_FALSE='#' 27317else 27318 CONFIG_UDEV_KMS_TRUE='#' 27319 CONFIG_UDEV_KMS_FALSE= 27320fi 27321 27322 27323 27324pkg_failed=no 27325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5 27326printf %s "checking for DBUS... " >&6; } 27327 27328if test -n "$DBUS_CFLAGS"; then 27329 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS" 27330 elif test -n "$PKG_CONFIG"; then 27331 if test -n "$PKG_CONFIG" && \ 27332 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDBUS\""; } >&5 27333 ($PKG_CONFIG --exists --print-errors "$LIBDBUS") 2>&5 27334 ac_status=$? 27335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27336 test $ac_status = 0; }; then 27337 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "$LIBDBUS" 2>/dev/null` 27338 test "x$?" != "x0" && pkg_failed=yes 27339else 27340 pkg_failed=yes 27341fi 27342 else 27343 pkg_failed=untried 27344fi 27345if test -n "$DBUS_LIBS"; then 27346 pkg_cv_DBUS_LIBS="$DBUS_LIBS" 27347 elif test -n "$PKG_CONFIG"; then 27348 if test -n "$PKG_CONFIG" && \ 27349 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDBUS\""; } >&5 27350 ($PKG_CONFIG --exists --print-errors "$LIBDBUS") 2>&5 27351 ac_status=$? 27352 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27353 test $ac_status = 0; }; then 27354 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "$LIBDBUS" 2>/dev/null` 27355 test "x$?" != "x0" && pkg_failed=yes 27356else 27357 pkg_failed=yes 27358fi 27359 else 27360 pkg_failed=untried 27361fi 27362 27363 27364 27365if test $pkg_failed = yes; then 27366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27367printf "%s\n" "no" >&6; } 27368 27369if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 27370 _pkg_short_errors_supported=yes 27371else 27372 _pkg_short_errors_supported=no 27373fi 27374 if test $_pkg_short_errors_supported = yes; then 27375 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDBUS" 2>&1` 27376 else 27377 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDBUS" 2>&1` 27378 fi 27379 # Put the nasty error message in config.log where it belongs 27380 echo "$DBUS_PKG_ERRORS" >&5 27381 27382 HAVE_DBUS=no 27383elif test $pkg_failed = untried; then 27384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27385printf "%s\n" "no" >&6; } 27386 HAVE_DBUS=no 27387else 27388 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS 27389 DBUS_LIBS=$pkg_cv_DBUS_LIBS 27390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27391printf "%s\n" "yes" >&6; } 27392 HAVE_DBUS=yes 27393fi 27394if test "x$HAVE_DBUS" = xyes; then 27395 27396printf "%s\n" "#define HAVE_DBUS 1" >>confdefs.h 27397 27398fi 27399 if test "x$HAVE_DBUS" = xyes; then 27400 HAVE_DBUS_TRUE= 27401 HAVE_DBUS_FALSE='#' 27402else 27403 HAVE_DBUS_TRUE='#' 27404 HAVE_DBUS_FALSE= 27405fi 27406 27407 27408 27409pkg_failed=no 27410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HAL" >&5 27411printf %s "checking for HAL... " >&6; } 27412 27413if test -n "$HAL_CFLAGS"; then 27414 pkg_cv_HAL_CFLAGS="$HAL_CFLAGS" 27415 elif test -n "$PKG_CONFIG"; then 27416 if test -n "$PKG_CONFIG" && \ 27417 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal\""; } >&5 27418 ($PKG_CONFIG --exists --print-errors "hal") 2>&5 27419 ac_status=$? 27420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27421 test $ac_status = 0; }; then 27422 pkg_cv_HAL_CFLAGS=`$PKG_CONFIG --cflags "hal" 2>/dev/null` 27423 test "x$?" != "x0" && pkg_failed=yes 27424else 27425 pkg_failed=yes 27426fi 27427 else 27428 pkg_failed=untried 27429fi 27430if test -n "$HAL_LIBS"; then 27431 pkg_cv_HAL_LIBS="$HAL_LIBS" 27432 elif test -n "$PKG_CONFIG"; then 27433 if test -n "$PKG_CONFIG" && \ 27434 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal\""; } >&5 27435 ($PKG_CONFIG --exists --print-errors "hal") 2>&5 27436 ac_status=$? 27437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27438 test $ac_status = 0; }; then 27439 pkg_cv_HAL_LIBS=`$PKG_CONFIG --libs "hal" 2>/dev/null` 27440 test "x$?" != "x0" && pkg_failed=yes 27441else 27442 pkg_failed=yes 27443fi 27444 else 27445 pkg_failed=untried 27446fi 27447 27448 27449 27450if test $pkg_failed = yes; then 27451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27452printf "%s\n" "no" >&6; } 27453 27454if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 27455 _pkg_short_errors_supported=yes 27456else 27457 _pkg_short_errors_supported=no 27458fi 27459 if test $_pkg_short_errors_supported = yes; then 27460 HAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "hal" 2>&1` 27461 else 27462 HAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "hal" 2>&1` 27463 fi 27464 # Put the nasty error message in config.log where it belongs 27465 echo "$HAL_PKG_ERRORS" >&5 27466 27467 HAVE_HAL=no 27468elif test $pkg_failed = untried; then 27469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27470printf "%s\n" "no" >&6; } 27471 HAVE_HAL=no 27472else 27473 HAL_CFLAGS=$pkg_cv_HAL_CFLAGS 27474 HAL_LIBS=$pkg_cv_HAL_LIBS 27475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27476printf "%s\n" "yes" >&6; } 27477 HAVE_HAL=yes 27478fi 27479if test "x$CONFIG_HAL" = xauto; then 27480 CONFIG_HAL="$HAVE_HAL" 27481fi 27482if test "x$CONFIG_HAL" = xyes; then 27483 if ! test "x$HAVE_HAL" = xyes; then 27484 as_fn_error $? "HAL hotplug API requested, but HAL is not installed." "$LINENO" 5 27485 fi 27486 27487 27488printf "%s\n" "#define CONFIG_HAL 1" >>confdefs.h 27489 27490 NEED_DBUS="yes" 27491fi 27492 if test "x$CONFIG_HAL" = xyes; then 27493 CONFIG_HAL_TRUE= 27494 CONFIG_HAL_FALSE='#' 27495else 27496 CONFIG_HAL_TRUE='#' 27497 CONFIG_HAL_FALSE= 27498fi 27499 27500 27501if test "x$SYSTEMD_LOGIND" = xauto; then 27502 if test "x$HAVE_DBUS" = xyes -a "x$CONFIG_UDEV" = xyes ; then 27503 SYSTEMD_LOGIND=yes 27504 else 27505 SYSTEMD_LOGIND=no 27506 fi 27507fi 27508if test "x$SYSTEMD_LOGIND" = xyes; then 27509 if ! test "x$HAVE_DBUS" = xyes; then 27510 as_fn_error $? "systemd-logind requested, but D-Bus is not installed." "$LINENO" 5 27511 fi 27512 if ! test "x$CONFIG_UDEV" = xyes ; then 27513 as_fn_error $? "systemd-logind is only supported in combination with udev configuration." "$LINENO" 5 27514 fi 27515 27516 27517printf "%s\n" "#define SYSTEMD_LOGIND 1" >>confdefs.h 27518 27519 NEED_DBUS="yes" 27520fi 27521 if test "x$SYSTEMD_LOGIND" = xyes; then 27522 SYSTEMD_LOGIND_TRUE= 27523 SYSTEMD_LOGIND_FALSE='#' 27524else 27525 SYSTEMD_LOGIND_TRUE='#' 27526 SYSTEMD_LOGIND_FALSE= 27527fi 27528 27529 27530if test "x$SUID_WRAPPER" = xyes; then 27531 27532 prefix_NONE= 27533 exec_prefix_NONE= 27534 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 27535 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 27536 eval ac_define_dir="\"$libexecdir\"" 27537 eval ac_define_dir="\"$ac_define_dir\"" 27538 SUID_WRAPPER_DIR="$ac_define_dir" 27539 27540 27541printf "%s\n" "#define SUID_WRAPPER_DIR \"$ac_define_dir\"" >>confdefs.h 27542 27543 test "$prefix_NONE" && prefix=NONE 27544 test "$exec_prefix_NONE" && exec_prefix=NONE 27545 27546 SETUID="no" 27547fi 27548 if test "x$SUID_WRAPPER" = xyes; then 27549 SUID_WRAPPER_TRUE= 27550 SUID_WRAPPER_FALSE='#' 27551else 27552 SUID_WRAPPER_TRUE='#' 27553 SUID_WRAPPER_FALSE= 27554fi 27555 27556 27557if test "x$NEED_DBUS" = xyes; then 27558 27559printf "%s\n" "#define NEED_DBUS 1" >>confdefs.h 27560 27561fi 27562 if test "x$NEED_DBUS" = xyes; then 27563 NEED_DBUS_TRUE= 27564 NEED_DBUS_FALSE='#' 27565else 27566 NEED_DBUS_TRUE='#' 27567 NEED_DBUS_FALSE= 27568fi 27569 27570 27571if test "x$CONFIG_WSCONS" = xauto; then 27572 case $host_os in 27573 *openbsd*) 27574 CONFIG_WSCONS=yes; 27575 ;; 27576 *) 27577 CONFIG_WSCONS=no; 27578 ;; 27579 esac 27580fi 27581 if test "x$CONFIG_WSCONS" = xyes; then 27582 CONFIG_WSCONS_TRUE= 27583 CONFIG_WSCONS_FALSE='#' 27584else 27585 CONFIG_WSCONS_TRUE='#' 27586 CONFIG_WSCONS_FALSE= 27587fi 27588 27589if test "x$CONFIG_WSCONS" = xyes; then 27590 27591printf "%s\n" "#define CONFIG_WSCONS 1" >>confdefs.h 27592 27593fi 27594 27595 27596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glibc..." >&5 27597printf %s "checking for glibc...... " >&6; } 27598cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27599/* end confdefs.h. */ 27600 27601#include <features.h> 27602#ifndef __GLIBC__ 27603#error 27604#endif 27605 27606_ACEOF 27607if ac_fn_c_try_cpp "$LINENO" 27608then : 27609 glibc=yes 27610else $as_nop 27611 glibc=no 27612fi 27613rm -f conftest.err conftest.i conftest.$ac_ext 27614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $glibc" >&5 27615printf "%s\n" "$glibc" >&6; } 27616 27617 27618 for ac_func in clock_gettime 27619do : 27620 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 27621if test "x$ac_cv_func_clock_gettime" = xyes 27622then : 27623 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 27624 have_clock_gettime=yes 27625else $as_nop 27626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 27627printf %s "checking for clock_gettime in -lrt... " >&6; } 27628if test ${ac_cv_lib_rt_clock_gettime+y} 27629then : 27630 printf %s "(cached) " >&6 27631else $as_nop 27632 ac_check_lib_save_LIBS=$LIBS 27633LIBS="-lrt $LIBS" 27634cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27635/* end confdefs.h. */ 27636 27637/* Override any GCC internal prototype to avoid an error. 27638 Use char because int might match the return type of a GCC 27639 builtin and then its argument prototype would still apply. */ 27640char clock_gettime (); 27641int 27642main (void) 27643{ 27644return clock_gettime (); 27645 ; 27646 return 0; 27647} 27648_ACEOF 27649if ac_fn_c_try_link "$LINENO" 27650then : 27651 ac_cv_lib_rt_clock_gettime=yes 27652else $as_nop 27653 ac_cv_lib_rt_clock_gettime=no 27654fi 27655rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27656 conftest$ac_exeext conftest.$ac_ext 27657LIBS=$ac_check_lib_save_LIBS 27658fi 27659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 27660printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; } 27661if test "x$ac_cv_lib_rt_clock_gettime" = xyes 27662then : 27663 have_clock_gettime=-lrt 27664else $as_nop 27665 have_clock_gettime=no 27666fi 27667 27668fi 27669 27670done 27671 27672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a useful monotonic clock ..." >&5 27673printf %s "checking for a useful monotonic clock ...... " >&6; } 27674 27675if ! test "x$have_clock_gettime" = xno; then 27676 if ! test "x$have_clock_gettime" = xyes; then 27677 CLOCK_LIBS="$have_clock_gettime" 27678 else 27679 CLOCK_LIBS="" 27680 fi 27681 27682 LIBS_SAVE="$LIBS" 27683 LIBS="$CLOCK_LIBS" 27684 CPPFLAGS_SAVE="$CPPFLAGS" 27685 27686 if test x"$glibc" = xyes; then 27687 CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE=200112L" 27688 fi 27689 27690 if test "$cross_compiling" = yes 27691then : 27692 MONOTONIC_CLOCK="cross compiling" 27693else $as_nop 27694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27695/* end confdefs.h. */ 27696 27697#include <time.h> 27698 27699int main(int argc, char *argv[]) { 27700 struct timespec tp; 27701 27702 if (clock_gettime(CLOCK_MONOTONIC, &tp) == 0) 27703 return 0; 27704 else 27705 return 1; 27706} 27707 27708_ACEOF 27709if ac_fn_c_try_run "$LINENO" 27710then : 27711 MONOTONIC_CLOCK=yes 27712else $as_nop 27713 MONOTONIC_CLOCK=no 27714fi 27715rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27716 conftest.$ac_objext conftest.beam conftest.$ac_ext 27717fi 27718 27719 27720 if test "$MONOTONIC_CLOCK" = "cross compiling"; then 27721 ac_fn_check_decl "$LINENO" "CLOCK_MONOTONIC" "ac_cv_have_decl_CLOCK_MONOTONIC" "#include <time.h> 27722" "$ac_c_undeclared_builtin_options" "CFLAGS" 27723if test "x$ac_cv_have_decl_CLOCK_MONOTONIC" = xyes 27724then : 27725 MONOTONIC_CLOCK="guessing yes" 27726else $as_nop 27727 MONOTONIC_CLOCK=no 27728fi 27729 fi 27730 27731 LIBS="$LIBS_SAVE" 27732 CPPFLAGS="$CPPFLAGS_SAVE" 27733else 27734 MONOTONIC_CLOCK=no 27735fi 27736 27737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MONOTONIC_CLOCK" >&5 27738printf "%s\n" "$MONOTONIC_CLOCK" >&6; } 27739if test "$MONOTONIC_CLOCK" = "guessing yes"; then 27740 MONOTONIC_CLOCK=yes 27741fi 27742 27743if test "x$MONOTONIC_CLOCK" = xyes; then 27744 27745printf "%s\n" "#define MONOTONIC_CLOCK 1" >>confdefs.h 27746 27747 LIBS="$LIBS $CLOCK_LIBS" 27748fi 27749 27750 if test "x$XV" = xyes; then 27751 XV_TRUE= 27752 XV_FALSE='#' 27753else 27754 XV_TRUE='#' 27755 XV_FALSE= 27756fi 27757 27758if test "x$XV" = xyes; then 27759 27760printf "%s\n" "#define XV 1" >>confdefs.h 27761 27762 27763printf "%s\n" "#define XvExtension 1" >>confdefs.h 27764 27765 REQUIRED_MODULES="$REQUIRED_MODULES $VIDEOPROTO" 27766 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $VIDEOPROTO" 27767else 27768 XVMC=no 27769fi 27770 27771 if test "x$XVMC" = xyes; then 27772 XVMC_TRUE= 27773 XVMC_FALSE='#' 27774else 27775 XVMC_TRUE='#' 27776 XVMC_FALSE= 27777fi 27778 27779if test "x$XVMC" = xyes; then 27780 27781printf "%s\n" "#define XvMCExtension 1" >>confdefs.h 27782 27783fi 27784 27785 if test "x$COMPOSITE" = xyes; then 27786 COMPOSITE_TRUE= 27787 COMPOSITE_FALSE='#' 27788else 27789 COMPOSITE_TRUE='#' 27790 COMPOSITE_FALSE= 27791fi 27792 27793if test "x$COMPOSITE" = xyes; then 27794 27795printf "%s\n" "#define COMPOSITE 1" >>confdefs.h 27796 27797 REQUIRED_MODULES="$REQUIRED_MODULES $COMPOSITEPROTO" 27798 COMPOSITE_LIB='$(top_builddir)/composite/libcomposite.la' 27799 COMPOSITE_INC='-I$(top_srcdir)/composite' 27800fi 27801 27802if test "x$MITSHM" = xauto; then 27803 MITSHM="$ac_cv_sysv_ipc" 27804fi 27805 if test "x$MITSHM" = xyes; then 27806 MITSHM_TRUE= 27807 MITSHM_FALSE='#' 27808else 27809 MITSHM_TRUE='#' 27810 MITSHM_FALSE= 27811fi 27812 27813if test "x$MITSHM" = xyes; then 27814 27815printf "%s\n" "#define MITSHM 1" >>confdefs.h 27816 27817 27818printf "%s\n" "#define HAS_SHM 1" >>confdefs.h 27819 27820fi 27821 27822 if test "x$RECORD" = xyes; then 27823 RECORD_TRUE= 27824 RECORD_FALSE='#' 27825else 27826 RECORD_TRUE='#' 27827 RECORD_FALSE= 27828fi 27829 27830if test "x$RECORD" = xyes; then 27831 27832printf "%s\n" "#define XRECORD 1" >>confdefs.h 27833 27834 REQUIRED_MODULES="$REQUIRED_MODULES $RECORDPROTO" 27835 RECORD_LIB='$(top_builddir)/record/librecord.la' 27836fi 27837 27838 if test "x$SCREENSAVER" = xyes; then 27839 SCREENSAVER_TRUE= 27840 SCREENSAVER_FALSE='#' 27841else 27842 SCREENSAVER_TRUE='#' 27843 SCREENSAVER_FALSE= 27844fi 27845 27846if test "x$SCREENSAVER" = xyes; then 27847 27848printf "%s\n" "#define SCREENSAVER 1" >>confdefs.h 27849 27850 REQUIRED_MODULES="$REQUIRED_MODULES $SCRNSAVERPROTO" 27851 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $SCRNSAVERPROTO" 27852fi 27853 27854HASHTABLE=no 27855 if test "x$RES" = xyes; then 27856 RES_TRUE= 27857 RES_FALSE='#' 27858else 27859 RES_TRUE='#' 27860 RES_FALSE= 27861fi 27862 27863if test "x$RES" = xyes; then 27864 27865printf "%s\n" "#define RES 1" >>confdefs.h 27866 27867 HASHTABLE=yes 27868 REQUIRED_MODULES="$REQUIRED_MODULES $RESOURCEPROTO" 27869 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $RESOURCEPROTO" 27870fi 27871 27872if test "x$LISTEN_TCP" = xyes; then 27873 27874printf "%s\n" "#define LISTEN_TCP 1" >>confdefs.h 27875 27876fi 27877if test "x$LISTEN_UNIX" = xyes; then 27878 27879printf "%s\n" "#define LISTEN_UNIX 1" >>confdefs.h 27880 27881fi 27882if test "x$LISTEN_LOCAL" = xyes; then 27883 27884printf "%s\n" "#define LISTEN_LOCAL 1" >>confdefs.h 27885 27886fi 27887 27888# The XRes extension may support client ID tracking only if it has 27889# been specifically enabled. Client ID tracking is implicitly not 27890# supported if XRes extension is disabled. 27891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to track client ids" >&5 27892printf %s "checking whether to track client ids... " >&6; } 27893if test "x$RES" = xyes && test "x$CLIENTIDS" = xyes; then 27894 27895printf "%s\n" "#define CLIENTIDS 1" >>confdefs.h 27896 27897else 27898 CLIENTIDS=no 27899fi 27900if test "x$CLIENTIDS" = xyes; then 27901 case $host_os in 27902 openbsd*) 27903 SYS_LIBS="$SYS_LIBS -lkvm" 27904 ;; 27905 esac 27906fi 27907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CLIENTIDS" >&5 27908printf "%s\n" "$CLIENTIDS" >&6; } 27909 if test "x$CLIENTIDS" = xyes; then 27910 CLIENTIDS_TRUE= 27911 CLIENTIDS_FALSE='#' 27912else 27913 CLIENTIDS_TRUE='#' 27914 CLIENTIDS_FALSE= 27915fi 27916 27917 27918 if test "x$DRI" = xyes; then 27919 DRI_TRUE= 27920 DRI_FALSE='#' 27921else 27922 DRI_TRUE='#' 27923 DRI_FALSE= 27924fi 27925 27926if test "x$DRI" = xyes; then 27927 27928printf "%s\n" "#define XF86DRI 1" >>confdefs.h 27929 27930 REQUIRED_MODULES="$REQUIRED_MODULES $DRIPROTO $GLPROTO $LIBDRI" 27931 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRIPROTO $GLPROTO $LIBDRI" 27932fi 27933 27934 27935pkg_failed=no 27936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DRI2PROTO" >&5 27937printf %s "checking for DRI2PROTO... " >&6; } 27938 27939if test -n "$DRI2PROTO_CFLAGS"; then 27940 pkg_cv_DRI2PROTO_CFLAGS="$DRI2PROTO_CFLAGS" 27941 elif test -n "$PKG_CONFIG"; then 27942 if test -n "$PKG_CONFIG" && \ 27943 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI2PROTO\""; } >&5 27944 ($PKG_CONFIG --exists --print-errors "$DRI2PROTO") 2>&5 27945 ac_status=$? 27946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27947 test $ac_status = 0; }; then 27948 pkg_cv_DRI2PROTO_CFLAGS=`$PKG_CONFIG --cflags "$DRI2PROTO" 2>/dev/null` 27949 test "x$?" != "x0" && pkg_failed=yes 27950else 27951 pkg_failed=yes 27952fi 27953 else 27954 pkg_failed=untried 27955fi 27956if test -n "$DRI2PROTO_LIBS"; then 27957 pkg_cv_DRI2PROTO_LIBS="$DRI2PROTO_LIBS" 27958 elif test -n "$PKG_CONFIG"; then 27959 if test -n "$PKG_CONFIG" && \ 27960 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI2PROTO\""; } >&5 27961 ($PKG_CONFIG --exists --print-errors "$DRI2PROTO") 2>&5 27962 ac_status=$? 27963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27964 test $ac_status = 0; }; then 27965 pkg_cv_DRI2PROTO_LIBS=`$PKG_CONFIG --libs "$DRI2PROTO" 2>/dev/null` 27966 test "x$?" != "x0" && pkg_failed=yes 27967else 27968 pkg_failed=yes 27969fi 27970 else 27971 pkg_failed=untried 27972fi 27973 27974 27975 27976if test $pkg_failed = yes; then 27977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27978printf "%s\n" "no" >&6; } 27979 27980if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 27981 _pkg_short_errors_supported=yes 27982else 27983 _pkg_short_errors_supported=no 27984fi 27985 if test $_pkg_short_errors_supported = yes; then 27986 DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DRI2PROTO" 2>&1` 27987 else 27988 DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DRI2PROTO" 2>&1` 27989 fi 27990 # Put the nasty error message in config.log where it belongs 27991 echo "$DRI2PROTO_PKG_ERRORS" >&5 27992 27993 HAVE_DRI2PROTO=no 27994elif test $pkg_failed = untried; then 27995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27996printf "%s\n" "no" >&6; } 27997 HAVE_DRI2PROTO=no 27998else 27999 DRI2PROTO_CFLAGS=$pkg_cv_DRI2PROTO_CFLAGS 28000 DRI2PROTO_LIBS=$pkg_cv_DRI2PROTO_LIBS 28001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28002printf "%s\n" "yes" >&6; } 28003 HAVE_DRI2PROTO=yes 28004fi 28005case "$DRI2,$HAVE_DRI2PROTO" in 28006 yes,no) 28007 as_fn_error $? "DRI2 requested, but dri2proto not found." "$LINENO" 5 28008 ;; 28009 yes,yes | auto,yes) 28010 28011printf "%s\n" "#define DRI2 1" >>confdefs.h 28012 28013 DRI2=yes 28014 LIBGL="gl >= 1.2" 28015 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRI2PROTO" 28016 ;; 28017esac 28018 if test "x$DRI2" = xyes; then 28019 DRI2_TRUE= 28020 DRI2_FALSE='#' 28021else 28022 DRI2_TRUE='#' 28023 DRI2_FALSE= 28024fi 28025 28026 28027# Check whether --enable-xtrans-send-fds was given. 28028if test ${enable_xtrans_send_fds+y} 28029then : 28030 enableval=$enable_xtrans_send_fds; XTRANS_SEND_FDS=$enableval 28031else $as_nop 28032 XTRANS_SEND_FDS=auto 28033fi 28034 28035 28036case "x$XTRANS_SEND_FDS" in 28037xauto) 28038 case "$host_os" in 28039 linux*|solaris*|freebsd*|dragonfly*|openbsd*) 28040 XTRANS_SEND_FDS=yes 28041 ;; 28042 *) 28043 XTRANS_SEND_FDS=no 28044 ;; 28045 esac 28046esac 28047 28048case "x$XTRANS_SEND_FDS" in 28049xyes) 28050 28051printf "%s\n" "#define XTRANS_SEND_FDS 1" >>confdefs.h 28052 28053 ;; 28054esac 28055 28056case "$DRI3,$XTRANS_SEND_FDS" in 28057 yes,yes | auto,yes) 28058 ;; 28059 yes,no) 28060 as_fn_error $? "DRI3 requested, but xtrans fd passing support not found." "$LINENO" 5 28061 DRI3=no 28062 ;; 28063 no,*) 28064 ;; 28065 *) 28066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: DRI3 disabled because xtrans fd passing support not found." >&5 28067printf "%s\n" "$as_me: DRI3 disabled because xtrans fd passing support not found." >&6;} 28068 DRI3=no 28069 ;; 28070esac 28071 28072 28073pkg_failed=no 28074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DRI3PROTO" >&5 28075printf %s "checking for DRI3PROTO... " >&6; } 28076 28077if test -n "$DRI3PROTO_CFLAGS"; then 28078 pkg_cv_DRI3PROTO_CFLAGS="$DRI3PROTO_CFLAGS" 28079 elif test -n "$PKG_CONFIG"; then 28080 if test -n "$PKG_CONFIG" && \ 28081 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI3PROTO\""; } >&5 28082 ($PKG_CONFIG --exists --print-errors "$DRI3PROTO") 2>&5 28083 ac_status=$? 28084 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28085 test $ac_status = 0; }; then 28086 pkg_cv_DRI3PROTO_CFLAGS=`$PKG_CONFIG --cflags "$DRI3PROTO" 2>/dev/null` 28087 test "x$?" != "x0" && pkg_failed=yes 28088else 28089 pkg_failed=yes 28090fi 28091 else 28092 pkg_failed=untried 28093fi 28094if test -n "$DRI3PROTO_LIBS"; then 28095 pkg_cv_DRI3PROTO_LIBS="$DRI3PROTO_LIBS" 28096 elif test -n "$PKG_CONFIG"; then 28097 if test -n "$PKG_CONFIG" && \ 28098 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI3PROTO\""; } >&5 28099 ($PKG_CONFIG --exists --print-errors "$DRI3PROTO") 2>&5 28100 ac_status=$? 28101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28102 test $ac_status = 0; }; then 28103 pkg_cv_DRI3PROTO_LIBS=`$PKG_CONFIG --libs "$DRI3PROTO" 2>/dev/null` 28104 test "x$?" != "x0" && pkg_failed=yes 28105else 28106 pkg_failed=yes 28107fi 28108 else 28109 pkg_failed=untried 28110fi 28111 28112 28113 28114if test $pkg_failed = yes; then 28115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28116printf "%s\n" "no" >&6; } 28117 28118if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28119 _pkg_short_errors_supported=yes 28120else 28121 _pkg_short_errors_supported=no 28122fi 28123 if test $_pkg_short_errors_supported = yes; then 28124 DRI3PROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DRI3PROTO" 2>&1` 28125 else 28126 DRI3PROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DRI3PROTO" 2>&1` 28127 fi 28128 # Put the nasty error message in config.log where it belongs 28129 echo "$DRI3PROTO_PKG_ERRORS" >&5 28130 28131 HAVE_DRI3PROTO=no 28132elif test $pkg_failed = untried; then 28133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28134printf "%s\n" "no" >&6; } 28135 HAVE_DRI3PROTO=no 28136else 28137 DRI3PROTO_CFLAGS=$pkg_cv_DRI3PROTO_CFLAGS 28138 DRI3PROTO_LIBS=$pkg_cv_DRI3PROTO_LIBS 28139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28140printf "%s\n" "yes" >&6; } 28141 HAVE_DRI3PROTO=yes 28142fi 28143 28144case "$DRI3,$HAVE_DRI3PROTO" in 28145 yes,yes | auto,yes) 28146 REQUIRED_MODULES="$REQUIRED_MODULES dri3proto" 28147 ;; 28148 yes,no) 28149 as_fn_error $? "DRI3 requested, but dri3proto not found." "$LINENO" 5 28150 DRI3=no 28151 ;; 28152 no,*) 28153 ;; 28154 *) 28155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: DRI3 disabled because dri3proto not found." >&5 28156printf "%s\n" "$as_me: DRI3 disabled because dri3proto not found." >&6;} 28157 DRI3=no 28158 ;; 28159esac 28160 28161ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" 28162if test "x$ac_cv_func_sigaction" = xyes 28163then : 28164 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h 28165 28166fi 28167 28168 28169BUSFAULT=no 28170 28171case x"$ac_cv_func_sigaction" in 28172 xyes) 28173 28174printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h 28175 28176 BUSFAULT=yes 28177 ;; 28178esac 28179 28180case x"$BUSFAULT" in 28181 xyes) 28182 28183printf "%s\n" "#define BUSFAULT 1" >>confdefs.h 28184 28185 ;; 28186esac 28187 28188 if test x"$BUSFAULT" = xyes; then 28189 BUSFAULT_TRUE= 28190 BUSFAULT_FALSE='#' 28191else 28192 BUSFAULT_TRUE='#' 28193 BUSFAULT_FALSE= 28194fi 28195 28196 28197 28198 28199pkg_failed=no 28200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XSHMFENCE" >&5 28201printf %s "checking for XSHMFENCE... " >&6; } 28202 28203if test -n "$XSHMFENCE_CFLAGS"; then 28204 pkg_cv_XSHMFENCE_CFLAGS="$XSHMFENCE_CFLAGS" 28205 elif test -n "$PKG_CONFIG"; then 28206 if test -n "$PKG_CONFIG" && \ 28207 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXSHMFENCE\""; } >&5 28208 ($PKG_CONFIG --exists --print-errors "$LIBXSHMFENCE") 2>&5 28209 ac_status=$? 28210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28211 test $ac_status = 0; }; then 28212 pkg_cv_XSHMFENCE_CFLAGS=`$PKG_CONFIG --cflags "$LIBXSHMFENCE" 2>/dev/null` 28213 test "x$?" != "x0" && pkg_failed=yes 28214else 28215 pkg_failed=yes 28216fi 28217 else 28218 pkg_failed=untried 28219fi 28220if test -n "$XSHMFENCE_LIBS"; then 28221 pkg_cv_XSHMFENCE_LIBS="$XSHMFENCE_LIBS" 28222 elif test -n "$PKG_CONFIG"; then 28223 if test -n "$PKG_CONFIG" && \ 28224 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXSHMFENCE\""; } >&5 28225 ($PKG_CONFIG --exists --print-errors "$LIBXSHMFENCE") 2>&5 28226 ac_status=$? 28227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28228 test $ac_status = 0; }; then 28229 pkg_cv_XSHMFENCE_LIBS=`$PKG_CONFIG --libs "$LIBXSHMFENCE" 2>/dev/null` 28230 test "x$?" != "x0" && pkg_failed=yes 28231else 28232 pkg_failed=yes 28233fi 28234 else 28235 pkg_failed=untried 28236fi 28237 28238 28239 28240if test $pkg_failed = yes; then 28241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28242printf "%s\n" "no" >&6; } 28243 28244if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28245 _pkg_short_errors_supported=yes 28246else 28247 _pkg_short_errors_supported=no 28248fi 28249 if test $_pkg_short_errors_supported = yes; then 28250 XSHMFENCE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXSHMFENCE" 2>&1` 28251 else 28252 XSHMFENCE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXSHMFENCE" 2>&1` 28253 fi 28254 # Put the nasty error message in config.log where it belongs 28255 echo "$XSHMFENCE_PKG_ERRORS" >&5 28256 28257 HAVE_XSHMFENCE=no 28258elif test $pkg_failed = untried; then 28259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28260printf "%s\n" "no" >&6; } 28261 HAVE_XSHMFENCE=no 28262else 28263 XSHMFENCE_CFLAGS=$pkg_cv_XSHMFENCE_CFLAGS 28264 XSHMFENCE_LIBS=$pkg_cv_XSHMFENCE_LIBS 28265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28266printf "%s\n" "yes" >&6; } 28267 HAVE_XSHMFENCE=yes 28268fi 28269if test "x$XSHMFENCE" = "xauto"; then 28270 XSHMFENCE="$HAVE_XSHMFENCE" 28271fi 28272 28273if test "x$XSHMFENCE" = "xyes"; then 28274 if test "x$HAVE_XSHMFENCE" != "xyes"; then 28275 as_fn_error $? "xshmfence requested but not installed." "$LINENO" 5 28276 fi 28277 28278printf "%s\n" "#define HAVE_XSHMFENCE 1" >>confdefs.h 28279 28280 REQUIRED_LIBS="$REQUIRED_LIBS $LIBXSHMFENCE" 28281fi 28282 28283 if test "x$XSHMFENCE" = xyes; then 28284 XSHMFENCE_TRUE= 28285 XSHMFENCE_FALSE='#' 28286else 28287 XSHMFENCE_TRUE='#' 28288 XSHMFENCE_FALSE= 28289fi 28290 28291 28292case "$DRI3,$XSHMFENCE" in 28293 yes,yes | auto,yes) 28294 ;; 28295 yes,no) 28296 as_fn_error $? "DRI3 requested, but xshmfence not found." "$LINENO" 5 28297 DRI3=no 28298 ;; 28299 no,*) 28300 ;; 28301 *) 28302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: DRI3 disabled because xshmfence not found." >&5 28303printf "%s\n" "$as_me: DRI3 disabled because xshmfence not found." >&6;} 28304 DRI3=no 28305 ;; 28306esac 28307 28308case x"$DRI3" in 28309 xyes|xauto) 28310 DRI3=yes 28311 28312printf "%s\n" "#define DRI3 1" >>confdefs.h 28313 28314 DRI3_LIB='$(top_builddir)/dri3/libdri3.la' 28315 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRI3PROTO" 28316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: DRI3 enabled" >&5 28317printf "%s\n" "$as_me: DRI3 enabled" >&6;}; 28318 ;; 28319esac 28320 28321 if test "x$DRI3" = xyes; then 28322 DRI3_TRUE= 28323 DRI3_FALSE='#' 28324else 28325 DRI3_TRUE='#' 28326 DRI3_FALSE= 28327fi 28328 28329 28330if test "x$DRI" = xyes || test "x$DRI2" = xyes || test "x$DRI3" = xyes || test "x$CONFIG_UDEV_KMS" = xyes || test "x$XORG" = xyes; then 28331 if test "x$DRM" = xyes; then 28332 28333printf "%s\n" "#define WITH_LIBDRM 1" >>confdefs.h 28334 28335 28336pkg_failed=no 28337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5 28338printf %s "checking for LIBDRM... " >&6; } 28339 28340if test -n "$LIBDRM_CFLAGS"; then 28341 pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS" 28342 elif test -n "$PKG_CONFIG"; then 28343 if test -n "$PKG_CONFIG" && \ 28344 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDRM\""; } >&5 28345 ($PKG_CONFIG --exists --print-errors "$LIBDRM") 2>&5 28346 ac_status=$? 28347 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28348 test $ac_status = 0; }; then 28349 pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "$LIBDRM" 2>/dev/null` 28350 test "x$?" != "x0" && pkg_failed=yes 28351else 28352 pkg_failed=yes 28353fi 28354 else 28355 pkg_failed=untried 28356fi 28357if test -n "$LIBDRM_LIBS"; then 28358 pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS" 28359 elif test -n "$PKG_CONFIG"; then 28360 if test -n "$PKG_CONFIG" && \ 28361 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDRM\""; } >&5 28362 ($PKG_CONFIG --exists --print-errors "$LIBDRM") 2>&5 28363 ac_status=$? 28364 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28365 test $ac_status = 0; }; then 28366 pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "$LIBDRM" 2>/dev/null` 28367 test "x$?" != "x0" && pkg_failed=yes 28368else 28369 pkg_failed=yes 28370fi 28371 else 28372 pkg_failed=untried 28373fi 28374 28375 28376 28377if test $pkg_failed = yes; then 28378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28379printf "%s\n" "no" >&6; } 28380 28381if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28382 _pkg_short_errors_supported=yes 28383else 28384 _pkg_short_errors_supported=no 28385fi 28386 if test $_pkg_short_errors_supported = yes; then 28387 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDRM" 2>&1` 28388 else 28389 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDRM" 2>&1` 28390 fi 28391 # Put the nasty error message in config.log where it belongs 28392 echo "$LIBDRM_PKG_ERRORS" >&5 28393 28394 as_fn_error $? "Package requirements ($LIBDRM) were not met: 28395 28396$LIBDRM_PKG_ERRORS 28397 28398Consider adjusting the PKG_CONFIG_PATH environment variable if you 28399installed software in a non-standard prefix. 28400 28401Alternatively, you may set the environment variables LIBDRM_CFLAGS 28402and LIBDRM_LIBS to avoid the need to call pkg-config. 28403See the pkg-config man page for more details." "$LINENO" 5 28404elif test $pkg_failed = untried; then 28405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28406printf "%s\n" "no" >&6; } 28407 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28408printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 28409as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 28410is in your PATH or set the PKG_CONFIG environment variable to the full 28411path to pkg-config. 28412 28413Alternatively, you may set the environment variables LIBDRM_CFLAGS 28414and LIBDRM_LIBS to avoid the need to call pkg-config. 28415See the pkg-config man page for more details. 28416 28417To get pkg-config, see <http://pkg-config.freedesktop.org/>. 28418See \`config.log' for more details" "$LINENO" 5; } 28419else 28420 LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS 28421 LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS 28422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28423printf "%s\n" "yes" >&6; } 28424 28425fi 28426 fi 28427fi 28428 28429if test "x$GLX" = xyes; then 28430 28431pkg_failed=no 28432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XLIB" >&5 28433printf %s "checking for XLIB... " >&6; } 28434 28435if test -n "$XLIB_CFLAGS"; then 28436 pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS" 28437 elif test -n "$PKG_CONFIG"; then 28438 if test -n "$PKG_CONFIG" && \ 28439 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 28440 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 28441 ac_status=$? 28442 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28443 test $ac_status = 0; }; then 28444 pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null` 28445 test "x$?" != "x0" && pkg_failed=yes 28446else 28447 pkg_failed=yes 28448fi 28449 else 28450 pkg_failed=untried 28451fi 28452if test -n "$XLIB_LIBS"; then 28453 pkg_cv_XLIB_LIBS="$XLIB_LIBS" 28454 elif test -n "$PKG_CONFIG"; then 28455 if test -n "$PKG_CONFIG" && \ 28456 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 28457 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 28458 ac_status=$? 28459 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28460 test $ac_status = 0; }; then 28461 pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null` 28462 test "x$?" != "x0" && pkg_failed=yes 28463else 28464 pkg_failed=yes 28465fi 28466 else 28467 pkg_failed=untried 28468fi 28469 28470 28471 28472if test $pkg_failed = yes; then 28473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28474printf "%s\n" "no" >&6; } 28475 28476if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28477 _pkg_short_errors_supported=yes 28478else 28479 _pkg_short_errors_supported=no 28480fi 28481 if test $_pkg_short_errors_supported = yes; then 28482 XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1` 28483 else 28484 XLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1` 28485 fi 28486 # Put the nasty error message in config.log where it belongs 28487 echo "$XLIB_PKG_ERRORS" >&5 28488 28489 as_fn_error $? "Package requirements (x11) were not met: 28490 28491$XLIB_PKG_ERRORS 28492 28493Consider adjusting the PKG_CONFIG_PATH environment variable if you 28494installed software in a non-standard prefix. 28495 28496Alternatively, you may set the environment variables XLIB_CFLAGS 28497and XLIB_LIBS to avoid the need to call pkg-config. 28498See the pkg-config man page for more details." "$LINENO" 5 28499elif test $pkg_failed = untried; then 28500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28501printf "%s\n" "no" >&6; } 28502 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28503printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 28504as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 28505is in your PATH or set the PKG_CONFIG environment variable to the full 28506path to pkg-config. 28507 28508Alternatively, you may set the environment variables XLIB_CFLAGS 28509and XLIB_LIBS to avoid the need to call pkg-config. 28510See the pkg-config man page for more details. 28511 28512To get pkg-config, see <http://pkg-config.freedesktop.org/>. 28513See \`config.log' for more details" "$LINENO" 5; } 28514else 28515 XLIB_CFLAGS=$pkg_cv_XLIB_CFLAGS 28516 XLIB_LIBS=$pkg_cv_XLIB_LIBS 28517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28518printf "%s\n" "yes" >&6; } 28519 28520fi 28521 28522pkg_failed=no 28523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GL" >&5 28524printf %s "checking for GL... " >&6; } 28525 28526if test -n "$GL_CFLAGS"; then 28527 pkg_cv_GL_CFLAGS="$GL_CFLAGS" 28528 elif test -n "$PKG_CONFIG"; then 28529 if test -n "$PKG_CONFIG" && \ 28530 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBGL\""; } >&5 28531 ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBGL") 2>&5 28532 ac_status=$? 28533 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28534 test $ac_status = 0; }; then 28535 pkg_cv_GL_CFLAGS=`$PKG_CONFIG --cflags "$GLPROTO $LIBGL" 2>/dev/null` 28536 test "x$?" != "x0" && pkg_failed=yes 28537else 28538 pkg_failed=yes 28539fi 28540 else 28541 pkg_failed=untried 28542fi 28543if test -n "$GL_LIBS"; then 28544 pkg_cv_GL_LIBS="$GL_LIBS" 28545 elif test -n "$PKG_CONFIG"; then 28546 if test -n "$PKG_CONFIG" && \ 28547 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBGL\""; } >&5 28548 ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBGL") 2>&5 28549 ac_status=$? 28550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28551 test $ac_status = 0; }; then 28552 pkg_cv_GL_LIBS=`$PKG_CONFIG --libs "$GLPROTO $LIBGL" 2>/dev/null` 28553 test "x$?" != "x0" && pkg_failed=yes 28554else 28555 pkg_failed=yes 28556fi 28557 else 28558 pkg_failed=untried 28559fi 28560 28561 28562 28563if test $pkg_failed = yes; then 28564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28565printf "%s\n" "no" >&6; } 28566 28567if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28568 _pkg_short_errors_supported=yes 28569else 28570 _pkg_short_errors_supported=no 28571fi 28572 if test $_pkg_short_errors_supported = yes; then 28573 GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GLPROTO $LIBGL" 2>&1` 28574 else 28575 GL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GLPROTO $LIBGL" 2>&1` 28576 fi 28577 # Put the nasty error message in config.log where it belongs 28578 echo "$GL_PKG_ERRORS" >&5 28579 28580 as_fn_error $? "Package requirements ($GLPROTO $LIBGL) were not met: 28581 28582$GL_PKG_ERRORS 28583 28584Consider adjusting the PKG_CONFIG_PATH environment variable if you 28585installed software in a non-standard prefix. 28586 28587Alternatively, you may set the environment variables GL_CFLAGS 28588and GL_LIBS to avoid the need to call pkg-config. 28589See the pkg-config man page for more details." "$LINENO" 5 28590elif test $pkg_failed = untried; then 28591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28592printf "%s\n" "no" >&6; } 28593 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28594printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 28595as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 28596is in your PATH or set the PKG_CONFIG environment variable to the full 28597path to pkg-config. 28598 28599Alternatively, you may set the environment variables GL_CFLAGS 28600and GL_LIBS to avoid the need to call pkg-config. 28601See the pkg-config man page for more details. 28602 28603To get pkg-config, see <http://pkg-config.freedesktop.org/>. 28604See \`config.log' for more details" "$LINENO" 5; } 28605else 28606 GL_CFLAGS=$pkg_cv_GL_CFLAGS 28607 GL_LIBS=$pkg_cv_GL_LIBS 28608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28609printf "%s\n" "yes" >&6; } 28610 28611fi 28612 28613 28614printf "%s\n" "#define GLXEXT 1" >>confdefs.h 28615 28616 HASHTABLE=yes 28617 GLX_LIBS='$(top_builddir)/glx/libglx.la $(top_builddir)/glx/libglxvnd.la' 28618 GLX_SYS_LIBS="$GLX_SYS_LIBS $GL_LIBS" 28619else 28620 GLX=no 28621fi 28622 if test "x$GLX" = xyes; then 28623 GLX_TRUE= 28624 GLX_FALSE='#' 28625else 28626 GLX_TRUE='#' 28627 GLX_FALSE= 28628fi 28629 28630 28631 if test "x$HASHTABLE" = xyes; then 28632 HASHTABLE_TRUE= 28633 HASHTABLE_FALSE='#' 28634else 28635 HASHTABLE_TRUE='#' 28636 HASHTABLE_FALSE= 28637fi 28638 28639 28640 28641 28642 28643 if test "x$PRESENT" = xyes; then 28644 PRESENT_TRUE= 28645 PRESENT_FALSE='#' 28646else 28647 PRESENT_TRUE='#' 28648 PRESENT_FALSE= 28649fi 28650 28651if test "x$PRESENT" = xyes; then 28652 28653printf "%s\n" "#define PRESENT 1" >>confdefs.h 28654 28655 REQUIRED_MODULES="$REQUIRED_MODULES $PRESENTPROTO" 28656 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $PRESENTPROTO" 28657 PRESENT_INC='-I$(top_srcdir)/present' 28658 PRESENT_LIB='$(top_builddir)/present/libpresent.la' 28659fi 28660 28661 if test "x$XINERAMA" = xyes; then 28662 XINERAMA_TRUE= 28663 XINERAMA_FALSE='#' 28664else 28665 XINERAMA_TRUE='#' 28666 XINERAMA_FALSE= 28667fi 28668 28669if test "x$XINERAMA" = xyes; then 28670 28671printf "%s\n" "#define XINERAMA 1" >>confdefs.h 28672 28673 28674printf "%s\n" "#define PANORAMIX 1" >>confdefs.h 28675 28676 REQUIRED_MODULES="$REQUIRED_MODULES $XINERAMAPROTO" 28677 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $XINERAMAPROTO" 28678fi 28679 28680 if test "x$XACE" = xyes; then 28681 XACE_TRUE= 28682 XACE_FALSE='#' 28683else 28684 XACE_TRUE='#' 28685 XACE_FALSE= 28686fi 28687 28688if test "x$XACE" = xyes; then 28689 28690printf "%s\n" "#define XACE 1" >>confdefs.h 28691 28692fi 28693 28694 if test "x$XSELINUX" = xyes; then 28695 XSELINUX_TRUE= 28696 XSELINUX_FALSE='#' 28697else 28698 XSELINUX_TRUE='#' 28699 XSELINUX_FALSE= 28700fi 28701 28702if test "x$XSELINUX" = xyes; then 28703 if test "x$XACE" != xyes; then 28704 as_fn_error $? "cannot build SELinux extension without X-ACE" "$LINENO" 5 28705 fi 28706 for ac_header in libaudit.h 28707do : 28708 ac_fn_c_check_header_compile "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default" 28709if test "x$ac_cv_header_libaudit_h" = xyes 28710then : 28711 printf "%s\n" "#define HAVE_LIBAUDIT_H 1" >>confdefs.h 28712 28713else $as_nop 28714 as_fn_error $? "SELinux extension requires audit system headers" "$LINENO" 5 28715fi 28716 28717done 28718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for audit_open in -laudit" >&5 28719printf %s "checking for audit_open in -laudit... " >&6; } 28720if test ${ac_cv_lib_audit_audit_open+y} 28721then : 28722 printf %s "(cached) " >&6 28723else $as_nop 28724 ac_check_lib_save_LIBS=$LIBS 28725LIBS="-laudit $LIBS" 28726cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28727/* end confdefs.h. */ 28728 28729/* Override any GCC internal prototype to avoid an error. 28730 Use char because int might match the return type of a GCC 28731 builtin and then its argument prototype would still apply. */ 28732char audit_open (); 28733int 28734main (void) 28735{ 28736return audit_open (); 28737 ; 28738 return 0; 28739} 28740_ACEOF 28741if ac_fn_c_try_link "$LINENO" 28742then : 28743 ac_cv_lib_audit_audit_open=yes 28744else $as_nop 28745 ac_cv_lib_audit_audit_open=no 28746fi 28747rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28748 conftest$ac_exeext conftest.$ac_ext 28749LIBS=$ac_check_lib_save_LIBS 28750fi 28751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_open" >&5 28752printf "%s\n" "$ac_cv_lib_audit_audit_open" >&6; } 28753if test "x$ac_cv_lib_audit_audit_open" = xyes 28754then : 28755 printf "%s\n" "#define HAVE_LIBAUDIT 1" >>confdefs.h 28756 28757 LIBS="-laudit $LIBS" 28758 28759else $as_nop 28760 as_fn_error $? "SELinux extension requires audit system library" "$LINENO" 5 28761fi 28762 28763 28764pkg_failed=no 28765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SELINUX" >&5 28766printf %s "checking for SELINUX... " >&6; } 28767 28768if test -n "$SELINUX_CFLAGS"; then 28769 pkg_cv_SELINUX_CFLAGS="$SELINUX_CFLAGS" 28770 elif test -n "$PKG_CONFIG"; then 28771 if test -n "$PKG_CONFIG" && \ 28772 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSELINUX\""; } >&5 28773 ($PKG_CONFIG --exists --print-errors "$LIBSELINUX") 2>&5 28774 ac_status=$? 28775 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28776 test $ac_status = 0; }; then 28777 pkg_cv_SELINUX_CFLAGS=`$PKG_CONFIG --cflags "$LIBSELINUX" 2>/dev/null` 28778 test "x$?" != "x0" && pkg_failed=yes 28779else 28780 pkg_failed=yes 28781fi 28782 else 28783 pkg_failed=untried 28784fi 28785if test -n "$SELINUX_LIBS"; then 28786 pkg_cv_SELINUX_LIBS="$SELINUX_LIBS" 28787 elif test -n "$PKG_CONFIG"; then 28788 if test -n "$PKG_CONFIG" && \ 28789 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSELINUX\""; } >&5 28790 ($PKG_CONFIG --exists --print-errors "$LIBSELINUX") 2>&5 28791 ac_status=$? 28792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28793 test $ac_status = 0; }; then 28794 pkg_cv_SELINUX_LIBS=`$PKG_CONFIG --libs "$LIBSELINUX" 2>/dev/null` 28795 test "x$?" != "x0" && pkg_failed=yes 28796else 28797 pkg_failed=yes 28798fi 28799 else 28800 pkg_failed=untried 28801fi 28802 28803 28804 28805if test $pkg_failed = yes; then 28806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28807printf "%s\n" "no" >&6; } 28808 28809if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28810 _pkg_short_errors_supported=yes 28811else 28812 _pkg_short_errors_supported=no 28813fi 28814 if test $_pkg_short_errors_supported = yes; then 28815 SELINUX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBSELINUX" 2>&1` 28816 else 28817 SELINUX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBSELINUX" 2>&1` 28818 fi 28819 # Put the nasty error message in config.log where it belongs 28820 echo "$SELINUX_PKG_ERRORS" >&5 28821 28822 as_fn_error $? "Package requirements ($LIBSELINUX) were not met: 28823 28824$SELINUX_PKG_ERRORS 28825 28826Consider adjusting the PKG_CONFIG_PATH environment variable if you 28827installed software in a non-standard prefix. 28828 28829Alternatively, you may set the environment variables SELINUX_CFLAGS 28830and SELINUX_LIBS to avoid the need to call pkg-config. 28831See the pkg-config man page for more details." "$LINENO" 5 28832elif test $pkg_failed = untried; then 28833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28834printf "%s\n" "no" >&6; } 28835 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28836printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 28837as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 28838is in your PATH or set the PKG_CONFIG environment variable to the full 28839path to pkg-config. 28840 28841Alternatively, you may set the environment variables SELINUX_CFLAGS 28842and SELINUX_LIBS to avoid the need to call pkg-config. 28843See the pkg-config man page for more details. 28844 28845To get pkg-config, see <http://pkg-config.freedesktop.org/>. 28846See \`config.log' for more details" "$LINENO" 5; } 28847else 28848 SELINUX_CFLAGS=$pkg_cv_SELINUX_CFLAGS 28849 SELINUX_LIBS=$pkg_cv_SELINUX_LIBS 28850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28851printf "%s\n" "yes" >&6; } 28852 28853fi 28854 SELINUX_LIBS="$SELINUX_LIBS -laudit" 28855 28856printf "%s\n" "#define XSELINUX 1" >>confdefs.h 28857 28858fi 28859 28860 if test "x$XCSECURITY" = xyes; then 28861 XCSECURITY_TRUE= 28862 XCSECURITY_FALSE='#' 28863else 28864 XCSECURITY_TRUE='#' 28865 XCSECURITY_FALSE= 28866fi 28867 28868if test "x$XCSECURITY" = xyes; then 28869 if test "x$XACE" != xyes; then 28870 as_fn_error $? "cannot build Security extension without X-ACE" "$LINENO" 5 28871 fi 28872 28873printf "%s\n" "#define XCSECURITY 1" >>confdefs.h 28874 28875fi 28876 28877 if test "x$DBE" = xyes; then 28878 DBE_TRUE= 28879 DBE_FALSE='#' 28880else 28881 DBE_TRUE='#' 28882 DBE_FALSE= 28883fi 28884 28885if test "x$DBE" = xyes; then 28886 28887printf "%s\n" "#define DBE 1" >>confdefs.h 28888 28889 DBE_LIB='$(top_builddir)/dbe/libdbe.la' 28890 DBE_INC='-I$(top_srcdir)/dbe' 28891fi 28892 28893 if test "x$XF86BIGFONT" = xyes; then 28894 XF86BIGFONT_TRUE= 28895 XF86BIGFONT_FALSE='#' 28896else 28897 XF86BIGFONT_TRUE='#' 28898 XF86BIGFONT_FALSE= 28899fi 28900 28901if test "x$XF86BIGFONT" = xyes; then 28902 28903printf "%s\n" "#define XF86BIGFONT 1" >>confdefs.h 28904 28905 REQUIRED_MODULES="$REQUIRED_MODULES $BIGFONTPROTO" 28906 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $BIGFONTPROTO" 28907fi 28908 28909 if test "x$DPMSExtension" = xyes; then 28910 DPMSExtension_TRUE= 28911 DPMSExtension_FALSE='#' 28912else 28913 DPMSExtension_TRUE='#' 28914 DPMSExtension_FALSE= 28915fi 28916 28917if test "x$DPMSExtension" = xyes; then 28918 28919printf "%s\n" "#define DPMSExtension 1" >>confdefs.h 28920 28921fi 28922 28923 28924printf "%s\n" "#define RENDER 1" >>confdefs.h 28925 28926RENDER_LIB='$(top_builddir)/render/librender.la' 28927RENDER_INC='-I$(top_srcdir)/render' 28928 28929 28930printf "%s\n" "#define RANDR 1" >>confdefs.h 28931 28932RANDR_LIB='$(top_builddir)/randr/librandr.la' 28933RANDR_INC='-I$(top_srcdir)/randr' 28934 28935 28936printf "%s\n" "#define XFIXES 1" >>confdefs.h 28937 28938FIXES_LIB='$(top_builddir)/xfixes/libxfixes.la' 28939FIXES_INC='-I$(top_srcdir)/xfixes' 28940 28941 28942printf "%s\n" "#define DAMAGE 1" >>confdefs.h 28943 28944DAMAGE_LIB='$(top_builddir)/damageext/libdamageext.la' 28945DAMAGE_INC='-I$(top_srcdir)/damageext' 28946MIEXT_DAMAGE_LIB='$(top_builddir)/miext/damage/libdamage.la' 28947MIEXT_DAMAGE_INC='-I$(top_srcdir)/miext/damage' 28948 28949# XINPUT extension is integral part of the server 28950 28951printf "%s\n" "#define XINPUT 1" >>confdefs.h 28952 28953XI_LIB='$(top_builddir)/Xi/libXi.la' 28954XI_INC='-I$(top_srcdir)/Xi' 28955 28956 if test "x$XF86UTILS" = xyes; then 28957 XF86UTILS_TRUE= 28958 XF86UTILS_FALSE='#' 28959else 28960 XF86UTILS_TRUE='#' 28961 XF86UTILS_FALSE= 28962fi 28963 28964 if test "x$VGAHW" = xyes; then 28965 VGAHW_TRUE= 28966 VGAHW_FALSE='#' 28967else 28968 VGAHW_TRUE='#' 28969 VGAHW_FALSE= 28970fi 28971 28972 if test "x$INT10MODULE" = xyes; then 28973 INT10MODULE_TRUE= 28974 INT10MODULE_FALSE='#' 28975else 28976 INT10MODULE_TRUE='#' 28977 INT10MODULE_FALSE= 28978fi 28979 28980 28981 28982printf "%s\n" "#define SHAPE 1" >>confdefs.h 28983 28984 28985if test "x$XKBPATH" = "xauto"; then 28986 XKBPATH=$(pkg-config --variable datadir xkbcomp || echo ${datadir})/X11/xkb 28987fi 28988 28989 28990 prefix_NONE= 28991 exec_prefix_NONE= 28992 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 28993 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 28994 eval ac_define_dir="\"$XKBPATH\"" 28995 eval ac_define_dir="\"$ac_define_dir\"" 28996 XKB_BASE_DIRECTORY="$ac_define_dir" 28997 28998 28999printf "%s\n" "#define XKB_BASE_DIRECTORY \"$ac_define_dir\"" >>confdefs.h 29000 29001 test "$prefix_NONE" && prefix=NONE 29002 test "$exec_prefix_NONE" && exec_prefix=NONE 29003 29004 29005# Check whether --with-xkb-bin-directory was given. 29006if test ${with_xkb_bin_directory+y} 29007then : 29008 withval=$with_xkb_bin_directory; XKB_BIN_DIRECTORY="$withval" 29009else $as_nop 29010 XKB_BIN_DIRECTORY="auto" 29011fi 29012 29013 29014if test "x$XKB_BIN_DIRECTORY" = "xauto"; then 29015 XKB_BIN_DIRECTORY=$(pkg-config --variable bindir xkbcomp) 29016 if test -z $XKB_BIN_DIRECTORY; then 29017 XKB_BIN_DIRECTORY="$bindir" 29018 fi 29019fi 29020 29021 29022 prefix_NONE= 29023 exec_prefix_NONE= 29024 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29025 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29026 eval ac_define_dir="\"$XKB_BIN_DIRECTORY\"" 29027 eval ac_define_dir="\"$ac_define_dir\"" 29028 XKB_BIN_DIRECTORY="$ac_define_dir" 29029 29030 29031printf "%s\n" "#define XKB_BIN_DIRECTORY \"$ac_define_dir\"" >>confdefs.h 29032 29033 test "$prefix_NONE" && prefix=NONE 29034 test "$exec_prefix_NONE" && exec_prefix=NONE 29035 29036 29037XKBOUTPUT_FIRSTCHAR=`echo $XKBOUTPUT | cut -b 1` 29038if [ x$XKBOUTPUT_FIRSTCHAR != x/ -a x$XKBOUTPUT_FIRSTCHAR != 'x$' ] ; then 29039 XKBOUTPUT="$XKB_BASE_DIRECTORY/$XKBOUTPUT" 29040fi 29041 29042 29043XKBOUTPUT=`echo $XKBOUTPUT/ | $SED 's|/*$|/|'` 29044XKB_COMPILED_DIR=`echo $XKBOUTPUT | $SED 's|/*$||'` 29045 29046 prefix_NONE= 29047 exec_prefix_NONE= 29048 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29049 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29050 eval ac_define_dir="\"$XKBOUTPUT\"" 29051 eval ac_define_dir="\"$ac_define_dir\"" 29052 XKM_OUTPUT_DIR="$ac_define_dir" 29053 29054 29055printf "%s\n" "#define XKM_OUTPUT_DIR \"$ac_define_dir\"" >>confdefs.h 29056 29057 test "$prefix_NONE" && prefix=NONE 29058 test "$exec_prefix_NONE" && exec_prefix=NONE 29059 29060 29061 29062if test "x$XKB_DFLT_RULES" = x; then 29063 case $host_os in 29064 linux*) 29065 XKB_DFLT_RULES="evdev" 29066 ;; 29067 *) 29068 XKB_DFLT_RULES="base" 29069 ;; 29070 esac 29071fi 29072 29073printf "%s\n" "#define XKB_DFLT_RULES \"$XKB_DFLT_RULES\"" >>confdefs.h 29074 29075 29076printf "%s\n" "#define XKB_DFLT_MODEL \"$XKB_DFLT_MODEL\"" >>confdefs.h 29077 29078 29079printf "%s\n" "#define XKB_DFLT_LAYOUT \"$XKB_DFLT_LAYOUT\"" >>confdefs.h 29080 29081 29082printf "%s\n" "#define XKB_DFLT_VARIANT \"$XKB_DFLT_VARIANT\"" >>confdefs.h 29083 29084 29085printf "%s\n" "#define XKB_DFLT_OPTIONS \"$XKB_DFLT_OPTIONS\"" >>confdefs.h 29086 29087 29088 29089 29090 29091 29092 29093XKB_LIB='$(top_builddir)/xkb/libxkb.la' 29094XKB_STUB_LIB='$(top_builddir)/xkb/libxkbstubs.la' 29095REQUIRED_MODULES="$REQUIRED_MODULES xkbfile" 29096 29097 29098pkg_failed=no 29099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XDMCP" >&5 29100printf %s "checking for XDMCP... " >&6; } 29101 29102if test -n "$XDMCP_CFLAGS"; then 29103 pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS" 29104 elif test -n "$PKG_CONFIG"; then 29105 if test -n "$PKG_CONFIG" && \ 29106 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 29107 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 29108 ac_status=$? 29109 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29110 test $ac_status = 0; }; then 29111 pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null` 29112 test "x$?" != "x0" && pkg_failed=yes 29113else 29114 pkg_failed=yes 29115fi 29116 else 29117 pkg_failed=untried 29118fi 29119if test -n "$XDMCP_LIBS"; then 29120 pkg_cv_XDMCP_LIBS="$XDMCP_LIBS" 29121 elif test -n "$PKG_CONFIG"; then 29122 if test -n "$PKG_CONFIG" && \ 29123 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 29124 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 29125 ac_status=$? 29126 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29127 test $ac_status = 0; }; then 29128 pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null` 29129 test "x$?" != "x0" && pkg_failed=yes 29130else 29131 pkg_failed=yes 29132fi 29133 else 29134 pkg_failed=untried 29135fi 29136 29137 29138 29139if test $pkg_failed = yes; then 29140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29141printf "%s\n" "no" >&6; } 29142 29143if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29144 _pkg_short_errors_supported=yes 29145else 29146 _pkg_short_errors_supported=no 29147fi 29148 if test $_pkg_short_errors_supported = yes; then 29149 XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xdmcp" 2>&1` 29150 else 29151 XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xdmcp" 2>&1` 29152 fi 29153 # Put the nasty error message in config.log where it belongs 29154 echo "$XDMCP_PKG_ERRORS" >&5 29155 29156 have_libxdmcp="no" 29157elif test $pkg_failed = untried; then 29158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29159printf "%s\n" "no" >&6; } 29160 have_libxdmcp="no" 29161else 29162 XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS 29163 XDMCP_LIBS=$pkg_cv_XDMCP_LIBS 29164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29165printf "%s\n" "yes" >&6; } 29166 have_libxdmcp="yes" 29167fi 29168if test "x$XDMCP" = xauto; then 29169 if test "x$have_libxdmcp" = xyes; then 29170 XDMCP=yes 29171 else 29172 XDMCP=no 29173 fi 29174fi 29175if test "x$XDMAUTH" = xauto; then 29176 if test "x$have_libxdmcp" = xyes; then 29177 XDMAUTH=yes 29178 else 29179 XDMAUTH=no 29180 fi 29181fi 29182 29183 if test "x$XDMCP" = xyes; then 29184 XDMCP_TRUE= 29185 XDMCP_FALSE='#' 29186else 29187 XDMCP_TRUE='#' 29188 XDMCP_FALSE= 29189fi 29190 29191if test "x$XDMCP" = xyes; then 29192 29193printf "%s\n" "#define XDMCP 1" >>confdefs.h 29194 29195 REQUIRED_LIBS="$REQUIRED_LIBS xdmcp" 29196 XDMCP_MODULES="xdmcp" 29197fi 29198 29199 if test "x$XDMAUTH" = xyes; then 29200 XDMAUTH_TRUE= 29201 XDMAUTH_FALSE='#' 29202else 29203 XDMAUTH_TRUE='#' 29204 XDMAUTH_FALSE= 29205fi 29206 29207if test "x$XDMAUTH" = xyes; then 29208 29209printf "%s\n" "#define HASXDMAUTH 1" >>confdefs.h 29210 29211 if ! test "x$XDMCP" = xyes; then 29212 REQUIRED_LIBS="$REQUIRED_LIBS xdmcp" 29213 XDMCP_MODULES="xdmcp" 29214 fi 29215fi 29216 29217if test "x$XF86VIDMODE" = xauto; then 29218 if test -n "$PKG_CONFIG" && \ 29219 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$VIDMODEPROTO\""; } >&5 29220 ($PKG_CONFIG --exists --print-errors "$VIDMODEPROTO") 2>&5 29221 ac_status=$? 29222 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29223 test $ac_status = 0; }; then 29224 XF86VIDMODE=yes 29225else 29226 XF86VIDMODE=no 29227fi 29228fi 29229if test "x$XF86VIDMODE" = xyes; then 29230 29231printf "%s\n" "#define XF86VIDMODE 1" >>confdefs.h 29232 29233fi 29234 if test "x$XF86VIDMODE" = xyes; then 29235 XF86VIDMODE_TRUE= 29236 XF86VIDMODE_FALSE='#' 29237else 29238 XF86VIDMODE_TRUE='#' 29239 XF86VIDMODE_FALSE= 29240fi 29241 29242 29243 29244 prefix_NONE= 29245 exec_prefix_NONE= 29246 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29247 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29248 eval ac_define_dir="\"$FONTPATH\"" 29249 eval ac_define_dir="\"$ac_define_dir\"" 29250 COMPILEDDEFAULTFONTPATH="$ac_define_dir" 29251 29252 29253printf "%s\n" "#define COMPILEDDEFAULTFONTPATH \"$ac_define_dir\"" >>confdefs.h 29254 29255 test "$prefix_NONE" && prefix=NONE 29256 test "$exec_prefix_NONE" && exec_prefix=NONE 29257 29258 29259 prefix_NONE= 29260 exec_prefix_NONE= 29261 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29262 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29263 eval ac_define_dir="\"$SERVERCONFIG\"" 29264 eval ac_define_dir="\"$ac_define_dir\"" 29265 SERVER_MISC_CONFIG_PATH="$ac_define_dir" 29266 29267 29268printf "%s\n" "#define SERVER_MISC_CONFIG_PATH \"$ac_define_dir\"" >>confdefs.h 29269 29270 test "$prefix_NONE" && prefix=NONE 29271 test "$exec_prefix_NONE" && exec_prefix=NONE 29272 29273 29274 prefix_NONE= 29275 exec_prefix_NONE= 29276 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29277 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29278 eval ac_define_dir="\"$FONTROOTDIR\"" 29279 eval ac_define_dir="\"$ac_define_dir\"" 29280 BASE_FONT_PATH="$ac_define_dir" 29281 29282 29283printf "%s\n" "#define BASE_FONT_PATH \"$ac_define_dir\"" >>confdefs.h 29284 29285 test "$prefix_NONE" && prefix=NONE 29286 test "$exec_prefix_NONE" && exec_prefix=NONE 29287 29288dridriverdir=`$PKG_CONFIG --variable=dridriverdir dri` 29289 29290 prefix_NONE= 29291 exec_prefix_NONE= 29292 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29293 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29294 eval ac_define_dir="\"$dridriverdir\"" 29295 eval ac_define_dir="\"$ac_define_dir\"" 29296 DRI_DRIVER_PATH="$ac_define_dir" 29297 29298 29299printf "%s\n" "#define DRI_DRIVER_PATH \"$ac_define_dir\"" >>confdefs.h 29300 29301 test "$prefix_NONE" && prefix=NONE 29302 test "$exec_prefix_NONE" && exec_prefix=NONE 29303 29304 29305printf "%s\n" "#define XVENDORNAME \"$VENDOR_NAME\"" >>confdefs.h 29306 29307 29308printf "%s\n" "#define XVENDORNAMESHORT \"$VENDOR_NAME_SHORT\"" >>confdefs.h 29309 29310 29311printf "%s\n" "#define XORG_MAN_VERSION \"$VENDOR_MAN_VERSION\"" >>confdefs.h 29312 29313 29314printf "%s\n" "#define BUILDERADDR \"$BUILDERADDR\"" >>confdefs.h 29315 29316 29317 29318printf "%s\n" "#define BUILDERSTRING \"$BUILDERSTRING\"" >>confdefs.h 29319 29320 29321 29322 29323printf "%s\n" "#define VENDOR_NAME \"$VENDOR_NAME\"" >>confdefs.h 29324 29325 29326printf "%s\n" "#define VENDOR_NAME_SHORT \"$VENDOR_NAME_SHORT\"" >>confdefs.h 29327 29328 29329printf "%s\n" "#define VENDOR_RELEASE $VENDOR_RELEASE" >>confdefs.h 29330 29331 29332printf "%s\n" "#define VENDOR_MAN_VERSION \"$VENDOR_MAN_VERSION\"" >>confdefs.h 29333 29334 29335if test "x$DEBUGGING" = xyes; then 29336 29337printf "%s\n" "#define DEBUG 1" >>confdefs.h 29338 29339fi 29340 if test "x$DEBUGGING" = xyes; then 29341 DEBUG_TRUE= 29342 DEBUG_FALSE='#' 29343else 29344 DEBUG_TRUE='#' 29345 DEBUG_FALSE= 29346fi 29347 29348 29349 29350printf "%s\n" "#define XTEST 1" >>confdefs.h 29351 29352 29353printf "%s\n" "#define XSYNC 1" >>confdefs.h 29354 29355 29356printf "%s\n" "#define XCMISC 1" >>confdefs.h 29357 29358 29359printf "%s\n" "#define BIGREQS 1" >>confdefs.h 29360 29361 29362if test "x$SPECIAL_DTRACE_OBJECTS" = "xyes" ; then 29363 DIX_LIB='$(top_builddir)/dix/dix.O' 29364 OS_LIB='$(top_builddir)/os/os.O $(SHA1_LIBS) $(DLOPEN_LIBS) $(LIBUNWIND_LIBS)' 29365else 29366 DIX_LIB='$(top_builddir)/dix/libdix.la' 29367 OS_LIB='$(top_builddir)/os/libos.la' 29368fi 29369 29370 29371 29372MAIN_LIB='$(top_builddir)/dix/libmain.la' 29373 29374 29375MI_LIB='$(top_builddir)/mi/libmi.la' 29376MI_EXT_LIB='$(top_builddir)/mi/libmiext.la' 29377MI_INC='-I$(top_srcdir)/mi' 29378FB_LIB='$(top_builddir)/fb/libfb.la' 29379FB_INC='-I$(top_srcdir)/fb' 29380MIEXT_SHADOW_INC='-I$(top_srcdir)/miext/shadow' 29381MIEXT_SHADOW_LIB='$(top_builddir)/miext/shadow/libshadow.la' 29382MIEXT_SYNC_INC='-I$(top_srcdir)/miext/sync' 29383MIEXT_SYNC_LIB='$(top_builddir)/miext/sync/libsync.la' 29384CORE_INCS='-I$(top_srcdir)/include -I$(top_builddir)/include' 29385 29386# SHA1 hashing 29387 29388# Check whether --with-sha1 was given. 29389if test ${with_sha1+y} 29390then : 29391 withval=$with_sha1; 29392fi 29393 29394ac_fn_c_check_func "$LINENO" "SHA1Init" "ac_cv_func_SHA1Init" 29395if test "x$ac_cv_func_SHA1Init" = xyes 29396then : 29397 HAVE_SHA1_IN_LIBC=yes 29398fi 29399 29400if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_LIBC" = xyes; then 29401 with_sha1=libc 29402fi 29403if test "x$with_sha1" = xlibc && test "x$HAVE_SHA1_IN_LIBC" != xyes; then 29404 as_fn_error $? "libc requested but not found" "$LINENO" 5 29405fi 29406if test "x$with_sha1" = xlibc; then 29407 29408printf "%s\n" "#define HAVE_SHA1_IN_LIBC 1" >>confdefs.h 29409 29410 SHA1_LIBS="" 29411fi 29412ac_fn_c_check_func "$LINENO" "CC_SHA1_Init" "ac_cv_func_CC_SHA1_Init" 29413if test "x$ac_cv_func_CC_SHA1_Init" = xyes 29414then : 29415 HAVE_SHA1_IN_COMMONCRYPTO=yes 29416fi 29417 29418if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_COMMONCRYPTO" = xyes; then 29419 with_sha1=CommonCrypto 29420fi 29421if test "x$with_sha1" = xCommonCrypto && test "x$HAVE_SHA1_IN_COMMONCRYPTO" != xyes; then 29422 as_fn_error $? "CommonCrypto requested but not found" "$LINENO" 5 29423fi 29424if test "x$with_sha1" = xCommonCrypto; then 29425 29426printf "%s\n" "#define HAVE_SHA1_IN_COMMONCRYPTO 1" >>confdefs.h 29427 29428 SHA1_LIBS="" 29429fi 29430ac_fn_c_check_header_compile "$LINENO" "wincrypt.h" "ac_cv_header_wincrypt_h" "#include <windows.h> 29431" 29432if test "x$ac_cv_header_wincrypt_h" = xyes 29433then : 29434 HAVE_SHA1_IN_CRYPTOAPI=yes 29435fi 29436 29437if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_CRYPTOAPI" = xyes; then 29438 with_sha1=CryptoAPI 29439fi 29440if test "x$with_sha1" = xCryptoAPI && test "x$HAVE_SHA1_IN_CRYPTOAPI" != xyes; then 29441 as_fn_error $? "CryptoAPI requested but not found" "$LINENO" 5 29442fi 29443if test "x$with_sha1" = xCryptoAPI; then 29444 29445printf "%s\n" "#define HAVE_SHA1_IN_CRYPTOAPI 1" >>confdefs.h 29446 29447 SHA1_LIBS="" 29448fi 29449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SHA1Init in -lmd" >&5 29450printf %s "checking for SHA1Init in -lmd... " >&6; } 29451if test ${ac_cv_lib_md_SHA1Init+y} 29452then : 29453 printf %s "(cached) " >&6 29454else $as_nop 29455 ac_check_lib_save_LIBS=$LIBS 29456LIBS="-lmd $LIBS" 29457cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29458/* end confdefs.h. */ 29459 29460/* Override any GCC internal prototype to avoid an error. 29461 Use char because int might match the return type of a GCC 29462 builtin and then its argument prototype would still apply. */ 29463char SHA1Init (); 29464int 29465main (void) 29466{ 29467return SHA1Init (); 29468 ; 29469 return 0; 29470} 29471_ACEOF 29472if ac_fn_c_try_link "$LINENO" 29473then : 29474 ac_cv_lib_md_SHA1Init=yes 29475else $as_nop 29476 ac_cv_lib_md_SHA1Init=no 29477fi 29478rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29479 conftest$ac_exeext conftest.$ac_ext 29480LIBS=$ac_check_lib_save_LIBS 29481fi 29482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_md_SHA1Init" >&5 29483printf "%s\n" "$ac_cv_lib_md_SHA1Init" >&6; } 29484if test "x$ac_cv_lib_md_SHA1Init" = xyes 29485then : 29486 HAVE_LIBMD=yes 29487fi 29488 29489if test "x$with_sha1" = x && test "x$HAVE_LIBMD" = xyes; then 29490 with_sha1=libmd 29491fi 29492if test "x$with_sha1" = xlibmd && test "x$HAVE_LIBMD" != xyes; then 29493 as_fn_error $? "libmd requested but not found" "$LINENO" 5 29494fi 29495if test "x$with_sha1" = xlibmd; then 29496 29497printf "%s\n" "#define HAVE_SHA1_IN_LIBMD 1" >>confdefs.h 29498 29499 SHA1_LIBS=-lmd 29500fi 29501 29502pkg_failed=no 29503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBSHA1" >&5 29504printf %s "checking for LIBSHA1... " >&6; } 29505 29506if test -n "$LIBSHA1_CFLAGS"; then 29507 pkg_cv_LIBSHA1_CFLAGS="$LIBSHA1_CFLAGS" 29508 elif test -n "$PKG_CONFIG"; then 29509 if test -n "$PKG_CONFIG" && \ 29510 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsha1\""; } >&5 29511 ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5 29512 ac_status=$? 29513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29514 test $ac_status = 0; }; then 29515 pkg_cv_LIBSHA1_CFLAGS=`$PKG_CONFIG --cflags "libsha1" 2>/dev/null` 29516 test "x$?" != "x0" && pkg_failed=yes 29517else 29518 pkg_failed=yes 29519fi 29520 else 29521 pkg_failed=untried 29522fi 29523if test -n "$LIBSHA1_LIBS"; then 29524 pkg_cv_LIBSHA1_LIBS="$LIBSHA1_LIBS" 29525 elif test -n "$PKG_CONFIG"; then 29526 if test -n "$PKG_CONFIG" && \ 29527 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsha1\""; } >&5 29528 ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5 29529 ac_status=$? 29530 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29531 test $ac_status = 0; }; then 29532 pkg_cv_LIBSHA1_LIBS=`$PKG_CONFIG --libs "libsha1" 2>/dev/null` 29533 test "x$?" != "x0" && pkg_failed=yes 29534else 29535 pkg_failed=yes 29536fi 29537 else 29538 pkg_failed=untried 29539fi 29540 29541 29542 29543if test $pkg_failed = yes; then 29544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29545printf "%s\n" "no" >&6; } 29546 29547if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29548 _pkg_short_errors_supported=yes 29549else 29550 _pkg_short_errors_supported=no 29551fi 29552 if test $_pkg_short_errors_supported = yes; then 29553 LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsha1" 2>&1` 29554 else 29555 LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsha1" 2>&1` 29556 fi 29557 # Put the nasty error message in config.log where it belongs 29558 echo "$LIBSHA1_PKG_ERRORS" >&5 29559 29560 HAVE_LIBSHA1=no 29561elif test $pkg_failed = untried; then 29562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29563printf "%s\n" "no" >&6; } 29564 HAVE_LIBSHA1=no 29565else 29566 LIBSHA1_CFLAGS=$pkg_cv_LIBSHA1_CFLAGS 29567 LIBSHA1_LIBS=$pkg_cv_LIBSHA1_LIBS 29568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29569printf "%s\n" "yes" >&6; } 29570 HAVE_LIBSHA1=yes 29571fi 29572if test "x$with_sha1" = x && test "x$HAVE_LIBSHA1" = xyes; then 29573 with_sha1=libsha1 29574fi 29575if test "x$with_sha1" = xlibsha1 && test "x$HAVE_LIBSHA1" != xyes; then 29576 as_fn_error $? "libsha1 requested but not found" "$LINENO" 5 29577fi 29578if test "x$with_sha1" = xlibsha1; then 29579 29580printf "%s\n" "#define HAVE_SHA1_IN_LIBSHA1 1" >>confdefs.h 29581 29582 SHA1_LIBS=-lsha1 29583fi 29584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nettle_sha1_init in -lnettle" >&5 29585printf %s "checking for nettle_sha1_init in -lnettle... " >&6; } 29586if test ${ac_cv_lib_nettle_nettle_sha1_init+y} 29587then : 29588 printf %s "(cached) " >&6 29589else $as_nop 29590 ac_check_lib_save_LIBS=$LIBS 29591LIBS="-lnettle $LIBS" 29592cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29593/* end confdefs.h. */ 29594 29595/* Override any GCC internal prototype to avoid an error. 29596 Use char because int might match the return type of a GCC 29597 builtin and then its argument prototype would still apply. */ 29598char nettle_sha1_init (); 29599int 29600main (void) 29601{ 29602return nettle_sha1_init (); 29603 ; 29604 return 0; 29605} 29606_ACEOF 29607if ac_fn_c_try_link "$LINENO" 29608then : 29609 ac_cv_lib_nettle_nettle_sha1_init=yes 29610else $as_nop 29611 ac_cv_lib_nettle_nettle_sha1_init=no 29612fi 29613rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29614 conftest$ac_exeext conftest.$ac_ext 29615LIBS=$ac_check_lib_save_LIBS 29616fi 29617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_sha1_init" >&5 29618printf "%s\n" "$ac_cv_lib_nettle_nettle_sha1_init" >&6; } 29619if test "x$ac_cv_lib_nettle_nettle_sha1_init" = xyes 29620then : 29621 HAVE_LIBNETTLE=yes 29622fi 29623 29624if test "x$with_sha1" = x && test "x$HAVE_LIBNETTLE" = xyes; then 29625 with_sha1=libnettle 29626fi 29627if test "x$with_sha1" = xlibnettle && test "x$HAVE_LIBNETTLE" != xyes; then 29628 as_fn_error $? "libnettle requested but not found" "$LINENO" 5 29629fi 29630if test "x$with_sha1" = xlibnettle; then 29631 29632printf "%s\n" "#define HAVE_SHA1_IN_LIBNETTLE 1" >>confdefs.h 29633 29634 SHA1_LIBS=-lnettle 29635fi 29636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcry_md_open in -lgcrypt" >&5 29637printf %s "checking for gcry_md_open in -lgcrypt... " >&6; } 29638if test ${ac_cv_lib_gcrypt_gcry_md_open+y} 29639then : 29640 printf %s "(cached) " >&6 29641else $as_nop 29642 ac_check_lib_save_LIBS=$LIBS 29643LIBS="-lgcrypt $LIBS" 29644cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29645/* end confdefs.h. */ 29646 29647/* Override any GCC internal prototype to avoid an error. 29648 Use char because int might match the return type of a GCC 29649 builtin and then its argument prototype would still apply. */ 29650char gcry_md_open (); 29651int 29652main (void) 29653{ 29654return gcry_md_open (); 29655 ; 29656 return 0; 29657} 29658_ACEOF 29659if ac_fn_c_try_link "$LINENO" 29660then : 29661 ac_cv_lib_gcrypt_gcry_md_open=yes 29662else $as_nop 29663 ac_cv_lib_gcrypt_gcry_md_open=no 29664fi 29665rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29666 conftest$ac_exeext conftest.$ac_ext 29667LIBS=$ac_check_lib_save_LIBS 29668fi 29669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_md_open" >&5 29670printf "%s\n" "$ac_cv_lib_gcrypt_gcry_md_open" >&6; } 29671if test "x$ac_cv_lib_gcrypt_gcry_md_open" = xyes 29672then : 29673 HAVE_LIBGCRYPT=yes 29674fi 29675 29676if test "x$with_sha1" = x && test "x$HAVE_LIBGCRYPT" = xyes; then 29677 with_sha1=libgcrypt 29678fi 29679if test "x$with_sha1" = xlibgcrypt && test "x$HAVE_LIBGCRYPT" != xyes; then 29680 as_fn_error $? "libgcrypt requested but not found" "$LINENO" 5 29681fi 29682if test "x$with_sha1" = xlibgcrypt; then 29683 29684printf "%s\n" "#define HAVE_SHA1_IN_LIBGCRYPT 1" >>confdefs.h 29685 29686 SHA1_LIBS=-lgcrypt 29687fi 29688# We don't need all of the OpenSSL libraries, just libcrypto 29689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SHA1_Init in -lcrypto" >&5 29690printf %s "checking for SHA1_Init in -lcrypto... " >&6; } 29691if test ${ac_cv_lib_crypto_SHA1_Init+y} 29692then : 29693 printf %s "(cached) " >&6 29694else $as_nop 29695 ac_check_lib_save_LIBS=$LIBS 29696LIBS="-lcrypto $LIBS" 29697cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29698/* end confdefs.h. */ 29699 29700/* Override any GCC internal prototype to avoid an error. 29701 Use char because int might match the return type of a GCC 29702 builtin and then its argument prototype would still apply. */ 29703char SHA1_Init (); 29704int 29705main (void) 29706{ 29707return SHA1_Init (); 29708 ; 29709 return 0; 29710} 29711_ACEOF 29712if ac_fn_c_try_link "$LINENO" 29713then : 29714 ac_cv_lib_crypto_SHA1_Init=yes 29715else $as_nop 29716 ac_cv_lib_crypto_SHA1_Init=no 29717fi 29718rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29719 conftest$ac_exeext conftest.$ac_ext 29720LIBS=$ac_check_lib_save_LIBS 29721fi 29722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1_Init" >&5 29723printf "%s\n" "$ac_cv_lib_crypto_SHA1_Init" >&6; } 29724if test "x$ac_cv_lib_crypto_SHA1_Init" = xyes 29725then : 29726 HAVE_LIBCRYPTO=yes 29727fi 29728 29729 29730pkg_failed=no 29731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5 29732printf %s "checking for OPENSSL... " >&6; } 29733 29734if test -n "$OPENSSL_CFLAGS"; then 29735 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS" 29736 elif test -n "$PKG_CONFIG"; then 29737 if test -n "$PKG_CONFIG" && \ 29738 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 29739 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 29740 ac_status=$? 29741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29742 test $ac_status = 0; }; then 29743 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null` 29744 test "x$?" != "x0" && pkg_failed=yes 29745else 29746 pkg_failed=yes 29747fi 29748 else 29749 pkg_failed=untried 29750fi 29751if test -n "$OPENSSL_LIBS"; then 29752 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS" 29753 elif test -n "$PKG_CONFIG"; then 29754 if test -n "$PKG_CONFIG" && \ 29755 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 29756 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 29757 ac_status=$? 29758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29759 test $ac_status = 0; }; then 29760 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null` 29761 test "x$?" != "x0" && pkg_failed=yes 29762else 29763 pkg_failed=yes 29764fi 29765 else 29766 pkg_failed=untried 29767fi 29768 29769 29770 29771if test $pkg_failed = yes; then 29772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29773printf "%s\n" "no" >&6; } 29774 29775if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29776 _pkg_short_errors_supported=yes 29777else 29778 _pkg_short_errors_supported=no 29779fi 29780 if test $_pkg_short_errors_supported = yes; then 29781 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1` 29782 else 29783 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1` 29784 fi 29785 # Put the nasty error message in config.log where it belongs 29786 echo "$OPENSSL_PKG_ERRORS" >&5 29787 29788 HAVE_OPENSSL_PKC=no 29789elif test $pkg_failed = untried; then 29790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29791printf "%s\n" "no" >&6; } 29792 HAVE_OPENSSL_PKC=no 29793else 29794 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS 29795 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS 29796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29797printf "%s\n" "yes" >&6; } 29798 HAVE_OPENSSL_PKC=yes 29799fi 29800if test "x$HAVE_LIBCRYPTO" = xyes || test "x$HAVE_OPENSSL_PKC" = xyes; then 29801 if test "x$with_sha1" = x; then 29802 with_sha1=libcrypto 29803 fi 29804else 29805 if test "x$with_sha1" = xlibcrypto; then 29806 as_fn_error $? "OpenSSL libcrypto requested but not found" "$LINENO" 5 29807 fi 29808fi 29809if test "x$with_sha1" = xlibcrypto; then 29810 if test "x$HAVE_LIBCRYPTO" = xyes; then 29811 SHA1_LIBS=-lcrypto 29812 else 29813 SHA1_LIBS="$OPENSSL_LIBS" 29814 SHA1_CFLAGS="$OPENSSL_CFLAGS" 29815 fi 29816fi 29817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SHA1 implementation" >&5 29818printf %s "checking for SHA1 implementation... " >&6; } 29819if test "x$with_sha1" = x; then 29820 as_fn_error $? "No suitable SHA1 implementation found" "$LINENO" 5 29821fi 29822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sha1" >&5 29823printf "%s\n" "$with_sha1" >&6; } 29824 29825 29826 29827 29828pkg_failed=no 29829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XSERVERCFLAGS" >&5 29830printf %s "checking for XSERVERCFLAGS... " >&6; } 29831 29832if test -n "$XSERVERCFLAGS_CFLAGS"; then 29833 pkg_cv_XSERVERCFLAGS_CFLAGS="$XSERVERCFLAGS_CFLAGS" 29834 elif test -n "$PKG_CONFIG"; then 29835 if test -n "$PKG_CONFIG" && \ 29836 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\""; } >&5 29837 ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5 29838 ac_status=$? 29839 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29840 test $ac_status = 0; }; then 29841 pkg_cv_XSERVERCFLAGS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null` 29842 test "x$?" != "x0" && pkg_failed=yes 29843else 29844 pkg_failed=yes 29845fi 29846 else 29847 pkg_failed=untried 29848fi 29849if test -n "$XSERVERCFLAGS_LIBS"; then 29850 pkg_cv_XSERVERCFLAGS_LIBS="$XSERVERCFLAGS_LIBS" 29851 elif test -n "$PKG_CONFIG"; then 29852 if test -n "$PKG_CONFIG" && \ 29853 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\""; } >&5 29854 ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5 29855 ac_status=$? 29856 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29857 test $ac_status = 0; }; then 29858 pkg_cv_XSERVERCFLAGS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null` 29859 test "x$?" != "x0" && pkg_failed=yes 29860else 29861 pkg_failed=yes 29862fi 29863 else 29864 pkg_failed=untried 29865fi 29866 29867 29868 29869if test $pkg_failed = yes; then 29870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29871printf "%s\n" "no" >&6; } 29872 29873if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29874 _pkg_short_errors_supported=yes 29875else 29876 _pkg_short_errors_supported=no 29877fi 29878 if test $_pkg_short_errors_supported = yes; then 29879 XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>&1` 29880 else 29881 XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>&1` 29882 fi 29883 # Put the nasty error message in config.log where it belongs 29884 echo "$XSERVERCFLAGS_PKG_ERRORS" >&5 29885 29886 as_fn_error $? "Package requirements ($REQUIRED_MODULES $REQUIRED_LIBS) were not met: 29887 29888$XSERVERCFLAGS_PKG_ERRORS 29889 29890Consider adjusting the PKG_CONFIG_PATH environment variable if you 29891installed software in a non-standard prefix. 29892 29893Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS 29894and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config. 29895See the pkg-config man page for more details." "$LINENO" 5 29896elif test $pkg_failed = untried; then 29897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29898printf "%s\n" "no" >&6; } 29899 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29900printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 29901as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 29902is in your PATH or set the PKG_CONFIG environment variable to the full 29903path to pkg-config. 29904 29905Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS 29906and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config. 29907See the pkg-config man page for more details. 29908 29909To get pkg-config, see <http://pkg-config.freedesktop.org/>. 29910See \`config.log' for more details" "$LINENO" 5; } 29911else 29912 XSERVERCFLAGS_CFLAGS=$pkg_cv_XSERVERCFLAGS_CFLAGS 29913 XSERVERCFLAGS_LIBS=$pkg_cv_XSERVERCFLAGS_LIBS 29914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29915printf "%s\n" "yes" >&6; } 29916 29917fi 29918 29919pkg_failed=no 29920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XSERVERLIBS" >&5 29921printf %s "checking for XSERVERLIBS... " >&6; } 29922 29923if test -n "$XSERVERLIBS_CFLAGS"; then 29924 pkg_cv_XSERVERLIBS_CFLAGS="$XSERVERLIBS_CFLAGS" 29925 elif test -n "$PKG_CONFIG"; then 29926 if test -n "$PKG_CONFIG" && \ 29927 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\""; } >&5 29928 ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5 29929 ac_status=$? 29930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29931 test $ac_status = 0; }; then 29932 pkg_cv_XSERVERLIBS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_LIBS" 2>/dev/null` 29933 test "x$?" != "x0" && pkg_failed=yes 29934else 29935 pkg_failed=yes 29936fi 29937 else 29938 pkg_failed=untried 29939fi 29940if test -n "$XSERVERLIBS_LIBS"; then 29941 pkg_cv_XSERVERLIBS_LIBS="$XSERVERLIBS_LIBS" 29942 elif test -n "$PKG_CONFIG"; then 29943 if test -n "$PKG_CONFIG" && \ 29944 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\""; } >&5 29945 ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5 29946 ac_status=$? 29947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29948 test $ac_status = 0; }; then 29949 pkg_cv_XSERVERLIBS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_LIBS" 2>/dev/null` 29950 test "x$?" != "x0" && pkg_failed=yes 29951else 29952 pkg_failed=yes 29953fi 29954 else 29955 pkg_failed=untried 29956fi 29957 29958 29959 29960if test $pkg_failed = yes; then 29961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29962printf "%s\n" "no" >&6; } 29963 29964if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29965 _pkg_short_errors_supported=yes 29966else 29967 _pkg_short_errors_supported=no 29968fi 29969 if test $_pkg_short_errors_supported = yes; then 29970 XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$REQUIRED_LIBS" 2>&1` 29971 else 29972 XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$REQUIRED_LIBS" 2>&1` 29973 fi 29974 # Put the nasty error message in config.log where it belongs 29975 echo "$XSERVERLIBS_PKG_ERRORS" >&5 29976 29977 as_fn_error $? "Package requirements ($REQUIRED_LIBS) were not met: 29978 29979$XSERVERLIBS_PKG_ERRORS 29980 29981Consider adjusting the PKG_CONFIG_PATH environment variable if you 29982installed software in a non-standard prefix. 29983 29984Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS 29985and XSERVERLIBS_LIBS to avoid the need to call pkg-config. 29986See the pkg-config man page for more details." "$LINENO" 5 29987elif test $pkg_failed = untried; then 29988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29989printf "%s\n" "no" >&6; } 29990 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29991printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 29992as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 29993is in your PATH or set the PKG_CONFIG environment variable to the full 29994path to pkg-config. 29995 29996Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS 29997and XSERVERLIBS_LIBS to avoid the need to call pkg-config. 29998See the pkg-config man page for more details. 29999 30000To get pkg-config, see <http://pkg-config.freedesktop.org/>. 30001See \`config.log' for more details" "$LINENO" 5; } 30002else 30003 XSERVERLIBS_CFLAGS=$pkg_cv_XSERVERLIBS_CFLAGS 30004 XSERVERLIBS_LIBS=$pkg_cv_XSERVERLIBS_LIBS 30005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30006printf "%s\n" "yes" >&6; } 30007 30008fi 30009 30010 30011pkg_failed=no 30012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBUNWIND" >&5 30013printf %s "checking for LIBUNWIND... " >&6; } 30014 30015if test -n "$LIBUNWIND_CFLAGS"; then 30016 pkg_cv_LIBUNWIND_CFLAGS="$LIBUNWIND_CFLAGS" 30017 elif test -n "$PKG_CONFIG"; then 30018 if test -n "$PKG_CONFIG" && \ 30019 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5 30020 ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5 30021 ac_status=$? 30022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30023 test $ac_status = 0; }; then 30024 pkg_cv_LIBUNWIND_CFLAGS=`$PKG_CONFIG --cflags "libunwind" 2>/dev/null` 30025 test "x$?" != "x0" && pkg_failed=yes 30026else 30027 pkg_failed=yes 30028fi 30029 else 30030 pkg_failed=untried 30031fi 30032if test -n "$LIBUNWIND_LIBS"; then 30033 pkg_cv_LIBUNWIND_LIBS="$LIBUNWIND_LIBS" 30034 elif test -n "$PKG_CONFIG"; then 30035 if test -n "$PKG_CONFIG" && \ 30036 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5 30037 ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5 30038 ac_status=$? 30039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30040 test $ac_status = 0; }; then 30041 pkg_cv_LIBUNWIND_LIBS=`$PKG_CONFIG --libs "libunwind" 2>/dev/null` 30042 test "x$?" != "x0" && pkg_failed=yes 30043else 30044 pkg_failed=yes 30045fi 30046 else 30047 pkg_failed=untried 30048fi 30049 30050 30051 30052if test $pkg_failed = yes; then 30053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30054printf "%s\n" "no" >&6; } 30055 30056if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30057 _pkg_short_errors_supported=yes 30058else 30059 _pkg_short_errors_supported=no 30060fi 30061 if test $_pkg_short_errors_supported = yes; then 30062 LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libunwind" 2>&1` 30063 else 30064 LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libunwind" 2>&1` 30065 fi 30066 # Put the nasty error message in config.log where it belongs 30067 echo "$LIBUNWIND_PKG_ERRORS" >&5 30068 30069 HAVE_LIBUNWIND=no 30070elif test $pkg_failed = untried; then 30071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30072printf "%s\n" "no" >&6; } 30073 HAVE_LIBUNWIND=no 30074else 30075 LIBUNWIND_CFLAGS=$pkg_cv_LIBUNWIND_CFLAGS 30076 LIBUNWIND_LIBS=$pkg_cv_LIBUNWIND_LIBS 30077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30078printf "%s\n" "yes" >&6; } 30079 HAVE_LIBUNWIND=yes 30080fi 30081if test "x$LIBUNWIND" = "xauto"; then 30082 LIBUNWIND="$HAVE_LIBUNWIND" 30083fi 30084 30085if test "x$LIBUNWIND" = "xyes"; then 30086 if test "x$HAVE_LIBUNWIND" != "xyes"; then 30087 as_fn_error $? "libunwind requested but not installed." "$LINENO" 5 30088 fi 30089 30090printf "%s\n" "#define HAVE_LIBUNWIND 1" >>confdefs.h 30091 30092fi 30093 30094 if test "x$LIBUNWIND" = xyes; then 30095 HAVE_LIBUNWIND_TRUE= 30096 HAVE_LIBUNWIND_FALSE='#' 30097else 30098 HAVE_LIBUNWIND_TRUE='#' 30099 HAVE_LIBUNWIND_FALSE= 30100fi 30101 30102 30103# Autotools has some unfortunate issues with library handling. In order to 30104# get a server to rebuild when a dependency in the tree is changed, it must 30105# be listed in SERVERNAME_DEPENDENCIES. However, no system libraries may be 30106# listed there, or some versions of autotools will break (especially if a -L 30107# is required to find the library). So, we keep two sets of libraries 30108# detected: NAMESPACE_LIBS for in-tree libraries to be linked against, which 30109# will go into the _DEPENDENCIES and _LDADD of the server, and 30110# NAMESPACE_SYS_LIBS which will go into only the _LDADD. The 30111# NAMESPACEMODULES_LIBS detected from pkgconfig should always go in 30112# NAMESPACE_SYS_LIBS. 30113# 30114# XSERVER_LIBS is the set of in-tree libraries which all servers require. 30115# XSERVER_SYS_LIBS is the set of out-of-tree libraries which all servers 30116# require. 30117# 30118XSERVER_CFLAGS="${XSERVER_CFLAGS} ${XSERVERCFLAGS_CFLAGS}" 30119XSERVER_LIBS="$DIX_LIB $MI_LIB $OS_LIB" 30120XSERVER_SYS_LIBS="${XSERVERLIBS_LIBS} ${SYS_LIBS} ${LIBS}" 30121 30122 30123 30124UTILS_SYS_LIBS="${SYS_LIBS}" 30125 30126 30127# The Xorg binary needs to export symbols so that they can be used from modules 30128# Some platforms require extra flags to do this. libtool should set the 30129# necessary flags for each platform when -export-dynamic is passed to it. 30130LD_EXPORT_SYMBOLS_FLAG="-export-dynamic" 30131LD_NO_UNDEFINED_FLAG= 30132XORG_DRIVER_LIBS= 30133case "$host_os" in 30134 cygwin*) 30135 LD_EXPORT_SYMBOLS_FLAG="-Wl,--export-all,--out-implib,lib\$@.a" 30136 LD_NO_UNDEFINED_FLAG="-no-undefined -Wl,\$(top_builddir)/hw/xfree86/libXorg.exe.a" 30137 XORG_DRIVER_LIBS="-lXorg.exe -L\${moduledir} -lshadow -lfb -no-undefined" 30138 CYGWIN=yes 30139 ;; 30140 solaris*) 30141 # We use AC_LINK_IFELSE to generate a temporary program conftest$EXEEXT 30142 # that we can link against for testing if the system linker is new 30143 # enough to support -z parent=<program> for verifying loadable modules 30144 # are only calling functions defined in either the loading program or 30145 # the libraries they're linked with. 30146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30147/* end confdefs.h. */ 30148int main(int argc, char **argv) { return 0; } 30149_ACEOF 30150if ac_fn_c_try_link "$LINENO" 30151then : 30152 mv conftest$EXEEXT conftest.parent 30153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,parent=conftest.parent -G" >&5 30154printf %s "checking whether the linker accepts -Wl,-z,parent=conftest.parent -G... " >&6; } 30155if test ${xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G+y} 30156then : 30157 printf %s "(cached) " >&6 30158else $as_nop 30159 30160 ax_save_FLAGS=$LDFLAGS 30161 LDFLAGS="-Wl,-z,parent=conftest.parent -G" 30162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30163/* end confdefs.h. */ 30164extern int main(int argc, char **argv); 30165 int call_main(void) { return main(0, (void *)0); } 30166_ACEOF 30167if ac_fn_c_try_link "$LINENO" 30168then : 30169 xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G=yes 30170else $as_nop 30171 xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G=no 30172fi 30173rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30174 conftest$ac_exeext conftest.$ac_ext 30175 LDFLAGS=$ax_save_FLAGS 30176fi 30177 30178eval xorg_check_linker_flags=$xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G 30179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_check_linker_flags" >&5 30180printf "%s\n" "$xorg_check_linker_flags" >&6; } 30181if test "x$xorg_check_linker_flags" = xyes; then 30182 LD_NO_UNDEFINED_FLAG="-Wl,-z,defs -Wl,-z,parent=\$(top_builddir)/hw/xfree86/Xorg" 30183# Not set yet, since this gets exported in xorg-server.pc to all the drivers, 30184# and they're not all fixed to build correctly with it yet. 30185# XORG_DRIVER_LIBS="-Wl,-z,defs -Wl,-z,parent=${bindir}/Xorg" 30186 30187else 30188 : 30189fi 30190 30191 rm -f conftest.parent 30192 30193fi 30194rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30195 conftest$ac_exeext conftest.$ac_ext 30196 ;; 30197esac 30198 30199 30200 30201 if test x"$CYGWIN" = xyes; then 30202 CYGWIN_TRUE= 30203 CYGWIN_FALSE='#' 30204else 30205 CYGWIN_TRUE='#' 30206 CYGWIN_FALSE= 30207fi 30208 30209 if test x"$LD_NO_UNDEFINED_FLAG" != x; then 30210 NO_UNDEFINED_TRUE= 30211 NO_UNDEFINED_FALSE='#' 30212else 30213 NO_UNDEFINED_TRUE='#' 30214 NO_UNDEFINED_FALSE= 30215fi 30216 30217 30218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if SVR4 needs to be defined" >&5 30219printf %s "checking if SVR4 needs to be defined... " >&6; } 30220cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30221/* end confdefs.h. */ 30222 30223#if defined(SVR4) || defined(__svr4__) || defined(__SVR4) 30224 I_AM_SVR4 30225#endif 30226 30227_ACEOF 30228if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 30229 $EGREP "I_AM_SVR4" >/dev/null 2>&1 30230then : 30231 30232 30233printf "%s\n" "#define SVR4 1" >>confdefs.h 30234 30235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30236printf "%s\n" "yes" >&6; } 30237else $as_nop 30238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30239printf "%s\n" "no" >&6; } 30240fi 30241rm -rf conftest* 30242 30243 30244XSERVER_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" 30245 30246 30247 30248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build Xvfb DDX" >&5 30249printf %s "checking whether to build Xvfb DDX... " >&6; } 30250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XVFB" >&5 30251printf "%s\n" "$XVFB" >&6; } 30252 if test "x$XVFB" = xyes; then 30253 XVFB_TRUE= 30254 XVFB_FALSE='#' 30255else 30256 XVFB_TRUE='#' 30257 XVFB_FALSE= 30258fi 30259 30260 30261if test "x$XVFB" = xyes; then 30262 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" 30263 XVFB_SYS_LIBS="$XVFBMODULES_LIBS $GLX_SYS_LIBS" 30264 30265 30266fi 30267 30268 30269 30270 30271pkg_failed=no 30272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XNESTMODULES" >&5 30273printf %s "checking for XNESTMODULES... " >&6; } 30274 30275if test -n "$XNESTMODULES_CFLAGS"; then 30276 pkg_cv_XNESTMODULES_CFLAGS="$XNESTMODULES_CFLAGS" 30277 elif test -n "$PKG_CONFIG"; then 30278 if test -n "$PKG_CONFIG" && \ 30279 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11 xau \$XDMCP_MODULES\""; } >&5 30280 ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES") 2>&5 30281 ac_status=$? 30282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30283 test $ac_status = 0; }; then 30284 pkg_cv_XNESTMODULES_CFLAGS=`$PKG_CONFIG --cflags "$LIBXEXT x11 xau $XDMCP_MODULES" 2>/dev/null` 30285 test "x$?" != "x0" && pkg_failed=yes 30286else 30287 pkg_failed=yes 30288fi 30289 else 30290 pkg_failed=untried 30291fi 30292if test -n "$XNESTMODULES_LIBS"; then 30293 pkg_cv_XNESTMODULES_LIBS="$XNESTMODULES_LIBS" 30294 elif test -n "$PKG_CONFIG"; then 30295 if test -n "$PKG_CONFIG" && \ 30296 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11 xau \$XDMCP_MODULES\""; } >&5 30297 ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES") 2>&5 30298 ac_status=$? 30299 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30300 test $ac_status = 0; }; then 30301 pkg_cv_XNESTMODULES_LIBS=`$PKG_CONFIG --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>/dev/null` 30302 test "x$?" != "x0" && pkg_failed=yes 30303else 30304 pkg_failed=yes 30305fi 30306 else 30307 pkg_failed=untried 30308fi 30309 30310 30311 30312if test $pkg_failed = yes; then 30313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30314printf "%s\n" "no" >&6; } 30315 30316if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30317 _pkg_short_errors_supported=yes 30318else 30319 _pkg_short_errors_supported=no 30320fi 30321 if test $_pkg_short_errors_supported = yes; then 30322 XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>&1` 30323 else 30324 XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>&1` 30325 fi 30326 # Put the nasty error message in config.log where it belongs 30327 echo "$XNESTMODULES_PKG_ERRORS" >&5 30328 30329 have_xnest=no 30330elif test $pkg_failed = untried; then 30331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30332printf "%s\n" "no" >&6; } 30333 have_xnest=no 30334else 30335 XNESTMODULES_CFLAGS=$pkg_cv_XNESTMODULES_CFLAGS 30336 XNESTMODULES_LIBS=$pkg_cv_XNESTMODULES_LIBS 30337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30338printf "%s\n" "yes" >&6; } 30339 have_xnest=yes 30340fi 30341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build Xnest DDX" >&5 30342printf %s "checking whether to build Xnest DDX... " >&6; } 30343if test "x$XNEST" = xauto; then 30344 XNEST="$have_xnest" 30345fi 30346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XNEST" >&5 30347printf "%s\n" "$XNEST" >&6; } 30348 if test "x$XNEST" = xyes; then 30349 XNEST_TRUE= 30350 XNEST_FALSE='#' 30351else 30352 XNEST_TRUE='#' 30353 XNEST_FALSE= 30354fi 30355 30356 30357if test "x$XNEST" = xyes; then 30358 if test "x$have_xnest" = xno; then 30359 as_fn_error $? "Xnest build explicitly requested, but required modules not found." "$LINENO" 5 30360 fi 30361 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" 30362 XNEST_SYS_LIBS="$XNESTMODULES_LIBS $GLX_SYS_LIBS" 30363 30364 30365fi 30366 30367 30368 30369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build Xorg DDX" >&5 30370printf %s "checking whether to build Xorg DDX... " >&6; } 30371if test "x$XORG" = xauto; then 30372 XORG="yes" 30373 case $host_os in 30374 cygwin*) XORG="no" ;; 30375 mingw*) XORG="no" ;; 30376 darwin*) XORG="no" ;; 30377 esac 30378fi 30379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG" >&5 30380printf "%s\n" "$XORG" >&6; } 30381 30382if test "x$XORG" = xyes; then 30383 30384pkg_failed=no 30385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBXCVT" >&5 30386printf %s "checking for LIBXCVT... " >&6; } 30387 30388if test -n "$LIBXCVT_CFLAGS"; then 30389 pkg_cv_LIBXCVT_CFLAGS="$LIBXCVT_CFLAGS" 30390 elif test -n "$PKG_CONFIG"; then 30391 if test -n "$PKG_CONFIG" && \ 30392 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXCVT\""; } >&5 30393 ($PKG_CONFIG --exists --print-errors "$LIBXCVT") 2>&5 30394 ac_status=$? 30395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30396 test $ac_status = 0; }; then 30397 pkg_cv_LIBXCVT_CFLAGS=`$PKG_CONFIG --cflags "$LIBXCVT" 2>/dev/null` 30398 test "x$?" != "x0" && pkg_failed=yes 30399else 30400 pkg_failed=yes 30401fi 30402 else 30403 pkg_failed=untried 30404fi 30405if test -n "$LIBXCVT_LIBS"; then 30406 pkg_cv_LIBXCVT_LIBS="$LIBXCVT_LIBS" 30407 elif test -n "$PKG_CONFIG"; then 30408 if test -n "$PKG_CONFIG" && \ 30409 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXCVT\""; } >&5 30410 ($PKG_CONFIG --exists --print-errors "$LIBXCVT") 2>&5 30411 ac_status=$? 30412 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30413 test $ac_status = 0; }; then 30414 pkg_cv_LIBXCVT_LIBS=`$PKG_CONFIG --libs "$LIBXCVT" 2>/dev/null` 30415 test "x$?" != "x0" && pkg_failed=yes 30416else 30417 pkg_failed=yes 30418fi 30419 else 30420 pkg_failed=untried 30421fi 30422 30423 30424 30425if test $pkg_failed = yes; then 30426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30427printf "%s\n" "no" >&6; } 30428 30429if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30430 _pkg_short_errors_supported=yes 30431else 30432 _pkg_short_errors_supported=no 30433fi 30434 if test $_pkg_short_errors_supported = yes; then 30435 LIBXCVT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXCVT" 2>&1` 30436 else 30437 LIBXCVT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXCVT" 2>&1` 30438 fi 30439 # Put the nasty error message in config.log where it belongs 30440 echo "$LIBXCVT_PKG_ERRORS" >&5 30441 30442 as_fn_error $? "Package requirements ($LIBXCVT) were not met: 30443 30444$LIBXCVT_PKG_ERRORS 30445 30446Consider adjusting the PKG_CONFIG_PATH environment variable if you 30447installed software in a non-standard prefix. 30448 30449Alternatively, you may set the environment variables LIBXCVT_CFLAGS 30450and LIBXCVT_LIBS to avoid the need to call pkg-config. 30451See the pkg-config man page for more details." "$LINENO" 5 30452elif test $pkg_failed = untried; then 30453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30454printf "%s\n" "no" >&6; } 30455 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30456printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 30457as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 30458is in your PATH or set the PKG_CONFIG environment variable to the full 30459path to pkg-config. 30460 30461Alternatively, you may set the environment variables LIBXCVT_CFLAGS 30462and LIBXCVT_LIBS to avoid the need to call pkg-config. 30463See the pkg-config man page for more details. 30464 30465To get pkg-config, see <http://pkg-config.freedesktop.org/>. 30466See \`config.log' for more details" "$LINENO" 5; } 30467else 30468 LIBXCVT_CFLAGS=$pkg_cv_LIBXCVT_CFLAGS 30469 LIBXCVT_LIBS=$pkg_cv_LIBXCVT_LIBS 30470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30471printf "%s\n" "yes" >&6; } 30472 30473fi 30474 30475 XORG_DDXINCS='-I$(top_srcdir)/hw/xfree86 -I$(top_srcdir)/hw/xfree86/include -I$(top_srcdir)/hw/xfree86/common' 30476 XORG_OSINCS='-I$(top_srcdir)/hw/xfree86/os-support -I$(top_srcdir)/hw/xfree86/os-support/bus -I$(top_srcdir)/os' 30477 XORG_INCS="$XORG_DDXINCS $XORG_OSINCS" 30478 XORG_CFLAGS="$XORGSERVER_CFLAGS $LIBXCVT_CFLAGS -DHAVE_XORG_CONFIG_H" 30479 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" 30480 XORG_SYS_LIBS="$XORG_SYS_LIBS $LIBXCVT_LIBS" 30481 30482 symbol_visibility= 30483 have_visibility=disabled 30484 if test x$SYMBOL_VISIBILITY != xno; then 30485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for symbol visibility support" >&5 30486printf %s "checking for symbol visibility support... " >&6; } 30487 if test x$GCC = xyes; then 30488 VISIBILITY_CFLAGS="-fvisibility=hidden" 30489 else 30490 if test x$SUNCC = xyes; then 30491 VISIBILITY_CFLAGS="-xldscope=hidden" 30492 else 30493 have_visibility=no 30494 fi 30495 fi 30496 if test x$have_visibility != xno; then 30497 save_CFLAGS="$CFLAGS" 30498 proto_inc=`$PKG_CONFIG --cflags xproto` 30499 CFLAGS="$CFLAGS $VISIBILITY_CFLAGS $proto_inc" 30500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30501/* end confdefs.h. */ 30502 30503 #include <X11/Xfuncproto.h> 30504 extern _X_HIDDEN int hidden_int; 30505 extern _X_EXPORT int public_int; 30506 extern _X_HIDDEN int hidden_int_func(void); 30507 extern _X_EXPORT int public_int_func(void); 30508int 30509main (void) 30510{ 30511 30512 ; 30513 return 0; 30514} 30515_ACEOF 30516if ac_fn_c_try_compile "$LINENO" 30517then : 30518 have_visibility=yes 30519else $as_nop 30520 have_visibility=no 30521fi 30522rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 30523 CFLAGS=$save_CFLAGS 30524 fi 30525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_visibility" >&5 30526printf "%s\n" "$have_visibility" >&6; } 30527 if test x$have_visibility != xno; then 30528 symbol_visibility=$VISIBILITY_CFLAGS 30529 XORG_CFLAGS="$XORG_CFLAGS $VISIBILITY_CFLAGS" 30530 XSERVER_CFLAGS="$XSERVER_CFLAGS $VISIBILITY_CFLAGS" 30531 fi 30532 fi 30533 30534 30535 xorg_bus_bsdpci=no 30536 xorg_bus_sparc=no 30537 30538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build Xorg PCI functions" >&5 30539printf %s "checking whether to build Xorg PCI functions... " >&6; } 30540 if test "x$PCI" = xyes; then 30541 30542pkg_failed=no 30543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 30544printf %s "checking for PCIACCESS... " >&6; } 30545 30546if test -n "$PCIACCESS_CFLAGS"; then 30547 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 30548 elif test -n "$PKG_CONFIG"; then 30549 if test -n "$PKG_CONFIG" && \ 30550 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPCIACCESS\""; } >&5 30551 ($PKG_CONFIG --exists --print-errors "$LIBPCIACCESS") 2>&5 30552 ac_status=$? 30553 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30554 test $ac_status = 0; }; then 30555 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "$LIBPCIACCESS" 2>/dev/null` 30556 test "x$?" != "x0" && pkg_failed=yes 30557else 30558 pkg_failed=yes 30559fi 30560 else 30561 pkg_failed=untried 30562fi 30563if test -n "$PCIACCESS_LIBS"; then 30564 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 30565 elif test -n "$PKG_CONFIG"; then 30566 if test -n "$PKG_CONFIG" && \ 30567 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPCIACCESS\""; } >&5 30568 ($PKG_CONFIG --exists --print-errors "$LIBPCIACCESS") 2>&5 30569 ac_status=$? 30570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30571 test $ac_status = 0; }; then 30572 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "$LIBPCIACCESS" 2>/dev/null` 30573 test "x$?" != "x0" && pkg_failed=yes 30574else 30575 pkg_failed=yes 30576fi 30577 else 30578 pkg_failed=untried 30579fi 30580 30581 30582 30583if test $pkg_failed = yes; then 30584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30585printf "%s\n" "no" >&6; } 30586 30587if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30588 _pkg_short_errors_supported=yes 30589else 30590 _pkg_short_errors_supported=no 30591fi 30592 if test $_pkg_short_errors_supported = yes; then 30593 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBPCIACCESS" 2>&1` 30594 else 30595 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBPCIACCESS" 2>&1` 30596 fi 30597 # Put the nasty error message in config.log where it belongs 30598 echo "$PCIACCESS_PKG_ERRORS" >&5 30599 30600 as_fn_error $? "Package requirements ($LIBPCIACCESS) were not met: 30601 30602$PCIACCESS_PKG_ERRORS 30603 30604Consider adjusting the PKG_CONFIG_PATH environment variable if you 30605installed software in a non-standard prefix. 30606 30607Alternatively, you may set the environment variables PCIACCESS_CFLAGS 30608and PCIACCESS_LIBS to avoid the need to call pkg-config. 30609See the pkg-config man page for more details." "$LINENO" 5 30610elif test $pkg_failed = untried; then 30611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30612printf "%s\n" "no" >&6; } 30613 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30614printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 30615as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 30616is in your PATH or set the PKG_CONFIG environment variable to the full 30617path to pkg-config. 30618 30619Alternatively, you may set the environment variables PCIACCESS_CFLAGS 30620and PCIACCESS_LIBS to avoid the need to call pkg-config. 30621See the pkg-config man page for more details. 30622 30623To get pkg-config, see <http://pkg-config.freedesktop.org/>. 30624See \`config.log' for more details" "$LINENO" 5; } 30625else 30626 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 30627 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 30628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30629printf "%s\n" "yes" >&6; } 30630 30631fi 30632 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $LIBPCIACCESS" 30633 XORG_SYS_LIBS="$XORG_SYS_LIBS $PCIACCESS_LIBS $LIBDRM_LIBS" 30634 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS $LIBDRM_CFLAGS" 30635 30636 30637printf "%s\n" "#define XSERVER_LIBPCIACCESS 1" >>confdefs.h 30638 30639 30640 prefix_NONE= 30641 exec_prefix_NONE= 30642 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 30643 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 30644 eval ac_define_dir="\"$PCI_TXT_IDS_DIR\"" 30645 eval ac_define_dir="\"$ac_define_dir\"" 30646 PCI_TXT_IDS_PATH="$ac_define_dir" 30647 30648 30649printf "%s\n" "#define PCI_TXT_IDS_PATH \"$ac_define_dir\"" >>confdefs.h 30650 30651 test "$prefix_NONE" && prefix=NONE 30652 test "$exec_prefix_NONE" && exec_prefix=NONE 30653 30654 case $host_os in 30655 gnu* | freebsd* | kfreebsd*-gnu | netbsd* | openbsd* | solaris* | dragonfly*) 30656 xorg_bus_bsdpci="yes" 30657 ;; 30658 esac 30659 case $host_cpu in 30660 sparc*) 30661 xorg_bus_sparc="yes" 30662 ;; 30663 esac 30664 else 30665 if test "x$CONFIG_UDEV_KMS" = xyes; then 30666 as_fn_error $? "Platform device enumeration requires libpciaccess" "$LINENO" 5 30667 fi 30668 if test "x$INT10MODULE" = xyes && test "x$INT10" != xstub; then 30669 as_fn_error $? "Cannot build int10 without libpciaccess" "$LINENO" 5 30670 fi 30671 fi 30672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PCI" >&5 30673printf "%s\n" "$PCI" >&6; } 30674 30675 if test "x$CONFIG_UDEV_KMS" = xyes; then 30676 30677printf "%s\n" "#define XSERVER_PLATFORM_BUS 1" >>confdefs.h 30678 30679 fi 30680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSERVER_PLATFORM_BUS" >&5 30681printf "%s\n" "$XSERVER_PLATFORM_BUS" >&6; } 30682 30683 case $host_os in 30684 linux*) 30685 XORG_OS_SUBDIR="linux" 30686 linux_acpi="no" 30687 case $host_cpu in 30688 i*86|amd64*|x86_64*|ia64*) 30689 linux_acpi=$enable_linux_acpi 30690 ;; 30691 *) 30692 ;; 30693 esac 30694 for ac_header in linux/apm_bios.h 30695do : 30696 ac_fn_c_check_header_compile "$LINENO" "linux/apm_bios.h" "ac_cv_header_linux_apm_bios_h" "$ac_includes_default" 30697if test "x$ac_cv_header_linux_apm_bios_h" = xyes 30698then : 30699 printf "%s\n" "#define HAVE_LINUX_APM_BIOS_H 1" >>confdefs.h 30700 linux_apm=$enable_linux_apm 30701fi 30702 30703done 30704 ;; 30705 freebsd* | kfreebsd*-gnu | dragonfly*) 30706 XORG_OS_SUBDIR="bsd" 30707 ;; 30708 netbsd*) 30709 XORG_OS_SUBDIR="bsd" 30710 ;; 30711 openbsd*) 30712 XORG_OS_SUBDIR="bsd" 30713 ;; 30714 solaris*) 30715 XORG_OS_SUBDIR="solaris" 30716 ac_fn_c_check_header_compile "$LINENO" "sys/kd.h" "ac_cv_header_sys_kd_h" "$ac_includes_default" 30717if test "x$ac_cv_header_sys_kd_h" = xyes 30718then : 30719 printf "%s\n" "#define HAVE_SYS_KD_H 1" >>confdefs.h 30720 30721fi 30722 30723 for ac_header in sys/vt.h 30724do : 30725 ac_fn_c_check_header_compile "$LINENO" "sys/vt.h" "ac_cv_header_sys_vt_h" "$ac_includes_default" 30726if test "x$ac_cv_header_sys_vt_h" = xyes 30727then : 30728 printf "%s\n" "#define HAVE_SYS_VT_H 1" >>confdefs.h 30729 solaris_vt=yes 30730else $as_nop 30731 solaris_vt=no 30732fi 30733 30734done 30735 # Check for minimum supported release 30736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Solaris version" >&5 30737printf %s "checking Solaris version... " >&6; } 30738 OS_MINOR=`echo ${host_os}|$SED -e 's/^.*solaris2\.//' -e s'/\..*$//'` 30739 if test "${OS_MINOR}" -ge 7 ; then 30740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Solaris ${OS_MINOR}" >&5 30741printf "%s\n" "Solaris ${OS_MINOR}" >&6; } 30742 else 30743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Solaris \`echo ${host_os}|$SED -e 's/^.*solaris//\`" >&5 30744printf "%s\n" "Solaris \`echo ${host_os}|$SED -e 's/^.*solaris//\`" >&6; } 30745 fi 30746 if test "${OS_MINOR}" -lt 8 ; then 30747 as_fn_error $? "This release no longer supports Solaris versions older than Solaris 8." "$LINENO" 5 30748 fi 30749 ac_fn_check_decl "$LINENO" "_LP64" "ac_cv_have_decl__LP64" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 30750if test "x$ac_cv_have_decl__LP64" = xyes 30751then : 30752 SOLARIS_64="yes" 30753else $as_nop 30754 SOLARIS_64="no" 30755fi 30756 30757 case $host_cpu in 30758 sparc*) 30759 SOLARIS_INOUT_ARCH="sparcv8plus" 30760 ;; 30761 i*86|x86_64*) 30762 if test x$SOLARIS_64 = xyes ; then 30763 SOLARIS_INOUT_ARCH="amd64" 30764 else 30765 SOLARIS_INOUT_ARCH="ia32" 30766 fi 30767 ;; 30768 *) 30769 as_fn_error $? "Unsupported Solaris platform. Only SPARC & x86 \ 30770 are supported on Solaris in this release. If you are \ 30771 interested in porting Xorg to your platform, please email \ 30772 xorg@lists.freedesktop.org." "$LINENO" 5 ;; 30773 esac 30774 30775 ;; 30776 gnu*) 30777 XORG_OS_SUBDIR="hurd" 30778 ;; 30779 cygwin*) 30780 XORG_OS_SUBDIR="stub" 30781 ;; 30782 *) 30783 XORG_OS_SUBDIR="stub" 30784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Your OS is unknown. If you are interested in porting Xorg to your platform, 30785please email xorg@lists.freedesktop.org." >&5 30786printf "%s\n" "$as_me: Your OS is unknown. If you are interested in porting Xorg to your platform, 30787please email xorg@lists.freedesktop.org." >&6;} 30788 ;; 30789 esac 30790 30791 if test "x$DGA" = xauto; then 30792 30793pkg_failed=no 30794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DGA" >&5 30795printf %s "checking for DGA... " >&6; } 30796 30797if test -n "$DGA_CFLAGS"; then 30798 pkg_cv_DGA_CFLAGS="$DGA_CFLAGS" 30799 elif test -n "$PKG_CONFIG"; then 30800 if test -n "$PKG_CONFIG" && \ 30801 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5 30802 ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5 30803 ac_status=$? 30804 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30805 test $ac_status = 0; }; then 30806 pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "$DGAPROTO" 2>/dev/null` 30807 test "x$?" != "x0" && pkg_failed=yes 30808else 30809 pkg_failed=yes 30810fi 30811 else 30812 pkg_failed=untried 30813fi 30814if test -n "$DGA_LIBS"; then 30815 pkg_cv_DGA_LIBS="$DGA_LIBS" 30816 elif test -n "$PKG_CONFIG"; then 30817 if test -n "$PKG_CONFIG" && \ 30818 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5 30819 ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5 30820 ac_status=$? 30821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30822 test $ac_status = 0; }; then 30823 pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "$DGAPROTO" 2>/dev/null` 30824 test "x$?" != "x0" && pkg_failed=yes 30825else 30826 pkg_failed=yes 30827fi 30828 else 30829 pkg_failed=untried 30830fi 30831 30832 30833 30834if test $pkg_failed = yes; then 30835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30836printf "%s\n" "no" >&6; } 30837 30838if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30839 _pkg_short_errors_supported=yes 30840else 30841 _pkg_short_errors_supported=no 30842fi 30843 if test $_pkg_short_errors_supported = yes; then 30844 DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DGAPROTO" 2>&1` 30845 else 30846 DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DGAPROTO" 2>&1` 30847 fi 30848 # Put the nasty error message in config.log where it belongs 30849 echo "$DGA_PKG_ERRORS" >&5 30850 30851 DGA=no 30852elif test $pkg_failed = untried; then 30853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30854printf "%s\n" "no" >&6; } 30855 DGA=no 30856else 30857 DGA_CFLAGS=$pkg_cv_DGA_CFLAGS 30858 DGA_LIBS=$pkg_cv_DGA_LIBS 30859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30860printf "%s\n" "yes" >&6; } 30861 DGA=yes 30862fi 30863 fi 30864 if test "x$DGA" = xyes; then 30865 XORG_MODULES="$XORG_MODULES $DGAPROTO" 30866 30867pkg_failed=no 30868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DGA" >&5 30869printf %s "checking for DGA... " >&6; } 30870 30871if test -n "$DGA_CFLAGS"; then 30872 pkg_cv_DGA_CFLAGS="$DGA_CFLAGS" 30873 elif test -n "$PKG_CONFIG"; then 30874 if test -n "$PKG_CONFIG" && \ 30875 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5 30876 ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5 30877 ac_status=$? 30878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30879 test $ac_status = 0; }; then 30880 pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "$DGAPROTO" 2>/dev/null` 30881 test "x$?" != "x0" && pkg_failed=yes 30882else 30883 pkg_failed=yes 30884fi 30885 else 30886 pkg_failed=untried 30887fi 30888if test -n "$DGA_LIBS"; then 30889 pkg_cv_DGA_LIBS="$DGA_LIBS" 30890 elif test -n "$PKG_CONFIG"; then 30891 if test -n "$PKG_CONFIG" && \ 30892 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5 30893 ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5 30894 ac_status=$? 30895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30896 test $ac_status = 0; }; then 30897 pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "$DGAPROTO" 2>/dev/null` 30898 test "x$?" != "x0" && pkg_failed=yes 30899else 30900 pkg_failed=yes 30901fi 30902 else 30903 pkg_failed=untried 30904fi 30905 30906 30907 30908if test $pkg_failed = yes; then 30909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30910printf "%s\n" "no" >&6; } 30911 30912if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30913 _pkg_short_errors_supported=yes 30914else 30915 _pkg_short_errors_supported=no 30916fi 30917 if test $_pkg_short_errors_supported = yes; then 30918 DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DGAPROTO" 2>&1` 30919 else 30920 DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DGAPROTO" 2>&1` 30921 fi 30922 # Put the nasty error message in config.log where it belongs 30923 echo "$DGA_PKG_ERRORS" >&5 30924 30925 as_fn_error $? "Package requirements ($DGAPROTO) were not met: 30926 30927$DGA_PKG_ERRORS 30928 30929Consider adjusting the PKG_CONFIG_PATH environment variable if you 30930installed software in a non-standard prefix. 30931 30932Alternatively, you may set the environment variables DGA_CFLAGS 30933and DGA_LIBS to avoid the need to call pkg-config. 30934See the pkg-config man page for more details." "$LINENO" 5 30935elif test $pkg_failed = untried; then 30936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30937printf "%s\n" "no" >&6; } 30938 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30939printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 30940as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 30941is in your PATH or set the PKG_CONFIG environment variable to the full 30942path to pkg-config. 30943 30944Alternatively, you may set the environment variables DGA_CFLAGS 30945and DGA_LIBS to avoid the need to call pkg-config. 30946See the pkg-config man page for more details. 30947 30948To get pkg-config, see <http://pkg-config.freedesktop.org/>. 30949See \`config.log' for more details" "$LINENO" 5; } 30950else 30951 DGA_CFLAGS=$pkg_cv_DGA_CFLAGS 30952 DGA_LIBS=$pkg_cv_DGA_LIBS 30953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30954printf "%s\n" "yes" >&6; } 30955 30956fi 30957 30958printf "%s\n" "#define DGA 1" >>confdefs.h 30959 30960 30961printf "%s\n" "#define XFreeXDGA 1" >>confdefs.h 30962 30963 fi 30964 30965 if test "x$XF86VIDMODE" = xyes; then 30966 XORG_MODULES="$XORG_MODULES $VIDMODEPROTO" 30967 fi 30968 30969 if test -n "$XORG_MODULES"; then 30970 30971pkg_failed=no 30972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG_MODULES" >&5 30973printf %s "checking for XORG_MODULES... " >&6; } 30974 30975if test -n "$XORG_MODULES_CFLAGS"; then 30976 pkg_cv_XORG_MODULES_CFLAGS="$XORG_MODULES_CFLAGS" 30977 elif test -n "$PKG_CONFIG"; then 30978 if test -n "$PKG_CONFIG" && \ 30979 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\""; } >&5 30980 ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5 30981 ac_status=$? 30982 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30983 test $ac_status = 0; }; then 30984 pkg_cv_XORG_MODULES_CFLAGS=`$PKG_CONFIG --cflags "$XORG_MODULES" 2>/dev/null` 30985 test "x$?" != "x0" && pkg_failed=yes 30986else 30987 pkg_failed=yes 30988fi 30989 else 30990 pkg_failed=untried 30991fi 30992if test -n "$XORG_MODULES_LIBS"; then 30993 pkg_cv_XORG_MODULES_LIBS="$XORG_MODULES_LIBS" 30994 elif test -n "$PKG_CONFIG"; then 30995 if test -n "$PKG_CONFIG" && \ 30996 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\""; } >&5 30997 ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5 30998 ac_status=$? 30999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31000 test $ac_status = 0; }; then 31001 pkg_cv_XORG_MODULES_LIBS=`$PKG_CONFIG --libs "$XORG_MODULES" 2>/dev/null` 31002 test "x$?" != "x0" && pkg_failed=yes 31003else 31004 pkg_failed=yes 31005fi 31006 else 31007 pkg_failed=untried 31008fi 31009 31010 31011 31012if test $pkg_failed = yes; then 31013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31014printf "%s\n" "no" >&6; } 31015 31016if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31017 _pkg_short_errors_supported=yes 31018else 31019 _pkg_short_errors_supported=no 31020fi 31021 if test $_pkg_short_errors_supported = yes; then 31022 XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XORG_MODULES" 2>&1` 31023 else 31024 XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XORG_MODULES" 2>&1` 31025 fi 31026 # Put the nasty error message in config.log where it belongs 31027 echo "$XORG_MODULES_PKG_ERRORS" >&5 31028 31029 as_fn_error $? "Package requirements ($XORG_MODULES) were not met: 31030 31031$XORG_MODULES_PKG_ERRORS 31032 31033Consider adjusting the PKG_CONFIG_PATH environment variable if you 31034installed software in a non-standard prefix. 31035 31036Alternatively, you may set the environment variables XORG_MODULES_CFLAGS 31037and XORG_MODULES_LIBS to avoid the need to call pkg-config. 31038See the pkg-config man page for more details." "$LINENO" 5 31039elif test $pkg_failed = untried; then 31040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31041printf "%s\n" "no" >&6; } 31042 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31043printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 31044as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 31045is in your PATH or set the PKG_CONFIG environment variable to the full 31046path to pkg-config. 31047 31048Alternatively, you may set the environment variables XORG_MODULES_CFLAGS 31049and XORG_MODULES_LIBS to avoid the need to call pkg-config. 31050See the pkg-config man page for more details. 31051 31052To get pkg-config, see <http://pkg-config.freedesktop.org/>. 31053See \`config.log' for more details" "$LINENO" 5; } 31054else 31055 XORG_MODULES_CFLAGS=$pkg_cv_XORG_MODULES_CFLAGS 31056 XORG_MODULES_LIBS=$pkg_cv_XORG_MODULES_LIBS 31057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31058printf "%s\n" "yes" >&6; } 31059 31060fi 31061 XORG_CFLAGS="$XORG_CFLAGS $XORG_MODULES_CFLAGS" 31062 XORG_SYS_LIBS="$XORG_SYS_LIBS $XORG_MODULES_LIBS" 31063 fi 31064 31065 if test "x$DRM" = xyes -a "x$DRI2" = xyes; then 31066 XORG_DRIVER_MODESETTING=yes 31067 fi 31068 31069 31070 31071 31072 31073 31074 31075 XF86CONFIGFILE="xorg.conf" 31076 XF86CONFIGDIR="xorg.conf.d" 31077 31078 LOGPREFIX="Xorg." 31079 XDG_DATA_HOME=".local/share" 31080 XDG_DATA_HOME_LOGDIR="xorg" 31081 31082printf "%s\n" "#define XORG_SERVER 1" >>confdefs.h 31083 31084 31085printf "%s\n" "#define XORGSERVER 1" >>confdefs.h 31086 31087 31088printf "%s\n" "#define XFree86Server 1" >>confdefs.h 31089 31090 31091printf "%s\n" "#define XORG_VERSION_CURRENT $VENDOR_RELEASE" >>confdefs.h 31092 31093 31094printf "%s\n" "#define NEED_XF86_TYPES 1" >>confdefs.h 31095 31096 31097printf "%s\n" "#define NEED_XF86_PROTOTYPES 1" >>confdefs.h 31098 31099 31100printf "%s\n" "#define __XSERVERNAME__ \"Xorg\"" >>confdefs.h 31101 31102 31103 prefix_NONE= 31104 exec_prefix_NONE= 31105 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 31106 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 31107 eval ac_define_dir="\"$XF86CONFIGFILE\"" 31108 eval ac_define_dir="\"$ac_define_dir\"" 31109 XCONFIGFILE="$ac_define_dir" 31110 31111 31112printf "%s\n" "#define XCONFIGFILE \"$ac_define_dir\"" >>confdefs.h 31113 31114 test "$prefix_NONE" && prefix=NONE 31115 test "$exec_prefix_NONE" && exec_prefix=NONE 31116 31117 31118 prefix_NONE= 31119 exec_prefix_NONE= 31120 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 31121 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 31122 eval ac_define_dir="\"$XF86CONFIGFILE\"" 31123 eval ac_define_dir="\"$ac_define_dir\"" 31124 XF86CONFIGFILE="$ac_define_dir" 31125 31126 31127printf "%s\n" "#define XF86CONFIGFILE \"$ac_define_dir\"" >>confdefs.h 31128 31129 test "$prefix_NONE" && prefix=NONE 31130 test "$exec_prefix_NONE" && exec_prefix=NONE 31131 31132 31133 prefix_NONE= 31134 exec_prefix_NONE= 31135 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 31136 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 31137 eval ac_define_dir="\"$XF86CONFIGDIR\"" 31138 eval ac_define_dir="\"$ac_define_dir\"" 31139 XCONFIGDIR="$ac_define_dir" 31140 31141 31142printf "%s\n" "#define XCONFIGDIR \"$ac_define_dir\"" >>confdefs.h 31143 31144 test "$prefix_NONE" && prefix=NONE 31145 test "$exec_prefix_NONE" && exec_prefix=NONE 31146 31147 31148 prefix_NONE= 31149 exec_prefix_NONE= 31150 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 31151 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 31152 eval ac_define_dir="\"$moduledir\"" 31153 eval ac_define_dir="\"$ac_define_dir\"" 31154 DEFAULT_MODULE_PATH="$ac_define_dir" 31155 31156 31157printf "%s\n" "#define DEFAULT_MODULE_PATH \"$ac_define_dir\"" >>confdefs.h 31158 31159 test "$prefix_NONE" && prefix=NONE 31160 test "$exec_prefix_NONE" && exec_prefix=NONE 31161 31162 31163 prefix_NONE= 31164 exec_prefix_NONE= 31165 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 31166 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 31167 eval ac_define_dir="\"$libdir\"" 31168 eval ac_define_dir="\"$ac_define_dir\"" 31169 DEFAULT_LIBRARY_PATH="$ac_define_dir" 31170 31171 31172printf "%s\n" "#define DEFAULT_LIBRARY_PATH \"$ac_define_dir\"" >>confdefs.h 31173 31174 test "$prefix_NONE" && prefix=NONE 31175 test "$exec_prefix_NONE" && exec_prefix=NONE 31176 31177 31178 prefix_NONE= 31179 exec_prefix_NONE= 31180 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 31181 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 31182 eval ac_define_dir="\"$logdir\"" 31183 eval ac_define_dir="\"$ac_define_dir\"" 31184 DEFAULT_LOGDIR="$ac_define_dir" 31185 31186 31187printf "%s\n" "#define DEFAULT_LOGDIR \"$ac_define_dir\"" >>confdefs.h 31188 31189 test "$prefix_NONE" && prefix=NONE 31190 test "$exec_prefix_NONE" && exec_prefix=NONE 31191 31192 31193 prefix_NONE= 31194 exec_prefix_NONE= 31195 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 31196 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 31197 eval ac_define_dir="\"$LOGPREFIX\"" 31198 eval ac_define_dir="\"$ac_define_dir\"" 31199 DEFAULT_LOGPREFIX="$ac_define_dir" 31200 31201 31202printf "%s\n" "#define DEFAULT_LOGPREFIX \"$ac_define_dir\"" >>confdefs.h 31203 31204 test "$prefix_NONE" && prefix=NONE 31205 test "$exec_prefix_NONE" && exec_prefix=NONE 31206 31207 31208 prefix_NONE= 31209 exec_prefix_NONE= 31210 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 31211 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 31212 eval ac_define_dir="\"$XDG_DATA_HOME\"" 31213 eval ac_define_dir="\"$ac_define_dir\"" 31214 DEFAULT_XDG_DATA_HOME="$ac_define_dir" 31215 31216 31217printf "%s\n" "#define DEFAULT_XDG_DATA_HOME \"$ac_define_dir\"" >>confdefs.h 31218 31219 test "$prefix_NONE" && prefix=NONE 31220 test "$exec_prefix_NONE" && exec_prefix=NONE 31221 31222 31223 prefix_NONE= 31224 exec_prefix_NONE= 31225 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 31226 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 31227 eval ac_define_dir="\"$XDG_DATA_HOME_LOGDIR\"" 31228 eval ac_define_dir="\"$ac_define_dir\"" 31229 DEFAULT_XDG_DATA_HOME_LOGDIR="$ac_define_dir" 31230 31231 31232printf "%s\n" "#define DEFAULT_XDG_DATA_HOME_LOGDIR \"$ac_define_dir\"" >>confdefs.h 31233 31234 test "$prefix_NONE" && prefix=NONE 31235 test "$exec_prefix_NONE" && exec_prefix=NONE 31236 31237 31238printf "%s\n" "#define __VENDORDWEBSUPPORT__ \"$VENDOR_WEB\"" >>confdefs.h 31239 31240 if test "x$VGAHW" = xyes; then 31241 31242printf "%s\n" "#define WITH_VGAHW 1" >>confdefs.h 31243 31244 fi 31245 31246 driverdir="$moduledir/drivers" 31247 31248 31249 sdkdir="$includedir/xorg" 31250 extdir="$includedir/X11/extensions" 31251 sysconfigdir="$datadir/X11/$XF86CONFIGDIR" 31252 31253 31254 31255 31256 31257 # stuff the ABI versions into the pc file too 31258 extract_abi() { 31259 grep ^.define.*${1}_VERSION ${srcdir}/hw/xfree86/common/xf86Module.h | tr '(),' ' .' | awk '{ print $4$5 }' 31260 } 31261 abi_ansic=`extract_abi ANSIC` 31262 abi_videodrv=`extract_abi VIDEODRV` 31263 abi_xinput=`extract_abi XINPUT` 31264 abi_extension=`extract_abi EXTENSION` 31265 31266 31267 31268 31269fi 31270 if test "x$XORG" = xyes; then 31271 XORG_TRUE= 31272 XORG_FALSE='#' 31273else 31274 XORG_TRUE='#' 31275 XORG_FALSE= 31276fi 31277 31278 if test "x$PCI" = xyes; then 31279 XORG_BUS_PCI_TRUE= 31280 XORG_BUS_PCI_FALSE='#' 31281else 31282 XORG_BUS_PCI_TRUE='#' 31283 XORG_BUS_PCI_FALSE= 31284fi 31285 31286 if test "x$xorg_bus_bsdpci" = xyes; then 31287 XORG_BUS_BSDPCI_TRUE= 31288 XORG_BUS_BSDPCI_FALSE='#' 31289else 31290 XORG_BUS_BSDPCI_TRUE='#' 31291 XORG_BUS_BSDPCI_FALSE= 31292fi 31293 31294 if test "x$xorg_bus_sparc" = xyes; then 31295 XORG_BUS_SPARC_TRUE= 31296 XORG_BUS_SPARC_FALSE='#' 31297else 31298 XORG_BUS_SPARC_TRUE='#' 31299 XORG_BUS_SPARC_FALSE= 31300fi 31301 31302 if test "x$linux_acpi" = xyes; then 31303 LNXACPI_TRUE= 31304 LNXACPI_FALSE='#' 31305else 31306 LNXACPI_TRUE='#' 31307 LNXACPI_FALSE= 31308fi 31309 31310 if test "x$linux_apm" = xyes; then 31311 LNXAPM_TRUE= 31312 LNXAPM_FALSE='#' 31313else 31314 LNXAPM_TRUE='#' 31315 LNXAPM_FALSE= 31316fi 31317 31318 if test "x$solaris_vt" = xyes; then 31319 SOLARIS_VT_TRUE= 31320 SOLARIS_VT_FALSE='#' 31321else 31322 SOLARIS_VT_TRUE='#' 31323 SOLARIS_VT_FALSE= 31324fi 31325 31326 if test "x$DGA" = xyes; then 31327 DGA_TRUE= 31328 DGA_FALSE='#' 31329else 31330 DGA_TRUE='#' 31331 DGA_FALSE= 31332fi 31333 31334 if test "x$CONFIG_UDEV_KMS" = xyes; then 31335 XORG_BUS_PLATFORM_TRUE= 31336 XORG_BUS_PLATFORM_FALSE='#' 31337else 31338 XORG_BUS_PLATFORM_TRUE='#' 31339 XORG_BUS_PLATFORM_FALSE= 31340fi 31341 31342 if test "x$XORG_DRIVER_MODESETTING" = xyes; then 31343 XORG_DRIVER_MODESETTING_TRUE= 31344 XORG_DRIVER_MODESETTING_FALSE='#' 31345else 31346 XORG_DRIVER_MODESETTING_TRUE='#' 31347 XORG_DRIVER_MODESETTING_FALSE= 31348fi 31349 31350 if test "x$XORG_DRIVER_INPUT_INPUTTEST" = xyes; then 31351 XORG_DRIVER_INPUT_INPUTTEST_TRUE= 31352 XORG_DRIVER_INPUT_INPUTTEST_FALSE='#' 31353else 31354 XORG_DRIVER_INPUT_INPUTTEST_TRUE='#' 31355 XORG_DRIVER_INPUT_INPUTTEST_FALSE= 31356fi 31357 31358 31359if test "x$GLAMOR" = xauto; then 31360 if echo "$XORG" "$XEPHYR" | grep -q yes ; then 31361 GLAMOR=yes 31362 fi 31363fi 31364 31365 if test "x$GLAMOR" = xyes; then 31366 GLAMOR_TRUE= 31367 GLAMOR_FALSE='#' 31368else 31369 GLAMOR_TRUE='#' 31370 GLAMOR_FALSE= 31371fi 31372 31373 31374if test "x$GLAMOR" = xyes; then 31375 31376printf "%s\n" "#define GLAMOR 1" >>confdefs.h 31377 31378 31379pkg_failed=no 31380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLAMOR" >&5 31381printf %s "checking for GLAMOR... " >&6; } 31382 31383if test -n "$GLAMOR_CFLAGS"; then 31384 pkg_cv_GLAMOR_CFLAGS="$GLAMOR_CFLAGS" 31385 elif test -n "$PKG_CONFIG"; then 31386 if test -n "$PKG_CONFIG" && \ 31387 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy\""; } >&5 31388 ($PKG_CONFIG --exists --print-errors "epoxy") 2>&5 31389 ac_status=$? 31390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31391 test $ac_status = 0; }; then 31392 pkg_cv_GLAMOR_CFLAGS=`$PKG_CONFIG --cflags "epoxy" 2>/dev/null` 31393 test "x$?" != "x0" && pkg_failed=yes 31394else 31395 pkg_failed=yes 31396fi 31397 else 31398 pkg_failed=untried 31399fi 31400if test -n "$GLAMOR_LIBS"; then 31401 pkg_cv_GLAMOR_LIBS="$GLAMOR_LIBS" 31402 elif test -n "$PKG_CONFIG"; then 31403 if test -n "$PKG_CONFIG" && \ 31404 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy\""; } >&5 31405 ($PKG_CONFIG --exists --print-errors "epoxy") 2>&5 31406 ac_status=$? 31407 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31408 test $ac_status = 0; }; then 31409 pkg_cv_GLAMOR_LIBS=`$PKG_CONFIG --libs "epoxy" 2>/dev/null` 31410 test "x$?" != "x0" && pkg_failed=yes 31411else 31412 pkg_failed=yes 31413fi 31414 else 31415 pkg_failed=untried 31416fi 31417 31418 31419 31420if test $pkg_failed = yes; then 31421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31422printf "%s\n" "no" >&6; } 31423 31424if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31425 _pkg_short_errors_supported=yes 31426else 31427 _pkg_short_errors_supported=no 31428fi 31429 if test $_pkg_short_errors_supported = yes; then 31430 GLAMOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "epoxy" 2>&1` 31431 else 31432 GLAMOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "epoxy" 2>&1` 31433 fi 31434 # Put the nasty error message in config.log where it belongs 31435 echo "$GLAMOR_PKG_ERRORS" >&5 31436 31437 as_fn_error $? "Package requirements (epoxy) were not met: 31438 31439$GLAMOR_PKG_ERRORS 31440 31441Consider adjusting the PKG_CONFIG_PATH environment variable if you 31442installed software in a non-standard prefix. 31443 31444Alternatively, you may set the environment variables GLAMOR_CFLAGS 31445and GLAMOR_LIBS to avoid the need to call pkg-config. 31446See the pkg-config man page for more details." "$LINENO" 5 31447elif test $pkg_failed = untried; then 31448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31449printf "%s\n" "no" >&6; } 31450 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31451printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 31452as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 31453is in your PATH or set the PKG_CONFIG environment variable to the full 31454path to pkg-config. 31455 31456Alternatively, you may set the environment variables GLAMOR_CFLAGS 31457and GLAMOR_LIBS to avoid the need to call pkg-config. 31458See the pkg-config man page for more details. 31459 31460To get pkg-config, see <http://pkg-config.freedesktop.org/>. 31461See \`config.log' for more details" "$LINENO" 5; } 31462else 31463 GLAMOR_CFLAGS=$pkg_cv_GLAMOR_CFLAGS 31464 GLAMOR_LIBS=$pkg_cv_GLAMOR_LIBS 31465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31466printf "%s\n" "yes" >&6; } 31467 31468fi 31469 31470 if test -n "$PKG_CONFIG" && \ 31471 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy >= 1.4.4\""; } >&5 31472 ($PKG_CONFIG --exists --print-errors "epoxy >= 1.4.4") 2>&5 31473 ac_status=$? 31474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31475 test $ac_status = 0; }; then 31476 31477printf "%s\n" "#define GLAMOR_HAS_EGL_QUERY_DMABUF 1" >>confdefs.h 31478 31479fi 31480 31481 if test -n "$PKG_CONFIG" && \ 31482 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy >= 1.5.4\""; } >&5 31483 ($PKG_CONFIG --exists --print-errors "epoxy >= 1.5.4") 2>&5 31484 ac_status=$? 31485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31486 test $ac_status = 0; }; then 31487 31488printf "%s\n" "#define GLAMOR_HAS_EGL_QUERY_DRIVER 1" >>confdefs.h 31489 31490fi 31491 31492 31493pkg_failed=no 31494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GBM" >&5 31495printf %s "checking for GBM... " >&6; } 31496 31497if test -n "$GBM_CFLAGS"; then 31498 pkg_cv_GBM_CFLAGS="$GBM_CFLAGS" 31499 elif test -n "$PKG_CONFIG"; then 31500 if test -n "$PKG_CONFIG" && \ 31501 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"\$LIBGBM\"\""; } >&5 31502 ($PKG_CONFIG --exists --print-errors ""$LIBGBM"") 2>&5 31503 ac_status=$? 31504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31505 test $ac_status = 0; }; then 31506 pkg_cv_GBM_CFLAGS=`$PKG_CONFIG --cflags ""$LIBGBM"" 2>/dev/null` 31507 test "x$?" != "x0" && pkg_failed=yes 31508else 31509 pkg_failed=yes 31510fi 31511 else 31512 pkg_failed=untried 31513fi 31514if test -n "$GBM_LIBS"; then 31515 pkg_cv_GBM_LIBS="$GBM_LIBS" 31516 elif test -n "$PKG_CONFIG"; then 31517 if test -n "$PKG_CONFIG" && \ 31518 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"\$LIBGBM\"\""; } >&5 31519 ($PKG_CONFIG --exists --print-errors ""$LIBGBM"") 2>&5 31520 ac_status=$? 31521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31522 test $ac_status = 0; }; then 31523 pkg_cv_GBM_LIBS=`$PKG_CONFIG --libs ""$LIBGBM"" 2>/dev/null` 31524 test "x$?" != "x0" && pkg_failed=yes 31525else 31526 pkg_failed=yes 31527fi 31528 else 31529 pkg_failed=untried 31530fi 31531 31532 31533 31534if test $pkg_failed = yes; then 31535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31536printf "%s\n" "no" >&6; } 31537 31538if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31539 _pkg_short_errors_supported=yes 31540else 31541 _pkg_short_errors_supported=no 31542fi 31543 if test $_pkg_short_errors_supported = yes; then 31544 GBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""$LIBGBM"" 2>&1` 31545 else 31546 GBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""$LIBGBM"" 2>&1` 31547 fi 31548 # Put the nasty error message in config.log where it belongs 31549 echo "$GBM_PKG_ERRORS" >&5 31550 31551 GBM=no 31552elif test $pkg_failed = untried; then 31553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31554printf "%s\n" "no" >&6; } 31555 GBM=no 31556else 31557 GBM_CFLAGS=$pkg_cv_GBM_CFLAGS 31558 GBM_LIBS=$pkg_cv_GBM_LIBS 31559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31560printf "%s\n" "yes" >&6; } 31561 GBM=yes 31562fi 31563 if test "x$GBM" = xyes; then 31564 31565printf "%s\n" "#define GLAMOR_HAS_GBM 1" >>confdefs.h 31566 31567 ac_fn_check_decl "$LINENO" "GBM_BO_USE_LINEAR" "ac_cv_have_decl_GBM_BO_USE_LINEAR" "#include <stdlib.h> 31568 #include <gbm.h> 31569" "$ac_c_undeclared_builtin_options" "CFLAGS" 31570if test "x$ac_cv_have_decl_GBM_BO_USE_LINEAR" = xyes 31571then : 31572 31573printf "%s\n" "#define GLAMOR_HAS_GBM_LINEAR 1" >>confdefs.h 31574 31575fi 31576 if test -n "$PKG_CONFIG" && \ 31577 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 17.1.0\""; } >&5 31578 ($PKG_CONFIG --exists --print-errors "gbm >= 17.1.0") 2>&5 31579 ac_status=$? 31580 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31581 test $ac_status = 0; }; then 31582 31583printf "%s\n" "#define GBM_BO_WITH_MODIFIERS 1" >>confdefs.h 31584 31585fi 31586 else 31587 if test "x$XORG" = xyes; then 31588 as_fn_error $? "Glamor for Xorg requires $LIBGBM" "$LINENO" 5 31589 fi 31590 fi 31591fi 31592 if test "x$GBM" = xyes; then 31593 GLAMOR_EGL_TRUE= 31594 GLAMOR_EGL_FALSE='#' 31595else 31596 GLAMOR_EGL_TRUE='#' 31597 GLAMOR_EGL_FALSE= 31598fi 31599 31600 31601 31602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build XWin DDX" >&5 31603printf %s "checking whether to build XWin DDX... " >&6; } 31604if test "x$XWIN" = xauto; then 31605 case $host_os in 31606 cygwin*) XWIN="yes" ;; 31607 mingw*) XWIN="yes" ;; 31608 *) XWIN="no" ;; 31609 esac 31610fi 31611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XWIN" >&5 31612printf "%s\n" "$XWIN" >&6; } 31613 31614if test "x$XWIN" = xyes; then 31615 31616 prefix_NONE= 31617 exec_prefix_NONE= 31618 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 31619 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 31620 eval ac_define_dir="\"$logdir\"" 31621 eval ac_define_dir="\"$ac_define_dir\"" 31622 DEFAULT_LOGDIR="$ac_define_dir" 31623 31624 31625printf "%s\n" "#define DEFAULT_LOGDIR \"$ac_define_dir\"" >>confdefs.h 31626 31627 test "$prefix_NONE" && prefix=NONE 31628 test "$exec_prefix_NONE" && exec_prefix=NONE 31629 31630 31631printf "%s\n" "#define XORG_VERSION_CURRENT $VENDOR_RELEASE" >>confdefs.h 31632 31633 31634printf "%s\n" "#define __VENDORDWEBSUPPORT__ \"$VENDOR_WEB\"" >>confdefs.h 31635 31636 if test -n "$ac_tool_prefix"; then 31637 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 31638set dummy ${ac_tool_prefix}windres; ac_word=$2 31639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31640printf %s "checking for $ac_word... " >&6; } 31641if test ${ac_cv_prog_WINDRES+y} 31642then : 31643 printf %s "(cached) " >&6 31644else $as_nop 31645 if test -n "$WINDRES"; then 31646 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 31647else 31648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31649for as_dir in $PATH 31650do 31651 IFS=$as_save_IFS 31652 case $as_dir in #((( 31653 '') as_dir=./ ;; 31654 */) ;; 31655 *) as_dir=$as_dir/ ;; 31656 esac 31657 for ac_exec_ext in '' $ac_executable_extensions; do 31658 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 31659 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 31660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 31661 break 2 31662 fi 31663done 31664 done 31665IFS=$as_save_IFS 31666 31667fi 31668fi 31669WINDRES=$ac_cv_prog_WINDRES 31670if test -n "$WINDRES"; then 31671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 31672printf "%s\n" "$WINDRES" >&6; } 31673else 31674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31675printf "%s\n" "no" >&6; } 31676fi 31677 31678 31679fi 31680if test -z "$ac_cv_prog_WINDRES"; then 31681 ac_ct_WINDRES=$WINDRES 31682 # Extract the first word of "windres", so it can be a program name with args. 31683set dummy windres; ac_word=$2 31684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31685printf %s "checking for $ac_word... " >&6; } 31686if test ${ac_cv_prog_ac_ct_WINDRES+y} 31687then : 31688 printf %s "(cached) " >&6 31689else $as_nop 31690 if test -n "$ac_ct_WINDRES"; then 31691 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 31692else 31693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31694for as_dir in $PATH 31695do 31696 IFS=$as_save_IFS 31697 case $as_dir in #((( 31698 '') as_dir=./ ;; 31699 */) ;; 31700 *) as_dir=$as_dir/ ;; 31701 esac 31702 for ac_exec_ext in '' $ac_executable_extensions; do 31703 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 31704 ac_cv_prog_ac_ct_WINDRES="windres" 31705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 31706 break 2 31707 fi 31708done 31709 done 31710IFS=$as_save_IFS 31711 31712fi 31713fi 31714ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 31715if test -n "$ac_ct_WINDRES"; then 31716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 31717printf "%s\n" "$ac_ct_WINDRES" >&6; } 31718else 31719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31720printf "%s\n" "no" >&6; } 31721fi 31722 31723 if test "x$ac_ct_WINDRES" = x; then 31724 WINDRES="" 31725 else 31726 case $cross_compiling:$ac_tool_warned in 31727yes:) 31728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 31729printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 31730ac_tool_warned=yes ;; 31731esac 31732 WINDRES=$ac_ct_WINDRES 31733 fi 31734else 31735 WINDRES="$ac_cv_prog_WINDRES" 31736fi 31737 31738 31739 31740pkg_failed=no 31741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XWINMODULES" >&5 31742printf %s "checking for XWINMODULES... " >&6; } 31743 31744if test -n "$XWINMODULES_CFLAGS"; then 31745 pkg_cv_XWINMODULES_CFLAGS="$XWINMODULES_CFLAGS" 31746 elif test -n "$PKG_CONFIG"; then 31747 if test -n "$PKG_CONFIG" && \ 31748 { { 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 31749 ($PKG_CONFIG --exists --print-errors "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes") 2>&5 31750 ac_status=$? 31751 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31752 test $ac_status = 0; }; then 31753 pkg_cv_XWINMODULES_CFLAGS=`$PKG_CONFIG --cflags "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes" 2>/dev/null` 31754 test "x$?" != "x0" && pkg_failed=yes 31755else 31756 pkg_failed=yes 31757fi 31758 else 31759 pkg_failed=untried 31760fi 31761if test -n "$XWINMODULES_LIBS"; then 31762 pkg_cv_XWINMODULES_LIBS="$XWINMODULES_LIBS" 31763 elif test -n "$PKG_CONFIG"; then 31764 if test -n "$PKG_CONFIG" && \ 31765 { { 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 31766 ($PKG_CONFIG --exists --print-errors "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes") 2>&5 31767 ac_status=$? 31768 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31769 test $ac_status = 0; }; then 31770 pkg_cv_XWINMODULES_LIBS=`$PKG_CONFIG --libs "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes" 2>/dev/null` 31771 test "x$?" != "x0" && pkg_failed=yes 31772else 31773 pkg_failed=yes 31774fi 31775 else 31776 pkg_failed=untried 31777fi 31778 31779 31780 31781if test $pkg_failed = yes; then 31782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31783printf "%s\n" "no" >&6; } 31784 31785if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31786 _pkg_short_errors_supported=yes 31787else 31788 _pkg_short_errors_supported=no 31789fi 31790 if test $_pkg_short_errors_supported = yes; then 31791 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` 31792 else 31793 XWINMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes" 2>&1` 31794 fi 31795 # Put the nasty error message in config.log where it belongs 31796 echo "$XWINMODULES_PKG_ERRORS" >&5 31797 31798 as_fn_error $? "Package requirements (xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes) were not met: 31799 31800$XWINMODULES_PKG_ERRORS 31801 31802Consider adjusting the PKG_CONFIG_PATH environment variable if you 31803installed software in a non-standard prefix. 31804 31805Alternatively, you may set the environment variables XWINMODULES_CFLAGS 31806and XWINMODULES_LIBS to avoid the need to call pkg-config. 31807See the pkg-config man page for more details." "$LINENO" 5 31808elif test $pkg_failed = untried; then 31809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31810printf "%s\n" "no" >&6; } 31811 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31812printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 31813as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 31814is in your PATH or set the PKG_CONFIG environment variable to the full 31815path to pkg-config. 31816 31817Alternatively, you may set the environment variables XWINMODULES_CFLAGS 31818and XWINMODULES_LIBS to avoid the need to call pkg-config. 31819See the pkg-config man page for more details. 31820 31821To get pkg-config, see <http://pkg-config.freedesktop.org/>. 31822See \`config.log' for more details" "$LINENO" 5; } 31823else 31824 XWINMODULES_CFLAGS=$pkg_cv_XWINMODULES_CFLAGS 31825 XWINMODULES_LIBS=$pkg_cv_XWINMODULES_LIBS 31826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31827printf "%s\n" "yes" >&6; } 31828 31829fi 31830 31831 if test "x$WINDOWSDRI" = xauto; then 31832 if test -n "$PKG_CONFIG" && \ 31833 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"windowsdriproto\""; } >&5 31834 ($PKG_CONFIG --exists --print-errors "windowsdriproto") 2>&5 31835 ac_status=$? 31836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31837 test $ac_status = 0; }; then 31838 WINDOWSDRI=yes 31839else 31840 WINDOWSDRI=no 31841fi 31842 fi 31843 if test "x$WINDOWSDRI" = xyes ; then 31844 31845pkg_failed=no 31846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for WINDOWSDRI" >&5 31847printf %s "checking for WINDOWSDRI... " >&6; } 31848 31849if test -n "$WINDOWSDRI_CFLAGS"; then 31850 pkg_cv_WINDOWSDRI_CFLAGS="$WINDOWSDRI_CFLAGS" 31851 elif test -n "$PKG_CONFIG"; then 31852 if test -n "$PKG_CONFIG" && \ 31853 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"windowsdriproto\""; } >&5 31854 ($PKG_CONFIG --exists --print-errors "windowsdriproto") 2>&5 31855 ac_status=$? 31856 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31857 test $ac_status = 0; }; then 31858 pkg_cv_WINDOWSDRI_CFLAGS=`$PKG_CONFIG --cflags "windowsdriproto" 2>/dev/null` 31859 test "x$?" != "x0" && pkg_failed=yes 31860else 31861 pkg_failed=yes 31862fi 31863 else 31864 pkg_failed=untried 31865fi 31866if test -n "$WINDOWSDRI_LIBS"; then 31867 pkg_cv_WINDOWSDRI_LIBS="$WINDOWSDRI_LIBS" 31868 elif test -n "$PKG_CONFIG"; then 31869 if test -n "$PKG_CONFIG" && \ 31870 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"windowsdriproto\""; } >&5 31871 ($PKG_CONFIG --exists --print-errors "windowsdriproto") 2>&5 31872 ac_status=$? 31873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31874 test $ac_status = 0; }; then 31875 pkg_cv_WINDOWSDRI_LIBS=`$PKG_CONFIG --libs "windowsdriproto" 2>/dev/null` 31876 test "x$?" != "x0" && pkg_failed=yes 31877else 31878 pkg_failed=yes 31879fi 31880 else 31881 pkg_failed=untried 31882fi 31883 31884 31885 31886if test $pkg_failed = yes; then 31887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31888printf "%s\n" "no" >&6; } 31889 31890if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31891 _pkg_short_errors_supported=yes 31892else 31893 _pkg_short_errors_supported=no 31894fi 31895 if test $_pkg_short_errors_supported = yes; then 31896 WINDOWSDRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "windowsdriproto" 2>&1` 31897 else 31898 WINDOWSDRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "windowsdriproto" 2>&1` 31899 fi 31900 # Put the nasty error message in config.log where it belongs 31901 echo "$WINDOWSDRI_PKG_ERRORS" >&5 31902 31903 as_fn_error $? "Package requirements (windowsdriproto) were not met: 31904 31905$WINDOWSDRI_PKG_ERRORS 31906 31907Consider adjusting the PKG_CONFIG_PATH environment variable if you 31908installed software in a non-standard prefix. 31909 31910Alternatively, you may set the environment variables WINDOWSDRI_CFLAGS 31911and WINDOWSDRI_LIBS to avoid the need to call pkg-config. 31912See the pkg-config man page for more details." "$LINENO" 5 31913elif test $pkg_failed = untried; then 31914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31915printf "%s\n" "no" >&6; } 31916 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31917printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 31918as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 31919is in your PATH or set the PKG_CONFIG environment variable to the full 31920path to pkg-config. 31921 31922Alternatively, you may set the environment variables WINDOWSDRI_CFLAGS 31923and WINDOWSDRI_LIBS to avoid the need to call pkg-config. 31924See the pkg-config man page for more details. 31925 31926To get pkg-config, see <http://pkg-config.freedesktop.org/>. 31927See \`config.log' for more details" "$LINENO" 5; } 31928else 31929 WINDOWSDRI_CFLAGS=$pkg_cv_WINDOWSDRI_CFLAGS 31930 WINDOWSDRI_LIBS=$pkg_cv_WINDOWSDRI_LIBS 31931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31932printf "%s\n" "yes" >&6; } 31933 31934fi 31935 fi 31936 31937 case $host_os in 31938 cygwin*) 31939 XWIN_SERVER_NAME=XWin 31940 31941printf "%s\n" "#define HAS_DEVWINDOWS 1" >>confdefs.h 31942 31943 ;; 31944 mingw*) 31945 XWIN_SERVER_NAME=Xming 31946 31947printf "%s\n" "#define RELOCATE_PROJECTROOT 1" >>confdefs.h 31948 31949 31950printf "%s\n" "#define HAS_WINSOCK 1" >>confdefs.h 31951 31952 XWIN_SYS_LIBS="-lpthread -lws2_32" 31953 ;; 31954 esac 31955 31956 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" 31957 XWIN_SYS_LIBS="$XWIN_SYS_LIBS $XWINMODULES_LIBS" 31958 31959 31960 31961 31962 if test "x$DEBUGGING" = xyes; then 31963 31964printf "%s\n" "#define CYGDEBUG 1" >>confdefs.h 31965 31966 31967printf "%s\n" "#define CYGWINDOWING_DEBUG 1" >>confdefs.h 31968 31969 31970printf "%s\n" "#define CYGMULTIWINDOW_DEBUG 1" >>confdefs.h 31971 31972 fi 31973 31974 31975printf "%s\n" "#define DDXOSVERRORF 1" >>confdefs.h 31976 31977 31978printf "%s\n" "#define DDXBEFORERESET 1" >>confdefs.h 31979 31980 31981 if test "x$XWIN" = xyes && test "x$GLX" = xyes ; then 31982 # Extract the first word of "python3", so it can be a program name with args. 31983set dummy python3; ac_word=$2 31984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31985printf %s "checking for $ac_word... " >&6; } 31986if test ${ac_cv_prog_PYTHON3+y} 31987then : 31988 printf %s "(cached) " >&6 31989else $as_nop 31990 if test -n "$PYTHON3"; then 31991 ac_cv_prog_PYTHON3="$PYTHON3" # Let the user override the test. 31992else 31993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31994for as_dir in $PATH 31995do 31996 IFS=$as_save_IFS 31997 case $as_dir in #((( 31998 '') as_dir=./ ;; 31999 */) ;; 32000 *) as_dir=$as_dir/ ;; 32001 esac 32002 for ac_exec_ext in '' $ac_executable_extensions; do 32003 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 32004 ac_cv_prog_PYTHON3="python3" 32005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 32006 break 2 32007 fi 32008done 32009 done 32010IFS=$as_save_IFS 32011 32012fi 32013fi 32014PYTHON3=$ac_cv_prog_PYTHON3 32015if test -n "$PYTHON3"; then 32016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5 32017printf "%s\n" "$PYTHON3" >&6; } 32018else 32019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32020printf "%s\n" "no" >&6; } 32021fi 32022 32023 32024 if test -z "$PYTHON3"; then 32025 as_fn_error $? "python3 not found" "$LINENO" 5 32026 fi 32027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python module lxml" >&5 32028printf %s "checking for python module lxml... " >&6; } 32029 $PYTHON3 -c "import lxml;" 32030 if test $? -ne 0 ; then 32031 as_fn_error $? "not found" "$LINENO" 5 32032 fi 32033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32034printf "%s\n" "yes" >&6; } 32035 if test "x$KHRONOS_SPEC_DIR" = "xauto" ; then 32036 32037pkg_failed=no 32038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for KHRONOS_OPENGL_REGISTRY" >&5 32039printf %s "checking for KHRONOS_OPENGL_REGISTRY... " >&6; } 32040 32041if test -n "$KHRONOS_OPENGL_REGISTRY_CFLAGS"; then 32042 pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS="$KHRONOS_OPENGL_REGISTRY_CFLAGS" 32043 elif test -n "$PKG_CONFIG"; then 32044 if test -n "$PKG_CONFIG" && \ 32045 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"khronos-opengl-registry\""; } >&5 32046 ($PKG_CONFIG --exists --print-errors "khronos-opengl-registry") 2>&5 32047 ac_status=$? 32048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32049 test $ac_status = 0; }; then 32050 pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS=`$PKG_CONFIG --cflags "khronos-opengl-registry" 2>/dev/null` 32051 test "x$?" != "x0" && pkg_failed=yes 32052else 32053 pkg_failed=yes 32054fi 32055 else 32056 pkg_failed=untried 32057fi 32058if test -n "$KHRONOS_OPENGL_REGISTRY_LIBS"; then 32059 pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS="$KHRONOS_OPENGL_REGISTRY_LIBS" 32060 elif test -n "$PKG_CONFIG"; then 32061 if test -n "$PKG_CONFIG" && \ 32062 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"khronos-opengl-registry\""; } >&5 32063 ($PKG_CONFIG --exists --print-errors "khronos-opengl-registry") 2>&5 32064 ac_status=$? 32065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32066 test $ac_status = 0; }; then 32067 pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS=`$PKG_CONFIG --libs "khronos-opengl-registry" 2>/dev/null` 32068 test "x$?" != "x0" && pkg_failed=yes 32069else 32070 pkg_failed=yes 32071fi 32072 else 32073 pkg_failed=untried 32074fi 32075 32076 32077 32078if test $pkg_failed = yes; then 32079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32080printf "%s\n" "no" >&6; } 32081 32082if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32083 _pkg_short_errors_supported=yes 32084else 32085 _pkg_short_errors_supported=no 32086fi 32087 if test $_pkg_short_errors_supported = yes; then 32088 KHRONOS_OPENGL_REGISTRY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "khronos-opengl-registry" 2>&1` 32089 else 32090 KHRONOS_OPENGL_REGISTRY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "khronos-opengl-registry" 2>&1` 32091 fi 32092 # Put the nasty error message in config.log where it belongs 32093 echo "$KHRONOS_OPENGL_REGISTRY_PKG_ERRORS" >&5 32094 32095 as_fn_error $? "Package requirements (khronos-opengl-registry) were not met: 32096 32097$KHRONOS_OPENGL_REGISTRY_PKG_ERRORS 32098 32099Consider adjusting the PKG_CONFIG_PATH environment variable if you 32100installed software in a non-standard prefix. 32101 32102Alternatively, you may set the environment variables KHRONOS_OPENGL_REGISTRY_CFLAGS 32103and KHRONOS_OPENGL_REGISTRY_LIBS to avoid the need to call pkg-config. 32104See the pkg-config man page for more details." "$LINENO" 5 32105elif test $pkg_failed = untried; then 32106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32107printf "%s\n" "no" >&6; } 32108 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32109printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 32110as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 32111is in your PATH or set the PKG_CONFIG environment variable to the full 32112path to pkg-config. 32113 32114Alternatively, you may set the environment variables KHRONOS_OPENGL_REGISTRY_CFLAGS 32115and KHRONOS_OPENGL_REGISTRY_LIBS to avoid the need to call pkg-config. 32116See the pkg-config man page for more details. 32117 32118To get pkg-config, see <http://pkg-config.freedesktop.org/>. 32119See \`config.log' for more details" "$LINENO" 5; } 32120else 32121 KHRONOS_OPENGL_REGISTRY_CFLAGS=$pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS 32122 KHRONOS_OPENGL_REGISTRY_LIBS=$pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS 32123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32124printf "%s\n" "yes" >&6; } 32125 32126fi 32127 KHRONOS_SPEC_DIR=`pkg-config khronos-opengl-registry --variable=specdir` 32128 fi 32129 32130 fi 32131 32132fi 32133 if test "x$XWIN" = xyes; then 32134 XWIN_TRUE= 32135 XWIN_FALSE='#' 32136else 32137 XWIN_TRUE='#' 32138 XWIN_FALSE= 32139fi 32140 32141 if test "x$XWIN" = xyes && test "x$GLX" = xyes; then 32142 XWIN_GLX_WINDOWS_TRUE= 32143 XWIN_GLX_WINDOWS_FALSE='#' 32144else 32145 XWIN_GLX_WINDOWS_TRUE='#' 32146 XWIN_GLX_WINDOWS_FALSE= 32147fi 32148 32149 if test "x$XWIN" = xyes && test "x$WINDOWSDRI" = xyes; then 32150 XWIN_WINDOWS_DRI_TRUE= 32151 XWIN_WINDOWS_DRI_FALSE='#' 32152else 32153 XWIN_WINDOWS_DRI_TRUE='#' 32154 XWIN_WINDOWS_DRI_FALSE= 32155fi 32156 32157 32158if test "x$XQUARTZ" = xyes; then 32159 32160printf "%s\n" "#define XQUARTZ 1" >>confdefs.h 32161 32162 32163printf "%s\n" "#define ROOTLESS 1" >>confdefs.h 32164 32165 32166 XQUARTZ_LIBS="$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" 32167 32168 32169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xp_init in -lXplugin" >&5 32170printf %s "checking for xp_init in -lXplugin... " >&6; } 32171if test ${ac_cv_lib_Xplugin_xp_init+y} 32172then : 32173 printf %s "(cached) " >&6 32174else $as_nop 32175 ac_check_lib_save_LIBS=$LIBS 32176LIBS="-lXplugin $LIBS" 32177cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32178/* end confdefs.h. */ 32179 32180/* Override any GCC internal prototype to avoid an error. 32181 Use char because int might match the return type of a GCC 32182 builtin and then its argument prototype would still apply. */ 32183char xp_init (); 32184int 32185main (void) 32186{ 32187return xp_init (); 32188 ; 32189 return 0; 32190} 32191_ACEOF 32192if ac_fn_c_try_link "$LINENO" 32193then : 32194 ac_cv_lib_Xplugin_xp_init=yes 32195else $as_nop 32196 ac_cv_lib_Xplugin_xp_init=no 32197fi 32198rm -f core conftest.err conftest.$ac_objext conftest.beam \ 32199 conftest$ac_exeext conftest.$ac_ext 32200LIBS=$ac_check_lib_save_LIBS 32201fi 32202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xplugin_xp_init" >&5 32203printf "%s\n" "$ac_cv_lib_Xplugin_xp_init" >&6; } 32204if test "x$ac_cv_lib_Xplugin_xp_init" = xyes 32205then : 32206 : 32207fi 32208 32209 32210 CFLAGS="${CFLAGS} -DROOTLESS_WORKAROUND -DROOTLESS_SAFEALPHA -DNO_ALLOCA" 32211 32212 32213pkg_failed=no 32214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XPBPROXY" >&5 32215printf %s "checking for XPBPROXY... " >&6; } 32216 32217if test -n "$XPBPROXY_CFLAGS"; then 32218 pkg_cv_XPBPROXY_CFLAGS="$XPBPROXY_CFLAGS" 32219 elif test -n "$PKG_CONFIG"; then 32220 if test -n "$PKG_CONFIG" && \ 32221 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$APPLEWMPROTO \$LIBAPPLEWM xfixes x11\""; } >&5 32222 ($PKG_CONFIG --exists --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11") 2>&5 32223 ac_status=$? 32224 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32225 test $ac_status = 0; }; then 32226 pkg_cv_XPBPROXY_CFLAGS=`$PKG_CONFIG --cflags "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>/dev/null` 32227 test "x$?" != "x0" && pkg_failed=yes 32228else 32229 pkg_failed=yes 32230fi 32231 else 32232 pkg_failed=untried 32233fi 32234if test -n "$XPBPROXY_LIBS"; then 32235 pkg_cv_XPBPROXY_LIBS="$XPBPROXY_LIBS" 32236 elif test -n "$PKG_CONFIG"; then 32237 if test -n "$PKG_CONFIG" && \ 32238 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$APPLEWMPROTO \$LIBAPPLEWM xfixes x11\""; } >&5 32239 ($PKG_CONFIG --exists --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11") 2>&5 32240 ac_status=$? 32241 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32242 test $ac_status = 0; }; then 32243 pkg_cv_XPBPROXY_LIBS=`$PKG_CONFIG --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>/dev/null` 32244 test "x$?" != "x0" && pkg_failed=yes 32245else 32246 pkg_failed=yes 32247fi 32248 else 32249 pkg_failed=untried 32250fi 32251 32252 32253 32254if test $pkg_failed = yes; then 32255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32256printf "%s\n" "no" >&6; } 32257 32258if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32259 _pkg_short_errors_supported=yes 32260else 32261 _pkg_short_errors_supported=no 32262fi 32263 if test $_pkg_short_errors_supported = yes; then 32264 XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>&1` 32265 else 32266 XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>&1` 32267 fi 32268 # Put the nasty error message in config.log where it belongs 32269 echo "$XPBPROXY_PKG_ERRORS" >&5 32270 32271 as_fn_error $? "Package requirements ($APPLEWMPROTO $LIBAPPLEWM xfixes x11) were not met: 32272 32273$XPBPROXY_PKG_ERRORS 32274 32275Consider adjusting the PKG_CONFIG_PATH environment variable if you 32276installed software in a non-standard prefix. 32277 32278Alternatively, you may set the environment variables XPBPROXY_CFLAGS 32279and XPBPROXY_LIBS to avoid the need to call pkg-config. 32280See the pkg-config man page for more details." "$LINENO" 5 32281elif test $pkg_failed = untried; then 32282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32283printf "%s\n" "no" >&6; } 32284 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32285printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 32286as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 32287is in your PATH or set the PKG_CONFIG environment variable to the full 32288path to pkg-config. 32289 32290Alternatively, you may set the environment variables XPBPROXY_CFLAGS 32291and XPBPROXY_LIBS to avoid the need to call pkg-config. 32292See the pkg-config man page for more details. 32293 32294To get pkg-config, see <http://pkg-config.freedesktop.org/>. 32295See \`config.log' for more details" "$LINENO" 5; } 32296else 32297 XPBPROXY_CFLAGS=$pkg_cv_XPBPROXY_CFLAGS 32298 XPBPROXY_LIBS=$pkg_cv_XPBPROXY_LIBS 32299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32300printf "%s\n" "yes" >&6; } 32301 32302fi 32303 32304 if test "x$XQUARTZ_SPARKLE" = xyes ; then 32305 32306printf "%s\n" "#define XQUARTZ_SPARKLE 1" >>confdefs.h 32307 32308 fi 32309 32310 if test "x$STANDALONE_XPBPROXY" = xyes ; then 32311 32312printf "%s\n" "#define STANDALONE_XPBPROXY 1" >>confdefs.h 32313 32314 fi 32315fi 32316 32317 if test "x$XQUARTZ" = xyes -o "x$XWIN" = xyes ; then 32318 PSEUDORAMIX_TRUE= 32319 PSEUDORAMIX_FALSE='#' 32320else 32321 PSEUDORAMIX_TRUE='#' 32322 PSEUDORAMIX_FALSE= 32323fi 32324 32325 32326# Support for objc in autotools is minimal and not documented. 32327OBJC='$(CC)' 32328OBJCLD='$(CCLD)' 32329OBJCLINK='$(LINK)' 32330OBJCFLAGS='$(CFLAGS)' 32331 32332 32333 32334 32335# internal, undocumented automake func follows :( 32336 32337depcc="$OBJC" am_compiler_list='gcc3 gcc' 32338 32339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 32340printf %s "checking dependency style of $depcc... " >&6; } 32341if test ${am_cv_OBJC_dependencies_compiler_type+y} 32342then : 32343 printf %s "(cached) " >&6 32344else $as_nop 32345 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 32346 # We make a subdir and do the tests there. Otherwise we can end up 32347 # making bogus files that we don't know about and never remove. For 32348 # instance it was reported that on HP-UX the gcc test will end up 32349 # making a dummy file named 'D' -- because '-MD' means "put the output 32350 # in D". 32351 rm -rf conftest.dir 32352 mkdir conftest.dir 32353 # Copy depcomp to subdir because otherwise we won't find it if we're 32354 # using a relative directory. 32355 cp "$am_depcomp" conftest.dir 32356 cd conftest.dir 32357 # We will build objects and dependencies in a subdirectory because 32358 # it helps to detect inapplicable dependency modes. For instance 32359 # both Tru64's cc and ICC support -MD to output dependencies as a 32360 # side effect of compilation, but ICC will put the dependencies in 32361 # the current directory while Tru64 will put them in the object 32362 # directory. 32363 mkdir sub 32364 32365 am_cv_OBJC_dependencies_compiler_type=none 32366 if test "$am_compiler_list" = ""; then 32367 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 32368 fi 32369 am__universal=false 32370 32371 32372 for depmode in $am_compiler_list; do 32373 # Setup a source with many dependencies, because some compilers 32374 # like to wrap large dependency lists on column 80 (with \), and 32375 # we should not choose a depcomp mode which is confused by this. 32376 # 32377 # We need to recreate these files for each test, as the compiler may 32378 # overwrite some of them when testing with obscure command lines. 32379 # This happens at least with the AIX C compiler. 32380 : > sub/conftest.c 32381 for i in 1 2 3 4 5 6; do 32382 echo '#include "conftst'$i'.h"' >> sub/conftest.c 32383 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 32384 # Solaris 10 /bin/sh. 32385 echo '/* dummy */' > sub/conftst$i.h 32386 done 32387 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 32388 32389 # We check with '-c' and '-o' for the sake of the "dashmstdout" 32390 # mode. It turns out that the SunPro C++ compiler does not properly 32391 # handle '-M -o', and we need to detect this. Also, some Intel 32392 # versions had trouble with output in subdirs. 32393 am__obj=sub/conftest.${OBJEXT-o} 32394 am__minus_obj="-o $am__obj" 32395 case $depmode in 32396 gcc) 32397 # This depmode causes a compiler race in universal mode. 32398 test "$am__universal" = false || continue 32399 ;; 32400 nosideeffect) 32401 # After this tag, mechanisms are not by side-effect, so they'll 32402 # only be used when explicitly requested. 32403 if test "x$enable_dependency_tracking" = xyes; then 32404 continue 32405 else 32406 break 32407 fi 32408 ;; 32409 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 32410 # This compiler won't grok '-c -o', but also, the minuso test has 32411 # not run yet. These depmodes are late enough in the game, and 32412 # so weak that their functioning should not be impacted. 32413 am__obj=conftest.${OBJEXT-o} 32414 am__minus_obj= 32415 ;; 32416 none) break ;; 32417 esac 32418 if depmode=$depmode \ 32419 source=sub/conftest.c object=$am__obj \ 32420 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 32421 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 32422 >/dev/null 2>conftest.err && 32423 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 32424 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 32425 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 32426 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 32427 # icc doesn't choke on unknown options, it will just issue warnings 32428 # or remarks (even with -Werror). So we grep stderr for any message 32429 # that says an option was ignored or not supported. 32430 # When given -MP, icc 7.0 and 7.1 complain thusly: 32431 # icc: Command line warning: ignoring option '-M'; no argument required 32432 # The diagnosis changed in icc 8.0: 32433 # icc: Command line remark: option '-MP' not supported 32434 if (grep 'ignoring option' conftest.err || 32435 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 32436 am_cv_OBJC_dependencies_compiler_type=$depmode 32437 break 32438 fi 32439 fi 32440 done 32441 32442 cd .. 32443 rm -rf conftest.dir 32444else 32445 am_cv_OBJC_dependencies_compiler_type=none 32446fi 32447 32448fi 32449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5 32450printf "%s\n" "$am_cv_OBJC_dependencies_compiler_type" >&6; } 32451OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type 32452 32453 if 32454 test "x$enable_dependency_tracking" != xno \ 32455 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then 32456 am__fastdepOBJC_TRUE= 32457 am__fastdepOBJC_FALSE='#' 32458else 32459 am__fastdepOBJC_TRUE='#' 32460 am__fastdepOBJC_FALSE= 32461fi 32462 32463 32464 if test "x$XQUARTZ" = xyes; then 32465 XQUARTZ_TRUE= 32466 XQUARTZ_FALSE='#' 32467else 32468 XQUARTZ_TRUE='#' 32469 XQUARTZ_FALSE= 32470fi 32471 32472 if test "x$XQUARTZ_SPARKLE" != "xno"; then 32473 XQUARTZ_SPARKLE_TRUE= 32474 XQUARTZ_SPARKLE_FALSE='#' 32475else 32476 XQUARTZ_SPARKLE_TRUE='#' 32477 XQUARTZ_SPARKLE_FALSE= 32478fi 32479 32480 if test "x$STANDALONE_XPBPROXY" = xyes; then 32481 STANDALONE_XPBPROXY_TRUE= 32482 STANDALONE_XPBPROXY_FALSE='#' 32483else 32484 STANDALONE_XPBPROXY_TRUE='#' 32485 STANDALONE_XPBPROXY_FALSE= 32486fi 32487 32488 32489 32490XEPHYR_LIBS= 32491XEPHYR_INCS= 32492 32493 if test x$KDRIVE = xyes; then 32494 KDRIVE_TRUE= 32495 KDRIVE_FALSE='#' 32496else 32497 KDRIVE_TRUE='#' 32498 KDRIVE_FALSE= 32499fi 32500 32501 32502if test "$KDRIVE" = yes; then 32503 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" 32504 if test "x$XV" = xyes; then 32505 XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS xcb-xv" 32506 fi 32507 if test "x$DRI" = xyes && test "x$GLX" = xyes; then 32508 XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS $LIBDRM xcb-glx xcb-xf86dri > 1.6" 32509 fi 32510 if test "x$GLAMOR" = xyes; then 32511 XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS x11-xcb" 32512 fi 32513 32514 if test "x$XEPHYR" = xauto; then 32515 32516pkg_failed=no 32517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XEPHYR" >&5 32518printf %s "checking for XEPHYR... " >&6; } 32519 32520if test -n "$XEPHYR_CFLAGS"; then 32521 pkg_cv_XEPHYR_CFLAGS="$XEPHYR_CFLAGS" 32522 elif test -n "$PKG_CONFIG"; then 32523 if test -n "$PKG_CONFIG" && \ 32524 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5 32525 ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5 32526 ac_status=$? 32527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32528 test $ac_status = 0; }; then 32529 pkg_cv_XEPHYR_CFLAGS=`$PKG_CONFIG --cflags "$XEPHYR_REQUIRED_LIBS" 2>/dev/null` 32530 test "x$?" != "x0" && pkg_failed=yes 32531else 32532 pkg_failed=yes 32533fi 32534 else 32535 pkg_failed=untried 32536fi 32537if test -n "$XEPHYR_LIBS"; then 32538 pkg_cv_XEPHYR_LIBS="$XEPHYR_LIBS" 32539 elif test -n "$PKG_CONFIG"; then 32540 if test -n "$PKG_CONFIG" && \ 32541 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5 32542 ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5 32543 ac_status=$? 32544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32545 test $ac_status = 0; }; then 32546 pkg_cv_XEPHYR_LIBS=`$PKG_CONFIG --libs "$XEPHYR_REQUIRED_LIBS" 2>/dev/null` 32547 test "x$?" != "x0" && pkg_failed=yes 32548else 32549 pkg_failed=yes 32550fi 32551 else 32552 pkg_failed=untried 32553fi 32554 32555 32556 32557if test $pkg_failed = yes; then 32558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32559printf "%s\n" "no" >&6; } 32560 32561if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32562 _pkg_short_errors_supported=yes 32563else 32564 _pkg_short_errors_supported=no 32565fi 32566 if test $_pkg_short_errors_supported = yes; then 32567 XEPHYR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1` 32568 else 32569 XEPHYR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1` 32570 fi 32571 # Put the nasty error message in config.log where it belongs 32572 echo "$XEPHYR_PKG_ERRORS" >&5 32573 32574 XEPHYR="no" 32575elif test $pkg_failed = untried; then 32576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32577printf "%s\n" "no" >&6; } 32578 XEPHYR="no" 32579else 32580 XEPHYR_CFLAGS=$pkg_cv_XEPHYR_CFLAGS 32581 XEPHYR_LIBS=$pkg_cv_XEPHYR_LIBS 32582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32583printf "%s\n" "yes" >&6; } 32584 XEPHYR="yes" 32585fi 32586 elif test "x$XEPHYR" = xyes ; then 32587 32588pkg_failed=no 32589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XEPHYR" >&5 32590printf %s "checking for XEPHYR... " >&6; } 32591 32592if test -n "$XEPHYR_CFLAGS"; then 32593 pkg_cv_XEPHYR_CFLAGS="$XEPHYR_CFLAGS" 32594 elif test -n "$PKG_CONFIG"; then 32595 if test -n "$PKG_CONFIG" && \ 32596 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5 32597 ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5 32598 ac_status=$? 32599 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32600 test $ac_status = 0; }; then 32601 pkg_cv_XEPHYR_CFLAGS=`$PKG_CONFIG --cflags "$XEPHYR_REQUIRED_LIBS" 2>/dev/null` 32602 test "x$?" != "x0" && pkg_failed=yes 32603else 32604 pkg_failed=yes 32605fi 32606 else 32607 pkg_failed=untried 32608fi 32609if test -n "$XEPHYR_LIBS"; then 32610 pkg_cv_XEPHYR_LIBS="$XEPHYR_LIBS" 32611 elif test -n "$PKG_CONFIG"; then 32612 if test -n "$PKG_CONFIG" && \ 32613 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5 32614 ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5 32615 ac_status=$? 32616 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32617 test $ac_status = 0; }; then 32618 pkg_cv_XEPHYR_LIBS=`$PKG_CONFIG --libs "$XEPHYR_REQUIRED_LIBS" 2>/dev/null` 32619 test "x$?" != "x0" && pkg_failed=yes 32620else 32621 pkg_failed=yes 32622fi 32623 else 32624 pkg_failed=untried 32625fi 32626 32627 32628 32629if test $pkg_failed = yes; then 32630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32631printf "%s\n" "no" >&6; } 32632 32633if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32634 _pkg_short_errors_supported=yes 32635else 32636 _pkg_short_errors_supported=no 32637fi 32638 if test $_pkg_short_errors_supported = yes; then 32639 XEPHYR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1` 32640 else 32641 XEPHYR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1` 32642 fi 32643 # Put the nasty error message in config.log where it belongs 32644 echo "$XEPHYR_PKG_ERRORS" >&5 32645 32646 as_fn_error $? "Package requirements ($XEPHYR_REQUIRED_LIBS) were not met: 32647 32648$XEPHYR_PKG_ERRORS 32649 32650Consider adjusting the PKG_CONFIG_PATH environment variable if you 32651installed software in a non-standard prefix. 32652 32653Alternatively, you may set the environment variables XEPHYR_CFLAGS 32654and XEPHYR_LIBS to avoid the need to call pkg-config. 32655See the pkg-config man page for more details." "$LINENO" 5 32656elif test $pkg_failed = untried; then 32657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32658printf "%s\n" "no" >&6; } 32659 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32660printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 32661as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 32662is in your PATH or set the PKG_CONFIG environment variable to the full 32663path to pkg-config. 32664 32665Alternatively, you may set the environment variables XEPHYR_CFLAGS 32666and XEPHYR_LIBS to avoid the need to call pkg-config. 32667See the pkg-config man page for more details. 32668 32669To get pkg-config, see <http://pkg-config.freedesktop.org/>. 32670See \`config.log' for more details" "$LINENO" 5; } 32671else 32672 XEPHYR_CFLAGS=$pkg_cv_XEPHYR_CFLAGS 32673 XEPHYR_LIBS=$pkg_cv_XEPHYR_LIBS 32674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32675printf "%s\n" "yes" >&6; } 32676 32677fi 32678 fi 32679 32680 # Xephyr needs nanosleep() which is in librt on Solaris 32681 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" 32682if test "x$ac_cv_func_nanosleep" = xyes 32683then : 32684 32685else $as_nop 32686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 32687printf %s "checking for nanosleep in -lrt... " >&6; } 32688if test ${ac_cv_lib_rt_nanosleep+y} 32689then : 32690 printf %s "(cached) " >&6 32691else $as_nop 32692 ac_check_lib_save_LIBS=$LIBS 32693LIBS="-lrt $LIBS" 32694cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32695/* end confdefs.h. */ 32696 32697/* Override any GCC internal prototype to avoid an error. 32698 Use char because int might match the return type of a GCC 32699 builtin and then its argument prototype would still apply. */ 32700char nanosleep (); 32701int 32702main (void) 32703{ 32704return nanosleep (); 32705 ; 32706 return 0; 32707} 32708_ACEOF 32709if ac_fn_c_try_link "$LINENO" 32710then : 32711 ac_cv_lib_rt_nanosleep=yes 32712else $as_nop 32713 ac_cv_lib_rt_nanosleep=no 32714fi 32715rm -f core conftest.err conftest.$ac_objext conftest.beam \ 32716 conftest$ac_exeext conftest.$ac_ext 32717LIBS=$ac_check_lib_save_LIBS 32718fi 32719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 32720printf "%s\n" "$ac_cv_lib_rt_nanosleep" >&6; } 32721if test "x$ac_cv_lib_rt_nanosleep" = xyes 32722then : 32723 XEPHYR_LIBS="$XEPHYR_LIBS -lrt" 32724fi 32725 32726fi 32727 32728 32729 # damage shadow extension glx (NOTYET) fb mi 32730 KDRIVE_INC='-I$(top_srcdir)/hw/kdrive/src' 32731 KDRIVE_PURE_INCS="$KDRIVE_INC $MIEXT_SYNC_INC $MIEXT_DAMAGE_INC $MIEXT_SHADOW_INC $XEXT_INC $FB_INC $MI_INC" 32732 KDRIVE_OS_INC='-I$(top_srcdir)/hw/kdrive/linux' 32733 KDRIVE_INCS="$KDRIVE_PURE_INCS $KDRIVE_OS_INC" 32734 32735 KDRIVE_CFLAGS="$XSERVER_CFLAGS" 32736 32737 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" 32738 KDRIVE_LIB='$(top_builddir)/hw/kdrive/src/libkdrive.la' 32739 KDRIVE_MAIN_LIB="$MAIN_LIB" 32740 KDRIVE_LOCAL_LIBS="$DIX_LIB $KDRIVE_LIB" 32741 KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $FB_LIB $MI_LIB $KDRIVE_PURE_LIBS" 32742 KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $KDRIVE_OS_LIB" 32743 KDRIVE_LIBS="$KDRIVE_LOCAL_LIBS $XSERVER_SYS_LIBS $GLX_SYS_LIBS $DLOPEN_LIBS" 32744 32745 32746 32747fi 32748 32749 32750 32751 32752 32753 32754 32755 if test "x$KDRIVE" = xyes && test "x$XEPHYR" = xyes; then 32756 XEPHYR_TRUE= 32757 XEPHYR_FALSE='#' 32758else 32759 XEPHYR_TRUE='#' 32760 XEPHYR_FALSE= 32761fi 32762 32763 32764 32765 32766cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32767/* end confdefs.h. */ 32768 32769#include <features.h> 32770#ifndef __GLIBC__ 32771#error not glibc 32772#endif 32773 32774int 32775main (void) 32776{ 32777 32778 ; 32779 return 0; 32780} 32781_ACEOF 32782if ac_fn_c_try_compile "$LINENO" 32783then : 32784 32785printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 32786 32787fi 32788rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 32789 32790 32791 prefix_NONE= 32792 exec_prefix_NONE= 32793 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 32794 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 32795 eval ac_define_dir="\"$prefix\"" 32796 eval ac_define_dir="\"$ac_define_dir\"" 32797 PROJECTROOT="$ac_define_dir" 32798 32799 32800printf "%s\n" "#define PROJECTROOT \"$ac_define_dir\"" >>confdefs.h 32801 32802 test "$prefix_NONE" && prefix=NONE 32803 test "$exec_prefix_NONE" && exec_prefix=NONE 32804 32805 32806 prefix_NONE= 32807 exec_prefix_NONE= 32808 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 32809 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 32810 eval ac_define_dir="\"$sysconfdir\"" 32811 eval ac_define_dir="\"$ac_define_dir\"" 32812 SYSCONFDIR="$ac_define_dir" 32813 32814 32815printf "%s\n" "#define SYSCONFDIR \"$ac_define_dir\"" >>confdefs.h 32816 32817 test "$prefix_NONE" && prefix=NONE 32818 test "$exec_prefix_NONE" && exec_prefix=NONE 32819 32820 32821 32822 32823DIX_CFLAGS="-DHAVE_DIX_CONFIG_H $XSERVER_CFLAGS" 32824 32825 32826 32827 32828 32829 32830 32831ac_config_commands="$ac_config_commands sdksyms" 32832 32833 32834if test "x$CONFIG_HAL" = xno && test "x$CONFIG_UDEV" = xno; then 32835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 32836 *********************************************** 32837 Neither HAL nor udev backend will be enabled. 32838 Input device hotplugging will not be available! 32839 ***********************************************" >&5 32840printf "%s\n" "$as_me: WARNING: 32841 *********************************************** 32842 Neither HAL nor udev backend will be enabled. 32843 Input device hotplugging will not be available! 32844 ***********************************************" >&2;} 32845fi 32846 32847ac_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" 32848 32849cat >confcache <<\_ACEOF 32850# This file is a shell script that caches the results of configure 32851# tests run on this system so they can be shared between configure 32852# scripts and configure runs, see configure's option --config-cache. 32853# It is not useful on other systems. If it contains results you don't 32854# want to keep, you may remove or edit it. 32855# 32856# config.status only pays attention to the cache file if you give it 32857# the --recheck option to rerun configure. 32858# 32859# `ac_cv_env_foo' variables (set or unset) will be overridden when 32860# loading this file, other *unset* `ac_cv_foo' will be assigned the 32861# following values. 32862 32863_ACEOF 32864 32865# The following way of writing the cache mishandles newlines in values, 32866# but we know of no workaround that is simple, portable, and efficient. 32867# So, we kill variables containing newlines. 32868# Ultrix sh set writes to stderr and can't be redirected directly, 32869# and sets the high bit in the cache file unless we assign to the vars. 32870( 32871 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 32872 eval ac_val=\$$ac_var 32873 case $ac_val in #( 32874 *${as_nl}*) 32875 case $ac_var in #( 32876 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 32877printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 32878 esac 32879 case $ac_var in #( 32880 _ | IFS | as_nl) ;; #( 32881 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 32882 *) { eval $ac_var=; unset $ac_var;} ;; 32883 esac ;; 32884 esac 32885 done 32886 32887 (set) 2>&1 | 32888 case $as_nl`(ac_space=' '; set) 2>&1` in #( 32889 *${as_nl}ac_space=\ *) 32890 # `set' does not quote correctly, so add quotes: double-quote 32891 # substitution turns \\\\ into \\, and sed turns \\ into \. 32892 sed -n \ 32893 "s/'/'\\\\''/g; 32894 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 32895 ;; #( 32896 *) 32897 # `set' quotes correctly as required by POSIX, so do not add quotes. 32898 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 32899 ;; 32900 esac | 32901 sort 32902) | 32903 sed ' 32904 /^ac_cv_env_/b end 32905 t clear 32906 :clear 32907 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 32908 t end 32909 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 32910 :end' >>confcache 32911if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 32912 if test -w "$cache_file"; then 32913 if test "x$cache_file" != "x/dev/null"; then 32914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 32915printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 32916 if test ! -f "$cache_file" || test -h "$cache_file"; then 32917 cat confcache >"$cache_file" 32918 else 32919 case $cache_file in #( 32920 */* | ?:*) 32921 mv -f confcache "$cache_file"$$ && 32922 mv -f "$cache_file"$$ "$cache_file" ;; #( 32923 *) 32924 mv -f confcache "$cache_file" ;; 32925 esac 32926 fi 32927 fi 32928 else 32929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 32930printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 32931 fi 32932fi 32933rm -f confcache 32934 32935test "x$prefix" = xNONE && prefix=$ac_default_prefix 32936# Let make expand exec_prefix. 32937test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 32938 32939DEFS=-DHAVE_CONFIG_H 32940 32941ac_libobjs= 32942ac_ltlibobjs= 32943U= 32944for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 32945 # 1. Remove the extension, and $U if already installed. 32946 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 32947 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 32948 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 32949 # will be set to the directory where LIBOBJS objects are built. 32950 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 32951 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 32952done 32953LIBOBJS=$ac_libobjs 32954 32955LTLIBOBJS=$ac_ltlibobjs 32956 32957 32958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 32959printf %s "checking that generated files are newer than configure... " >&6; } 32960 if test -n "$am_sleep_pid"; then 32961 # Hide warnings about reused PIDs. 32962 wait $am_sleep_pid 2>/dev/null 32963 fi 32964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 32965printf "%s\n" "done" >&6; } 32966 if test -n "$EXEEXT"; then 32967 am__EXEEXT_TRUE= 32968 am__EXEEXT_FALSE='#' 32969else 32970 am__EXEEXT_TRUE='#' 32971 am__EXEEXT_FALSE= 32972fi 32973 32974if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 32975 as_fn_error $? "conditional \"AMDEP\" was never defined. 32976Usually this means the macro was only invoked conditionally." "$LINENO" 5 32977fi 32978if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 32979 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 32980Usually this means the macro was only invoked conditionally." "$LINENO" 5 32981fi 32982if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then 32983 as_fn_error $? "conditional \"HAVE_DOT\" was never defined. 32984Usually this means the macro was only invoked conditionally." "$LINENO" 5 32985fi 32986if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then 32987 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined. 32988Usually this means the macro was only invoked conditionally." "$LINENO" 5 32989fi 32990if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 32991 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 32992Usually this means the macro was only invoked conditionally." "$LINENO" 5 32993fi 32994if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then 32995 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined. 32996Usually this means the macro was only invoked conditionally." "$LINENO" 5 32997fi 32998if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then 32999 as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined. 33000Usually this means the macro was only invoked conditionally." "$LINENO" 5 33001fi 33002if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 33003 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 33004Usually this means the macro was only invoked conditionally." "$LINENO" 5 33005fi 33006if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 33007 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 33008Usually this means the macro was only invoked conditionally." "$LINENO" 5 33009fi 33010if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 33011 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 33012Usually this means the macro was only invoked conditionally." "$LINENO" 5 33013fi 33014if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 33015 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 33016Usually this means the macro was only invoked conditionally." "$LINENO" 5 33017fi 33018if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then 33019 as_fn_error $? "conditional \"ENABLE_UNIT_TESTS\" was never defined. 33020Usually this means the macro was only invoked conditionally." "$LINENO" 5 33021fi 33022if test -z "${HAVE_LD_WRAP_TRUE}" && test -z "${HAVE_LD_WRAP_FALSE}"; then 33023 as_fn_error $? "conditional \"HAVE_LD_WRAP\" was never defined. 33024Usually this means the macro was only invoked conditionally." "$LINENO" 5 33025fi 33026if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then 33027 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. 33028Usually this means the macro was only invoked conditionally." "$LINENO" 5 33029fi 33030if test -z "${XSERVER_DTRACE_TRUE}" && test -z "${XSERVER_DTRACE_FALSE}"; then 33031 as_fn_error $? "conditional \"XSERVER_DTRACE\" was never defined. 33032Usually this means the macro was only invoked conditionally." "$LINENO" 5 33033fi 33034if test -z "${SPECIAL_DTRACE_OBJECTS_TRUE}" && test -z "${SPECIAL_DTRACE_OBJECTS_FALSE}"; then 33035 as_fn_error $? "conditional \"SPECIAL_DTRACE_OBJECTS\" was never defined. 33036Usually this means the macro was only invoked conditionally." "$LINENO" 5 33037fi 33038 33039if test -z "${POLL_TRUE}" && test -z "${POLL_FALSE}"; then 33040 as_fn_error $? "conditional \"POLL\" was never defined. 33041Usually this means the macro was only invoked conditionally." "$LINENO" 5 33042fi 33043if test -z "${AGP_TRUE}" && test -z "${AGP_FALSE}"; then 33044 as_fn_error $? "conditional \"AGP\" was never defined. 33045Usually this means the macro was only invoked conditionally." "$LINENO" 5 33046fi 33047if test -z "${FBDEVHW_TRUE}" && test -z "${FBDEVHW_FALSE}"; then 33048 as_fn_error $? "conditional \"FBDEVHW\" was never defined. 33049Usually this means the macro was only invoked conditionally." "$LINENO" 5 33050fi 33051if test -z "${FREEBSD_KLDLOAD_TRUE}" && test -z "${FREEBSD_KLDLOAD_FALSE}"; then 33052 as_fn_error $? "conditional \"FREEBSD_KLDLOAD\" was never defined. 33053Usually this means the macro was only invoked conditionally." "$LINENO" 5 33054fi 33055if test -z "${ALPHA_VIDEO_TRUE}" && test -z "${ALPHA_VIDEO_FALSE}"; then 33056 as_fn_error $? "conditional \"ALPHA_VIDEO\" was never defined. 33057Usually this means the macro was only invoked conditionally." "$LINENO" 5 33058fi 33059if test -z "${ARM_VIDEO_TRUE}" && test -z "${ARM_VIDEO_FALSE}"; then 33060 as_fn_error $? "conditional \"ARM_VIDEO\" was never defined. 33061Usually this means the macro was only invoked conditionally." "$LINENO" 5 33062fi 33063if test -z "${I386_VIDEO_TRUE}" && test -z "${I386_VIDEO_FALSE}"; then 33064 as_fn_error $? "conditional \"I386_VIDEO\" was never defined. 33065Usually this means the macro was only invoked conditionally." "$LINENO" 5 33066fi 33067if test -z "${PPC_VIDEO_TRUE}" && test -z "${PPC_VIDEO_FALSE}"; then 33068 as_fn_error $? "conditional \"PPC_VIDEO\" was never defined. 33069Usually this means the macro was only invoked conditionally." "$LINENO" 5 33070fi 33071if test -z "${SPARC64_VIDEO_TRUE}" && test -z "${SPARC64_VIDEO_FALSE}"; then 33072 as_fn_error $? "conditional \"SPARC64_VIDEO\" was never defined. 33073Usually this means the macro was only invoked conditionally." "$LINENO" 5 33074fi 33075if test -z "${INSTALL_SETUID_TRUE}" && test -z "${INSTALL_SETUID_FALSE}"; then 33076 as_fn_error $? "conditional \"INSTALL_SETUID\" was never defined. 33077Usually this means the macro was only invoked conditionally." "$LINENO" 5 33078fi 33079if test -z "${SECURE_RPC_TRUE}" && test -z "${SECURE_RPC_FALSE}"; then 33080 as_fn_error $? "conditional \"SECURE_RPC\" was never defined. 33081Usually this means the macro was only invoked conditionally." "$LINENO" 5 33082fi 33083if test -z "${INT10_VM86_TRUE}" && test -z "${INT10_VM86_FALSE}"; then 33084 as_fn_error $? "conditional \"INT10_VM86\" was never defined. 33085Usually this means the macro was only invoked conditionally." "$LINENO" 5 33086fi 33087if test -z "${INT10_X86EMU_TRUE}" && test -z "${INT10_X86EMU_FALSE}"; then 33088 as_fn_error $? "conditional \"INT10_X86EMU\" was never defined. 33089Usually this means the macro was only invoked conditionally." "$LINENO" 5 33090fi 33091if test -z "${INT10_STUB_TRUE}" && test -z "${INT10_STUB_FALSE}"; then 33092 as_fn_error $? "conditional \"INT10_STUB\" was never defined. 33093Usually this means the macro was only invoked conditionally." "$LINENO" 5 33094fi 33095if test -z "${HAVE_SYSTEMD_DAEMON_TRUE}" && test -z "${HAVE_SYSTEMD_DAEMON_FALSE}"; then 33096 as_fn_error $? "conditional \"HAVE_SYSTEMD_DAEMON\" was never defined. 33097Usually this means the macro was only invoked conditionally." "$LINENO" 5 33098fi 33099if test -z "${CONFIG_UDEV_TRUE}" && test -z "${CONFIG_UDEV_FALSE}"; then 33100 as_fn_error $? "conditional \"CONFIG_UDEV\" was never defined. 33101Usually this means the macro was only invoked conditionally." "$LINENO" 5 33102fi 33103if test -z "${CONFIG_UDEV_KMS_TRUE}" && test -z "${CONFIG_UDEV_KMS_FALSE}"; then 33104 as_fn_error $? "conditional \"CONFIG_UDEV_KMS\" was never defined. 33105Usually this means the macro was only invoked conditionally." "$LINENO" 5 33106fi 33107if test -z "${HAVE_DBUS_TRUE}" && test -z "${HAVE_DBUS_FALSE}"; then 33108 as_fn_error $? "conditional \"HAVE_DBUS\" was never defined. 33109Usually this means the macro was only invoked conditionally." "$LINENO" 5 33110fi 33111if test -z "${CONFIG_HAL_TRUE}" && test -z "${CONFIG_HAL_FALSE}"; then 33112 as_fn_error $? "conditional \"CONFIG_HAL\" was never defined. 33113Usually this means the macro was only invoked conditionally." "$LINENO" 5 33114fi 33115if test -z "${SYSTEMD_LOGIND_TRUE}" && test -z "${SYSTEMD_LOGIND_FALSE}"; then 33116 as_fn_error $? "conditional \"SYSTEMD_LOGIND\" was never defined. 33117Usually this means the macro was only invoked conditionally." "$LINENO" 5 33118fi 33119if test -z "${SUID_WRAPPER_TRUE}" && test -z "${SUID_WRAPPER_FALSE}"; then 33120 as_fn_error $? "conditional \"SUID_WRAPPER\" was never defined. 33121Usually this means the macro was only invoked conditionally." "$LINENO" 5 33122fi 33123if test -z "${NEED_DBUS_TRUE}" && test -z "${NEED_DBUS_FALSE}"; then 33124 as_fn_error $? "conditional \"NEED_DBUS\" was never defined. 33125Usually this means the macro was only invoked conditionally." "$LINENO" 5 33126fi 33127if test -z "${CONFIG_WSCONS_TRUE}" && test -z "${CONFIG_WSCONS_FALSE}"; then 33128 as_fn_error $? "conditional \"CONFIG_WSCONS\" was never defined. 33129Usually this means the macro was only invoked conditionally." "$LINENO" 5 33130fi 33131if test -z "${XV_TRUE}" && test -z "${XV_FALSE}"; then 33132 as_fn_error $? "conditional \"XV\" was never defined. 33133Usually this means the macro was only invoked conditionally." "$LINENO" 5 33134fi 33135if test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then 33136 as_fn_error $? "conditional \"XVMC\" was never defined. 33137Usually this means the macro was only invoked conditionally." "$LINENO" 5 33138fi 33139if test -z "${COMPOSITE_TRUE}" && test -z "${COMPOSITE_FALSE}"; then 33140 as_fn_error $? "conditional \"COMPOSITE\" was never defined. 33141Usually this means the macro was only invoked conditionally." "$LINENO" 5 33142fi 33143if test -z "${MITSHM_TRUE}" && test -z "${MITSHM_FALSE}"; then 33144 as_fn_error $? "conditional \"MITSHM\" was never defined. 33145Usually this means the macro was only invoked conditionally." "$LINENO" 5 33146fi 33147if test -z "${RECORD_TRUE}" && test -z "${RECORD_FALSE}"; then 33148 as_fn_error $? "conditional \"RECORD\" was never defined. 33149Usually this means the macro was only invoked conditionally." "$LINENO" 5 33150fi 33151if test -z "${SCREENSAVER_TRUE}" && test -z "${SCREENSAVER_FALSE}"; then 33152 as_fn_error $? "conditional \"SCREENSAVER\" was never defined. 33153Usually this means the macro was only invoked conditionally." "$LINENO" 5 33154fi 33155if test -z "${RES_TRUE}" && test -z "${RES_FALSE}"; then 33156 as_fn_error $? "conditional \"RES\" was never defined. 33157Usually this means the macro was only invoked conditionally." "$LINENO" 5 33158fi 33159if test -z "${CLIENTIDS_TRUE}" && test -z "${CLIENTIDS_FALSE}"; then 33160 as_fn_error $? "conditional \"CLIENTIDS\" was never defined. 33161Usually this means the macro was only invoked conditionally." "$LINENO" 5 33162fi 33163if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then 33164 as_fn_error $? "conditional \"DRI\" was never defined. 33165Usually this means the macro was only invoked conditionally." "$LINENO" 5 33166fi 33167if test -z "${DRI2_TRUE}" && test -z "${DRI2_FALSE}"; then 33168 as_fn_error $? "conditional \"DRI2\" was never defined. 33169Usually this means the macro was only invoked conditionally." "$LINENO" 5 33170fi 33171if test -z "${BUSFAULT_TRUE}" && test -z "${BUSFAULT_FALSE}"; then 33172 as_fn_error $? "conditional \"BUSFAULT\" was never defined. 33173Usually this means the macro was only invoked conditionally." "$LINENO" 5 33174fi 33175if test -z "${XSHMFENCE_TRUE}" && test -z "${XSHMFENCE_FALSE}"; then 33176 as_fn_error $? "conditional \"XSHMFENCE\" was never defined. 33177Usually this means the macro was only invoked conditionally." "$LINENO" 5 33178fi 33179if test -z "${DRI3_TRUE}" && test -z "${DRI3_FALSE}"; then 33180 as_fn_error $? "conditional \"DRI3\" was never defined. 33181Usually this means the macro was only invoked conditionally." "$LINENO" 5 33182fi 33183if test -z "${GLX_TRUE}" && test -z "${GLX_FALSE}"; then 33184 as_fn_error $? "conditional \"GLX\" was never defined. 33185Usually this means the macro was only invoked conditionally." "$LINENO" 5 33186fi 33187if test -z "${HASHTABLE_TRUE}" && test -z "${HASHTABLE_FALSE}"; then 33188 as_fn_error $? "conditional \"HASHTABLE\" was never defined. 33189Usually this means the macro was only invoked conditionally." "$LINENO" 5 33190fi 33191if test -z "${PRESENT_TRUE}" && test -z "${PRESENT_FALSE}"; then 33192 as_fn_error $? "conditional \"PRESENT\" was never defined. 33193Usually this means the macro was only invoked conditionally." "$LINENO" 5 33194fi 33195if test -z "${XINERAMA_TRUE}" && test -z "${XINERAMA_FALSE}"; then 33196 as_fn_error $? "conditional \"XINERAMA\" was never defined. 33197Usually this means the macro was only invoked conditionally." "$LINENO" 5 33198fi 33199if test -z "${XACE_TRUE}" && test -z "${XACE_FALSE}"; then 33200 as_fn_error $? "conditional \"XACE\" was never defined. 33201Usually this means the macro was only invoked conditionally." "$LINENO" 5 33202fi 33203if test -z "${XSELINUX_TRUE}" && test -z "${XSELINUX_FALSE}"; then 33204 as_fn_error $? "conditional \"XSELINUX\" was never defined. 33205Usually this means the macro was only invoked conditionally." "$LINENO" 5 33206fi 33207if test -z "${XCSECURITY_TRUE}" && test -z "${XCSECURITY_FALSE}"; then 33208 as_fn_error $? "conditional \"XCSECURITY\" was never defined. 33209Usually this means the macro was only invoked conditionally." "$LINENO" 5 33210fi 33211if test -z "${DBE_TRUE}" && test -z "${DBE_FALSE}"; then 33212 as_fn_error $? "conditional \"DBE\" was never defined. 33213Usually this means the macro was only invoked conditionally." "$LINENO" 5 33214fi 33215if test -z "${XF86BIGFONT_TRUE}" && test -z "${XF86BIGFONT_FALSE}"; then 33216 as_fn_error $? "conditional \"XF86BIGFONT\" was never defined. 33217Usually this means the macro was only invoked conditionally." "$LINENO" 5 33218fi 33219if test -z "${DPMSExtension_TRUE}" && test -z "${DPMSExtension_FALSE}"; then 33220 as_fn_error $? "conditional \"DPMSExtension\" was never defined. 33221Usually this means the macro was only invoked conditionally." "$LINENO" 5 33222fi 33223if test -z "${XF86UTILS_TRUE}" && test -z "${XF86UTILS_FALSE}"; then 33224 as_fn_error $? "conditional \"XF86UTILS\" was never defined. 33225Usually this means the macro was only invoked conditionally." "$LINENO" 5 33226fi 33227if test -z "${VGAHW_TRUE}" && test -z "${VGAHW_FALSE}"; then 33228 as_fn_error $? "conditional \"VGAHW\" was never defined. 33229Usually this means the macro was only invoked conditionally." "$LINENO" 5 33230fi 33231if test -z "${INT10MODULE_TRUE}" && test -z "${INT10MODULE_FALSE}"; then 33232 as_fn_error $? "conditional \"INT10MODULE\" was never defined. 33233Usually this means the macro was only invoked conditionally." "$LINENO" 5 33234fi 33235if test -z "${XDMCP_TRUE}" && test -z "${XDMCP_FALSE}"; then 33236 as_fn_error $? "conditional \"XDMCP\" was never defined. 33237Usually this means the macro was only invoked conditionally." "$LINENO" 5 33238fi 33239if test -z "${XDMAUTH_TRUE}" && test -z "${XDMAUTH_FALSE}"; then 33240 as_fn_error $? "conditional \"XDMAUTH\" was never defined. 33241Usually this means the macro was only invoked conditionally." "$LINENO" 5 33242fi 33243if test -z "${XF86VIDMODE_TRUE}" && test -z "${XF86VIDMODE_FALSE}"; then 33244 as_fn_error $? "conditional \"XF86VIDMODE\" was never defined. 33245Usually this means the macro was only invoked conditionally." "$LINENO" 5 33246fi 33247if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then 33248 as_fn_error $? "conditional \"DEBUG\" was never defined. 33249Usually this means the macro was only invoked conditionally." "$LINENO" 5 33250fi 33251if test -z "${HAVE_LIBUNWIND_TRUE}" && test -z "${HAVE_LIBUNWIND_FALSE}"; then 33252 as_fn_error $? "conditional \"HAVE_LIBUNWIND\" was never defined. 33253Usually this means the macro was only invoked conditionally." "$LINENO" 5 33254fi 33255if test -z "${CYGWIN_TRUE}" && test -z "${CYGWIN_FALSE}"; then 33256 as_fn_error $? "conditional \"CYGWIN\" was never defined. 33257Usually this means the macro was only invoked conditionally." "$LINENO" 5 33258fi 33259if test -z "${NO_UNDEFINED_TRUE}" && test -z "${NO_UNDEFINED_FALSE}"; then 33260 as_fn_error $? "conditional \"NO_UNDEFINED\" was never defined. 33261Usually this means the macro was only invoked conditionally." "$LINENO" 5 33262fi 33263if test -z "${XVFB_TRUE}" && test -z "${XVFB_FALSE}"; then 33264 as_fn_error $? "conditional \"XVFB\" was never defined. 33265Usually this means the macro was only invoked conditionally." "$LINENO" 5 33266fi 33267if test -z "${XNEST_TRUE}" && test -z "${XNEST_FALSE}"; then 33268 as_fn_error $? "conditional \"XNEST\" was never defined. 33269Usually this means the macro was only invoked conditionally." "$LINENO" 5 33270fi 33271if test -z "${XORG_TRUE}" && test -z "${XORG_FALSE}"; then 33272 as_fn_error $? "conditional \"XORG\" was never defined. 33273Usually this means the macro was only invoked conditionally." "$LINENO" 5 33274fi 33275if test -z "${XORG_BUS_PCI_TRUE}" && test -z "${XORG_BUS_PCI_FALSE}"; then 33276 as_fn_error $? "conditional \"XORG_BUS_PCI\" was never defined. 33277Usually this means the macro was only invoked conditionally." "$LINENO" 5 33278fi 33279if test -z "${XORG_BUS_BSDPCI_TRUE}" && test -z "${XORG_BUS_BSDPCI_FALSE}"; then 33280 as_fn_error $? "conditional \"XORG_BUS_BSDPCI\" was never defined. 33281Usually this means the macro was only invoked conditionally." "$LINENO" 5 33282fi 33283if test -z "${XORG_BUS_SPARC_TRUE}" && test -z "${XORG_BUS_SPARC_FALSE}"; then 33284 as_fn_error $? "conditional \"XORG_BUS_SPARC\" was never defined. 33285Usually this means the macro was only invoked conditionally." "$LINENO" 5 33286fi 33287if test -z "${LNXACPI_TRUE}" && test -z "${LNXACPI_FALSE}"; then 33288 as_fn_error $? "conditional \"LNXACPI\" was never defined. 33289Usually this means the macro was only invoked conditionally." "$LINENO" 5 33290fi 33291if test -z "${LNXAPM_TRUE}" && test -z "${LNXAPM_FALSE}"; then 33292 as_fn_error $? "conditional \"LNXAPM\" was never defined. 33293Usually this means the macro was only invoked conditionally." "$LINENO" 5 33294fi 33295if test -z "${SOLARIS_VT_TRUE}" && test -z "${SOLARIS_VT_FALSE}"; then 33296 as_fn_error $? "conditional \"SOLARIS_VT\" was never defined. 33297Usually this means the macro was only invoked conditionally." "$LINENO" 5 33298fi 33299if test -z "${DGA_TRUE}" && test -z "${DGA_FALSE}"; then 33300 as_fn_error $? "conditional \"DGA\" was never defined. 33301Usually this means the macro was only invoked conditionally." "$LINENO" 5 33302fi 33303if test -z "${XORG_BUS_PLATFORM_TRUE}" && test -z "${XORG_BUS_PLATFORM_FALSE}"; then 33304 as_fn_error $? "conditional \"XORG_BUS_PLATFORM\" was never defined. 33305Usually this means the macro was only invoked conditionally." "$LINENO" 5 33306fi 33307if test -z "${XORG_DRIVER_MODESETTING_TRUE}" && test -z "${XORG_DRIVER_MODESETTING_FALSE}"; then 33308 as_fn_error $? "conditional \"XORG_DRIVER_MODESETTING\" was never defined. 33309Usually this means the macro was only invoked conditionally." "$LINENO" 5 33310fi 33311if test -z "${XORG_DRIVER_INPUT_INPUTTEST_TRUE}" && test -z "${XORG_DRIVER_INPUT_INPUTTEST_FALSE}"; then 33312 as_fn_error $? "conditional \"XORG_DRIVER_INPUT_INPUTTEST\" was never defined. 33313Usually this means the macro was only invoked conditionally." "$LINENO" 5 33314fi 33315if test -z "${GLAMOR_TRUE}" && test -z "${GLAMOR_FALSE}"; then 33316 as_fn_error $? "conditional \"GLAMOR\" was never defined. 33317Usually this means the macro was only invoked conditionally." "$LINENO" 5 33318fi 33319if test -z "${GLAMOR_EGL_TRUE}" && test -z "${GLAMOR_EGL_FALSE}"; then 33320 as_fn_error $? "conditional \"GLAMOR_EGL\" was never defined. 33321Usually this means the macro was only invoked conditionally." "$LINENO" 5 33322fi 33323if test -z "${XWIN_TRUE}" && test -z "${XWIN_FALSE}"; then 33324 as_fn_error $? "conditional \"XWIN\" was never defined. 33325Usually this means the macro was only invoked conditionally." "$LINENO" 5 33326fi 33327if test -z "${XWIN_GLX_WINDOWS_TRUE}" && test -z "${XWIN_GLX_WINDOWS_FALSE}"; then 33328 as_fn_error $? "conditional \"XWIN_GLX_WINDOWS\" was never defined. 33329Usually this means the macro was only invoked conditionally." "$LINENO" 5 33330fi 33331if test -z "${XWIN_WINDOWS_DRI_TRUE}" && test -z "${XWIN_WINDOWS_DRI_FALSE}"; then 33332 as_fn_error $? "conditional \"XWIN_WINDOWS_DRI\" was never defined. 33333Usually this means the macro was only invoked conditionally." "$LINENO" 5 33334fi 33335if test -z "${PSEUDORAMIX_TRUE}" && test -z "${PSEUDORAMIX_FALSE}"; then 33336 as_fn_error $? "conditional \"PSEUDORAMIX\" was never defined. 33337Usually this means the macro was only invoked conditionally." "$LINENO" 5 33338fi 33339if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then 33340 as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined. 33341Usually this means the macro was only invoked conditionally." "$LINENO" 5 33342fi 33343if test -z "${XQUARTZ_TRUE}" && test -z "${XQUARTZ_FALSE}"; then 33344 as_fn_error $? "conditional \"XQUARTZ\" was never defined. 33345Usually this means the macro was only invoked conditionally." "$LINENO" 5 33346fi 33347if test -z "${XQUARTZ_SPARKLE_TRUE}" && test -z "${XQUARTZ_SPARKLE_FALSE}"; then 33348 as_fn_error $? "conditional \"XQUARTZ_SPARKLE\" was never defined. 33349Usually this means the macro was only invoked conditionally." "$LINENO" 5 33350fi 33351if test -z "${STANDALONE_XPBPROXY_TRUE}" && test -z "${STANDALONE_XPBPROXY_FALSE}"; then 33352 as_fn_error $? "conditional \"STANDALONE_XPBPROXY\" was never defined. 33353Usually this means the macro was only invoked conditionally." "$LINENO" 5 33354fi 33355if test -z "${KDRIVE_TRUE}" && test -z "${KDRIVE_FALSE}"; then 33356 as_fn_error $? "conditional \"KDRIVE\" was never defined. 33357Usually this means the macro was only invoked conditionally." "$LINENO" 5 33358fi 33359if test -z "${XEPHYR_TRUE}" && test -z "${XEPHYR_FALSE}"; then 33360 as_fn_error $? "conditional \"XEPHYR\" was never defined. 33361Usually this means the macro was only invoked conditionally." "$LINENO" 5 33362fi 33363 33364: "${CONFIG_STATUS=./config.status}" 33365ac_write_fail=0 33366ac_clean_files_save=$ac_clean_files 33367ac_clean_files="$ac_clean_files $CONFIG_STATUS" 33368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 33369printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 33370as_write_fail=0 33371cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 33372#! $SHELL 33373# Generated by $as_me. 33374# Run this file to recreate the current configuration. 33375# Compiler output produced by configure, useful for debugging 33376# configure, is in config.log if it exists. 33377 33378debug=false 33379ac_cs_recheck=false 33380ac_cs_silent=false 33381 33382SHELL=\${CONFIG_SHELL-$SHELL} 33383export SHELL 33384_ASEOF 33385cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 33386## -------------------- ## 33387## M4sh Initialization. ## 33388## -------------------- ## 33389 33390# Be more Bourne compatible 33391DUALCASE=1; export DUALCASE # for MKS sh 33392as_nop=: 33393if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 33394then : 33395 emulate sh 33396 NULLCMD=: 33397 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 33398 # is contrary to our usage. Disable this feature. 33399 alias -g '${1+"$@"}'='"$@"' 33400 setopt NO_GLOB_SUBST 33401else $as_nop 33402 case `(set -o) 2>/dev/null` in #( 33403 *posix*) : 33404 set -o posix ;; #( 33405 *) : 33406 ;; 33407esac 33408fi 33409 33410 33411 33412# Reset variables that may have inherited troublesome values from 33413# the environment. 33414 33415# IFS needs to be set, to space, tab, and newline, in precisely that order. 33416# (If _AS_PATH_WALK were called with IFS unset, it would have the 33417# side effect of setting IFS to empty, thus disabling word splitting.) 33418# Quoting is to prevent editors from complaining about space-tab. 33419as_nl=' 33420' 33421export as_nl 33422IFS=" "" $as_nl" 33423 33424PS1='$ ' 33425PS2='> ' 33426PS4='+ ' 33427 33428# Ensure predictable behavior from utilities with locale-dependent output. 33429LC_ALL=C 33430export LC_ALL 33431LANGUAGE=C 33432export LANGUAGE 33433 33434# We cannot yet rely on "unset" to work, but we need these variables 33435# to be unset--not just set to an empty or harmless value--now, to 33436# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 33437# also avoids known problems related to "unset" and subshell syntax 33438# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 33439for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 33440do eval test \${$as_var+y} \ 33441 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 33442done 33443 33444# Ensure that fds 0, 1, and 2 are open. 33445if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 33446if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 33447if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 33448 33449# The user is always right. 33450if ${PATH_SEPARATOR+false} :; then 33451 PATH_SEPARATOR=: 33452 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 33453 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 33454 PATH_SEPARATOR=';' 33455 } 33456fi 33457 33458 33459# Find who we are. Look in the path if we contain no directory separator. 33460as_myself= 33461case $0 in #(( 33462 *[\\/]* ) as_myself=$0 ;; 33463 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33464for as_dir in $PATH 33465do 33466 IFS=$as_save_IFS 33467 case $as_dir in #((( 33468 '') as_dir=./ ;; 33469 */) ;; 33470 *) as_dir=$as_dir/ ;; 33471 esac 33472 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 33473 done 33474IFS=$as_save_IFS 33475 33476 ;; 33477esac 33478# We did not find ourselves, most probably we were run as `sh COMMAND' 33479# in which case we are not to be found in the path. 33480if test "x$as_myself" = x; then 33481 as_myself=$0 33482fi 33483if test ! -f "$as_myself"; then 33484 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 33485 exit 1 33486fi 33487 33488 33489 33490# as_fn_error STATUS ERROR [LINENO LOG_FD] 33491# ---------------------------------------- 33492# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 33493# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 33494# script with STATUS, using 1 if that was 0. 33495as_fn_error () 33496{ 33497 as_status=$1; test $as_status -eq 0 && as_status=1 33498 if test "$4"; then 33499 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 33500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 33501 fi 33502 printf "%s\n" "$as_me: error: $2" >&2 33503 as_fn_exit $as_status 33504} # as_fn_error 33505 33506 33507 33508# as_fn_set_status STATUS 33509# ----------------------- 33510# Set $? to STATUS, without forking. 33511as_fn_set_status () 33512{ 33513 return $1 33514} # as_fn_set_status 33515 33516# as_fn_exit STATUS 33517# ----------------- 33518# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 33519as_fn_exit () 33520{ 33521 set +e 33522 as_fn_set_status $1 33523 exit $1 33524} # as_fn_exit 33525 33526# as_fn_unset VAR 33527# --------------- 33528# Portably unset VAR. 33529as_fn_unset () 33530{ 33531 { eval $1=; unset $1;} 33532} 33533as_unset=as_fn_unset 33534 33535# as_fn_append VAR VALUE 33536# ---------------------- 33537# Append the text in VALUE to the end of the definition contained in VAR. Take 33538# advantage of any shell optimizations that allow amortized linear growth over 33539# repeated appends, instead of the typical quadratic growth present in naive 33540# implementations. 33541if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 33542then : 33543 eval 'as_fn_append () 33544 { 33545 eval $1+=\$2 33546 }' 33547else $as_nop 33548 as_fn_append () 33549 { 33550 eval $1=\$$1\$2 33551 } 33552fi # as_fn_append 33553 33554# as_fn_arith ARG... 33555# ------------------ 33556# Perform arithmetic evaluation on the ARGs, and store the result in the 33557# global $as_val. Take advantage of shells that can avoid forks. The arguments 33558# must be portable across $(()) and expr. 33559if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 33560then : 33561 eval 'as_fn_arith () 33562 { 33563 as_val=$(( $* )) 33564 }' 33565else $as_nop 33566 as_fn_arith () 33567 { 33568 as_val=`expr "$@" || test $? -eq 1` 33569 } 33570fi # as_fn_arith 33571 33572 33573if expr a : '\(a\)' >/dev/null 2>&1 && 33574 test "X`expr 00001 : '.*\(...\)'`" = X001; then 33575 as_expr=expr 33576else 33577 as_expr=false 33578fi 33579 33580if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 33581 as_basename=basename 33582else 33583 as_basename=false 33584fi 33585 33586if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 33587 as_dirname=dirname 33588else 33589 as_dirname=false 33590fi 33591 33592as_me=`$as_basename -- "$0" || 33593$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 33594 X"$0" : 'X\(//\)$' \| \ 33595 X"$0" : 'X\(/\)' \| . 2>/dev/null || 33596printf "%s\n" X/"$0" | 33597 sed '/^.*\/\([^/][^/]*\)\/*$/{ 33598 s//\1/ 33599 q 33600 } 33601 /^X\/\(\/\/\)$/{ 33602 s//\1/ 33603 q 33604 } 33605 /^X\/\(\/\).*/{ 33606 s//\1/ 33607 q 33608 } 33609 s/.*/./; q'` 33610 33611# Avoid depending upon Character Ranges. 33612as_cr_letters='abcdefghijklmnopqrstuvwxyz' 33613as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 33614as_cr_Letters=$as_cr_letters$as_cr_LETTERS 33615as_cr_digits='0123456789' 33616as_cr_alnum=$as_cr_Letters$as_cr_digits 33617 33618 33619# Determine whether it's possible to make 'echo' print without a newline. 33620# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 33621# for compatibility with existing Makefiles. 33622ECHO_C= ECHO_N= ECHO_T= 33623case `echo -n x` in #((((( 33624-n*) 33625 case `echo 'xy\c'` in 33626 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 33627 xy) ECHO_C='\c';; 33628 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 33629 ECHO_T=' ';; 33630 esac;; 33631*) 33632 ECHO_N='-n';; 33633esac 33634 33635# For backward compatibility with old third-party macros, we provide 33636# the shell variables $as_echo and $as_echo_n. New code should use 33637# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 33638as_echo='printf %s\n' 33639as_echo_n='printf %s' 33640 33641rm -f conf$$ conf$$.exe conf$$.file 33642if test -d conf$$.dir; then 33643 rm -f conf$$.dir/conf$$.file 33644else 33645 rm -f conf$$.dir 33646 mkdir conf$$.dir 2>/dev/null 33647fi 33648if (echo >conf$$.file) 2>/dev/null; then 33649 if ln -s conf$$.file conf$$ 2>/dev/null; then 33650 as_ln_s='ln -s' 33651 # ... but there are two gotchas: 33652 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 33653 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 33654 # In both cases, we have to default to `cp -pR'. 33655 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 33656 as_ln_s='cp -pR' 33657 elif ln conf$$.file conf$$ 2>/dev/null; then 33658 as_ln_s=ln 33659 else 33660 as_ln_s='cp -pR' 33661 fi 33662else 33663 as_ln_s='cp -pR' 33664fi 33665rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 33666rmdir conf$$.dir 2>/dev/null 33667 33668 33669# as_fn_mkdir_p 33670# ------------- 33671# Create "$as_dir" as a directory, including parents if necessary. 33672as_fn_mkdir_p () 33673{ 33674 33675 case $as_dir in #( 33676 -*) as_dir=./$as_dir;; 33677 esac 33678 test -d "$as_dir" || eval $as_mkdir_p || { 33679 as_dirs= 33680 while :; do 33681 case $as_dir in #( 33682 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 33683 *) as_qdir=$as_dir;; 33684 esac 33685 as_dirs="'$as_qdir' $as_dirs" 33686 as_dir=`$as_dirname -- "$as_dir" || 33687$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 33688 X"$as_dir" : 'X\(//\)[^/]' \| \ 33689 X"$as_dir" : 'X\(//\)$' \| \ 33690 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 33691printf "%s\n" X"$as_dir" | 33692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 33693 s//\1/ 33694 q 33695 } 33696 /^X\(\/\/\)[^/].*/{ 33697 s//\1/ 33698 q 33699 } 33700 /^X\(\/\/\)$/{ 33701 s//\1/ 33702 q 33703 } 33704 /^X\(\/\).*/{ 33705 s//\1/ 33706 q 33707 } 33708 s/.*/./; q'` 33709 test -d "$as_dir" && break 33710 done 33711 test -z "$as_dirs" || eval "mkdir $as_dirs" 33712 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 33713 33714 33715} # as_fn_mkdir_p 33716if mkdir -p . 2>/dev/null; then 33717 as_mkdir_p='mkdir -p "$as_dir"' 33718else 33719 test -d ./-p && rmdir ./-p 33720 as_mkdir_p=false 33721fi 33722 33723 33724# as_fn_executable_p FILE 33725# ----------------------- 33726# Test if FILE is an executable regular file. 33727as_fn_executable_p () 33728{ 33729 test -f "$1" && test -x "$1" 33730} # as_fn_executable_p 33731as_test_x='test -x' 33732as_executable_p=as_fn_executable_p 33733 33734# Sed expression to map a string onto a valid CPP name. 33735as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 33736 33737# Sed expression to map a string onto a valid variable name. 33738as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 33739 33740 33741exec 6>&1 33742## ----------------------------------- ## 33743## Main body of $CONFIG_STATUS script. ## 33744## ----------------------------------- ## 33745_ASEOF 33746test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 33747 33748cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33749# Save the log message, to keep $0 and so on meaningful, and to 33750# report actual input values of CONFIG_FILES etc. instead of their 33751# values after options handling. 33752ac_log=" 33753This file was extended by xorg-server $as_me 21.1.6, which was 33754generated by GNU Autoconf 2.71. Invocation command line was 33755 33756 CONFIG_FILES = $CONFIG_FILES 33757 CONFIG_HEADERS = $CONFIG_HEADERS 33758 CONFIG_LINKS = $CONFIG_LINKS 33759 CONFIG_COMMANDS = $CONFIG_COMMANDS 33760 $ $0 $@ 33761 33762on `(hostname || uname -n) 2>/dev/null | sed 1q` 33763" 33764 33765_ACEOF 33766 33767case $ac_config_files in *" 33768"*) set x $ac_config_files; shift; ac_config_files=$*;; 33769esac 33770 33771case $ac_config_headers in *" 33772"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 33773esac 33774 33775 33776cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33777# Files that config.status was made for. 33778config_files="$ac_config_files" 33779config_headers="$ac_config_headers" 33780config_commands="$ac_config_commands" 33781 33782_ACEOF 33783 33784cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33785ac_cs_usage="\ 33786\`$as_me' instantiates files and other configuration actions 33787from templates according to the current configuration. Unless the files 33788and actions are specified as TAGs, all are instantiated by default. 33789 33790Usage: $0 [OPTION]... [TAG]... 33791 33792 -h, --help print this help, then exit 33793 -V, --version print version number and configuration settings, then exit 33794 --config print configuration, then exit 33795 -q, --quiet, --silent 33796 do not print progress messages 33797 -d, --debug don't remove temporary files 33798 --recheck update $as_me by reconfiguring in the same conditions 33799 --file=FILE[:TEMPLATE] 33800 instantiate the configuration file FILE 33801 --header=FILE[:TEMPLATE] 33802 instantiate the configuration header FILE 33803 33804Configuration files: 33805$config_files 33806 33807Configuration headers: 33808$config_headers 33809 33810Configuration commands: 33811$config_commands 33812 33813Report bugs to <https://gitlab.freedesktop.org/xorg/xserver/issues>." 33814 33815_ACEOF 33816ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 33817ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 33818cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33819ac_cs_config='$ac_cs_config_escaped' 33820ac_cs_version="\\ 33821xorg-server config.status 21.1.6 33822configured by $0, generated by GNU Autoconf 2.71, 33823 with options \\"\$ac_cs_config\\" 33824 33825Copyright (C) 2021 Free Software Foundation, Inc. 33826This config.status script is free software; the Free Software Foundation 33827gives unlimited permission to copy, distribute and modify it." 33828 33829ac_pwd='$ac_pwd' 33830srcdir='$srcdir' 33831INSTALL='$INSTALL' 33832MKDIR_P='$MKDIR_P' 33833AWK='$AWK' 33834test -n "\$AWK" || AWK=awk 33835_ACEOF 33836 33837cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33838# The default lists apply if the user does not specify any file. 33839ac_need_defaults=: 33840while test $# != 0 33841do 33842 case $1 in 33843 --*=?*) 33844 ac_option=`expr "X$1" : 'X\([^=]*\)='` 33845 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 33846 ac_shift=: 33847 ;; 33848 --*=) 33849 ac_option=`expr "X$1" : 'X\([^=]*\)='` 33850 ac_optarg= 33851 ac_shift=: 33852 ;; 33853 *) 33854 ac_option=$1 33855 ac_optarg=$2 33856 ac_shift=shift 33857 ;; 33858 esac 33859 33860 case $ac_option in 33861 # Handling of the options. 33862 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 33863 ac_cs_recheck=: ;; 33864 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 33865 printf "%s\n" "$ac_cs_version"; exit ;; 33866 --config | --confi | --conf | --con | --co | --c ) 33867 printf "%s\n" "$ac_cs_config"; exit ;; 33868 --debug | --debu | --deb | --de | --d | -d ) 33869 debug=: ;; 33870 --file | --fil | --fi | --f ) 33871 $ac_shift 33872 case $ac_optarg in 33873 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 33874 '') as_fn_error $? "missing file argument" ;; 33875 esac 33876 as_fn_append CONFIG_FILES " '$ac_optarg'" 33877 ac_need_defaults=false;; 33878 --header | --heade | --head | --hea ) 33879 $ac_shift 33880 case $ac_optarg in 33881 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 33882 esac 33883 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 33884 ac_need_defaults=false;; 33885 --he | --h) 33886 # Conflict between --help and --header 33887 as_fn_error $? "ambiguous option: \`$1' 33888Try \`$0 --help' for more information.";; 33889 --help | --hel | -h ) 33890 printf "%s\n" "$ac_cs_usage"; exit ;; 33891 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 33892 | -silent | --silent | --silen | --sile | --sil | --si | --s) 33893 ac_cs_silent=: ;; 33894 33895 # This is an error. 33896 -*) as_fn_error $? "unrecognized option: \`$1' 33897Try \`$0 --help' for more information." ;; 33898 33899 *) as_fn_append ac_config_targets " $1" 33900 ac_need_defaults=false ;; 33901 33902 esac 33903 shift 33904done 33905 33906ac_configure_extra_args= 33907 33908if $ac_cs_silent; then 33909 exec 6>/dev/null 33910 ac_configure_extra_args="$ac_configure_extra_args --silent" 33911fi 33912 33913_ACEOF 33914cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33915if \$ac_cs_recheck; then 33916 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 33917 shift 33918 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 33919 CONFIG_SHELL='$SHELL' 33920 export CONFIG_SHELL 33921 exec "\$@" 33922fi 33923 33924_ACEOF 33925cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33926exec 5>>config.log 33927{ 33928 echo 33929 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 33930## Running $as_me. ## 33931_ASBOX 33932 printf "%s\n" "$ac_log" 33933} >&5 33934 33935_ACEOF 33936cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33937# 33938# INIT-COMMANDS 33939# 33940AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 33941 33942 33943# The HP-UX ksh and POSIX shell print the target directory to stdout 33944# if CDPATH is set. 33945(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 33946 33947sed_quote_subst='$sed_quote_subst' 33948double_quote_subst='$double_quote_subst' 33949delay_variable_subst='$delay_variable_subst' 33950macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 33951macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 33952enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 33953AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 33954DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 33955OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 33956enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 33957pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 33958enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 33959shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 33960SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 33961ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 33962PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 33963host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 33964host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 33965host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 33966build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 33967build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 33968build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 33969SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 33970Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 33971GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 33972EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 33973FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 33974LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 33975NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 33976LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 33977max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 33978ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 33979exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 33980lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 33981lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 33982lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 33983lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 33984lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 33985reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 33986reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 33987FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 33988deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 33989file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 33990file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 33991want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 33992sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 33993AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 33994lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 33995AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 33996archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 33997STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 33998RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 33999old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 34000old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 34001old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 34002lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 34003CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 34004CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 34005compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 34006GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 34007lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 34008lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 34009lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 34010lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 34011lt_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"`' 34012lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 34013nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 34014lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 34015lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 34016objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 34017MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 34018lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 34019lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 34020lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 34021lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 34022lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 34023need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 34024MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 34025DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 34026NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 34027LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 34028OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 34029OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 34030libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 34031shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 34032extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 34033archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 34034enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 34035export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 34036whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 34037compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 34038old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 34039old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 34040archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 34041archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 34042module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 34043module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 34044with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 34045allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 34046no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 34047hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 34048hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 34049hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 34050hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 34051hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 34052hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 34053hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 34054inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 34055link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 34056always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 34057export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 34058exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 34059include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 34060prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 34061postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 34062file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 34063variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 34064need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 34065need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 34066version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 34067runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 34068shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 34069shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 34070libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 34071library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 34072soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 34073install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 34074postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 34075postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 34076finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 34077finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 34078hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 34079sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 34080configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 34081configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 34082hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 34083enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 34084enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 34085enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 34086old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 34087striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 34088 34089LTCC='$LTCC' 34090LTCFLAGS='$LTCFLAGS' 34091compiler='$compiler_DEFAULT' 34092 34093# A function that is used when there is no print builtin or printf. 34094func_fallback_echo () 34095{ 34096 eval 'cat <<_LTECHO_EOF 34097\$1 34098_LTECHO_EOF' 34099} 34100 34101# Quote evaled strings. 34102for var in AS \ 34103DLLTOOL \ 34104OBJDUMP \ 34105SHELL \ 34106ECHO \ 34107PATH_SEPARATOR \ 34108SED \ 34109GREP \ 34110EGREP \ 34111FGREP \ 34112LD \ 34113NM \ 34114LN_S \ 34115lt_SP2NL \ 34116lt_NL2SP \ 34117reload_flag \ 34118FILECMD \ 34119deplibs_check_method \ 34120file_magic_cmd \ 34121file_magic_glob \ 34122want_nocaseglob \ 34123sharedlib_from_linklib_cmd \ 34124AR \ 34125archiver_list_spec \ 34126STRIP \ 34127RANLIB \ 34128CC \ 34129CFLAGS \ 34130compiler \ 34131lt_cv_sys_global_symbol_pipe \ 34132lt_cv_sys_global_symbol_to_cdecl \ 34133lt_cv_sys_global_symbol_to_import \ 34134lt_cv_sys_global_symbol_to_c_name_address \ 34135lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 34136lt_cv_nm_interface \ 34137nm_file_list_spec \ 34138lt_cv_truncate_bin \ 34139lt_prog_compiler_no_builtin_flag \ 34140lt_prog_compiler_pic \ 34141lt_prog_compiler_wl \ 34142lt_prog_compiler_static \ 34143lt_cv_prog_compiler_c_o \ 34144need_locks \ 34145MANIFEST_TOOL \ 34146DSYMUTIL \ 34147NMEDIT \ 34148LIPO \ 34149OTOOL \ 34150OTOOL64 \ 34151shrext_cmds \ 34152export_dynamic_flag_spec \ 34153whole_archive_flag_spec \ 34154compiler_needs_object \ 34155with_gnu_ld \ 34156allow_undefined_flag \ 34157no_undefined_flag \ 34158hardcode_libdir_flag_spec \ 34159hardcode_libdir_separator \ 34160exclude_expsyms \ 34161include_expsyms \ 34162file_list_spec \ 34163variables_saved_for_relink \ 34164libname_spec \ 34165library_names_spec \ 34166soname_spec \ 34167install_override_mode \ 34168finish_eval \ 34169old_striplib \ 34170striplib; do 34171 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 34172 *[\\\\\\\`\\"\\\$]*) 34173 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 34174 ;; 34175 *) 34176 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 34177 ;; 34178 esac 34179done 34180 34181# Double-quote double-evaled strings. 34182for var in reload_cmds \ 34183old_postinstall_cmds \ 34184old_postuninstall_cmds \ 34185old_archive_cmds \ 34186extract_expsyms_cmds \ 34187old_archive_from_new_cmds \ 34188old_archive_from_expsyms_cmds \ 34189archive_cmds \ 34190archive_expsym_cmds \ 34191module_cmds \ 34192module_expsym_cmds \ 34193export_symbols_cmds \ 34194prelink_cmds \ 34195postlink_cmds \ 34196postinstall_cmds \ 34197postuninstall_cmds \ 34198finish_cmds \ 34199sys_lib_search_path_spec \ 34200configure_time_dlsearch_path \ 34201configure_time_lt_sys_library_path; do 34202 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 34203 *[\\\\\\\`\\"\\\$]*) 34204 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 34205 ;; 34206 *) 34207 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 34208 ;; 34209 esac 34210done 34211 34212ac_aux_dir='$ac_aux_dir' 34213 34214# See if we are running on zsh, and set the options that allow our 34215# commands through without removal of \ escapes INIT. 34216if test -n "\${ZSH_VERSION+set}"; then 34217 setopt NO_GLOB_SUBST 34218fi 34219 34220 34221 PACKAGE='$PACKAGE' 34222 VERSION='$VERSION' 34223 RM='$RM' 34224 ofile='$ofile' 34225 34226 34227 34228 34229_ACEOF 34230 34231cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34232 34233# Handling of arguments. 34234for ac_config_target in $ac_config_targets 34235do 34236 case $ac_config_target in 34237 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 34238 "include/do-not-use-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/do-not-use-config.h" ;; 34239 "include/xorg-server.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-server.h" ;; 34240 "include/dix-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/dix-config.h" ;; 34241 "include/xorg-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-config.h" ;; 34242 "include/xkb-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xkb-config.h" ;; 34243 "include/xwin-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xwin-config.h" ;; 34244 "include/version-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/version-config.h" ;; 34245 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 34246 "sdksyms") CONFIG_COMMANDS="$CONFIG_COMMANDS sdksyms" ;; 34247 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 34248 "glx/Makefile") CONFIG_FILES="$CONFIG_FILES glx/Makefile" ;; 34249 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 34250 "composite/Makefile") CONFIG_FILES="$CONFIG_FILES composite/Makefile" ;; 34251 "damageext/Makefile") CONFIG_FILES="$CONFIG_FILES damageext/Makefile" ;; 34252 "dbe/Makefile") CONFIG_FILES="$CONFIG_FILES dbe/Makefile" ;; 34253 "dix/Makefile") CONFIG_FILES="$CONFIG_FILES dix/Makefile" ;; 34254 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 34255 "doc/dtrace/Makefile") CONFIG_FILES="$CONFIG_FILES doc/dtrace/Makefile" ;; 34256 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 34257 "fb/Makefile") CONFIG_FILES="$CONFIG_FILES fb/Makefile" ;; 34258 "glamor/Makefile") CONFIG_FILES="$CONFIG_FILES glamor/Makefile" ;; 34259 "record/Makefile") CONFIG_FILES="$CONFIG_FILES record/Makefile" ;; 34260 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;; 34261 "mi/Makefile") CONFIG_FILES="$CONFIG_FILES mi/Makefile" ;; 34262 "miext/Makefile") CONFIG_FILES="$CONFIG_FILES miext/Makefile" ;; 34263 "miext/sync/Makefile") CONFIG_FILES="$CONFIG_FILES miext/sync/Makefile" ;; 34264 "miext/damage/Makefile") CONFIG_FILES="$CONFIG_FILES miext/damage/Makefile" ;; 34265 "miext/shadow/Makefile") CONFIG_FILES="$CONFIG_FILES miext/shadow/Makefile" ;; 34266 "miext/rootless/Makefile") CONFIG_FILES="$CONFIG_FILES miext/rootless/Makefile" ;; 34267 "os/Makefile") CONFIG_FILES="$CONFIG_FILES os/Makefile" ;; 34268 "pseudoramiX/Makefile") CONFIG_FILES="$CONFIG_FILES pseudoramiX/Makefile" ;; 34269 "randr/Makefile") CONFIG_FILES="$CONFIG_FILES randr/Makefile" ;; 34270 "render/Makefile") CONFIG_FILES="$CONFIG_FILES render/Makefile" ;; 34271 "xkb/Makefile") CONFIG_FILES="$CONFIG_FILES xkb/Makefile" ;; 34272 "Xext/Makefile") CONFIG_FILES="$CONFIG_FILES Xext/Makefile" ;; 34273 "Xi/Makefile") CONFIG_FILES="$CONFIG_FILES Xi/Makefile" ;; 34274 "xfixes/Makefile") CONFIG_FILES="$CONFIG_FILES xfixes/Makefile" ;; 34275 "exa/Makefile") CONFIG_FILES="$CONFIG_FILES exa/Makefile" ;; 34276 "dri3/Makefile") CONFIG_FILES="$CONFIG_FILES dri3/Makefile" ;; 34277 "present/Makefile") CONFIG_FILES="$CONFIG_FILES present/Makefile" ;; 34278 "hw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/Makefile" ;; 34279 "hw/xfree86/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/Makefile" ;; 34280 "hw/xfree86/Xorg.sh") CONFIG_FILES="$CONFIG_FILES hw/xfree86/Xorg.sh" ;; 34281 "hw/xfree86/common/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/common/Makefile" ;; 34282 "hw/xfree86/ddc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ddc/Makefile" ;; 34283 "hw/xfree86/dixmods/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dixmods/Makefile" ;; 34284 "hw/xfree86/doc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/doc/Makefile" ;; 34285 "hw/xfree86/dri/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri/Makefile" ;; 34286 "hw/xfree86/dri2/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri2/Makefile" ;; 34287 "hw/xfree86/dri2/pci_ids/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri2/pci_ids/Makefile" ;; 34288 "hw/xfree86/drivers/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/drivers/Makefile" ;; 34289 "hw/xfree86/drivers/inputtest/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/drivers/inputtest/Makefile" ;; 34290 "hw/xfree86/drivers/modesetting/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/drivers/modesetting/Makefile" ;; 34291 "hw/xfree86/exa/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/exa/Makefile" ;; 34292 "hw/xfree86/exa/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/exa/man/Makefile" ;; 34293 "hw/xfree86/fbdevhw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/fbdevhw/Makefile" ;; 34294 "hw/xfree86/fbdevhw/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/fbdevhw/man/Makefile" ;; 34295 "hw/xfree86/glamor_egl/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/glamor_egl/Makefile" ;; 34296 "hw/xfree86/i2c/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/i2c/Makefile" ;; 34297 "hw/xfree86/int10/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/int10/Makefile" ;; 34298 "hw/xfree86/loader/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/loader/Makefile" ;; 34299 "hw/xfree86/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/man/Makefile" ;; 34300 "hw/xfree86/modes/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/modes/Makefile" ;; 34301 "hw/xfree86/os-support/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/Makefile" ;; 34302 "hw/xfree86/os-support/bsd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bsd/Makefile" ;; 34303 "hw/xfree86/os-support/bus/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bus/Makefile" ;; 34304 "hw/xfree86/os-support/hurd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/hurd/Makefile" ;; 34305 "hw/xfree86/os-support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/misc/Makefile" ;; 34306 "hw/xfree86/os-support/linux/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/linux/Makefile" ;; 34307 "hw/xfree86/os-support/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/solaris/Makefile" ;; 34308 "hw/xfree86/os-support/stub/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/stub/Makefile" ;; 34309 "hw/xfree86/parser/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/parser/Makefile" ;; 34310 "hw/xfree86/ramdac/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ramdac/Makefile" ;; 34311 "hw/xfree86/shadowfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/shadowfb/Makefile" ;; 34312 "hw/xfree86/vgahw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/vgahw/Makefile" ;; 34313 "hw/xfree86/x86emu/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/x86emu/Makefile" ;; 34314 "hw/xfree86/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/xkb/Makefile" ;; 34315 "hw/xfree86/utils/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/Makefile" ;; 34316 "hw/xfree86/utils/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/man/Makefile" ;; 34317 "hw/xfree86/utils/gtf/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/gtf/Makefile" ;; 34318 "hw/vfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/vfb/Makefile" ;; 34319 "hw/vfb/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/vfb/man/Makefile" ;; 34320 "hw/xnest/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xnest/Makefile" ;; 34321 "hw/xnest/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xnest/man/Makefile" ;; 34322 "hw/xwin/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/Makefile" ;; 34323 "hw/xwin/dri/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/dri/Makefile" ;; 34324 "hw/xwin/glx/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/glx/Makefile" ;; 34325 "hw/xwin/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/man/Makefile" ;; 34326 "hw/xwin/winclipboard/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/winclipboard/Makefile" ;; 34327 "hw/xquartz/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/Makefile" ;; 34328 "hw/xquartz/GL/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/GL/Makefile" ;; 34329 "hw/xquartz/bundle/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/bundle/Makefile" ;; 34330 "hw/xquartz/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/man/Makefile" ;; 34331 "hw/xquartz/mach-startup/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/mach-startup/Makefile" ;; 34332 "hw/xquartz/pbproxy/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/pbproxy/Makefile" ;; 34333 "hw/xquartz/xpr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/xpr/Makefile" ;; 34334 "hw/kdrive/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/Makefile" ;; 34335 "hw/kdrive/ephyr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/ephyr/Makefile" ;; 34336 "hw/kdrive/ephyr/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/ephyr/man/Makefile" ;; 34337 "hw/kdrive/src/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/src/Makefile" ;; 34338 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 34339 "xserver.ent") CONFIG_FILES="$CONFIG_FILES xserver.ent" ;; 34340 "xorg-server.pc") CONFIG_FILES="$CONFIG_FILES xorg-server.pc" ;; 34341 34342 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 34343 esac 34344done 34345 34346 34347# If the user did not use the arguments to specify the items to instantiate, 34348# then the envvar interface is used. Set only those that are not. 34349# We use the long form for the default assignment because of an extremely 34350# bizarre bug on SunOS 4.1.3. 34351if $ac_need_defaults; then 34352 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 34353 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 34354 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 34355fi 34356 34357# Have a temporary directory for convenience. Make it in the build tree 34358# simply because there is no reason against having it here, and in addition, 34359# creating and moving files from /tmp can sometimes cause problems. 34360# Hook for its removal unless debugging. 34361# Note that there is a small window in which the directory will not be cleaned: 34362# after its creation but before its name has been assigned to `$tmp'. 34363$debug || 34364{ 34365 tmp= ac_tmp= 34366 trap 'exit_status=$? 34367 : "${ac_tmp:=$tmp}" 34368 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 34369' 0 34370 trap 'as_fn_exit 1' 1 2 13 15 34371} 34372# Create a (secure) tmp directory for tmp files. 34373 34374{ 34375 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 34376 test -d "$tmp" 34377} || 34378{ 34379 tmp=./conf$$-$RANDOM 34380 (umask 077 && mkdir "$tmp") 34381} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 34382ac_tmp=$tmp 34383 34384# Set up the scripts for CONFIG_FILES section. 34385# No need to generate them if there are no CONFIG_FILES. 34386# This happens for instance with `./config.status config.h'. 34387if test -n "$CONFIG_FILES"; then 34388 34389 34390ac_cr=`echo X | tr X '\015'` 34391# On cygwin, bash can eat \r inside `` if the user requested igncr. 34392# But we know of no other shell where ac_cr would be empty at this 34393# point, so we can use a bashism as a fallback. 34394if test "x$ac_cr" = x; then 34395 eval ac_cr=\$\'\\r\' 34396fi 34397ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 34398if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 34399 ac_cs_awk_cr='\\r' 34400else 34401 ac_cs_awk_cr=$ac_cr 34402fi 34403 34404echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 34405_ACEOF 34406 34407 34408{ 34409 echo "cat >conf$$subs.awk <<_ACEOF" && 34410 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 34411 echo "_ACEOF" 34412} >conf$$subs.sh || 34413 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 34414ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 34415ac_delim='%!_!# ' 34416for ac_last_try in false false false false false :; do 34417 . ./conf$$subs.sh || 34418 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 34419 34420 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 34421 if test $ac_delim_n = $ac_delim_num; then 34422 break 34423 elif $ac_last_try; then 34424 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 34425 else 34426 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 34427 fi 34428done 34429rm -f conf$$subs.sh 34430 34431cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34432cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 34433_ACEOF 34434sed -n ' 34435h 34436s/^/S["/; s/!.*/"]=/ 34437p 34438g 34439s/^[^!]*!// 34440:repl 34441t repl 34442s/'"$ac_delim"'$// 34443t delim 34444:nl 34445h 34446s/\(.\{148\}\)..*/\1/ 34447t more1 34448s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 34449p 34450n 34451b repl 34452:more1 34453s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 34454p 34455g 34456s/.\{148\}// 34457t nl 34458:delim 34459h 34460s/\(.\{148\}\)..*/\1/ 34461t more2 34462s/["\\]/\\&/g; s/^/"/; s/$/"/ 34463p 34464b 34465:more2 34466s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 34467p 34468g 34469s/.\{148\}// 34470t delim 34471' <conf$$subs.awk | sed ' 34472/^[^""]/{ 34473 N 34474 s/\n// 34475} 34476' >>$CONFIG_STATUS || ac_write_fail=1 34477rm -f conf$$subs.awk 34478cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34479_ACAWK 34480cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 34481 for (key in S) S_is_set[key] = 1 34482 FS = "" 34483 34484} 34485{ 34486 line = $ 0 34487 nfields = split(line, field, "@") 34488 substed = 0 34489 len = length(field[1]) 34490 for (i = 2; i < nfields; i++) { 34491 key = field[i] 34492 keylen = length(key) 34493 if (S_is_set[key]) { 34494 value = S[key] 34495 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 34496 len += length(value) + length(field[++i]) 34497 substed = 1 34498 } else 34499 len += 1 + keylen 34500 } 34501 34502 print line 34503} 34504 34505_ACAWK 34506_ACEOF 34507cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34508if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 34509 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 34510else 34511 cat 34512fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 34513 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 34514_ACEOF 34515 34516# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 34517# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 34518# trailing colons and then remove the whole line if VPATH becomes empty 34519# (actually we leave an empty line to preserve line numbers). 34520if test "x$srcdir" = x.; then 34521 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 34522h 34523s/// 34524s/^/:/ 34525s/[ ]*$/:/ 34526s/:\$(srcdir):/:/g 34527s/:\${srcdir}:/:/g 34528s/:@srcdir@:/:/g 34529s/^:*// 34530s/:*$// 34531x 34532s/\(=[ ]*\).*/\1/ 34533G 34534s/\n// 34535s/^[^=]*=[ ]*$// 34536}' 34537fi 34538 34539cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34540fi # test -n "$CONFIG_FILES" 34541 34542# Set up the scripts for CONFIG_HEADERS section. 34543# No need to generate them if there are no CONFIG_HEADERS. 34544# This happens for instance with `./config.status Makefile'. 34545if test -n "$CONFIG_HEADERS"; then 34546cat >"$ac_tmp/defines.awk" <<\_ACAWK || 34547BEGIN { 34548_ACEOF 34549 34550# Transform confdefs.h into an awk script `defines.awk', embedded as 34551# here-document in config.status, that substitutes the proper values into 34552# config.h.in to produce config.h. 34553 34554# Create a delimiter string that does not exist in confdefs.h, to ease 34555# handling of long lines. 34556ac_delim='%!_!# ' 34557for ac_last_try in false false :; do 34558 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 34559 if test -z "$ac_tt"; then 34560 break 34561 elif $ac_last_try; then 34562 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 34563 else 34564 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 34565 fi 34566done 34567 34568# For the awk script, D is an array of macro values keyed by name, 34569# likewise P contains macro parameters if any. Preserve backslash 34570# newline sequences. 34571 34572ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 34573sed -n ' 34574s/.\{148\}/&'"$ac_delim"'/g 34575t rset 34576:rset 34577s/^[ ]*#[ ]*define[ ][ ]*/ / 34578t def 34579d 34580:def 34581s/\\$// 34582t bsnl 34583s/["\\]/\\&/g 34584s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 34585D["\1"]=" \3"/p 34586s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 34587d 34588:bsnl 34589s/["\\]/\\&/g 34590s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 34591D["\1"]=" \3\\\\\\n"\\/p 34592t cont 34593s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 34594t cont 34595d 34596:cont 34597n 34598s/.\{148\}/&'"$ac_delim"'/g 34599t clear 34600:clear 34601s/\\$// 34602t bsnlc 34603s/["\\]/\\&/g; s/^/"/; s/$/"/p 34604d 34605:bsnlc 34606s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 34607b cont 34608' <confdefs.h | sed ' 34609s/'"$ac_delim"'/"\\\ 34610"/g' >>$CONFIG_STATUS || ac_write_fail=1 34611 34612cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34613 for (key in D) D_is_set[key] = 1 34614 FS = "" 34615} 34616/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 34617 line = \$ 0 34618 split(line, arg, " ") 34619 if (arg[1] == "#") { 34620 defundef = arg[2] 34621 mac1 = arg[3] 34622 } else { 34623 defundef = substr(arg[1], 2) 34624 mac1 = arg[2] 34625 } 34626 split(mac1, mac2, "(") #) 34627 macro = mac2[1] 34628 prefix = substr(line, 1, index(line, defundef) - 1) 34629 if (D_is_set[macro]) { 34630 # Preserve the white space surrounding the "#". 34631 print prefix "define", macro P[macro] D[macro] 34632 next 34633 } else { 34634 # Replace #undef with comments. This is necessary, for example, 34635 # in the case of _POSIX_SOURCE, which is predefined and required 34636 # on some systems where configure will not decide to define it. 34637 if (defundef == "undef") { 34638 print "/*", prefix defundef, macro, "*/" 34639 next 34640 } 34641 } 34642} 34643{ print } 34644_ACAWK 34645_ACEOF 34646cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34647 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 34648fi # test -n "$CONFIG_HEADERS" 34649 34650 34651eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 34652shift 34653for ac_tag 34654do 34655 case $ac_tag in 34656 :[FHLC]) ac_mode=$ac_tag; continue;; 34657 esac 34658 case $ac_mode$ac_tag in 34659 :[FHL]*:*);; 34660 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 34661 :[FH]-) ac_tag=-:-;; 34662 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 34663 esac 34664 ac_save_IFS=$IFS 34665 IFS=: 34666 set x $ac_tag 34667 IFS=$ac_save_IFS 34668 shift 34669 ac_file=$1 34670 shift 34671 34672 case $ac_mode in 34673 :L) ac_source=$1;; 34674 :[FH]) 34675 ac_file_inputs= 34676 for ac_f 34677 do 34678 case $ac_f in 34679 -) ac_f="$ac_tmp/stdin";; 34680 *) # Look for the file first in the build tree, then in the source tree 34681 # (if the path is not absolute). The absolute path cannot be DOS-style, 34682 # because $ac_f cannot contain `:'. 34683 test -f "$ac_f" || 34684 case $ac_f in 34685 [\\/$]*) false;; 34686 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 34687 esac || 34688 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 34689 esac 34690 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 34691 as_fn_append ac_file_inputs " '$ac_f'" 34692 done 34693 34694 # Let's still pretend it is `configure' which instantiates (i.e., don't 34695 # use $as_me), people would be surprised to read: 34696 # /* config.h. Generated by config.status. */ 34697 configure_input='Generated from '` 34698 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 34699 `' by configure.' 34700 if test x"$ac_file" != x-; then 34701 configure_input="$ac_file. $configure_input" 34702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 34703printf "%s\n" "$as_me: creating $ac_file" >&6;} 34704 fi 34705 # Neutralize special characters interpreted by sed in replacement strings. 34706 case $configure_input in #( 34707 *\&* | *\|* | *\\* ) 34708 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 34709 sed 's/[\\\\&|]/\\\\&/g'`;; #( 34710 *) ac_sed_conf_input=$configure_input;; 34711 esac 34712 34713 case $ac_tag in 34714 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 34715 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 34716 esac 34717 ;; 34718 esac 34719 34720 ac_dir=`$as_dirname -- "$ac_file" || 34721$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 34722 X"$ac_file" : 'X\(//\)[^/]' \| \ 34723 X"$ac_file" : 'X\(//\)$' \| \ 34724 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 34725printf "%s\n" X"$ac_file" | 34726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 34727 s//\1/ 34728 q 34729 } 34730 /^X\(\/\/\)[^/].*/{ 34731 s//\1/ 34732 q 34733 } 34734 /^X\(\/\/\)$/{ 34735 s//\1/ 34736 q 34737 } 34738 /^X\(\/\).*/{ 34739 s//\1/ 34740 q 34741 } 34742 s/.*/./; q'` 34743 as_dir="$ac_dir"; as_fn_mkdir_p 34744 ac_builddir=. 34745 34746case "$ac_dir" in 34747.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 34748*) 34749 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 34750 # A ".." for each directory in $ac_dir_suffix. 34751 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 34752 case $ac_top_builddir_sub in 34753 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 34754 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 34755 esac ;; 34756esac 34757ac_abs_top_builddir=$ac_pwd 34758ac_abs_builddir=$ac_pwd$ac_dir_suffix 34759# for backward compatibility: 34760ac_top_builddir=$ac_top_build_prefix 34761 34762case $srcdir in 34763 .) # We are building in place. 34764 ac_srcdir=. 34765 ac_top_srcdir=$ac_top_builddir_sub 34766 ac_abs_top_srcdir=$ac_pwd ;; 34767 [\\/]* | ?:[\\/]* ) # Absolute name. 34768 ac_srcdir=$srcdir$ac_dir_suffix; 34769 ac_top_srcdir=$srcdir 34770 ac_abs_top_srcdir=$srcdir ;; 34771 *) # Relative name. 34772 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 34773 ac_top_srcdir=$ac_top_build_prefix$srcdir 34774 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 34775esac 34776ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 34777 34778 34779 case $ac_mode in 34780 :F) 34781 # 34782 # CONFIG_FILE 34783 # 34784 34785 case $INSTALL in 34786 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 34787 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 34788 esac 34789 ac_MKDIR_P=$MKDIR_P 34790 case $MKDIR_P in 34791 [\\/$]* | ?:[\\/]* ) ;; 34792 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 34793 esac 34794_ACEOF 34795 34796cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34797# If the template does not know about datarootdir, expand it. 34798# FIXME: This hack should be removed a few years after 2.60. 34799ac_datarootdir_hack=; ac_datarootdir_seen= 34800ac_sed_dataroot=' 34801/datarootdir/ { 34802 p 34803 q 34804} 34805/@datadir@/p 34806/@docdir@/p 34807/@infodir@/p 34808/@localedir@/p 34809/@mandir@/p' 34810case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 34811*datarootdir*) ac_datarootdir_seen=yes;; 34812*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 34813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 34814printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 34815_ACEOF 34816cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34817 ac_datarootdir_hack=' 34818 s&@datadir@&$datadir&g 34819 s&@docdir@&$docdir&g 34820 s&@infodir@&$infodir&g 34821 s&@localedir@&$localedir&g 34822 s&@mandir@&$mandir&g 34823 s&\\\${datarootdir}&$datarootdir&g' ;; 34824esac 34825_ACEOF 34826 34827# Neutralize VPATH when `$srcdir' = `.'. 34828# Shell code in configure.ac might set extrasub. 34829# FIXME: do we really want to maintain this feature? 34830cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34831ac_sed_extra="$ac_vpsub 34832$extrasub 34833_ACEOF 34834cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34835:t 34836/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 34837s|@configure_input@|$ac_sed_conf_input|;t t 34838s&@top_builddir@&$ac_top_builddir_sub&;t t 34839s&@top_build_prefix@&$ac_top_build_prefix&;t t 34840s&@srcdir@&$ac_srcdir&;t t 34841s&@abs_srcdir@&$ac_abs_srcdir&;t t 34842s&@top_srcdir@&$ac_top_srcdir&;t t 34843s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 34844s&@builddir@&$ac_builddir&;t t 34845s&@abs_builddir@&$ac_abs_builddir&;t t 34846s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 34847s&@INSTALL@&$ac_INSTALL&;t t 34848s&@MKDIR_P@&$ac_MKDIR_P&;t t 34849$ac_datarootdir_hack 34850" 34851eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 34852 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 34853 34854test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 34855 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 34856 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 34857 "$ac_tmp/out"`; test -z "$ac_out"; } && 34858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 34859which seems to be undefined. Please make sure it is defined" >&5 34860printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 34861which seems to be undefined. Please make sure it is defined" >&2;} 34862 34863 rm -f "$ac_tmp/stdin" 34864 case $ac_file in 34865 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 34866 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 34867 esac \ 34868 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 34869 ;; 34870 :H) 34871 # 34872 # CONFIG_HEADER 34873 # 34874 if test x"$ac_file" != x-; then 34875 { 34876 printf "%s\n" "/* $configure_input */" >&1 \ 34877 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 34878 } >"$ac_tmp/config.h" \ 34879 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 34880 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 34881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 34882printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 34883 else 34884 rm -f "$ac_file" 34885 mv "$ac_tmp/config.h" "$ac_file" \ 34886 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 34887 fi 34888 else 34889 printf "%s\n" "/* $configure_input */" >&1 \ 34890 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 34891 || as_fn_error $? "could not create -" "$LINENO" 5 34892 fi 34893# Compute "$ac_file"'s index in $config_headers. 34894_am_arg="$ac_file" 34895_am_stamp_count=1 34896for _am_header in $config_headers :; do 34897 case $_am_header in 34898 $_am_arg | $_am_arg:* ) 34899 break ;; 34900 * ) 34901 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 34902 esac 34903done 34904echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 34905$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 34906 X"$_am_arg" : 'X\(//\)[^/]' \| \ 34907 X"$_am_arg" : 'X\(//\)$' \| \ 34908 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 34909printf "%s\n" X"$_am_arg" | 34910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 34911 s//\1/ 34912 q 34913 } 34914 /^X\(\/\/\)[^/].*/{ 34915 s//\1/ 34916 q 34917 } 34918 /^X\(\/\/\)$/{ 34919 s//\1/ 34920 q 34921 } 34922 /^X\(\/\).*/{ 34923 s//\1/ 34924 q 34925 } 34926 s/.*/./; q'`/stamp-h$_am_stamp_count 34927 ;; 34928 34929 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 34930printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 34931 ;; 34932 esac 34933 34934 34935 case $ac_file$ac_mode in 34936 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 34937 # Older Autoconf quotes --file arguments for eval, but not when files 34938 # are listed without --file. Let's play safe and only enable the eval 34939 # if we detect the quoting. 34940 # TODO: see whether this extra hack can be removed once we start 34941 # requiring Autoconf 2.70 or later. 34942 case $CONFIG_FILES in #( 34943 *\'*) : 34944 eval set x "$CONFIG_FILES" ;; #( 34945 *) : 34946 set x $CONFIG_FILES ;; #( 34947 *) : 34948 ;; 34949esac 34950 shift 34951 # Used to flag and report bootstrapping failures. 34952 am_rc=0 34953 for am_mf 34954 do 34955 # Strip MF so we end up with the name of the file. 34956 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 34957 # Check whether this is an Automake generated Makefile which includes 34958 # dependency-tracking related rules and includes. 34959 # Grep'ing the whole file directly is not great: AIX grep has a line 34960 # limit of 2048, but all sed's we know have understand at least 4000. 34961 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 34962 || continue 34963 am_dirpart=`$as_dirname -- "$am_mf" || 34964$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 34965 X"$am_mf" : 'X\(//\)[^/]' \| \ 34966 X"$am_mf" : 'X\(//\)$' \| \ 34967 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 34968printf "%s\n" X"$am_mf" | 34969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 34970 s//\1/ 34971 q 34972 } 34973 /^X\(\/\/\)[^/].*/{ 34974 s//\1/ 34975 q 34976 } 34977 /^X\(\/\/\)$/{ 34978 s//\1/ 34979 q 34980 } 34981 /^X\(\/\).*/{ 34982 s//\1/ 34983 q 34984 } 34985 s/.*/./; q'` 34986 am_filepart=`$as_basename -- "$am_mf" || 34987$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 34988 X"$am_mf" : 'X\(//\)$' \| \ 34989 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 34990printf "%s\n" X/"$am_mf" | 34991 sed '/^.*\/\([^/][^/]*\)\/*$/{ 34992 s//\1/ 34993 q 34994 } 34995 /^X\/\(\/\/\)$/{ 34996 s//\1/ 34997 q 34998 } 34999 /^X\/\(\/\).*/{ 35000 s//\1/ 35001 q 35002 } 35003 s/.*/./; q'` 35004 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 35005 && sed -e '/# am--include-marker/d' "$am_filepart" \ 35006 | $MAKE -f - am--depfiles" >&5 35007 (cd "$am_dirpart" \ 35008 && sed -e '/# am--include-marker/d' "$am_filepart" \ 35009 | $MAKE -f - am--depfiles) >&5 2>&5 35010 ac_status=$? 35011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35012 (exit $ac_status); } || am_rc=$? 35013 done 35014 if test $am_rc -ne 0; then 35015 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 35016printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 35017as_fn_error $? "Something went wrong bootstrapping makefile fragments 35018 for automatic dependency tracking. If GNU make was not used, consider 35019 re-running the configure script with MAKE=\"gmake\" (or whatever is 35020 necessary). You can also try re-running configure with the 35021 '--disable-dependency-tracking' option to at least be able to build 35022 the package (albeit without support for automatic dependency tracking). 35023See \`config.log' for more details" "$LINENO" 5; } 35024 fi 35025 { am_dirpart=; unset am_dirpart;} 35026 { am_filepart=; unset am_filepart;} 35027 { am_mf=; unset am_mf;} 35028 { am_rc=; unset am_rc;} 35029 rm -f conftest-deps.mk 35030} 35031 ;; 35032 "libtool":C) 35033 35034 # See if we are running on zsh, and set the options that allow our 35035 # commands through without removal of \ escapes. 35036 if test -n "${ZSH_VERSION+set}"; then 35037 setopt NO_GLOB_SUBST 35038 fi 35039 35040 cfgfile=${ofile}T 35041 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 35042 $RM "$cfgfile" 35043 35044 cat <<_LT_EOF >> "$cfgfile" 35045#! $SHELL 35046# Generated automatically by $as_me ($PACKAGE) $VERSION 35047# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 35048# NOTE: Changes made to this file will be lost: look at ltmain.sh. 35049 35050# Provide generalized library-building support services. 35051# Written by Gordon Matzigkeit, 1996 35052 35053# Copyright (C) 2014 Free Software Foundation, Inc. 35054# This is free software; see the source for copying conditions. There is NO 35055# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 35056 35057# GNU Libtool is free software; you can redistribute it and/or modify 35058# it under the terms of the GNU General Public License as published by 35059# the Free Software Foundation; either version 2 of of the License, or 35060# (at your option) any later version. 35061# 35062# As a special exception to the GNU General Public License, if you 35063# distribute this file as part of a program or library that is built 35064# using GNU Libtool, you may include this file under the same 35065# distribution terms that you use for the rest of that program. 35066# 35067# GNU Libtool is distributed in the hope that it will be useful, but 35068# WITHOUT ANY WARRANTY; without even the implied warranty of 35069# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 35070# GNU General Public License for more details. 35071# 35072# You should have received a copy of the GNU General Public License 35073# along with this program. If not, see <http://www.gnu.org/licenses/>. 35074 35075 35076# The names of the tagged configurations supported by this script. 35077available_tags='' 35078 35079# Configured defaults for sys_lib_dlsearch_path munging. 35080: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 35081 35082# ### BEGIN LIBTOOL CONFIG 35083 35084# Which release of libtool.m4 was used? 35085macro_version=$macro_version 35086macro_revision=$macro_revision 35087 35088# Whether or not to build static libraries. 35089build_old_libs=$enable_static 35090 35091# Assembler program. 35092AS=$lt_AS 35093 35094# DLL creation program. 35095DLLTOOL=$lt_DLLTOOL 35096 35097# Object dumper program. 35098OBJDUMP=$lt_OBJDUMP 35099 35100# Whether or not to build shared libraries. 35101build_libtool_libs=$enable_shared 35102 35103# What type of objects to build. 35104pic_mode=$pic_mode 35105 35106# Whether or not to optimize for fast installation. 35107fast_install=$enable_fast_install 35108 35109# Shared archive member basename,for filename based shared library versioning on AIX. 35110shared_archive_member_spec=$shared_archive_member_spec 35111 35112# Shell to use when invoking shell scripts. 35113SHELL=$lt_SHELL 35114 35115# An echo program that protects backslashes. 35116ECHO=$lt_ECHO 35117 35118# The PATH separator for the build system. 35119PATH_SEPARATOR=$lt_PATH_SEPARATOR 35120 35121# The host system. 35122host_alias=$host_alias 35123host=$host 35124host_os=$host_os 35125 35126# The build system. 35127build_alias=$build_alias 35128build=$build 35129build_os=$build_os 35130 35131# A sed program that does not truncate output. 35132SED=$lt_SED 35133 35134# Sed that helps us avoid accidentally triggering echo(1) options like -n. 35135Xsed="\$SED -e 1s/^X//" 35136 35137# A grep program that handles long lines. 35138GREP=$lt_GREP 35139 35140# An ERE matcher. 35141EGREP=$lt_EGREP 35142 35143# A literal string matcher. 35144FGREP=$lt_FGREP 35145 35146# A BSD- or MS-compatible name lister. 35147NM=$lt_NM 35148 35149# Whether we need soft or hard links. 35150LN_S=$lt_LN_S 35151 35152# What is the maximum length of a command? 35153max_cmd_len=$max_cmd_len 35154 35155# Object file suffix (normally "o"). 35156objext=$ac_objext 35157 35158# Executable file suffix (normally ""). 35159exeext=$exeext 35160 35161# whether the shell understands "unset". 35162lt_unset=$lt_unset 35163 35164# turn spaces into newlines. 35165SP2NL=$lt_lt_SP2NL 35166 35167# turn newlines into spaces. 35168NL2SP=$lt_lt_NL2SP 35169 35170# convert \$build file names to \$host format. 35171to_host_file_cmd=$lt_cv_to_host_file_cmd 35172 35173# convert \$build files to toolchain format. 35174to_tool_file_cmd=$lt_cv_to_tool_file_cmd 35175 35176# A file(cmd) program that detects file types. 35177FILECMD=$lt_FILECMD 35178 35179# Method to check whether dependent libraries are shared objects. 35180deplibs_check_method=$lt_deplibs_check_method 35181 35182# Command to use when deplibs_check_method = "file_magic". 35183file_magic_cmd=$lt_file_magic_cmd 35184 35185# How to find potential files when deplibs_check_method = "file_magic". 35186file_magic_glob=$lt_file_magic_glob 35187 35188# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 35189want_nocaseglob=$lt_want_nocaseglob 35190 35191# Command to associate shared and link libraries. 35192sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 35193 35194# The archiver. 35195AR=$lt_AR 35196 35197# Flags to create an archive (by configure). 35198lt_ar_flags=$lt_ar_flags 35199 35200# Flags to create an archive. 35201AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 35202 35203# How to feed a file listing to the archiver. 35204archiver_list_spec=$lt_archiver_list_spec 35205 35206# A symbol stripping program. 35207STRIP=$lt_STRIP 35208 35209# Commands used to install an old-style archive. 35210RANLIB=$lt_RANLIB 35211old_postinstall_cmds=$lt_old_postinstall_cmds 35212old_postuninstall_cmds=$lt_old_postuninstall_cmds 35213 35214# Whether to use a lock for old archive extraction. 35215lock_old_archive_extraction=$lock_old_archive_extraction 35216 35217# A C compiler. 35218LTCC=$lt_CC 35219 35220# LTCC compiler flags. 35221LTCFLAGS=$lt_CFLAGS 35222 35223# Take the output of nm and produce a listing of raw symbols and C names. 35224global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 35225 35226# Transform the output of nm in a proper C declaration. 35227global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 35228 35229# Transform the output of nm into a list of symbols to manually relocate. 35230global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 35231 35232# Transform the output of nm in a C name address pair. 35233global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 35234 35235# Transform the output of nm in a C name address pair when lib prefix is needed. 35236global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 35237 35238# The name lister interface. 35239nm_interface=$lt_lt_cv_nm_interface 35240 35241# Specify filename containing input files for \$NM. 35242nm_file_list_spec=$lt_nm_file_list_spec 35243 35244# The root where to search for dependent libraries,and where our libraries should be installed. 35245lt_sysroot=$lt_sysroot 35246 35247# Command to truncate a binary pipe. 35248lt_truncate_bin=$lt_lt_cv_truncate_bin 35249 35250# The name of the directory that contains temporary libtool files. 35251objdir=$objdir 35252 35253# Used to examine libraries when file_magic_cmd begins with "file". 35254MAGIC_CMD=$MAGIC_CMD 35255 35256# Must we lock files when doing compilation? 35257need_locks=$lt_need_locks 35258 35259# Manifest tool. 35260MANIFEST_TOOL=$lt_MANIFEST_TOOL 35261 35262# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 35263DSYMUTIL=$lt_DSYMUTIL 35264 35265# Tool to change global to local symbols on Mac OS X. 35266NMEDIT=$lt_NMEDIT 35267 35268# Tool to manipulate fat objects and archives on Mac OS X. 35269LIPO=$lt_LIPO 35270 35271# ldd/readelf like tool for Mach-O binaries on Mac OS X. 35272OTOOL=$lt_OTOOL 35273 35274# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 35275OTOOL64=$lt_OTOOL64 35276 35277# Old archive suffix (normally "a"). 35278libext=$libext 35279 35280# Shared library suffix (normally ".so"). 35281shrext_cmds=$lt_shrext_cmds 35282 35283# The commands to extract the exported symbol list from a shared archive. 35284extract_expsyms_cmds=$lt_extract_expsyms_cmds 35285 35286# Variables whose values should be saved in libtool wrapper scripts and 35287# restored at link time. 35288variables_saved_for_relink=$lt_variables_saved_for_relink 35289 35290# Do we need the "lib" prefix for modules? 35291need_lib_prefix=$need_lib_prefix 35292 35293# Do we need a version for libraries? 35294need_version=$need_version 35295 35296# Library versioning type. 35297version_type=$version_type 35298 35299# Shared library runtime path variable. 35300runpath_var=$runpath_var 35301 35302# Shared library path variable. 35303shlibpath_var=$shlibpath_var 35304 35305# Is shlibpath searched before the hard-coded library search path? 35306shlibpath_overrides_runpath=$shlibpath_overrides_runpath 35307 35308# Format of library name prefix. 35309libname_spec=$lt_libname_spec 35310 35311# List of archive names. First name is the real one, the rest are links. 35312# The last name is the one that the linker finds with -lNAME 35313library_names_spec=$lt_library_names_spec 35314 35315# The coded name of the library, if different from the real name. 35316soname_spec=$lt_soname_spec 35317 35318# Permission mode override for installation of shared libraries. 35319install_override_mode=$lt_install_override_mode 35320 35321# Command to use after installation of a shared archive. 35322postinstall_cmds=$lt_postinstall_cmds 35323 35324# Command to use after uninstallation of a shared archive. 35325postuninstall_cmds=$lt_postuninstall_cmds 35326 35327# Commands used to finish a libtool library installation in a directory. 35328finish_cmds=$lt_finish_cmds 35329 35330# As "finish_cmds", except a single script fragment to be evaled but 35331# not shown. 35332finish_eval=$lt_finish_eval 35333 35334# Whether we should hardcode library paths into libraries. 35335hardcode_into_libs=$hardcode_into_libs 35336 35337# Compile-time system search path for libraries. 35338sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 35339 35340# Detected run-time system search path for libraries. 35341sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 35342 35343# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 35344configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 35345 35346# Whether dlopen is supported. 35347dlopen_support=$enable_dlopen 35348 35349# Whether dlopen of programs is supported. 35350dlopen_self=$enable_dlopen_self 35351 35352# Whether dlopen of statically linked programs is supported. 35353dlopen_self_static=$enable_dlopen_self_static 35354 35355# Commands to strip libraries. 35356old_striplib=$lt_old_striplib 35357striplib=$lt_striplib 35358 35359 35360# The linker used to build libraries. 35361LD=$lt_LD 35362 35363# How to create reloadable object files. 35364reload_flag=$lt_reload_flag 35365reload_cmds=$lt_reload_cmds 35366 35367# Commands used to build an old-style archive. 35368old_archive_cmds=$lt_old_archive_cmds 35369 35370# A language specific compiler. 35371CC=$lt_compiler 35372 35373# Is the compiler the GNU compiler? 35374with_gcc=$GCC 35375 35376# Compiler flag to turn off builtin functions. 35377no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 35378 35379# Additional compiler flags for building library objects. 35380pic_flag=$lt_lt_prog_compiler_pic 35381 35382# How to pass a linker flag through the compiler. 35383wl=$lt_lt_prog_compiler_wl 35384 35385# Compiler flag to prevent dynamic linking. 35386link_static_flag=$lt_lt_prog_compiler_static 35387 35388# Does compiler simultaneously support -c and -o options? 35389compiler_c_o=$lt_lt_cv_prog_compiler_c_o 35390 35391# Whether or not to add -lc for building shared libraries. 35392build_libtool_need_lc=$archive_cmds_need_lc 35393 35394# Whether or not to disallow shared libs when runtime libs are static. 35395allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 35396 35397# Compiler flag to allow reflexive dlopens. 35398export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 35399 35400# Compiler flag to generate shared objects directly from archives. 35401whole_archive_flag_spec=$lt_whole_archive_flag_spec 35402 35403# Whether the compiler copes with passing no objects directly. 35404compiler_needs_object=$lt_compiler_needs_object 35405 35406# Create an old-style archive from a shared archive. 35407old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 35408 35409# Create a temporary old-style archive to link instead of a shared archive. 35410old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 35411 35412# Commands used to build a shared archive. 35413archive_cmds=$lt_archive_cmds 35414archive_expsym_cmds=$lt_archive_expsym_cmds 35415 35416# Commands used to build a loadable module if different from building 35417# a shared archive. 35418module_cmds=$lt_module_cmds 35419module_expsym_cmds=$lt_module_expsym_cmds 35420 35421# Whether we are building with GNU ld or not. 35422with_gnu_ld=$lt_with_gnu_ld 35423 35424# Flag that allows shared libraries with undefined symbols to be built. 35425allow_undefined_flag=$lt_allow_undefined_flag 35426 35427# Flag that enforces no undefined symbols. 35428no_undefined_flag=$lt_no_undefined_flag 35429 35430# Flag to hardcode \$libdir into a binary during linking. 35431# This must work even if \$libdir does not exist 35432hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 35433 35434# Whether we need a single "-rpath" flag with a separated argument. 35435hardcode_libdir_separator=$lt_hardcode_libdir_separator 35436 35437# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 35438# DIR into the resulting binary. 35439hardcode_direct=$hardcode_direct 35440 35441# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 35442# DIR into the resulting binary and the resulting library dependency is 35443# "absolute",i.e impossible to change by setting \$shlibpath_var if the 35444# library is relocated. 35445hardcode_direct_absolute=$hardcode_direct_absolute 35446 35447# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 35448# into the resulting binary. 35449hardcode_minus_L=$hardcode_minus_L 35450 35451# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 35452# into the resulting binary. 35453hardcode_shlibpath_var=$hardcode_shlibpath_var 35454 35455# Set to "yes" if building a shared library automatically hardcodes DIR 35456# into the library and all subsequent libraries and executables linked 35457# against it. 35458hardcode_automatic=$hardcode_automatic 35459 35460# Set to yes if linker adds runtime paths of dependent libraries 35461# to runtime path list. 35462inherit_rpath=$inherit_rpath 35463 35464# Whether libtool must link a program against all its dependency libraries. 35465link_all_deplibs=$link_all_deplibs 35466 35467# Set to "yes" if exported symbols are required. 35468always_export_symbols=$always_export_symbols 35469 35470# The commands to list exported symbols. 35471export_symbols_cmds=$lt_export_symbols_cmds 35472 35473# Symbols that should not be listed in the preloaded symbols. 35474exclude_expsyms=$lt_exclude_expsyms 35475 35476# Symbols that must always be exported. 35477include_expsyms=$lt_include_expsyms 35478 35479# Commands necessary for linking programs (against libraries) with templates. 35480prelink_cmds=$lt_prelink_cmds 35481 35482# Commands necessary for finishing linking programs. 35483postlink_cmds=$lt_postlink_cmds 35484 35485# Specify filename containing input files. 35486file_list_spec=$lt_file_list_spec 35487 35488# How to hardcode a shared library path into an executable. 35489hardcode_action=$hardcode_action 35490 35491# ### END LIBTOOL CONFIG 35492 35493_LT_EOF 35494 35495 cat <<'_LT_EOF' >> "$cfgfile" 35496 35497# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 35498 35499# func_munge_path_list VARIABLE PATH 35500# ----------------------------------- 35501# VARIABLE is name of variable containing _space_ separated list of 35502# directories to be munged by the contents of PATH, which is string 35503# having a format: 35504# "DIR[:DIR]:" 35505# string "DIR[ DIR]" will be prepended to VARIABLE 35506# ":DIR[:DIR]" 35507# string "DIR[ DIR]" will be appended to VARIABLE 35508# "DIRP[:DIRP]::[DIRA:]DIRA" 35509# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 35510# "DIRA[ DIRA]" will be appended to VARIABLE 35511# "DIR[:DIR]" 35512# VARIABLE will be replaced by "DIR[ DIR]" 35513func_munge_path_list () 35514{ 35515 case x$2 in 35516 x) 35517 ;; 35518 *:) 35519 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 35520 ;; 35521 x:*) 35522 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 35523 ;; 35524 *::*) 35525 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 35526 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 35527 ;; 35528 *) 35529 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 35530 ;; 35531 esac 35532} 35533 35534 35535# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 35536func_cc_basename () 35537{ 35538 for cc_temp in $*""; do 35539 case $cc_temp in 35540 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 35541 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 35542 \-*) ;; 35543 *) break;; 35544 esac 35545 done 35546 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 35547} 35548 35549 35550# ### END FUNCTIONS SHARED WITH CONFIGURE 35551 35552_LT_EOF 35553 35554 case $host_os in 35555 aix3*) 35556 cat <<\_LT_EOF >> "$cfgfile" 35557# AIX sometimes has problems with the GCC collect2 program. For some 35558# reason, if we set the COLLECT_NAMES environment variable, the problems 35559# vanish in a puff of smoke. 35560if test set != "${COLLECT_NAMES+set}"; then 35561 COLLECT_NAMES= 35562 export COLLECT_NAMES 35563fi 35564_LT_EOF 35565 ;; 35566 esac 35567 35568 35569 35570ltmain=$ac_aux_dir/ltmain.sh 35571 35572 35573 # We use sed instead of cat because bash on DJGPP gets confused if 35574 # if finds mixed CR/LF and LF-only lines. Since sed operates in 35575 # text mode, it properly converts lines to CR/LF. This bash problem 35576 # is reportedly fixed, but why not run on old versions too? 35577 $SED '$q' "$ltmain" >> "$cfgfile" \ 35578 || (rm -f "$cfgfile"; exit 1) 35579 35580 mv -f "$cfgfile" "$ofile" || 35581 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 35582 chmod +x "$ofile" 35583 35584 ;; 35585 "sdksyms":C) touch hw/xfree86/sdksyms.dep ;; 35586 35587 esac 35588done # for ac_tag 35589 35590 35591as_fn_exit 0 35592_ACEOF 35593ac_clean_files=$ac_clean_files_save 35594 35595test $ac_write_fail = 0 || 35596 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 35597 35598 35599# configure is writing to config.log, and then calls config.status. 35600# config.status does its own redirection, appending to config.log. 35601# Unfortunately, on DOS this fails, as config.log is still kept open 35602# by configure, so config.status won't be able to write to it; its 35603# output is simply discarded. So we exec the FD to /dev/null, 35604# effectively closing config.log, so it can be properly (re)opened and 35605# appended to by config.status. When coming back to configure, we 35606# need to make the FD available again. 35607if test "$no_create" != yes; then 35608 ac_cs_success=: 35609 ac_config_status_args= 35610 test "$silent" = yes && 35611 ac_config_status_args="$ac_config_status_args --quiet" 35612 exec 5>/dev/null 35613 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 35614 exec 5>>config.log 35615 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 35616 # would make configure fail if this is the last instruction. 35617 $ac_cs_success || as_fn_exit 1 35618fi 35619if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 35620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 35621printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 35622fi 35623 35624 35625