configure revision 806e81e9
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xorg-server 1.20.10. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/xserver/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 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'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: https://gitlab.freedesktop.org/xorg/xserver/issues 279$0: about your system, including any error possibly output 280$0: before this message. Then install a modern shell, or 281$0: manually run the script under such a shell if you do 282$0: have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568as_awk_strverscmp=' 569 # Use only awk features that work with 7th edition Unix awk (1978). 570 # My, what an old awk you have, Mr. Solaris! 571 END { 572 while (length(v1) && length(v2)) { 573 # Set d1 to be the next thing to compare from v1, and likewise for d2. 574 # Normally this is a single character, but if v1 and v2 contain digits, 575 # compare them as integers and fractions as strverscmp does. 576 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 577 # Split v1 and v2 into their leading digit string components d1 and d2, 578 # and advance v1 and v2 past the leading digit strings. 579 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 580 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 581 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 582 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 583 if (d1 ~ /^0/) { 584 if (d2 ~ /^0/) { 585 # Compare two fractions. 586 while (d1 ~ /^0/ && d2 ~ /^0/) { 587 d1 = substr(d1, 2); len1-- 588 d2 = substr(d2, 2); len2-- 589 } 590 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 591 # The two components differ in length, and the common prefix 592 # contains only leading zeros. Consider the longer to be less. 593 d1 = -len1 594 d2 = -len2 595 } else { 596 # Otherwise, compare as strings. 597 d1 = "x" d1 598 d2 = "x" d2 599 } 600 } else { 601 # A fraction is less than an integer. 602 exit 1 603 } 604 } else { 605 if (d2 ~ /^0/) { 606 # An integer is greater than a fraction. 607 exit 2 608 } else { 609 # Compare two integers. 610 d1 += 0 611 d2 += 0 612 } 613 } 614 } else { 615 # The normal case, without worrying about digits. 616 d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 617 d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 618 } 619 if (d1 < d2) exit 1 620 if (d1 > d2) exit 2 621 } 622 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 623 # which mishandles some comparisons of empty strings to integers. 624 if (length(v2)) exit 1 625 if (length(v1)) exit 2 626 } 627' 628SHELL=${CONFIG_SHELL-/bin/sh} 629 630 631test -n "$DJDIR" || exec 7<&0 </dev/null 632exec 6>&1 633 634# Name of the host. 635# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 636# so uname gets run too. 637ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 638 639# 640# Initializations. 641# 642ac_default_prefix=/usr/local 643ac_clean_files= 644ac_config_libobj_dir=. 645LIBOBJS= 646cross_compiling=no 647subdirs= 648MFLAGS= 649MAKEFLAGS= 650 651# Identity of this package. 652PACKAGE_NAME='xorg-server' 653PACKAGE_TARNAME='xorg-server' 654PACKAGE_VERSION='1.20.10' 655PACKAGE_STRING='xorg-server 1.20.10' 656PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/xserver/issues' 657PACKAGE_URL='' 658 659ac_unique_file="Makefile.am" 660# Factoring default headers for most tests. 661ac_includes_default="\ 662#include <stdio.h> 663#ifdef HAVE_SYS_TYPES_H 664# include <sys/types.h> 665#endif 666#ifdef HAVE_SYS_STAT_H 667# include <sys/stat.h> 668#endif 669#ifdef STDC_HEADERS 670# include <stdlib.h> 671# include <stddef.h> 672#else 673# ifdef HAVE_STDLIB_H 674# include <stdlib.h> 675# endif 676#endif 677#ifdef HAVE_STRING_H 678# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 679# include <memory.h> 680# endif 681# include <string.h> 682#endif 683#ifdef HAVE_STRINGS_H 684# include <strings.h> 685#endif 686#ifdef HAVE_INTTYPES_H 687# include <inttypes.h> 688#endif 689#ifdef HAVE_STDINT_H 690# include <stdint.h> 691#endif 692#ifdef HAVE_UNISTD_H 693# include <unistd.h> 694#endif" 695 696ac_config_libobj_dir=os 697ac_subst_vars='am__EXEEXT_FALSE 698am__EXEEXT_TRUE 699LTLIBOBJS 700DIX_CFLAGS 701BUILD_TIME 702BUILD_DATE 703RELEASE_DATE 704SYSCONFDIR 705PROJECTROOT 706XWAYLAND_EGLSTREAM_FALSE 707XWAYLAND_EGLSTREAM_TRUE 708WAYLAND_PROTOCOLS_DATADIR 709SCANNER_ARG 710WAYLAND_SCANNER_LIBS 711WAYLAND_SCANNER_CFLAGS 712WAYLAND_SCANNER 713XWAYLAND_SYS_LIBS 714XWAYLAND_LIBS 715WAYLAND_EGLSTREAM_DATADIR 716WAYLAND_EGLSTREAM_LIBS 717WAYLAND_EGLSTREAM_CFLAGS 718XWAYLAND_FALSE 719XWAYLAND_TRUE 720XWAYLANDMODULES_LIBS 721XWAYLANDMODULES_CFLAGS 722XEPHYR_FALSE 723XEPHYR_TRUE 724KDRIVE_LIBS 725KDRIVE_LOCAL_LIBS 726KDRIVE_MAIN_LIB 727KDRIVE_PURE_LIBS 728KDRIVE_CFLAGS 729KDRIVE_PURE_INCS 730KDRIVE_INCS 731XEPHYR_INCS 732XEPHYR_LIBS 733XEPHYR_CFLAGS 734KDRIVE_FALSE 735KDRIVE_TRUE 736DMX_BUILD_USB_FALSE 737DMX_BUILD_USB_TRUE 738X11EXAMPLES_DEP_LIBS 739X11EXAMPLES_DEP_CFLAGS 740XRESEXAMPLES_DEP_LIBS 741XRESEXAMPLES_DEP_CFLAGS 742XTSTEXAMPLES_DEP_LIBS 743XTSTEXAMPLES_DEP_CFLAGS 744DMXXIEXAMPLES_DEP_LIBS 745DMXXIEXAMPLES_DEP_CFLAGS 746DMXXMUEXAMPLES_DEP_LIBS 747DMXXMUEXAMPLES_DEP_CFLAGS 748DMXEXAMPLES_DEP_LIBS 749DMXEXAMPLES_DEP_CFLAGS 750XDMX_SYS_LIBS 751XDMX_LIBS 752XDMX_CFLAGS 753DMX_FALSE 754DMX_TRUE 755XDMXCONFIG_DEP_LIBS 756XDMXCONFIG_DEP_CFLAGS 757DMXMODULES_LIBS 758DMXMODULES_CFLAGS 759STANDALONE_XPBPROXY_FALSE 760STANDALONE_XPBPROXY_TRUE 761XQUARTZ_SPARKLE_FALSE 762XQUARTZ_SPARKLE_TRUE 763XQUARTZ_FALSE 764XQUARTZ_TRUE 765am__fastdepOBJC_FALSE 766am__fastdepOBJC_TRUE 767OBJCDEPMODE 768OBJCFLAGS 769OBJCLINK 770OBJCCLD 771OBJC 772PSEUDORAMIX_FALSE 773PSEUDORAMIX_TRUE 774XPBPROXY_LIBS 775XPBPROXY_CFLAGS 776XQUARTZ_LIBS 777XWIN_WINDOWS_DRI_FALSE 778XWIN_WINDOWS_DRI_TRUE 779XWIN_GLX_WINDOWS_FALSE 780XWIN_GLX_WINDOWS_TRUE 781XWIN_MULTIWINDOWEXTWM_FALSE 782XWIN_MULTIWINDOWEXTWM_TRUE 783XWIN_FALSE 784XWIN_TRUE 785KHRONOS_SPEC_DIR 786KHRONOS_OPENGL_REGISTRY_LIBS 787KHRONOS_OPENGL_REGISTRY_CFLAGS 788PYTHON3 789XWIN_SYS_LIBS 790XWIN_SERVER_NAME 791XWIN_LIBS 792WINDOWSDRI_LIBS 793WINDOWSDRI_CFLAGS 794WINDOWSWM_LIBS 795WINDOWSWM_CFLAGS 796XWINMODULES_LIBS 797XWINMODULES_CFLAGS 798WINDRES 799GLAMOR_EGL_FALSE 800GLAMOR_EGL_TRUE 801GBM_LIBS 802GBM_CFLAGS 803GLAMOR_LIBS 804GLAMOR_CFLAGS 805GLAMOR_FALSE 806GLAMOR_TRUE 807XORG_DRIVER_MODESETTING_FALSE 808XORG_DRIVER_MODESETTING_TRUE 809XORG_BUS_PLATFORM_FALSE 810XORG_BUS_PLATFORM_TRUE 811DGA_FALSE 812DGA_TRUE 813SOLARIS_VT_FALSE 814SOLARIS_VT_TRUE 815LNXAPM_FALSE 816LNXAPM_TRUE 817LNXACPI_FALSE 818LNXACPI_TRUE 819XORG_BUS_SPARC_FALSE 820XORG_BUS_SPARC_TRUE 821XORG_BUS_BSDPCI_FALSE 822XORG_BUS_BSDPCI_TRUE 823XORG_BUS_PCI_FALSE 824XORG_BUS_PCI_TRUE 825XORG_FALSE 826XORG_TRUE 827abi_extension 828abi_xinput 829abi_videodrv 830abi_ansic 831logdir 832sysconfigdir 833extdir 834sdkdir 835driverdir 836moduledir 837DEFAULT_XDG_DATA_HOME_LOGDIR 838DEFAULT_XDG_DATA_HOME 839DEFAULT_LOGPREFIX 840DEFAULT_LOGDIR 841DEFAULT_LIBRARY_PATH 842DEFAULT_MODULE_PATH 843XCONFIGDIR 844XF86CONFIGFILE 845XCONFIGFILE 846XF86CONFIGDIR 847XORG_CFLAGS 848XORG_OS_SUBDIR 849XORG_INCS 850XORG_SYS_LIBS 851XORG_LIBS 852XORG_MODULES_LIBS 853XORG_MODULES_CFLAGS 854DGA_LIBS 855DGA_CFLAGS 856SOLARIS_INOUT_ARCH 857PCI_TXT_IDS_PATH 858PCIACCESS_LIBS 859PCIACCESS_CFLAGS 860symbol_visibility 861XNEST_SYS_LIBS 862XNEST_LIBS 863XNEST_FALSE 864XNEST_TRUE 865XNESTMODULES_LIBS 866XNESTMODULES_CFLAGS 867XVFB_SYS_LIBS 868XVFB_LIBS 869XVFB_FALSE 870XVFB_TRUE 871NO_UNDEFINED_FALSE 872NO_UNDEFINED_TRUE 873CYGWIN_FALSE 874CYGWIN_TRUE 875XORG_DRIVER_LIBS 876LD_NO_UNDEFINED_FLAG 877LD_EXPORT_SYMBOLS_FLAG 878UTILS_SYS_LIBS 879XSERVER_SYS_LIBS 880XSERVER_LIBS 881HAVE_LIBUNWIND_FALSE 882HAVE_LIBUNWIND_TRUE 883LIBUNWIND_LIBS 884LIBUNWIND_CFLAGS 885XSERVERLIBS_LIBS 886XSERVERLIBS_CFLAGS 887XSERVERCFLAGS_LIBS 888XSERVERCFLAGS_CFLAGS 889SHA1_CFLAGS 890SHA1_LIBS 891OPENSSL_LIBS 892OPENSSL_CFLAGS 893LIBSHA1_LIBS 894LIBSHA1_CFLAGS 895MAIN_LIB 896OS_LIB 897DIX_LIB 898DEBUG_FALSE 899DEBUG_TRUE 900VENDOR_NAME_SHORT 901DRI_DRIVER_PATH 902BASE_FONT_PATH 903SERVER_MISC_CONFIG_PATH 904COMPILEDDEFAULTFONTPATH 905XF86VIDMODE_FALSE 906XF86VIDMODE_TRUE 907XDMAUTH_FALSE 908XDMAUTH_TRUE 909XDMCP_FALSE 910XDMCP_TRUE 911XDMCP_LIBS 912XDMCP_CFLAGS 913XKB_DFLT_OPTIONS 914XKB_DFLT_VARIANT 915XKB_DFLT_LAYOUT 916XKB_DFLT_MODEL 917XKB_DFLT_RULES 918XKB_COMPILED_DIR 919XKM_OUTPUT_DIR 920XKB_BIN_DIRECTORY 921XKB_BASE_DIRECTORY 922INT10MODULE_FALSE 923INT10MODULE_TRUE 924VBE_FALSE 925VBE_TRUE 926VGAHW_FALSE 927VGAHW_TRUE 928XF86UTILS_FALSE 929XF86UTILS_TRUE 930DPMSExtension_FALSE 931DPMSExtension_TRUE 932XF86BIGFONT_FALSE 933XF86BIGFONT_TRUE 934DBE_FALSE 935DBE_TRUE 936XCSECURITY_FALSE 937XCSECURITY_TRUE 938SELINUX_LIBS 939SELINUX_CFLAGS 940XSELINUX_FALSE 941XSELINUX_TRUE 942XACE_FALSE 943XACE_TRUE 944XINERAMA_FALSE 945XINERAMA_TRUE 946PRESENT_FALSE 947PRESENT_TRUE 948GLX_SYS_LIBS 949GLX_DEFINES 950HASHTABLE_FALSE 951HASHTABLE_TRUE 952GLX_FALSE 953GLX_TRUE 954GL_LIBS 955GL_CFLAGS 956XLIB_LIBS 957XLIB_CFLAGS 958LIBDRM_LIBS 959LIBDRM_CFLAGS 960DRI3_FALSE 961DRI3_TRUE 962XSHMFENCE_FALSE 963XSHMFENCE_TRUE 964XSHMFENCE_LIBS 965XSHMFENCE_CFLAGS 966BUSFAULT_FALSE 967BUSFAULT_TRUE 968DRI3PROTO_LIBS 969DRI3PROTO_CFLAGS 970DRI2_FALSE 971DRI2_TRUE 972DRI2PROTO_LIBS 973DRI2PROTO_CFLAGS 974DRI_FALSE 975DRI_TRUE 976CLIENTIDS_FALSE 977CLIENTIDS_TRUE 978RES_FALSE 979RES_TRUE 980SCREENSAVER_FALSE 981SCREENSAVER_TRUE 982RECORD_FALSE 983RECORD_TRUE 984MITSHM_FALSE 985MITSHM_TRUE 986COMPOSITE_FALSE 987COMPOSITE_TRUE 988XVMC_FALSE 989XVMC_TRUE 990XV_FALSE 991XV_TRUE 992CONFIG_WSCONS_FALSE 993CONFIG_WSCONS_TRUE 994NEED_DBUS_FALSE 995NEED_DBUS_TRUE 996SUID_WRAPPER_FALSE 997SUID_WRAPPER_TRUE 998SUID_WRAPPER_DIR 999SYSTEMD_LOGIND_FALSE 1000SYSTEMD_LOGIND_TRUE 1001CONFIG_HAL_FALSE 1002CONFIG_HAL_TRUE 1003HAL_LIBS 1004HAL_CFLAGS 1005HAVE_DBUS_FALSE 1006HAVE_DBUS_TRUE 1007DBUS_LIBS 1008DBUS_CFLAGS 1009CONFIG_UDEV_KMS_FALSE 1010CONFIG_UDEV_KMS_TRUE 1011CONFIG_UDEV_FALSE 1012CONFIG_UDEV_TRUE 1013UDEV_LIBS 1014UDEV_CFLAGS 1015HAVE_SYSTEMD_DAEMON_FALSE 1016HAVE_SYSTEMD_DAEMON_TRUE 1017SYSTEMD_DAEMON_LIBS 1018SYSTEMD_DAEMON_CFLAGS 1019PTHREAD_CFLAGS 1020PTHREAD_LIBS 1021PTHREAD_CC 1022ax_pthread_config 1023SDK_REQUIRED_MODULES 1024PIXMAN_LIBS 1025PIXMAN_CFLAGS 1026INT10_STUB_FALSE 1027INT10_STUB_TRUE 1028INT10_X86EMU_FALSE 1029INT10_X86EMU_TRUE 1030INT10_VM86_FALSE 1031INT10_VM86_TRUE 1032SECURE_RPC_FALSE 1033SECURE_RPC_TRUE 1034INSTALL_SETUID_FALSE 1035INSTALL_SETUID_TRUE 1036XQUARTZ_SPARKLE_FEED_URL 1037XQUARTZ_SPARKLE 1038BUNDLE_VERSION_STRING 1039BUNDLE_VERSION 1040BUNDLE_ID_PREFIX 1041APPLE_APPLICATION_NAME 1042APPLE_APPLICATIONS_DIR 1043FONT100DPIDIR 1044FONT75DPIDIR 1045FONTTYPE1DIR 1046FONTTTFDIR 1047FONTOTFDIR 1048FONTMISCDIR 1049FONTROOTDIR 1050SPARC64_VIDEO_FALSE 1051SPARC64_VIDEO_TRUE 1052PPC_VIDEO_FALSE 1053PPC_VIDEO_TRUE 1054I386_VIDEO_FALSE 1055I386_VIDEO_TRUE 1056ARM_VIDEO_FALSE 1057ARM_VIDEO_TRUE 1058ALPHA_VIDEO_FALSE 1059ALPHA_VIDEO_TRUE 1060GLX_ARCH_DEFINES 1061BSD_KQUEUE_APM_FALSE 1062BSD_KQUEUE_APM_TRUE 1063BSD_APM_FALSE 1064BSD_APM_TRUE 1065FREEBSD_KLDLOAD_FALSE 1066FREEBSD_KLDLOAD_TRUE 1067FBDEVHW_FALSE 1068FBDEVHW_TRUE 1069AGP_FALSE 1070AGP_TRUE 1071POLL_FALSE 1072POLL_TRUE 1073LIBOBJS 1074DLOPEN_LIBS 1075SPECIAL_DTRACE_OBJECTS_FALSE 1076SPECIAL_DTRACE_OBJECTS_TRUE 1077XSERVER_DTRACE_FALSE 1078XSERVER_DTRACE_TRUE 1079DTRACE 1080TRADITIONALCPPFLAGS 1081RAWCPPFLAGS 1082RAWCPP 1083YFLAGS 1084YACC 1085LEXLIB 1086LEX_OUTPUT_ROOT 1087LEX 1088LT_SYS_LIBRARY_PATH 1089OTOOL64 1090OTOOL 1091LIPO 1092NMEDIT 1093DSYMUTIL 1094MANIFEST_TOOL 1095RANLIB 1096ac_ct_AR 1097AR 1098NM 1099ac_ct_DUMPBIN 1100DUMPBIN 1101LD 1102FGREP 1103LIBTOOL 1104OBJDUMP 1105DLLTOOL 1106AS 1107LN_S 1108am__fastdepCCAS_FALSE 1109am__fastdepCCAS_TRUE 1110CCASDEPMODE 1111CCASFLAGS 1112CCAS 1113HAVE_LD_WRAP_FALSE 1114HAVE_LD_WRAP_TRUE 1115ENABLE_UNIT_TESTS_FALSE 1116ENABLE_UNIT_TESTS_TRUE 1117XORG_MALLOC_DEBUG_ENV 1118HAVE_XSLTPROC_FALSE 1119HAVE_XSLTPROC_TRUE 1120XSLTPROC 1121HAVE_FOP_FALSE 1122HAVE_FOP_TRUE 1123FOP 1124HAVE_XMLTO_FALSE 1125HAVE_XMLTO_TRUE 1126HAVE_XMLTO_TEXT_FALSE 1127HAVE_XMLTO_TEXT_TRUE 1128XMLTO 1129ENABLE_DEVEL_DOCS_FALSE 1130ENABLE_DEVEL_DOCS_TRUE 1131ENABLE_DOCS_FALSE 1132ENABLE_DOCS_TRUE 1133HAVE_STYLESHEETS_FALSE 1134HAVE_STYLESHEETS_TRUE 1135XSL_STYLESHEET 1136STYLESHEET_SRCDIR 1137XORG_SGML_PATH 1138HAVE_DOXYGEN_FALSE 1139HAVE_DOXYGEN_TRUE 1140HAVE_DOT_FALSE 1141HAVE_DOT_TRUE 1142HAVE_DOT 1143DOT 1144DOXYGEN 1145MAN_SUBSTS 1146XORG_MAN_PAGE 1147ADMIN_MAN_DIR 1148DRIVER_MAN_DIR 1149MISC_MAN_DIR 1150FILE_MAN_DIR 1151LIB_MAN_DIR 1152APP_MAN_DIR 1153ADMIN_MAN_SUFFIX 1154DRIVER_MAN_SUFFIX 1155MISC_MAN_SUFFIX 1156FILE_MAN_SUFFIX 1157LIB_MAN_SUFFIX 1158APP_MAN_SUFFIX 1159SED 1160host_os 1161host_vendor 1162host_cpu 1163host 1164build_os 1165build_vendor 1166build_cpu 1167build 1168INSTALL_CMD 1169PKG_CONFIG_LIBDIR 1170PKG_CONFIG_PATH 1171PKG_CONFIG 1172CHANGELOG_CMD 1173STRICT_CFLAGS 1174CWARNFLAGS 1175BASE_CFLAGS 1176EGREP 1177GREP 1178CPP 1179am__fastdepCC_FALSE 1180am__fastdepCC_TRUE 1181CCDEPMODE 1182am__nodep 1183AMDEPBACKSLASH 1184AMDEP_FALSE 1185AMDEP_TRUE 1186am__include 1187DEPDIR 1188OBJEXT 1189EXEEXT 1190ac_ct_CC 1191CPPFLAGS 1192LDFLAGS 1193CFLAGS 1194CC 1195AM_BACKSLASH 1196AM_DEFAULT_VERBOSITY 1197AM_DEFAULT_V 1198AM_V 1199am__untar 1200am__tar 1201AMTAR 1202am__leading_dot 1203SET_MAKE 1204AWK 1205mkdir_p 1206MKDIR_P 1207INSTALL_STRIP_PROGRAM 1208STRIP 1209install_sh 1210MAKEINFO 1211AUTOHEADER 1212AUTOMAKE 1213AUTOCONF 1214ACLOCAL 1215VERSION 1216PACKAGE 1217CYGPATH_W 1218am__isrc 1219INSTALL_DATA 1220INSTALL_SCRIPT 1221INSTALL_PROGRAM 1222target_alias 1223host_alias 1224build_alias 1225LIBS 1226ECHO_T 1227ECHO_N 1228ECHO_C 1229DEFS 1230mandir 1231localedir 1232libdir 1233psdir 1234pdfdir 1235dvidir 1236htmldir 1237infodir 1238docdir 1239oldincludedir 1240includedir 1241runstatedir 1242localstatedir 1243sharedstatedir 1244sysconfdir 1245datadir 1246datarootdir 1247libexecdir 1248sbindir 1249bindir 1250program_transform_name 1251prefix 1252exec_prefix 1253PACKAGE_URL 1254PACKAGE_BUGREPORT 1255PACKAGE_STRING 1256PACKAGE_VERSION 1257PACKAGE_TARNAME 1258PACKAGE_NAME 1259PATH_SEPARATOR 1260SHELL 1261am__quote' 1262ac_subst_files='' 1263ac_user_opts=' 1264enable_option_checking 1265enable_silent_rules 1266enable_dependency_tracking 1267enable_selective_werror 1268enable_strict_compilation 1269with_doxygen 1270enable_docs 1271enable_devel_docs 1272with_xmlto 1273with_fop 1274with_xsltproc 1275enable_unit_tests 1276enable_static 1277enable_shared 1278with_pic 1279enable_fast_install 1280with_aix_soname 1281with_gnu_ld 1282with_sysroot 1283enable_libtool_lock 1284enable_largefile 1285with_dtrace 1286enable_werror 1287enable_debug 1288with_int10 1289with_vendor_name 1290with_vendor_name_short 1291with_vendor_web 1292with_module_dir 1293with_log_dir 1294with_builder_addr 1295with_os_name 1296with_os_vendor 1297with_builderstring 1298enable_listen_tcp 1299enable_listen_unix 1300enable_listen_local 1301with_fallback_input_driver 1302with_fontrootdir 1303with_fontmiscdir 1304with_fontotfdir 1305with_fontttfdir 1306with_fonttype1dir 1307with_font75dpidir 1308with_font100dpidir 1309with_default_font_path 1310with_xkb_path 1311with_xkb_output 1312with_default_xkb_rules 1313with_default_xkb_model 1314with_default_xkb_layout 1315with_default_xkb_variant 1316with_default_xkb_options 1317with_serverconfig_path 1318with_apple_applications_dir 1319with_apple_application_name 1320with_bundle_id_prefix 1321with_bundle_version 1322with_bundle_version_string 1323enable_sparkle 1324with_sparkle_feed_url 1325enable_visibility 1326with_khronos_spec_dir 1327enable_composite 1328enable_mitshm 1329enable_xres 1330enable_record 1331enable_xv 1332enable_xvmc 1333enable_dga 1334enable_screensaver 1335enable_xdmcp 1336enable_xdm_auth_1 1337enable_glx 1338enable_dri 1339enable_dri2 1340enable_dri3 1341enable_present 1342enable_xinerama 1343enable_xf86vidmode 1344enable_xace 1345enable_xselinux 1346enable_xcsecurity 1347enable_dbe 1348enable_xf86bigfont 1349enable_dpms 1350enable_config_udev 1351enable_config_udev_kms 1352enable_config_hal 1353enable_config_wscons 1354enable_xfree86_utils 1355enable_vgahw 1356enable_vbe 1357enable_int10_module 1358enable_windowswm 1359enable_windowsdri 1360enable_libdrm 1361enable_clientids 1362enable_pciaccess 1363enable_linux_acpi 1364enable_linux_apm 1365enable_systemd_logind 1366enable_suid_wrapper 1367enable_xorg 1368enable_dmx 1369enable_xvfb 1370enable_xnest 1371enable_xquartz 1372enable_xwayland 1373enable_xwayland_eglstream 1374enable_standalone_xpbproxy 1375enable_xwin 1376enable_glamor 1377enable_kdrive 1378enable_xephyr 1379enable_libunwind 1380enable_xshmfence 1381enable_install_setuid 1382enable_unix_transport 1383enable_tcp_transport 1384enable_ipv6 1385enable_local_transport 1386enable_secure_rpc 1387enable_input_thread 1388with_systemd_daemon 1389enable_xtrans_send_fds 1390with_xkb_bin_directory 1391with_sha1 1392' 1393 ac_precious_vars='build_alias 1394host_alias 1395target_alias 1396CC 1397CFLAGS 1398LDFLAGS 1399LIBS 1400CPPFLAGS 1401CPP 1402PKG_CONFIG 1403PKG_CONFIG_PATH 1404PKG_CONFIG_LIBDIR 1405DOXYGEN 1406DOT 1407XMLTO 1408FOP 1409XSLTPROC 1410XORG_MALLOC_DEBUG_ENV 1411CCAS 1412CCASFLAGS 1413LT_SYS_LIBRARY_PATH 1414YACC 1415YFLAGS 1416PIXMAN_CFLAGS 1417PIXMAN_LIBS 1418SYSTEMD_DAEMON_CFLAGS 1419SYSTEMD_DAEMON_LIBS 1420UDEV_CFLAGS 1421UDEV_LIBS 1422DBUS_CFLAGS 1423DBUS_LIBS 1424HAL_CFLAGS 1425HAL_LIBS 1426DRI2PROTO_CFLAGS 1427DRI2PROTO_LIBS 1428DRI3PROTO_CFLAGS 1429DRI3PROTO_LIBS 1430XSHMFENCE_CFLAGS 1431XSHMFENCE_LIBS 1432LIBDRM_CFLAGS 1433LIBDRM_LIBS 1434XLIB_CFLAGS 1435XLIB_LIBS 1436GL_CFLAGS 1437GL_LIBS 1438SELINUX_CFLAGS 1439SELINUX_LIBS 1440XDMCP_CFLAGS 1441XDMCP_LIBS 1442LIBSHA1_CFLAGS 1443LIBSHA1_LIBS 1444OPENSSL_CFLAGS 1445OPENSSL_LIBS 1446XSERVERCFLAGS_CFLAGS 1447XSERVERCFLAGS_LIBS 1448XSERVERLIBS_CFLAGS 1449XSERVERLIBS_LIBS 1450LIBUNWIND_CFLAGS 1451LIBUNWIND_LIBS 1452XNESTMODULES_CFLAGS 1453XNESTMODULES_LIBS 1454PCIACCESS_CFLAGS 1455PCIACCESS_LIBS 1456DGA_CFLAGS 1457DGA_LIBS 1458XORG_MODULES_CFLAGS 1459XORG_MODULES_LIBS 1460GLAMOR_CFLAGS 1461GLAMOR_LIBS 1462GBM_CFLAGS 1463GBM_LIBS 1464XWINMODULES_CFLAGS 1465XWINMODULES_LIBS 1466WINDOWSWM_CFLAGS 1467WINDOWSWM_LIBS 1468WINDOWSDRI_CFLAGS 1469WINDOWSDRI_LIBS 1470KHRONOS_OPENGL_REGISTRY_CFLAGS 1471KHRONOS_OPENGL_REGISTRY_LIBS 1472XPBPROXY_CFLAGS 1473XPBPROXY_LIBS 1474DMXMODULES_CFLAGS 1475DMXMODULES_LIBS 1476XDMXCONFIG_DEP_CFLAGS 1477XDMXCONFIG_DEP_LIBS 1478DMXEXAMPLES_DEP_CFLAGS 1479DMXEXAMPLES_DEP_LIBS 1480DMXXMUEXAMPLES_DEP_CFLAGS 1481DMXXMUEXAMPLES_DEP_LIBS 1482DMXXIEXAMPLES_DEP_CFLAGS 1483DMXXIEXAMPLES_DEP_LIBS 1484XTSTEXAMPLES_DEP_CFLAGS 1485XTSTEXAMPLES_DEP_LIBS 1486XRESEXAMPLES_DEP_CFLAGS 1487XRESEXAMPLES_DEP_LIBS 1488X11EXAMPLES_DEP_CFLAGS 1489X11EXAMPLES_DEP_LIBS 1490XEPHYR_CFLAGS 1491XEPHYR_LIBS 1492XWAYLANDMODULES_CFLAGS 1493XWAYLANDMODULES_LIBS 1494WAYLAND_EGLSTREAM_CFLAGS 1495WAYLAND_EGLSTREAM_LIBS 1496WAYLAND_SCANNER_CFLAGS 1497WAYLAND_SCANNER_LIBS' 1498 1499 1500# Initialize some variables set by options. 1501ac_init_help= 1502ac_init_version=false 1503ac_unrecognized_opts= 1504ac_unrecognized_sep= 1505# The variables have the same names as the options, with 1506# dashes changed to underlines. 1507cache_file=/dev/null 1508exec_prefix=NONE 1509no_create= 1510no_recursion= 1511prefix=NONE 1512program_prefix=NONE 1513program_suffix=NONE 1514program_transform_name=s,x,x, 1515silent= 1516site= 1517srcdir= 1518verbose= 1519x_includes=NONE 1520x_libraries=NONE 1521 1522# Installation directory options. 1523# These are left unexpanded so users can "make install exec_prefix=/foo" 1524# and all the variables that are supposed to be based on exec_prefix 1525# by default will actually change. 1526# Use braces instead of parens because sh, perl, etc. also accept them. 1527# (The list follows the same order as the GNU Coding Standards.) 1528bindir='${exec_prefix}/bin' 1529sbindir='${exec_prefix}/sbin' 1530libexecdir='${exec_prefix}/libexec' 1531datarootdir='${prefix}/share' 1532datadir='${datarootdir}' 1533sysconfdir='${prefix}/etc' 1534sharedstatedir='${prefix}/com' 1535localstatedir='${prefix}/var' 1536runstatedir='${localstatedir}/run' 1537includedir='${prefix}/include' 1538oldincludedir='/usr/include' 1539docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1540infodir='${datarootdir}/info' 1541htmldir='${docdir}' 1542dvidir='${docdir}' 1543pdfdir='${docdir}' 1544psdir='${docdir}' 1545libdir='${exec_prefix}/lib' 1546localedir='${datarootdir}/locale' 1547mandir='${datarootdir}/man' 1548 1549ac_prev= 1550ac_dashdash= 1551for ac_option 1552do 1553 # If the previous option needs an argument, assign it. 1554 if test -n "$ac_prev"; then 1555 eval $ac_prev=\$ac_option 1556 ac_prev= 1557 continue 1558 fi 1559 1560 case $ac_option in 1561 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1562 *=) ac_optarg= ;; 1563 *) ac_optarg=yes ;; 1564 esac 1565 1566 # Accept the important Cygnus configure options, so we can diagnose typos. 1567 1568 case $ac_dashdash$ac_option in 1569 --) 1570 ac_dashdash=yes ;; 1571 1572 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1573 ac_prev=bindir ;; 1574 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1575 bindir=$ac_optarg ;; 1576 1577 -build | --build | --buil | --bui | --bu) 1578 ac_prev=build_alias ;; 1579 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1580 build_alias=$ac_optarg ;; 1581 1582 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1583 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1584 ac_prev=cache_file ;; 1585 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1586 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1587 cache_file=$ac_optarg ;; 1588 1589 --config-cache | -C) 1590 cache_file=config.cache ;; 1591 1592 -datadir | --datadir | --datadi | --datad) 1593 ac_prev=datadir ;; 1594 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1595 datadir=$ac_optarg ;; 1596 1597 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1598 | --dataroo | --dataro | --datar) 1599 ac_prev=datarootdir ;; 1600 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1601 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1602 datarootdir=$ac_optarg ;; 1603 1604 -disable-* | --disable-*) 1605 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1606 # Reject names that are not valid shell variable names. 1607 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1608 as_fn_error $? "invalid feature name: $ac_useropt" 1609 ac_useropt_orig=$ac_useropt 1610 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1611 case $ac_user_opts in 1612 *" 1613"enable_$ac_useropt" 1614"*) ;; 1615 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1616 ac_unrecognized_sep=', ';; 1617 esac 1618 eval enable_$ac_useropt=no ;; 1619 1620 -docdir | --docdir | --docdi | --doc | --do) 1621 ac_prev=docdir ;; 1622 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1623 docdir=$ac_optarg ;; 1624 1625 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1626 ac_prev=dvidir ;; 1627 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1628 dvidir=$ac_optarg ;; 1629 1630 -enable-* | --enable-*) 1631 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1632 # Reject names that are not valid shell variable names. 1633 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1634 as_fn_error $? "invalid feature name: $ac_useropt" 1635 ac_useropt_orig=$ac_useropt 1636 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1637 case $ac_user_opts in 1638 *" 1639"enable_$ac_useropt" 1640"*) ;; 1641 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1642 ac_unrecognized_sep=', ';; 1643 esac 1644 eval enable_$ac_useropt=\$ac_optarg ;; 1645 1646 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1647 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1648 | --exec | --exe | --ex) 1649 ac_prev=exec_prefix ;; 1650 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1651 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1652 | --exec=* | --exe=* | --ex=*) 1653 exec_prefix=$ac_optarg ;; 1654 1655 -gas | --gas | --ga | --g) 1656 # Obsolete; use --with-gas. 1657 with_gas=yes ;; 1658 1659 -help | --help | --hel | --he | -h) 1660 ac_init_help=long ;; 1661 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1662 ac_init_help=recursive ;; 1663 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1664 ac_init_help=short ;; 1665 1666 -host | --host | --hos | --ho) 1667 ac_prev=host_alias ;; 1668 -host=* | --host=* | --hos=* | --ho=*) 1669 host_alias=$ac_optarg ;; 1670 1671 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1672 ac_prev=htmldir ;; 1673 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1674 | --ht=*) 1675 htmldir=$ac_optarg ;; 1676 1677 -includedir | --includedir | --includedi | --included | --include \ 1678 | --includ | --inclu | --incl | --inc) 1679 ac_prev=includedir ;; 1680 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1681 | --includ=* | --inclu=* | --incl=* | --inc=*) 1682 includedir=$ac_optarg ;; 1683 1684 -infodir | --infodir | --infodi | --infod | --info | --inf) 1685 ac_prev=infodir ;; 1686 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1687 infodir=$ac_optarg ;; 1688 1689 -libdir | --libdir | --libdi | --libd) 1690 ac_prev=libdir ;; 1691 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1692 libdir=$ac_optarg ;; 1693 1694 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1695 | --libexe | --libex | --libe) 1696 ac_prev=libexecdir ;; 1697 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1698 | --libexe=* | --libex=* | --libe=*) 1699 libexecdir=$ac_optarg ;; 1700 1701 -localedir | --localedir | --localedi | --localed | --locale) 1702 ac_prev=localedir ;; 1703 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1704 localedir=$ac_optarg ;; 1705 1706 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1707 | --localstate | --localstat | --localsta | --localst | --locals) 1708 ac_prev=localstatedir ;; 1709 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1710 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1711 localstatedir=$ac_optarg ;; 1712 1713 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1714 ac_prev=mandir ;; 1715 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1716 mandir=$ac_optarg ;; 1717 1718 -nfp | --nfp | --nf) 1719 # Obsolete; use --without-fp. 1720 with_fp=no ;; 1721 1722 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1723 | --no-cr | --no-c | -n) 1724 no_create=yes ;; 1725 1726 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1727 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1728 no_recursion=yes ;; 1729 1730 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1731 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1732 | --oldin | --oldi | --old | --ol | --o) 1733 ac_prev=oldincludedir ;; 1734 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1735 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1736 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1737 oldincludedir=$ac_optarg ;; 1738 1739 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1740 ac_prev=prefix ;; 1741 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1742 prefix=$ac_optarg ;; 1743 1744 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1745 | --program-pre | --program-pr | --program-p) 1746 ac_prev=program_prefix ;; 1747 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1748 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1749 program_prefix=$ac_optarg ;; 1750 1751 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1752 | --program-suf | --program-su | --program-s) 1753 ac_prev=program_suffix ;; 1754 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1755 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1756 program_suffix=$ac_optarg ;; 1757 1758 -program-transform-name | --program-transform-name \ 1759 | --program-transform-nam | --program-transform-na \ 1760 | --program-transform-n | --program-transform- \ 1761 | --program-transform | --program-transfor \ 1762 | --program-transfo | --program-transf \ 1763 | --program-trans | --program-tran \ 1764 | --progr-tra | --program-tr | --program-t) 1765 ac_prev=program_transform_name ;; 1766 -program-transform-name=* | --program-transform-name=* \ 1767 | --program-transform-nam=* | --program-transform-na=* \ 1768 | --program-transform-n=* | --program-transform-=* \ 1769 | --program-transform=* | --program-transfor=* \ 1770 | --program-transfo=* | --program-transf=* \ 1771 | --program-trans=* | --program-tran=* \ 1772 | --progr-tra=* | --program-tr=* | --program-t=*) 1773 program_transform_name=$ac_optarg ;; 1774 1775 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1776 ac_prev=pdfdir ;; 1777 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1778 pdfdir=$ac_optarg ;; 1779 1780 -psdir | --psdir | --psdi | --psd | --ps) 1781 ac_prev=psdir ;; 1782 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1783 psdir=$ac_optarg ;; 1784 1785 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1786 | -silent | --silent | --silen | --sile | --sil) 1787 silent=yes ;; 1788 1789 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1790 | --runstate | --runstat | --runsta | --runst | --runs \ 1791 | --run | --ru | --r) 1792 ac_prev=runstatedir ;; 1793 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1794 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1795 | --run=* | --ru=* | --r=*) 1796 runstatedir=$ac_optarg ;; 1797 1798 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1799 ac_prev=sbindir ;; 1800 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1801 | --sbi=* | --sb=*) 1802 sbindir=$ac_optarg ;; 1803 1804 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1805 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1806 | --sharedst | --shareds | --shared | --share | --shar \ 1807 | --sha | --sh) 1808 ac_prev=sharedstatedir ;; 1809 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1810 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1811 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1812 | --sha=* | --sh=*) 1813 sharedstatedir=$ac_optarg ;; 1814 1815 -site | --site | --sit) 1816 ac_prev=site ;; 1817 -site=* | --site=* | --sit=*) 1818 site=$ac_optarg ;; 1819 1820 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1821 ac_prev=srcdir ;; 1822 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1823 srcdir=$ac_optarg ;; 1824 1825 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1826 | --syscon | --sysco | --sysc | --sys | --sy) 1827 ac_prev=sysconfdir ;; 1828 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1829 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1830 sysconfdir=$ac_optarg ;; 1831 1832 -target | --target | --targe | --targ | --tar | --ta | --t) 1833 ac_prev=target_alias ;; 1834 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1835 target_alias=$ac_optarg ;; 1836 1837 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1838 verbose=yes ;; 1839 1840 -version | --version | --versio | --versi | --vers | -V) 1841 ac_init_version=: ;; 1842 1843 -with-* | --with-*) 1844 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1845 # Reject names that are not valid shell variable names. 1846 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1847 as_fn_error $? "invalid package name: $ac_useropt" 1848 ac_useropt_orig=$ac_useropt 1849 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1850 case $ac_user_opts in 1851 *" 1852"with_$ac_useropt" 1853"*) ;; 1854 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1855 ac_unrecognized_sep=', ';; 1856 esac 1857 eval with_$ac_useropt=\$ac_optarg ;; 1858 1859 -without-* | --without-*) 1860 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1861 # Reject names that are not valid shell variable names. 1862 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1863 as_fn_error $? "invalid package name: $ac_useropt" 1864 ac_useropt_orig=$ac_useropt 1865 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1866 case $ac_user_opts in 1867 *" 1868"with_$ac_useropt" 1869"*) ;; 1870 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1871 ac_unrecognized_sep=', ';; 1872 esac 1873 eval with_$ac_useropt=no ;; 1874 1875 --x) 1876 # Obsolete; use --with-x. 1877 with_x=yes ;; 1878 1879 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1880 | --x-incl | --x-inc | --x-in | --x-i) 1881 ac_prev=x_includes ;; 1882 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1883 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1884 x_includes=$ac_optarg ;; 1885 1886 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1887 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1888 ac_prev=x_libraries ;; 1889 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1890 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1891 x_libraries=$ac_optarg ;; 1892 1893 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1894Try \`$0 --help' for more information" 1895 ;; 1896 1897 *=*) 1898 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1899 # Reject names that are not valid shell variable names. 1900 case $ac_envvar in #( 1901 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1902 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1903 esac 1904 eval $ac_envvar=\$ac_optarg 1905 export $ac_envvar ;; 1906 1907 *) 1908 # FIXME: should be removed in autoconf 3.0. 1909 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1910 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1911 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1912 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1913 ;; 1914 1915 esac 1916done 1917 1918if test -n "$ac_prev"; then 1919 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1920 as_fn_error $? "missing argument to $ac_option" 1921fi 1922 1923if test -n "$ac_unrecognized_opts"; then 1924 case $enable_option_checking in 1925 no) ;; 1926 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1927 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1928 esac 1929fi 1930 1931# Check all directory arguments for consistency. 1932for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1933 datadir sysconfdir sharedstatedir localstatedir includedir \ 1934 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1935 libdir localedir mandir runstatedir 1936do 1937 eval ac_val=\$$ac_var 1938 # Remove trailing slashes. 1939 case $ac_val in 1940 */ ) 1941 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1942 eval $ac_var=\$ac_val;; 1943 esac 1944 # Be sure to have absolute directory names. 1945 case $ac_val in 1946 [\\/$]* | ?:[\\/]* ) continue;; 1947 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1948 esac 1949 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1950done 1951 1952# There might be people who depend on the old broken behavior: `$host' 1953# used to hold the argument of --host etc. 1954# FIXME: To remove some day. 1955build=$build_alias 1956host=$host_alias 1957target=$target_alias 1958 1959# FIXME: To remove some day. 1960if test "x$host_alias" != x; then 1961 if test "x$build_alias" = x; then 1962 cross_compiling=maybe 1963 elif test "x$build_alias" != "x$host_alias"; then 1964 cross_compiling=yes 1965 fi 1966fi 1967 1968ac_tool_prefix= 1969test -n "$host_alias" && ac_tool_prefix=$host_alias- 1970 1971test "$silent" = yes && exec 6>/dev/null 1972 1973 1974ac_pwd=`pwd` && test -n "$ac_pwd" && 1975ac_ls_di=`ls -di .` && 1976ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1977 as_fn_error $? "working directory cannot be determined" 1978test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1979 as_fn_error $? "pwd does not report name of working directory" 1980 1981 1982# Find the source files, if location was not specified. 1983if test -z "$srcdir"; then 1984 ac_srcdir_defaulted=yes 1985 # Try the directory containing this script, then the parent directory. 1986 ac_confdir=`$as_dirname -- "$as_myself" || 1987$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1988 X"$as_myself" : 'X\(//\)[^/]' \| \ 1989 X"$as_myself" : 'X\(//\)$' \| \ 1990 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1991$as_echo X"$as_myself" | 1992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1993 s//\1/ 1994 q 1995 } 1996 /^X\(\/\/\)[^/].*/{ 1997 s//\1/ 1998 q 1999 } 2000 /^X\(\/\/\)$/{ 2001 s//\1/ 2002 q 2003 } 2004 /^X\(\/\).*/{ 2005 s//\1/ 2006 q 2007 } 2008 s/.*/./; q'` 2009 srcdir=$ac_confdir 2010 if test ! -r "$srcdir/$ac_unique_file"; then 2011 srcdir=.. 2012 fi 2013else 2014 ac_srcdir_defaulted=no 2015fi 2016if test ! -r "$srcdir/$ac_unique_file"; then 2017 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 2018 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 2019fi 2020ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 2021ac_abs_confdir=`( 2022 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 2023 pwd)` 2024# When building in place, set srcdir=. 2025if test "$ac_abs_confdir" = "$ac_pwd"; then 2026 srcdir=. 2027fi 2028# Remove unnecessary trailing slashes from srcdir. 2029# Double slashes in file names in object file debugging info 2030# mess up M-x gdb in Emacs. 2031case $srcdir in 2032*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 2033esac 2034for ac_var in $ac_precious_vars; do 2035 eval ac_env_${ac_var}_set=\${${ac_var}+set} 2036 eval ac_env_${ac_var}_value=\$${ac_var} 2037 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 2038 eval ac_cv_env_${ac_var}_value=\$${ac_var} 2039done 2040 2041# 2042# Report the --help message. 2043# 2044if test "$ac_init_help" = "long"; then 2045 # Omit some internal or obsolete options to make the list less imposing. 2046 # This message is too long to be a string in the A/UX 3.1 sh. 2047 cat <<_ACEOF 2048\`configure' configures xorg-server 1.20.10 to adapt to many kinds of systems. 2049 2050Usage: $0 [OPTION]... [VAR=VALUE]... 2051 2052To assign environment variables (e.g., CC, CFLAGS...), specify them as 2053VAR=VALUE. See below for descriptions of some of the useful variables. 2054 2055Defaults for the options are specified in brackets. 2056 2057Configuration: 2058 -h, --help display this help and exit 2059 --help=short display options specific to this package 2060 --help=recursive display the short help of all the included packages 2061 -V, --version display version information and exit 2062 -q, --quiet, --silent do not print \`checking ...' messages 2063 --cache-file=FILE cache test results in FILE [disabled] 2064 -C, --config-cache alias for \`--cache-file=config.cache' 2065 -n, --no-create do not create output files 2066 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 2067 2068Installation directories: 2069 --prefix=PREFIX install architecture-independent files in PREFIX 2070 [$ac_default_prefix] 2071 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 2072 [PREFIX] 2073 2074By default, \`make install' will install all the files in 2075\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 2076an installation prefix other than \`$ac_default_prefix' using \`--prefix', 2077for instance \`--prefix=\$HOME'. 2078 2079For better control, use the options below. 2080 2081Fine tuning of the installation directories: 2082 --bindir=DIR user executables [EPREFIX/bin] 2083 --sbindir=DIR system admin executables [EPREFIX/sbin] 2084 --libexecdir=DIR program executables [EPREFIX/libexec] 2085 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 2086 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 2087 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 2088 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 2089 --libdir=DIR object code libraries [EPREFIX/lib] 2090 --includedir=DIR C header files [PREFIX/include] 2091 --oldincludedir=DIR C header files for non-gcc [/usr/include] 2092 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 2093 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 2094 --infodir=DIR info documentation [DATAROOTDIR/info] 2095 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 2096 --mandir=DIR man documentation [DATAROOTDIR/man] 2097 --docdir=DIR documentation root [DATAROOTDIR/doc/xorg-server] 2098 --htmldir=DIR html documentation [DOCDIR] 2099 --dvidir=DIR dvi documentation [DOCDIR] 2100 --pdfdir=DIR pdf documentation [DOCDIR] 2101 --psdir=DIR ps documentation [DOCDIR] 2102_ACEOF 2103 2104 cat <<\_ACEOF 2105 2106Program names: 2107 --program-prefix=PREFIX prepend PREFIX to installed program names 2108 --program-suffix=SUFFIX append SUFFIX to installed program names 2109 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 2110 2111System types: 2112 --build=BUILD configure for building on BUILD [guessed] 2113 --host=HOST cross-compile to build programs to run on HOST [BUILD] 2114_ACEOF 2115fi 2116 2117if test -n "$ac_init_help"; then 2118 case $ac_init_help in 2119 short | recursive ) echo "Configuration of xorg-server 1.20.10:";; 2120 esac 2121 cat <<\_ACEOF 2122 2123Optional Features: 2124 --disable-option-checking ignore unrecognized --enable/--with options 2125 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 2126 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 2127 --enable-silent-rules less verbose build output (undo: "make V=1") 2128 --disable-silent-rules verbose build output (undo: "make V=0") 2129 --enable-dependency-tracking 2130 do not reject slow dependency extractors 2131 --disable-dependency-tracking 2132 speeds up one-time build 2133 --disable-selective-werror 2134 Turn off selective compiler errors. (default: 2135 enabled) 2136 --enable-strict-compilation 2137 Enable all warnings from compiler and make them 2138 errors (default: disabled) 2139 --enable-docs Enable building the documentation (default: yes) 2140 --enable-devel-docs Enable building the developer documentation 2141 (default: yes) 2142 --enable-unit-tests Enable building unit test cases (default: auto) 2143 --enable-static[=PKGS] build static libraries [default=no] 2144 --enable-shared[=PKGS] build shared libraries [default=yes] 2145 --enable-fast-install[=PKGS] 2146 optimize for fast installation [default=yes] 2147 --disable-libtool-lock avoid locking (might break parallel builds) 2148 --disable-largefile omit support for large files 2149 --enable-werror Obsolete - use --enable-strict-compilation instead 2150 --enable-debug Enable debugging (default: disabled) 2151 --enable-listen-tcp Listen on TCP by default (default:disabled) 2152 --disable-listen-unix Listen on Unix by default (default:enabled) 2153 --disable-listen-local Listen on local by default (default:enabled) 2154 --enable-sparkle Enable updating of X11.app using the Sparkle 2155 Framework (default: disabled) 2156 --enable-visibility Enable symbol visibility (default: auto) 2157 --disable-composite Build Composite extension (default: enabled) 2158 --disable-mitshm Build SHM extension (default: auto) 2159 --disable-xres Build XRes extension (default: enabled) 2160 --disable-record Build Record extension (default: enabled) 2161 --disable-xv Build Xv extension (default: enabled) 2162 --disable-xvmc Build XvMC extension (default: enabled) 2163 --disable-dga Build DGA extension (default: auto) 2164 --disable-screensaver Build ScreenSaver extension (default: enabled) 2165 --disable-xdmcp Build XDMCP extension (default: auto) 2166 --disable-xdm-auth-1 Build XDM-Auth-1 extension (default: auto) 2167 --disable-glx Build GLX extension (default: enabled) 2168 --enable-dri Build DRI extension (default: auto) 2169 --enable-dri2 Build DRI2 extension (default: auto) 2170 --enable-dri3 Build DRI3 extension (default: auto) 2171 --disable-present Build Present extension (default: enabled) 2172 --disable-xinerama Build Xinerama extension (default: enabled) 2173 --disable-xf86vidmode Build XF86VidMode extension (default: auto) 2174 --disable-xace Build X-ACE extension (default: enabled) 2175 --enable-xselinux Build SELinux extension (default: disabled) 2176 --enable-xcsecurity Build Security extension (default: disabled) 2177 --disable-dbe Build DBE extension (default: enabled) 2178 --enable-xf86bigfont Build XF86 Big Font extension (default: disabled) 2179 --disable-dpms Build DPMS extension (default: enabled) 2180 --enable-config-udev Build udev support (default: auto) 2181 --enable-config-udev-kms 2182 Build udev kms support (default: auto) 2183 --disable-config-hal Build HAL support (default: auto) 2184 --enable-config-wscons Build wscons config support (default: auto) 2185 --enable-xfree86-utils Build xfree86 DDX utilities (default: enabled) 2186 --enable-vgahw Build Xorg with vga access (default: enabled) 2187 --enable-vbe Build Xorg with VBE module (default: enabled) 2188 --enable-int10-module Build Xorg with int10 module (default: enabled) 2189 --enable-windowswm Build XWin with WindowsWM extension (default: no) 2190 --enable-windowsdri Build XWin with WindowsDRI extension (default: auto) 2191 --enable-libdrm Build Xorg with libdrm support (default: enabled) 2192 --disable-clientids Build Xorg with client ID tracking (default: 2193 enabled) 2194 --enable-pciaccess Build Xorg with pciaccess library (default: enabled) 2195 --disable-linux-acpi Disable building ACPI support on Linux (if 2196 available). 2197 --disable-linux-apm Disable building APM support on Linux (if 2198 available). 2199 --enable-systemd-logind Build systemd-logind support (default: auto) 2200 --enable-suid-wrapper Build suid-root wrapper for legacy driver support on 2201 rootless xserver systems (default: no) 2202 --enable-xorg Build Xorg server (default: auto) 2203 --enable-dmx Build DMX server (default: no) 2204 --enable-xvfb Build Xvfb server (default: yes) 2205 --enable-xnest Build Xnest server (default: auto) 2206 --enable-xquartz Build Xquartz server for OS-X (default: auto) 2207 --enable-xwayland Build Xwayland server (default: auto) 2208 --enable-xwayland-eglstream 2209 Build Xwayland eglstream support (default: no) 2210 --enable-standalone-xpbproxy 2211 Build a standalone xpbproxy (in addition to the one 2212 integrated into Xquartz as a separate thread) 2213 (default: no) 2214 --enable-xwin Build XWin server (default: auto) 2215 --enable-glamor Build glamor dix module (default: auto) 2216 --enable-kdrive Build kdrive servers (default: no) 2217 --enable-xephyr Build the kdrive Xephyr server (default: auto) 2218 --enable-libunwind Use libunwind for backtracing (default: auto) 2219 --disable-xshmfence Disable xshmfence (default: auto) 2220 --enable-install-setuid Install Xorg server as owned by root with setuid bit 2221 (default: auto) 2222 --enable-unix-transport Enable UNIX domain socket transport 2223 --enable-tcp-transport Enable TCP socket transport 2224 --enable-ipv6 Enable IPv6 support 2225 --enable-local-transport 2226 Enable os-specific local transport 2227 --enable-secure-rpc Enable Secure RPC 2228 --enable-input-thread Enable input threads 2229 --disable-xtrans-send-fds 2230 Use Xtrans support for fd passing (default: auto) 2231 2232Optional Packages: 2233 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 2234 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 2235 --with-doxygen Use doxygen to regenerate documentation (default: 2236 auto) 2237 --with-xmlto Use xmlto to regenerate documentation (default: 2238 auto) 2239 --with-fop Use fop to regenerate documentation (default: auto) 2240 --with-xsltproc Use xsltproc for the transformation of XML documents 2241 (default: auto) 2242 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 2243 both] 2244 --with-aix-soname=aix|svr4|both 2245 shared library versioning (aka "SONAME") variant to 2246 provide on AIX, [default=aix]. 2247 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 2248 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 2249 compiler's sysroot if not specified). 2250 --with-dtrace=PATH Enable dtrace probes (default: enabled if dtrace 2251 found) 2252 --with-int10=BACKEND int10 backend: vm86, x86emu or stub 2253 --with-vendor-name=VENDOR 2254 Vendor string reported by the server 2255 --with-vendor-name-short=VENDOR 2256 Short version of vendor string reported by the 2257 server 2258 --with-vendor-web=URL Vendor web address reported by the server 2259 --with-module-dir=DIR Directory where modules are installed (default: 2260 $libdir/xorg/modules) 2261 --with-log-dir=DIR Directory where log files are kept (default: 2262 $localstatedir/log) 2263 --with-builder-addr=ADDRESS 2264 Builder address (default: 2265 xorg@lists.freedesktop.org) 2266 --with-os-name=OSNAME Name of OS (default: output of "uname -srm") 2267 --with-os-vendor=OSVENDOR 2268 Name of OS vendor 2269 --with-builderstring=BUILDERSTRING 2270 Additional builder string 2271 --with-fallback-input-driver=$FALLBACK_INPUT_DRIVER 2272 Input driver fallback if the requested driver for a 2273 device is unavailable 2274 --with-fontrootdir=DIR Path to root directory for font files 2275 --with-fontmiscdir=DIR Path to misc files [FONTROOTDIR/misc] 2276 --with-fontotfdir=DIR Path to OTF files [FONTROOTDIR/OTF] 2277 --with-fontttfdir=DIR Path to TTF files [FONTROOTDIR/TTF] 2278 --with-fonttype1dir=DIR Path to Type1 files [FONTROOTDIR/Type1] 2279 --with-font75dpidir=DIR Path to 75dpi files [FONTROOTDIR/75dpi] 2280 --with-font100dpidir=DIR 2281 Path to 100dpi files [FONTROOTDIR/100dpi] 2282 --with-default-font-path=PATH 2283 Comma separated list of font dirs 2284 --with-xkb-path=PATH Path to XKB base dir (default: auto) 2285 --with-xkb-output=PATH Path to XKB output dir (default: 2286 ${datadir}/X11/xkb/compiled) 2287 --with-default-xkb-rules=RULES 2288 Keyboard ruleset (default: base/evdev) 2289 --with-default-xkb-model=MODEL 2290 Keyboard model (default: pc105) 2291 --with-default-xkb-layout=LAYOUT 2292 Keyboard layout (default: us) 2293 --with-default-xkb-variant=VARIANT 2294 Keyboard variant (default: (none)) 2295 --with-default-xkb-options=OPTIONS 2296 Keyboard layout options (default: (none)) 2297 --with-serverconfig-path=PATH 2298 Directory where ancillary server config files are 2299 installed (default: ${libdir}/xorg) 2300 --with-apple-applications-dir=PATH 2301 Path to the Applications directory (default: 2302 /Applications/Utilities) 2303 --with-apple-application-name=NAME 2304 Name for the .app (default: X11) 2305 --with-bundle-id-prefix=RDNS_PREFIX 2306 Prefix to use for bundle identifiers (default: 2307 org.x) 2308 --with-bundle-version=VERSION 2309 Version to use for X11.app's CFBundleVersion 2310 (default: 1.20.10) 2311 --with-bundle-version-string=VERSION 2312 Version to use for X11.app's 2313 CFBundleShortVersionString (default: 1.20.10) 2314 --with-sparkle-feed-url=URL 2315 URL for the Sparkle feed (default: 2316 https://www.xquartz.org/releases/sparkle/release.xml) 2317 --with-khronos-spec-dir=PATH 2318 Path to Khronos OpenGL registry database files 2319 (default: auto) 2320 --with-systemd-daemon support systemd socket activation (default: auto) 2321 --with-xkb-bin-directory=DIR 2322 Directory containing xkbcomp program (default: auto) 2323 --with-sha1=libc|libmd|libnettle|libgcrypt|libcrypto|libsha1|CommonCrypto|CryptoAPI 2324 choose SHA1 implementation 2325 2326Some influential environment variables: 2327 CC C compiler command 2328 CFLAGS C compiler flags 2329 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2330 nonstandard directory <lib dir> 2331 LIBS libraries to pass to the linker, e.g. -l<library> 2332 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2333 you have headers in a nonstandard directory <include dir> 2334 CPP C preprocessor 2335 PKG_CONFIG path to pkg-config utility 2336 PKG_CONFIG_PATH 2337 directories to add to pkg-config's search path 2338 PKG_CONFIG_LIBDIR 2339 path overriding pkg-config's built-in search path 2340 DOXYGEN Path to doxygen command 2341 DOT Path to the dot graphics utility 2342 XMLTO Path to xmlto command 2343 FOP Path to fop command 2344 XSLTPROC Path to xsltproc command 2345 XORG_MALLOC_DEBUG_ENV 2346 Environment variables to enable memory checking in tests 2347 CCAS assembler compiler command (defaults to CC) 2348 CCASFLAGS assembler compiler flags (defaults to CFLAGS) 2349 LT_SYS_LIBRARY_PATH 2350 User-defined run-time library search path. 2351 YACC The `Yet Another Compiler Compiler' implementation to use. 2352 Defaults to the first program found out of: `bison -y', `byacc', 2353 `yacc'. 2354 YFLAGS The list of arguments that will be passed by default to $YACC. 2355 This script will default YFLAGS to the empty string to avoid a 2356 default value of `-d' given by some make applications. 2357 PIXMAN_CFLAGS 2358 C compiler flags for PIXMAN, overriding pkg-config 2359 PIXMAN_LIBS linker flags for PIXMAN, overriding pkg-config 2360 SYSTEMD_DAEMON_CFLAGS 2361 C compiler flags for SYSTEMD_DAEMON, overriding pkg-config 2362 SYSTEMD_DAEMON_LIBS 2363 linker flags for SYSTEMD_DAEMON, overriding pkg-config 2364 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config 2365 UDEV_LIBS linker flags for UDEV, overriding pkg-config 2366 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config 2367 DBUS_LIBS linker flags for DBUS, overriding pkg-config 2368 HAL_CFLAGS C compiler flags for HAL, overriding pkg-config 2369 HAL_LIBS linker flags for HAL, overriding pkg-config 2370 DRI2PROTO_CFLAGS 2371 C compiler flags for DRI2PROTO, overriding pkg-config 2372 DRI2PROTO_LIBS 2373 linker flags for DRI2PROTO, overriding pkg-config 2374 DRI3PROTO_CFLAGS 2375 C compiler flags for DRI3PROTO, overriding pkg-config 2376 DRI3PROTO_LIBS 2377 linker flags for DRI3PROTO, overriding pkg-config 2378 XSHMFENCE_CFLAGS 2379 C compiler flags for XSHMFENCE, overriding pkg-config 2380 XSHMFENCE_LIBS 2381 linker flags for XSHMFENCE, overriding pkg-config 2382 LIBDRM_CFLAGS 2383 C compiler flags for LIBDRM, overriding pkg-config 2384 LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config 2385 XLIB_CFLAGS C compiler flags for XLIB, overriding pkg-config 2386 XLIB_LIBS linker flags for XLIB, overriding pkg-config 2387 GL_CFLAGS C compiler flags for GL, overriding pkg-config 2388 GL_LIBS linker flags for GL, overriding pkg-config 2389 SELINUX_CFLAGS 2390 C compiler flags for SELINUX, overriding pkg-config 2391 SELINUX_LIBS 2392 linker flags for SELINUX, overriding pkg-config 2393 XDMCP_CFLAGS 2394 C compiler flags for XDMCP, overriding pkg-config 2395 XDMCP_LIBS linker flags for XDMCP, overriding pkg-config 2396 LIBSHA1_CFLAGS 2397 C compiler flags for LIBSHA1, overriding pkg-config 2398 LIBSHA1_LIBS 2399 linker flags for LIBSHA1, overriding pkg-config 2400 OPENSSL_CFLAGS 2401 C compiler flags for OPENSSL, overriding pkg-config 2402 OPENSSL_LIBS 2403 linker flags for OPENSSL, overriding pkg-config 2404 XSERVERCFLAGS_CFLAGS 2405 C compiler flags for XSERVERCFLAGS, overriding pkg-config 2406 XSERVERCFLAGS_LIBS 2407 linker flags for XSERVERCFLAGS, overriding pkg-config 2408 XSERVERLIBS_CFLAGS 2409 C compiler flags for XSERVERLIBS, overriding pkg-config 2410 XSERVERLIBS_LIBS 2411 linker flags for XSERVERLIBS, overriding pkg-config 2412 LIBUNWIND_CFLAGS 2413 C compiler flags for LIBUNWIND, overriding pkg-config 2414 LIBUNWIND_LIBS 2415 linker flags for LIBUNWIND, overriding pkg-config 2416 XNESTMODULES_CFLAGS 2417 C compiler flags for XNESTMODULES, overriding pkg-config 2418 XNESTMODULES_LIBS 2419 linker flags for XNESTMODULES, overriding pkg-config 2420 PCIACCESS_CFLAGS 2421 C compiler flags for PCIACCESS, overriding pkg-config 2422 PCIACCESS_LIBS 2423 linker flags for PCIACCESS, overriding pkg-config 2424 DGA_CFLAGS C compiler flags for DGA, overriding pkg-config 2425 DGA_LIBS linker flags for DGA, overriding pkg-config 2426 XORG_MODULES_CFLAGS 2427 C compiler flags for XORG_MODULES, overriding pkg-config 2428 XORG_MODULES_LIBS 2429 linker flags for XORG_MODULES, overriding pkg-config 2430 GLAMOR_CFLAGS 2431 C compiler flags for GLAMOR, overriding pkg-config 2432 GLAMOR_LIBS linker flags for GLAMOR, overriding pkg-config 2433 GBM_CFLAGS C compiler flags for GBM, overriding pkg-config 2434 GBM_LIBS linker flags for GBM, overriding pkg-config 2435 XWINMODULES_CFLAGS 2436 C compiler flags for XWINMODULES, overriding pkg-config 2437 XWINMODULES_LIBS 2438 linker flags for XWINMODULES, overriding pkg-config 2439 WINDOWSWM_CFLAGS 2440 C compiler flags for WINDOWSWM, overriding pkg-config 2441 WINDOWSWM_LIBS 2442 linker flags for WINDOWSWM, overriding pkg-config 2443 WINDOWSDRI_CFLAGS 2444 C compiler flags for WINDOWSDRI, overriding pkg-config 2445 WINDOWSDRI_LIBS 2446 linker flags for WINDOWSDRI, overriding pkg-config 2447 KHRONOS_OPENGL_REGISTRY_CFLAGS 2448 C compiler flags for KHRONOS_OPENGL_REGISTRY, overriding 2449 pkg-config 2450 KHRONOS_OPENGL_REGISTRY_LIBS 2451 linker flags for KHRONOS_OPENGL_REGISTRY, overriding pkg-config 2452 XPBPROXY_CFLAGS 2453 C compiler flags for XPBPROXY, overriding pkg-config 2454 XPBPROXY_LIBS 2455 linker flags for XPBPROXY, overriding pkg-config 2456 DMXMODULES_CFLAGS 2457 C compiler flags for DMXMODULES, overriding pkg-config 2458 DMXMODULES_LIBS 2459 linker flags for DMXMODULES, overriding pkg-config 2460 XDMXCONFIG_DEP_CFLAGS 2461 C compiler flags for XDMXCONFIG_DEP, overriding pkg-config 2462 XDMXCONFIG_DEP_LIBS 2463 linker flags for XDMXCONFIG_DEP, overriding pkg-config 2464 DMXEXAMPLES_DEP_CFLAGS 2465 C compiler flags for DMXEXAMPLES_DEP, overriding pkg-config 2466 DMXEXAMPLES_DEP_LIBS 2467 linker flags for DMXEXAMPLES_DEP, overriding pkg-config 2468 DMXXMUEXAMPLES_DEP_CFLAGS 2469 C compiler flags for DMXXMUEXAMPLES_DEP, overriding pkg-config 2470 DMXXMUEXAMPLES_DEP_LIBS 2471 linker flags for DMXXMUEXAMPLES_DEP, overriding pkg-config 2472 DMXXIEXAMPLES_DEP_CFLAGS 2473 C compiler flags for DMXXIEXAMPLES_DEP, overriding pkg-config 2474 DMXXIEXAMPLES_DEP_LIBS 2475 linker flags for DMXXIEXAMPLES_DEP, overriding pkg-config 2476 XTSTEXAMPLES_DEP_CFLAGS 2477 C compiler flags for XTSTEXAMPLES_DEP, overriding pkg-config 2478 XTSTEXAMPLES_DEP_LIBS 2479 linker flags for XTSTEXAMPLES_DEP, overriding pkg-config 2480 XRESEXAMPLES_DEP_CFLAGS 2481 C compiler flags for XRESEXAMPLES_DEP, overriding pkg-config 2482 XRESEXAMPLES_DEP_LIBS 2483 linker flags for XRESEXAMPLES_DEP, overriding pkg-config 2484 X11EXAMPLES_DEP_CFLAGS 2485 C compiler flags for X11EXAMPLES_DEP, overriding pkg-config 2486 X11EXAMPLES_DEP_LIBS 2487 linker flags for X11EXAMPLES_DEP, overriding pkg-config 2488 XEPHYR_CFLAGS 2489 C compiler flags for XEPHYR, overriding pkg-config 2490 XEPHYR_LIBS linker flags for XEPHYR, overriding pkg-config 2491 XWAYLANDMODULES_CFLAGS 2492 C compiler flags for XWAYLANDMODULES, overriding pkg-config 2493 XWAYLANDMODULES_LIBS 2494 linker flags for XWAYLANDMODULES, overriding pkg-config 2495 WAYLAND_EGLSTREAM_CFLAGS 2496 C compiler flags for WAYLAND_EGLSTREAM, overriding pkg-config 2497 WAYLAND_EGLSTREAM_LIBS 2498 linker flags for WAYLAND_EGLSTREAM, overriding pkg-config 2499 WAYLAND_SCANNER_CFLAGS 2500 C compiler flags for WAYLAND_SCANNER, overriding pkg-config 2501 WAYLAND_SCANNER_LIBS 2502 linker flags for WAYLAND_SCANNER, overriding pkg-config 2503 2504Use these variables to override the choices made by `configure' or to help 2505it to find libraries and programs with nonstandard names/locations. 2506 2507Report bugs to <https://gitlab.freedesktop.org/xorg/xserver/issues>. 2508_ACEOF 2509ac_status=$? 2510fi 2511 2512if test "$ac_init_help" = "recursive"; then 2513 # If there are subdirs, report their specific --help. 2514 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2515 test -d "$ac_dir" || 2516 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2517 continue 2518 ac_builddir=. 2519 2520case "$ac_dir" in 2521.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2522*) 2523 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2524 # A ".." for each directory in $ac_dir_suffix. 2525 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2526 case $ac_top_builddir_sub in 2527 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2528 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2529 esac ;; 2530esac 2531ac_abs_top_builddir=$ac_pwd 2532ac_abs_builddir=$ac_pwd$ac_dir_suffix 2533# for backward compatibility: 2534ac_top_builddir=$ac_top_build_prefix 2535 2536case $srcdir in 2537 .) # We are building in place. 2538 ac_srcdir=. 2539 ac_top_srcdir=$ac_top_builddir_sub 2540 ac_abs_top_srcdir=$ac_pwd ;; 2541 [\\/]* | ?:[\\/]* ) # Absolute name. 2542 ac_srcdir=$srcdir$ac_dir_suffix; 2543 ac_top_srcdir=$srcdir 2544 ac_abs_top_srcdir=$srcdir ;; 2545 *) # Relative name. 2546 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2547 ac_top_srcdir=$ac_top_build_prefix$srcdir 2548 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2549esac 2550ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2551 2552 cd "$ac_dir" || { ac_status=$?; continue; } 2553 # Check for guested configure. 2554 if test -f "$ac_srcdir/configure.gnu"; then 2555 echo && 2556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2557 elif test -f "$ac_srcdir/configure"; then 2558 echo && 2559 $SHELL "$ac_srcdir/configure" --help=recursive 2560 else 2561 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2562 fi || ac_status=$? 2563 cd "$ac_pwd" || { ac_status=$?; break; } 2564 done 2565fi 2566 2567test -n "$ac_init_help" && exit $ac_status 2568if $ac_init_version; then 2569 cat <<\_ACEOF 2570xorg-server configure 1.20.10 2571generated by GNU Autoconf 2.69 2572 2573Copyright (C) 2012 Free Software Foundation, Inc. 2574This configure script is free software; the Free Software Foundation 2575gives unlimited permission to copy, distribute and modify it. 2576_ACEOF 2577 exit 2578fi 2579 2580## ------------------------ ## 2581## Autoconf initialization. ## 2582## ------------------------ ## 2583 2584# ac_fn_c_try_compile LINENO 2585# -------------------------- 2586# Try to compile conftest.$ac_ext, and return whether this succeeded. 2587ac_fn_c_try_compile () 2588{ 2589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2590 rm -f conftest.$ac_objext 2591 if { { ac_try="$ac_compile" 2592case "(($ac_try" in 2593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2594 *) ac_try_echo=$ac_try;; 2595esac 2596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2597$as_echo "$ac_try_echo"; } >&5 2598 (eval "$ac_compile") 2>conftest.err 2599 ac_status=$? 2600 if test -s conftest.err; then 2601 grep -v '^ *+' conftest.err >conftest.er1 2602 cat conftest.er1 >&5 2603 mv -f conftest.er1 conftest.err 2604 fi 2605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2606 test $ac_status = 0; } && { 2607 test -z "$ac_c_werror_flag" || 2608 test ! -s conftest.err 2609 } && test -s conftest.$ac_objext; then : 2610 ac_retval=0 2611else 2612 $as_echo "$as_me: failed program was:" >&5 2613sed 's/^/| /' conftest.$ac_ext >&5 2614 2615 ac_retval=1 2616fi 2617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2618 as_fn_set_status $ac_retval 2619 2620} # ac_fn_c_try_compile 2621 2622# ac_fn_c_try_cpp LINENO 2623# ---------------------- 2624# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2625ac_fn_c_try_cpp () 2626{ 2627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2628 if { { ac_try="$ac_cpp conftest.$ac_ext" 2629case "(($ac_try" in 2630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2631 *) ac_try_echo=$ac_try;; 2632esac 2633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2634$as_echo "$ac_try_echo"; } >&5 2635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2636 ac_status=$? 2637 if test -s conftest.err; then 2638 grep -v '^ *+' conftest.err >conftest.er1 2639 cat conftest.er1 >&5 2640 mv -f conftest.er1 conftest.err 2641 fi 2642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2643 test $ac_status = 0; } > conftest.i && { 2644 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2645 test ! -s conftest.err 2646 }; then : 2647 ac_retval=0 2648else 2649 $as_echo "$as_me: failed program was:" >&5 2650sed 's/^/| /' conftest.$ac_ext >&5 2651 2652 ac_retval=1 2653fi 2654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2655 as_fn_set_status $ac_retval 2656 2657} # ac_fn_c_try_cpp 2658 2659# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2660# ------------------------------------------------------- 2661# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2662# the include files in INCLUDES and setting the cache variable VAR 2663# accordingly. 2664ac_fn_c_check_header_mongrel () 2665{ 2666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2667 if eval \${$3+:} false; then : 2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2669$as_echo_n "checking for $2... " >&6; } 2670if eval \${$3+:} false; then : 2671 $as_echo_n "(cached) " >&6 2672fi 2673eval ac_res=\$$3 2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2675$as_echo "$ac_res" >&6; } 2676else 2677 # Is the header compilable? 2678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2679$as_echo_n "checking $2 usability... " >&6; } 2680cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2681/* end confdefs.h. */ 2682$4 2683#include <$2> 2684_ACEOF 2685if ac_fn_c_try_compile "$LINENO"; then : 2686 ac_header_compiler=yes 2687else 2688 ac_header_compiler=no 2689fi 2690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2692$as_echo "$ac_header_compiler" >&6; } 2693 2694# Is the header present? 2695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2696$as_echo_n "checking $2 presence... " >&6; } 2697cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2698/* end confdefs.h. */ 2699#include <$2> 2700_ACEOF 2701if ac_fn_c_try_cpp "$LINENO"; then : 2702 ac_header_preproc=yes 2703else 2704 ac_header_preproc=no 2705fi 2706rm -f conftest.err conftest.i conftest.$ac_ext 2707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2708$as_echo "$ac_header_preproc" >&6; } 2709 2710# So? What about this header? 2711case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2712 yes:no: ) 2713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2714$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2716$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2717 ;; 2718 no:yes:* ) 2719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2720$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2722$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2724$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2726$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2728$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2729( $as_echo "## ----------------------------------------------------------------- ## 2730## Report this to https://gitlab.freedesktop.org/xorg/xserver/issues ## 2731## ----------------------------------------------------------------- ##" 2732 ) | sed "s/^/$as_me: WARNING: /" >&2 2733 ;; 2734esac 2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2736$as_echo_n "checking for $2... " >&6; } 2737if eval \${$3+:} false; then : 2738 $as_echo_n "(cached) " >&6 2739else 2740 eval "$3=\$ac_header_compiler" 2741fi 2742eval ac_res=\$$3 2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2744$as_echo "$ac_res" >&6; } 2745fi 2746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2747 2748} # ac_fn_c_check_header_mongrel 2749 2750# ac_fn_c_try_run LINENO 2751# ---------------------- 2752# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2753# that executables *can* be run. 2754ac_fn_c_try_run () 2755{ 2756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2757 if { { ac_try="$ac_link" 2758case "(($ac_try" in 2759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2760 *) ac_try_echo=$ac_try;; 2761esac 2762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2763$as_echo "$ac_try_echo"; } >&5 2764 (eval "$ac_link") 2>&5 2765 ac_status=$? 2766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2767 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2768 { { case "(($ac_try" in 2769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2770 *) ac_try_echo=$ac_try;; 2771esac 2772eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2773$as_echo "$ac_try_echo"; } >&5 2774 (eval "$ac_try") 2>&5 2775 ac_status=$? 2776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2777 test $ac_status = 0; }; }; then : 2778 ac_retval=0 2779else 2780 $as_echo "$as_me: program exited with status $ac_status" >&5 2781 $as_echo "$as_me: failed program was:" >&5 2782sed 's/^/| /' conftest.$ac_ext >&5 2783 2784 ac_retval=$ac_status 2785fi 2786 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2788 as_fn_set_status $ac_retval 2789 2790} # ac_fn_c_try_run 2791 2792# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2793# ------------------------------------------------------- 2794# Tests whether HEADER exists and can be compiled using the include files in 2795# INCLUDES, setting the cache variable VAR accordingly. 2796ac_fn_c_check_header_compile () 2797{ 2798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2800$as_echo_n "checking for $2... " >&6; } 2801if eval \${$3+:} false; then : 2802 $as_echo_n "(cached) " >&6 2803else 2804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2805/* end confdefs.h. */ 2806$4 2807#include <$2> 2808_ACEOF 2809if ac_fn_c_try_compile "$LINENO"; then : 2810 eval "$3=yes" 2811else 2812 eval "$3=no" 2813fi 2814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2815fi 2816eval ac_res=\$$3 2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2818$as_echo "$ac_res" >&6; } 2819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2820 2821} # ac_fn_c_check_header_compile 2822 2823# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2824# --------------------------------------------- 2825# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2826# accordingly. 2827ac_fn_c_check_decl () 2828{ 2829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2830 as_decl_name=`echo $2|sed 's/ *(.*//'` 2831 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2833$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2834if eval \${$3+:} false; then : 2835 $as_echo_n "(cached) " >&6 2836else 2837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2838/* end confdefs.h. */ 2839$4 2840int 2841main () 2842{ 2843#ifndef $as_decl_name 2844#ifdef __cplusplus 2845 (void) $as_decl_use; 2846#else 2847 (void) $as_decl_name; 2848#endif 2849#endif 2850 2851 ; 2852 return 0; 2853} 2854_ACEOF 2855if ac_fn_c_try_compile "$LINENO"; then : 2856 eval "$3=yes" 2857else 2858 eval "$3=no" 2859fi 2860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2861fi 2862eval ac_res=\$$3 2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2864$as_echo "$ac_res" >&6; } 2865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2866 2867} # ac_fn_c_check_decl 2868 2869# ac_fn_c_try_link LINENO 2870# ----------------------- 2871# Try to link conftest.$ac_ext, and return whether this succeeded. 2872ac_fn_c_try_link () 2873{ 2874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2875 rm -f conftest.$ac_objext conftest$ac_exeext 2876 if { { ac_try="$ac_link" 2877case "(($ac_try" in 2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2879 *) ac_try_echo=$ac_try;; 2880esac 2881eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2882$as_echo "$ac_try_echo"; } >&5 2883 (eval "$ac_link") 2>conftest.err 2884 ac_status=$? 2885 if test -s conftest.err; then 2886 grep -v '^ *+' conftest.err >conftest.er1 2887 cat conftest.er1 >&5 2888 mv -f conftest.er1 conftest.err 2889 fi 2890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2891 test $ac_status = 0; } && { 2892 test -z "$ac_c_werror_flag" || 2893 test ! -s conftest.err 2894 } && test -s conftest$ac_exeext && { 2895 test "$cross_compiling" = yes || 2896 test -x conftest$ac_exeext 2897 }; then : 2898 ac_retval=0 2899else 2900 $as_echo "$as_me: failed program was:" >&5 2901sed 's/^/| /' conftest.$ac_ext >&5 2902 2903 ac_retval=1 2904fi 2905 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2906 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2907 # interfere with the next link command; also delete a directory that is 2908 # left behind by Apple's compiler. We do this before executing the actions. 2909 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2911 as_fn_set_status $ac_retval 2912 2913} # ac_fn_c_try_link 2914 2915# ac_fn_c_check_func LINENO FUNC VAR 2916# ---------------------------------- 2917# Tests whether FUNC exists, setting the cache variable VAR accordingly 2918ac_fn_c_check_func () 2919{ 2920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2922$as_echo_n "checking for $2... " >&6; } 2923if eval \${$3+:} false; then : 2924 $as_echo_n "(cached) " >&6 2925else 2926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2927/* end confdefs.h. */ 2928/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2929 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2930#define $2 innocuous_$2 2931 2932/* System header to define __stub macros and hopefully few prototypes, 2933 which can conflict with char $2 (); below. 2934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2935 <limits.h> exists even on freestanding compilers. */ 2936 2937#ifdef __STDC__ 2938# include <limits.h> 2939#else 2940# include <assert.h> 2941#endif 2942 2943#undef $2 2944 2945/* Override any GCC internal prototype to avoid an error. 2946 Use char because int might match the return type of a GCC 2947 builtin and then its argument prototype would still apply. */ 2948#ifdef __cplusplus 2949extern "C" 2950#endif 2951char $2 (); 2952/* The GNU C library defines this for functions which it implements 2953 to always fail with ENOSYS. Some functions are actually named 2954 something starting with __ and the normal name is an alias. */ 2955#if defined __stub_$2 || defined __stub___$2 2956choke me 2957#endif 2958 2959int 2960main () 2961{ 2962return $2 (); 2963 ; 2964 return 0; 2965} 2966_ACEOF 2967if ac_fn_c_try_link "$LINENO"; then : 2968 eval "$3=yes" 2969else 2970 eval "$3=no" 2971fi 2972rm -f core conftest.err conftest.$ac_objext \ 2973 conftest$ac_exeext conftest.$ac_ext 2974fi 2975eval ac_res=\$$3 2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2977$as_echo "$ac_res" >&6; } 2978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2979 2980} # ac_fn_c_check_func 2981 2982# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2983# -------------------------------------------- 2984# Tries to find the compile-time value of EXPR in a program that includes 2985# INCLUDES, setting VAR accordingly. Returns whether the value could be 2986# computed 2987ac_fn_c_compute_int () 2988{ 2989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2990 if test "$cross_compiling" = yes; then 2991 # Depending upon the size, compute the lo and hi bounds. 2992cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2993/* end confdefs.h. */ 2994$4 2995int 2996main () 2997{ 2998static int test_array [1 - 2 * !(($2) >= 0)]; 2999test_array [0] = 0; 3000return test_array [0]; 3001 3002 ; 3003 return 0; 3004} 3005_ACEOF 3006if ac_fn_c_try_compile "$LINENO"; then : 3007 ac_lo=0 ac_mid=0 3008 while :; do 3009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3010/* end confdefs.h. */ 3011$4 3012int 3013main () 3014{ 3015static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 3016test_array [0] = 0; 3017return test_array [0]; 3018 3019 ; 3020 return 0; 3021} 3022_ACEOF 3023if ac_fn_c_try_compile "$LINENO"; then : 3024 ac_hi=$ac_mid; break 3025else 3026 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 3027 if test $ac_lo -le $ac_mid; then 3028 ac_lo= ac_hi= 3029 break 3030 fi 3031 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 3032fi 3033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3034 done 3035else 3036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3037/* end confdefs.h. */ 3038$4 3039int 3040main () 3041{ 3042static int test_array [1 - 2 * !(($2) < 0)]; 3043test_array [0] = 0; 3044return test_array [0]; 3045 3046 ; 3047 return 0; 3048} 3049_ACEOF 3050if ac_fn_c_try_compile "$LINENO"; then : 3051 ac_hi=-1 ac_mid=-1 3052 while :; do 3053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3054/* end confdefs.h. */ 3055$4 3056int 3057main () 3058{ 3059static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 3060test_array [0] = 0; 3061return test_array [0]; 3062 3063 ; 3064 return 0; 3065} 3066_ACEOF 3067if ac_fn_c_try_compile "$LINENO"; then : 3068 ac_lo=$ac_mid; break 3069else 3070 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 3071 if test $ac_mid -le $ac_hi; then 3072 ac_lo= ac_hi= 3073 break 3074 fi 3075 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 3076fi 3077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3078 done 3079else 3080 ac_lo= ac_hi= 3081fi 3082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3083fi 3084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3085# Binary search between lo and hi bounds. 3086while test "x$ac_lo" != "x$ac_hi"; do 3087 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 3088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3089/* end confdefs.h. */ 3090$4 3091int 3092main () 3093{ 3094static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 3095test_array [0] = 0; 3096return test_array [0]; 3097 3098 ; 3099 return 0; 3100} 3101_ACEOF 3102if ac_fn_c_try_compile "$LINENO"; then : 3103 ac_hi=$ac_mid 3104else 3105 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 3106fi 3107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3108done 3109case $ac_lo in #(( 3110?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 3111'') ac_retval=1 ;; 3112esac 3113 else 3114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3115/* end confdefs.h. */ 3116$4 3117static long int longval () { return $2; } 3118static unsigned long int ulongval () { return $2; } 3119#include <stdio.h> 3120#include <stdlib.h> 3121int 3122main () 3123{ 3124 3125 FILE *f = fopen ("conftest.val", "w"); 3126 if (! f) 3127 return 1; 3128 if (($2) < 0) 3129 { 3130 long int i = longval (); 3131 if (i != ($2)) 3132 return 1; 3133 fprintf (f, "%ld", i); 3134 } 3135 else 3136 { 3137 unsigned long int i = ulongval (); 3138 if (i != ($2)) 3139 return 1; 3140 fprintf (f, "%lu", i); 3141 } 3142 /* Do not output a trailing newline, as this causes \r\n confusion 3143 on some platforms. */ 3144 return ferror (f) || fclose (f) != 0; 3145 3146 ; 3147 return 0; 3148} 3149_ACEOF 3150if ac_fn_c_try_run "$LINENO"; then : 3151 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 3152else 3153 ac_retval=1 3154fi 3155rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3156 conftest.$ac_objext conftest.beam conftest.$ac_ext 3157rm -f conftest.val 3158 3159 fi 3160 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3161 as_fn_set_status $ac_retval 3162 3163} # ac_fn_c_compute_int 3164 3165# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 3166# ------------------------------------------- 3167# Tests whether TYPE exists after having included INCLUDES, setting cache 3168# variable VAR accordingly. 3169ac_fn_c_check_type () 3170{ 3171 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3173$as_echo_n "checking for $2... " >&6; } 3174if eval \${$3+:} false; then : 3175 $as_echo_n "(cached) " >&6 3176else 3177 eval "$3=no" 3178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3179/* end confdefs.h. */ 3180$4 3181int 3182main () 3183{ 3184if (sizeof ($2)) 3185 return 0; 3186 ; 3187 return 0; 3188} 3189_ACEOF 3190if ac_fn_c_try_compile "$LINENO"; then : 3191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3192/* end confdefs.h. */ 3193$4 3194int 3195main () 3196{ 3197if (sizeof (($2))) 3198 return 0; 3199 ; 3200 return 0; 3201} 3202_ACEOF 3203if ac_fn_c_try_compile "$LINENO"; then : 3204 3205else 3206 eval "$3=yes" 3207fi 3208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3209fi 3210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3211fi 3212eval ac_res=\$$3 3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3214$as_echo "$ac_res" >&6; } 3215 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3216 3217} # ac_fn_c_check_type 3218 3219# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 3220# ---------------------------------------------------- 3221# Tries to find if the field MEMBER exists in type AGGR, after including 3222# INCLUDES, setting cache variable VAR accordingly. 3223ac_fn_c_check_member () 3224{ 3225 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 3227$as_echo_n "checking for $2.$3... " >&6; } 3228if eval \${$4+:} false; then : 3229 $as_echo_n "(cached) " >&6 3230else 3231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3232/* end confdefs.h. */ 3233$5 3234int 3235main () 3236{ 3237static $2 ac_aggr; 3238if (ac_aggr.$3) 3239return 0; 3240 ; 3241 return 0; 3242} 3243_ACEOF 3244if ac_fn_c_try_compile "$LINENO"; then : 3245 eval "$4=yes" 3246else 3247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3248/* end confdefs.h. */ 3249$5 3250int 3251main () 3252{ 3253static $2 ac_aggr; 3254if (sizeof ac_aggr.$3) 3255return 0; 3256 ; 3257 return 0; 3258} 3259_ACEOF 3260if ac_fn_c_try_compile "$LINENO"; then : 3261 eval "$4=yes" 3262else 3263 eval "$4=no" 3264fi 3265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3266fi 3267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3268fi 3269eval ac_res=\$$4 3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3271$as_echo "$ac_res" >&6; } 3272 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3273 3274} # ac_fn_c_check_member 3275cat >config.log <<_ACEOF 3276This file contains any messages produced by compilers while 3277running configure, to aid debugging if configure makes a mistake. 3278 3279It was created by xorg-server $as_me 1.20.10, which was 3280generated by GNU Autoconf 2.69. Invocation command line was 3281 3282 $ $0 $@ 3283 3284_ACEOF 3285exec 5>>config.log 3286{ 3287cat <<_ASUNAME 3288## --------- ## 3289## Platform. ## 3290## --------- ## 3291 3292hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 3293uname -m = `(uname -m) 2>/dev/null || echo unknown` 3294uname -r = `(uname -r) 2>/dev/null || echo unknown` 3295uname -s = `(uname -s) 2>/dev/null || echo unknown` 3296uname -v = `(uname -v) 2>/dev/null || echo unknown` 3297 3298/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 3299/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 3300 3301/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 3302/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 3303/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 3304/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 3305/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 3306/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 3307/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 3308 3309_ASUNAME 3310 3311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3312for as_dir in $PATH 3313do 3314 IFS=$as_save_IFS 3315 test -z "$as_dir" && as_dir=. 3316 $as_echo "PATH: $as_dir" 3317 done 3318IFS=$as_save_IFS 3319 3320} >&5 3321 3322cat >&5 <<_ACEOF 3323 3324 3325## ----------- ## 3326## Core tests. ## 3327## ----------- ## 3328 3329_ACEOF 3330 3331 3332# Keep a trace of the command line. 3333# Strip out --no-create and --no-recursion so they do not pile up. 3334# Strip out --silent because we don't want to record it for future runs. 3335# Also quote any args containing shell meta-characters. 3336# Make two passes to allow for proper duplicate-argument suppression. 3337ac_configure_args= 3338ac_configure_args0= 3339ac_configure_args1= 3340ac_must_keep_next=false 3341for ac_pass in 1 2 3342do 3343 for ac_arg 3344 do 3345 case $ac_arg in 3346 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 3347 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3348 | -silent | --silent | --silen | --sile | --sil) 3349 continue ;; 3350 *\'*) 3351 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3352 esac 3353 case $ac_pass in 3354 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 3355 2) 3356 as_fn_append ac_configure_args1 " '$ac_arg'" 3357 if test $ac_must_keep_next = true; then 3358 ac_must_keep_next=false # Got value, back to normal. 3359 else 3360 case $ac_arg in 3361 *=* | --config-cache | -C | -disable-* | --disable-* \ 3362 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 3363 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 3364 | -with-* | --with-* | -without-* | --without-* | --x) 3365 case "$ac_configure_args0 " in 3366 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 3367 esac 3368 ;; 3369 -* ) ac_must_keep_next=true ;; 3370 esac 3371 fi 3372 as_fn_append ac_configure_args " '$ac_arg'" 3373 ;; 3374 esac 3375 done 3376done 3377{ ac_configure_args0=; unset ac_configure_args0;} 3378{ ac_configure_args1=; unset ac_configure_args1;} 3379 3380# When interrupted or exit'd, cleanup temporary files, and complete 3381# config.log. We remove comments because anyway the quotes in there 3382# would cause problems or look ugly. 3383# WARNING: Use '\'' to represent an apostrophe within the trap. 3384# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3385trap 'exit_status=$? 3386 # Save into config.log some information that might help in debugging. 3387 { 3388 echo 3389 3390 $as_echo "## ---------------- ## 3391## Cache variables. ## 3392## ---------------- ##" 3393 echo 3394 # The following way of writing the cache mishandles newlines in values, 3395( 3396 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3397 eval ac_val=\$$ac_var 3398 case $ac_val in #( 3399 *${as_nl}*) 3400 case $ac_var in #( 3401 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3402$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3403 esac 3404 case $ac_var in #( 3405 _ | IFS | as_nl) ;; #( 3406 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3407 *) { eval $ac_var=; unset $ac_var;} ;; 3408 esac ;; 3409 esac 3410 done 3411 (set) 2>&1 | 3412 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3413 *${as_nl}ac_space=\ *) 3414 sed -n \ 3415 "s/'\''/'\''\\\\'\'''\''/g; 3416 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3417 ;; #( 3418 *) 3419 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3420 ;; 3421 esac | 3422 sort 3423) 3424 echo 3425 3426 $as_echo "## ----------------- ## 3427## Output variables. ## 3428## ----------------- ##" 3429 echo 3430 for ac_var in $ac_subst_vars 3431 do 3432 eval ac_val=\$$ac_var 3433 case $ac_val in 3434 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3435 esac 3436 $as_echo "$ac_var='\''$ac_val'\''" 3437 done | sort 3438 echo 3439 3440 if test -n "$ac_subst_files"; then 3441 $as_echo "## ------------------- ## 3442## File substitutions. ## 3443## ------------------- ##" 3444 echo 3445 for ac_var in $ac_subst_files 3446 do 3447 eval ac_val=\$$ac_var 3448 case $ac_val in 3449 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3450 esac 3451 $as_echo "$ac_var='\''$ac_val'\''" 3452 done | sort 3453 echo 3454 fi 3455 3456 if test -s confdefs.h; then 3457 $as_echo "## ----------- ## 3458## confdefs.h. ## 3459## ----------- ##" 3460 echo 3461 cat confdefs.h 3462 echo 3463 fi 3464 test "$ac_signal" != 0 && 3465 $as_echo "$as_me: caught signal $ac_signal" 3466 $as_echo "$as_me: exit $exit_status" 3467 } >&5 3468 rm -f core *.core core.conftest.* && 3469 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3470 exit $exit_status 3471' 0 3472for ac_signal in 1 2 13 15; do 3473 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3474done 3475ac_signal=0 3476 3477# confdefs.h avoids OS command line length limits that DEFS can exceed. 3478rm -f -r conftest* confdefs.h 3479 3480$as_echo "/* confdefs.h */" > confdefs.h 3481 3482# Predefined preprocessor variables. 3483 3484cat >>confdefs.h <<_ACEOF 3485#define PACKAGE_NAME "$PACKAGE_NAME" 3486_ACEOF 3487 3488cat >>confdefs.h <<_ACEOF 3489#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3490_ACEOF 3491 3492cat >>confdefs.h <<_ACEOF 3493#define PACKAGE_VERSION "$PACKAGE_VERSION" 3494_ACEOF 3495 3496cat >>confdefs.h <<_ACEOF 3497#define PACKAGE_STRING "$PACKAGE_STRING" 3498_ACEOF 3499 3500cat >>confdefs.h <<_ACEOF 3501#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3502_ACEOF 3503 3504cat >>confdefs.h <<_ACEOF 3505#define PACKAGE_URL "$PACKAGE_URL" 3506_ACEOF 3507 3508 3509# Let the site file select an alternate cache file if it wants to. 3510# Prefer an explicitly selected file to automatically selected ones. 3511ac_site_file1=NONE 3512ac_site_file2=NONE 3513if test -n "$CONFIG_SITE"; then 3514 # We do not want a PATH search for config.site. 3515 case $CONFIG_SITE in #(( 3516 -*) ac_site_file1=./$CONFIG_SITE;; 3517 */*) ac_site_file1=$CONFIG_SITE;; 3518 *) ac_site_file1=./$CONFIG_SITE;; 3519 esac 3520elif test "x$prefix" != xNONE; then 3521 ac_site_file1=$prefix/share/config.site 3522 ac_site_file2=$prefix/etc/config.site 3523else 3524 ac_site_file1=$ac_default_prefix/share/config.site 3525 ac_site_file2=$ac_default_prefix/etc/config.site 3526fi 3527for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3528do 3529 test "x$ac_site_file" = xNONE && continue 3530 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3531 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3532$as_echo "$as_me: loading site script $ac_site_file" >&6;} 3533 sed 's/^/| /' "$ac_site_file" >&5 3534 . "$ac_site_file" \ 3535 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3536$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3537as_fn_error $? "failed to load site script $ac_site_file 3538See \`config.log' for more details" "$LINENO" 5; } 3539 fi 3540done 3541 3542if test -r "$cache_file"; then 3543 # Some versions of bash will fail to source /dev/null (special files 3544 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3545 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3546 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3547$as_echo "$as_me: loading cache $cache_file" >&6;} 3548 case $cache_file in 3549 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3550 *) . "./$cache_file";; 3551 esac 3552 fi 3553else 3554 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3555$as_echo "$as_me: creating cache $cache_file" >&6;} 3556 >$cache_file 3557fi 3558 3559# Check that the precious variables saved in the cache have kept the same 3560# value. 3561ac_cache_corrupted=false 3562for ac_var in $ac_precious_vars; do 3563 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3564 eval ac_new_set=\$ac_env_${ac_var}_set 3565 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3566 eval ac_new_val=\$ac_env_${ac_var}_value 3567 case $ac_old_set,$ac_new_set in 3568 set,) 3569 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3570$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3571 ac_cache_corrupted=: ;; 3572 ,set) 3573 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3574$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3575 ac_cache_corrupted=: ;; 3576 ,);; 3577 *) 3578 if test "x$ac_old_val" != "x$ac_new_val"; then 3579 # differences in whitespace do not lead to failure. 3580 ac_old_val_w=`echo x $ac_old_val` 3581 ac_new_val_w=`echo x $ac_new_val` 3582 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3583 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3584$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3585 ac_cache_corrupted=: 3586 else 3587 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3588$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3589 eval $ac_var=\$ac_old_val 3590 fi 3591 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3592$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3593 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3594$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3595 fi;; 3596 esac 3597 # Pass precious variables to config.status. 3598 if test "$ac_new_set" = set; then 3599 case $ac_new_val in 3600 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3601 *) ac_arg=$ac_var=$ac_new_val ;; 3602 esac 3603 case " $ac_configure_args " in 3604 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3605 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3606 esac 3607 fi 3608done 3609if $ac_cache_corrupted; then 3610 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3611$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3612 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3613$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3614 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3615fi 3616## -------------------- ## 3617## Main body of script. ## 3618## -------------------- ## 3619 3620ac_ext=c 3621ac_cpp='$CPP $CPPFLAGS' 3622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3624ac_compiler_gnu=$ac_cv_c_compiler_gnu 3625 3626 3627RELEASE_DATE="2020-12-01" 3628RELEASE_NAME="Chicken Pot Pie" 3629 3630 3631am__api_version='1.16' 3632 3633ac_aux_dir= 3634for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3635 if test -f "$ac_dir/install-sh"; then 3636 ac_aux_dir=$ac_dir 3637 ac_install_sh="$ac_aux_dir/install-sh -c" 3638 break 3639 elif test -f "$ac_dir/install.sh"; then 3640 ac_aux_dir=$ac_dir 3641 ac_install_sh="$ac_aux_dir/install.sh -c" 3642 break 3643 elif test -f "$ac_dir/shtool"; then 3644 ac_aux_dir=$ac_dir 3645 ac_install_sh="$ac_aux_dir/shtool install -c" 3646 break 3647 fi 3648done 3649if test -z "$ac_aux_dir"; then 3650 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3651fi 3652 3653# These three variables are undocumented and unsupported, 3654# and are intended to be withdrawn in a future Autoconf release. 3655# They can cause serious problems if a builder's source tree is in a directory 3656# whose full name contains unusual characters. 3657ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3658ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3659ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3660 3661 3662# Find a good install program. We prefer a C program (faster), 3663# so one script is as good as another. But avoid the broken or 3664# incompatible versions: 3665# SysV /etc/install, /usr/sbin/install 3666# SunOS /usr/etc/install 3667# IRIX /sbin/install 3668# AIX /bin/install 3669# AmigaOS /C/install, which installs bootblocks on floppy discs 3670# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3671# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3672# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3673# OS/2's system install, which has a completely different semantic 3674# ./install, which can be erroneously created by make from ./install.sh. 3675# Reject install programs that cannot install multiple files. 3676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3677$as_echo_n "checking for a BSD-compatible install... " >&6; } 3678if test -z "$INSTALL"; then 3679if ${ac_cv_path_install+:} false; then : 3680 $as_echo_n "(cached) " >&6 3681else 3682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3683for as_dir in $PATH 3684do 3685 IFS=$as_save_IFS 3686 test -z "$as_dir" && as_dir=. 3687 # Account for people who put trailing slashes in PATH elements. 3688case $as_dir/ in #(( 3689 ./ | .// | /[cC]/* | \ 3690 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3691 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3692 /usr/ucb/* ) ;; 3693 *) 3694 # OSF1 and SCO ODT 3.0 have their own names for install. 3695 # Don't use installbsd from OSF since it installs stuff as root 3696 # by default. 3697 for ac_prog in ginstall scoinst install; do 3698 for ac_exec_ext in '' $ac_executable_extensions; do 3699 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3700 if test $ac_prog = install && 3701 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3702 # AIX install. It has an incompatible calling convention. 3703 : 3704 elif test $ac_prog = install && 3705 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3706 # program-specific install script used by HP pwplus--don't use. 3707 : 3708 else 3709 rm -rf conftest.one conftest.two conftest.dir 3710 echo one > conftest.one 3711 echo two > conftest.two 3712 mkdir conftest.dir 3713 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3714 test -s conftest.one && test -s conftest.two && 3715 test -s conftest.dir/conftest.one && 3716 test -s conftest.dir/conftest.two 3717 then 3718 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3719 break 3 3720 fi 3721 fi 3722 fi 3723 done 3724 done 3725 ;; 3726esac 3727 3728 done 3729IFS=$as_save_IFS 3730 3731rm -rf conftest.one conftest.two conftest.dir 3732 3733fi 3734 if test "${ac_cv_path_install+set}" = set; then 3735 INSTALL=$ac_cv_path_install 3736 else 3737 # As a last resort, use the slow shell script. Don't cache a 3738 # value for INSTALL within a source directory, because that will 3739 # break other packages using the cache if that directory is 3740 # removed, or if the value is a relative name. 3741 INSTALL=$ac_install_sh 3742 fi 3743fi 3744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3745$as_echo "$INSTALL" >&6; } 3746 3747# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3748# It thinks the first close brace ends the variable substitution. 3749test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3750 3751test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3752 3753test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3754 3755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3756$as_echo_n "checking whether build environment is sane... " >&6; } 3757# Reject unsafe characters in $srcdir or the absolute working directory 3758# name. Accept space and tab only in the latter. 3759am_lf=' 3760' 3761case `pwd` in 3762 *[\\\"\#\$\&\'\`$am_lf]*) 3763 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3764esac 3765case $srcdir in 3766 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3767 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3768esac 3769 3770# Do 'set' in a subshell so we don't clobber the current shell's 3771# arguments. Must try -L first in case configure is actually a 3772# symlink; some systems play weird games with the mod time of symlinks 3773# (eg FreeBSD returns the mod time of the symlink's containing 3774# directory). 3775if ( 3776 am_has_slept=no 3777 for am_try in 1 2; do 3778 echo "timestamp, slept: $am_has_slept" > conftest.file 3779 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3780 if test "$*" = "X"; then 3781 # -L didn't work. 3782 set X `ls -t "$srcdir/configure" conftest.file` 3783 fi 3784 if test "$*" != "X $srcdir/configure conftest.file" \ 3785 && test "$*" != "X conftest.file $srcdir/configure"; then 3786 3787 # If neither matched, then we have a broken ls. This can happen 3788 # if, for instance, CONFIG_SHELL is bash and it inherits a 3789 # broken ls alias from the environment. This has actually 3790 # happened. Such a system could not be considered "sane". 3791 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3792 alias in your environment" "$LINENO" 5 3793 fi 3794 if test "$2" = conftest.file || test $am_try -eq 2; then 3795 break 3796 fi 3797 # Just in case. 3798 sleep 1 3799 am_has_slept=yes 3800 done 3801 test "$2" = conftest.file 3802 ) 3803then 3804 # Ok. 3805 : 3806else 3807 as_fn_error $? "newly created file is older than distributed files! 3808Check your system clock" "$LINENO" 5 3809fi 3810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3811$as_echo "yes" >&6; } 3812# If we didn't sleep, we still need to ensure time stamps of config.status and 3813# generated files are strictly newer. 3814am_sleep_pid= 3815if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3816 ( sleep 1 ) & 3817 am_sleep_pid=$! 3818fi 3819 3820rm -f conftest.file 3821 3822test "$program_prefix" != NONE && 3823 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3824# Use a double $ so make ignores it. 3825test "$program_suffix" != NONE && 3826 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3827# Double any \ or $. 3828# By default was `s,x,x', remove it if useless. 3829ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3830program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3831 3832# Expand $ac_aux_dir to an absolute path. 3833am_aux_dir=`cd "$ac_aux_dir" && pwd` 3834 3835if test x"${MISSING+set}" != xset; then 3836 case $am_aux_dir in 3837 *\ * | *\ *) 3838 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3839 *) 3840 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3841 esac 3842fi 3843# Use eval to expand $SHELL 3844if eval "$MISSING --is-lightweight"; then 3845 am_missing_run="$MISSING " 3846else 3847 am_missing_run= 3848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3849$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3850fi 3851 3852if test x"${install_sh+set}" != xset; then 3853 case $am_aux_dir in 3854 *\ * | *\ *) 3855 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3856 *) 3857 install_sh="\${SHELL} $am_aux_dir/install-sh" 3858 esac 3859fi 3860 3861# Installed binaries are usually stripped using 'strip' when the user 3862# run "make install-strip". However 'strip' might not be the right 3863# tool to use in cross-compilation environments, therefore Automake 3864# will honor the 'STRIP' environment variable to overrule this program. 3865if test "$cross_compiling" != no; then 3866 if test -n "$ac_tool_prefix"; then 3867 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3868set dummy ${ac_tool_prefix}strip; ac_word=$2 3869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3870$as_echo_n "checking for $ac_word... " >&6; } 3871if ${ac_cv_prog_STRIP+:} false; then : 3872 $as_echo_n "(cached) " >&6 3873else 3874 if test -n "$STRIP"; then 3875 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3876else 3877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3878for as_dir in $PATH 3879do 3880 IFS=$as_save_IFS 3881 test -z "$as_dir" && as_dir=. 3882 for ac_exec_ext in '' $ac_executable_extensions; do 3883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3884 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3886 break 2 3887 fi 3888done 3889 done 3890IFS=$as_save_IFS 3891 3892fi 3893fi 3894STRIP=$ac_cv_prog_STRIP 3895if test -n "$STRIP"; then 3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3897$as_echo "$STRIP" >&6; } 3898else 3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3900$as_echo "no" >&6; } 3901fi 3902 3903 3904fi 3905if test -z "$ac_cv_prog_STRIP"; then 3906 ac_ct_STRIP=$STRIP 3907 # Extract the first word of "strip", so it can be a program name with args. 3908set dummy strip; ac_word=$2 3909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3910$as_echo_n "checking for $ac_word... " >&6; } 3911if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3912 $as_echo_n "(cached) " >&6 3913else 3914 if test -n "$ac_ct_STRIP"; then 3915 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3916else 3917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3918for as_dir in $PATH 3919do 3920 IFS=$as_save_IFS 3921 test -z "$as_dir" && as_dir=. 3922 for ac_exec_ext in '' $ac_executable_extensions; do 3923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3924 ac_cv_prog_ac_ct_STRIP="strip" 3925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3926 break 2 3927 fi 3928done 3929 done 3930IFS=$as_save_IFS 3931 3932fi 3933fi 3934ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3935if test -n "$ac_ct_STRIP"; then 3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3937$as_echo "$ac_ct_STRIP" >&6; } 3938else 3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3940$as_echo "no" >&6; } 3941fi 3942 3943 if test "x$ac_ct_STRIP" = x; then 3944 STRIP=":" 3945 else 3946 case $cross_compiling:$ac_tool_warned in 3947yes:) 3948{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3949$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3950ac_tool_warned=yes ;; 3951esac 3952 STRIP=$ac_ct_STRIP 3953 fi 3954else 3955 STRIP="$ac_cv_prog_STRIP" 3956fi 3957 3958fi 3959INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3960 3961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3962$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3963if test -z "$MKDIR_P"; then 3964 if ${ac_cv_path_mkdir+:} false; then : 3965 $as_echo_n "(cached) " >&6 3966else 3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3968for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3969do 3970 IFS=$as_save_IFS 3971 test -z "$as_dir" && as_dir=. 3972 for ac_prog in mkdir gmkdir; do 3973 for ac_exec_ext in '' $ac_executable_extensions; do 3974 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3975 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3976 'mkdir (GNU coreutils) '* | \ 3977 'mkdir (coreutils) '* | \ 3978 'mkdir (fileutils) '4.1*) 3979 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3980 break 3;; 3981 esac 3982 done 3983 done 3984 done 3985IFS=$as_save_IFS 3986 3987fi 3988 3989 test -d ./--version && rmdir ./--version 3990 if test "${ac_cv_path_mkdir+set}" = set; then 3991 MKDIR_P="$ac_cv_path_mkdir -p" 3992 else 3993 # As a last resort, use the slow shell script. Don't cache a 3994 # value for MKDIR_P within a source directory, because that will 3995 # break other packages using the cache if that directory is 3996 # removed, or if the value is a relative name. 3997 MKDIR_P="$ac_install_sh -d" 3998 fi 3999fi 4000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4001$as_echo "$MKDIR_P" >&6; } 4002 4003for ac_prog in gawk mawk nawk awk 4004do 4005 # Extract the first word of "$ac_prog", so it can be a program name with args. 4006set dummy $ac_prog; ac_word=$2 4007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4008$as_echo_n "checking for $ac_word... " >&6; } 4009if ${ac_cv_prog_AWK+:} false; then : 4010 $as_echo_n "(cached) " >&6 4011else 4012 if test -n "$AWK"; then 4013 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4014else 4015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4016for as_dir in $PATH 4017do 4018 IFS=$as_save_IFS 4019 test -z "$as_dir" && as_dir=. 4020 for ac_exec_ext in '' $ac_executable_extensions; do 4021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4022 ac_cv_prog_AWK="$ac_prog" 4023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4024 break 2 4025 fi 4026done 4027 done 4028IFS=$as_save_IFS 4029 4030fi 4031fi 4032AWK=$ac_cv_prog_AWK 4033if test -n "$AWK"; then 4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4035$as_echo "$AWK" >&6; } 4036else 4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4038$as_echo "no" >&6; } 4039fi 4040 4041 4042 test -n "$AWK" && break 4043done 4044 4045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4046$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4047set x ${MAKE-make} 4048ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4049if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4050 $as_echo_n "(cached) " >&6 4051else 4052 cat >conftest.make <<\_ACEOF 4053SHELL = /bin/sh 4054all: 4055 @echo '@@@%%%=$(MAKE)=@@@%%%' 4056_ACEOF 4057# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4058case `${MAKE-make} -f conftest.make 2>/dev/null` in 4059 *@@@%%%=?*=@@@%%%*) 4060 eval ac_cv_prog_make_${ac_make}_set=yes;; 4061 *) 4062 eval ac_cv_prog_make_${ac_make}_set=no;; 4063esac 4064rm -f conftest.make 4065fi 4066if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4068$as_echo "yes" >&6; } 4069 SET_MAKE= 4070else 4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4072$as_echo "no" >&6; } 4073 SET_MAKE="MAKE=${MAKE-make}" 4074fi 4075 4076rm -rf .tst 2>/dev/null 4077mkdir .tst 2>/dev/null 4078if test -d .tst; then 4079 am__leading_dot=. 4080else 4081 am__leading_dot=_ 4082fi 4083rmdir .tst 2>/dev/null 4084 4085# Check whether --enable-silent-rules was given. 4086if test "${enable_silent_rules+set}" = set; then : 4087 enableval=$enable_silent_rules; 4088fi 4089 4090case $enable_silent_rules in # ((( 4091 yes) AM_DEFAULT_VERBOSITY=0;; 4092 no) AM_DEFAULT_VERBOSITY=1;; 4093 *) AM_DEFAULT_VERBOSITY=1;; 4094esac 4095am_make=${MAKE-make} 4096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4097$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4098if ${am_cv_make_support_nested_variables+:} false; then : 4099 $as_echo_n "(cached) " >&6 4100else 4101 if $as_echo 'TRUE=$(BAR$(V)) 4102BAR0=false 4103BAR1=true 4104V=1 4105am__doit: 4106 @$(TRUE) 4107.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4108 am_cv_make_support_nested_variables=yes 4109else 4110 am_cv_make_support_nested_variables=no 4111fi 4112fi 4113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4114$as_echo "$am_cv_make_support_nested_variables" >&6; } 4115if test $am_cv_make_support_nested_variables = yes; then 4116 AM_V='$(V)' 4117 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4118else 4119 AM_V=$AM_DEFAULT_VERBOSITY 4120 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4121fi 4122AM_BACKSLASH='\' 4123 4124if test "`cd $srcdir && pwd`" != "`pwd`"; then 4125 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4126 # is not polluted with repeated "-I." 4127 am__isrc=' -I$(srcdir)' 4128 # test to see if srcdir already configured 4129 if test -f $srcdir/config.status; then 4130 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4131 fi 4132fi 4133 4134# test whether we have cygpath 4135if test -z "$CYGPATH_W"; then 4136 if (cygpath --version) >/dev/null 2>/dev/null; then 4137 CYGPATH_W='cygpath -w' 4138 else 4139 CYGPATH_W=echo 4140 fi 4141fi 4142 4143 4144# Define the identity of the package. 4145 PACKAGE='xorg-server' 4146 VERSION='1.20.10' 4147 4148 4149cat >>confdefs.h <<_ACEOF 4150#define PACKAGE "$PACKAGE" 4151_ACEOF 4152 4153 4154cat >>confdefs.h <<_ACEOF 4155#define VERSION "$VERSION" 4156_ACEOF 4157 4158# Some tools Automake needs. 4159 4160ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4161 4162 4163AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4164 4165 4166AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4167 4168 4169AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4170 4171 4172MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4173 4174# For better backward compatibility. To be removed once Automake 1.9.x 4175# dies out for good. For more background, see: 4176# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4177# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4178mkdir_p='$(MKDIR_P)' 4179 4180# We need awk for the "check" target (and possibly the TAP driver). The 4181# system "awk" is bad on some platforms. 4182# Always define AMTAR for backward compatibility. Yes, it's still used 4183# in the wild :-( We should find a proper way to deprecate it ... 4184AMTAR='$${TAR-tar}' 4185 4186 4187# We'll loop over all known methods to create a tar archive until one works. 4188_am_tools='gnutar pax cpio none' 4189 4190am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4191 4192 4193 4194 4195 4196 4197# POSIX will say in a future version that running "rm -f" with no argument 4198# is OK; and we want to be able to make that assumption in our Makefile 4199# recipes. So use an aggressive probe to check that the usage we want is 4200# actually supported "in the wild" to an acceptable degree. 4201# See automake bug#10828. 4202# To make any issue more visible, cause the running configure to be aborted 4203# by default if the 'rm' program in use doesn't match our expectations; the 4204# user can still override this though. 4205if rm -f && rm -fr && rm -rf; then : OK; else 4206 cat >&2 <<'END' 4207Oops! 4208 4209Your 'rm' program seems unable to run without file operands specified 4210on the command line, even when the '-f' option is present. This is contrary 4211to the behaviour of most rm programs out there, and not conforming with 4212the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4213 4214Please tell bug-automake@gnu.org about your system, including the value 4215of your $PATH and any error possibly output before this message. This 4216can help us improve future automake versions. 4217 4218END 4219 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4220 echo 'Configuration will proceed anyway, since you have set the' >&2 4221 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4222 echo >&2 4223 else 4224 cat >&2 <<'END' 4225Aborting the configuration process, to ensure you take notice of the issue. 4226 4227You can download and install GNU coreutils to get an 'rm' implementation 4228that behaves properly: <https://www.gnu.org/software/coreutils/>. 4229 4230If you want to complete the configuration process using your problematic 4231'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4232to "yes", and re-run configure. 4233 4234END 4235 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4236 fi 4237fi 4238 4239DEPDIR="${am__leading_dot}deps" 4240 4241ac_config_commands="$ac_config_commands depfiles" 4242 4243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4244$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 4245cat > confinc.mk << 'END' 4246am__doit: 4247 @echo this is the am__doit target >confinc.out 4248.PHONY: am__doit 4249END 4250am__include="#" 4251am__quote= 4252# BSD make does it like this. 4253echo '.include "confinc.mk" # ignored' > confmf.BSD 4254# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4255echo 'include confinc.mk # ignored' > confmf.GNU 4256_am_result=no 4257for s in GNU BSD; do 4258 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4259 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4260 ac_status=$? 4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4262 (exit $ac_status); } 4263 case $?:`cat confinc.out 2>/dev/null` in #( 4264 '0:this is the am__doit target') : 4265 case $s in #( 4266 BSD) : 4267 am__include='.include' am__quote='"' ;; #( 4268 *) : 4269 am__include='include' am__quote='' ;; 4270esac ;; #( 4271 *) : 4272 ;; 4273esac 4274 if test "$am__include" != "#"; then 4275 _am_result="yes ($s style)" 4276 break 4277 fi 4278done 4279rm -f confinc.* confmf.* 4280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4281$as_echo "${_am_result}" >&6; } 4282 4283# Check whether --enable-dependency-tracking was given. 4284if test "${enable_dependency_tracking+set}" = set; then : 4285 enableval=$enable_dependency_tracking; 4286fi 4287 4288if test "x$enable_dependency_tracking" != xno; then 4289 am_depcomp="$ac_aux_dir/depcomp" 4290 AMDEPBACKSLASH='\' 4291 am__nodep='_no' 4292fi 4293 if test "x$enable_dependency_tracking" != xno; then 4294 AMDEP_TRUE= 4295 AMDEP_FALSE='#' 4296else 4297 AMDEP_TRUE='#' 4298 AMDEP_FALSE= 4299fi 4300 4301 4302ac_ext=c 4303ac_cpp='$CPP $CPPFLAGS' 4304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4306ac_compiler_gnu=$ac_cv_c_compiler_gnu 4307if test -n "$ac_tool_prefix"; then 4308 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4309set dummy ${ac_tool_prefix}gcc; ac_word=$2 4310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4311$as_echo_n "checking for $ac_word... " >&6; } 4312if ${ac_cv_prog_CC+:} false; then : 4313 $as_echo_n "(cached) " >&6 4314else 4315 if test -n "$CC"; then 4316 ac_cv_prog_CC="$CC" # Let the user override the test. 4317else 4318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4319for as_dir in $PATH 4320do 4321 IFS=$as_save_IFS 4322 test -z "$as_dir" && as_dir=. 4323 for ac_exec_ext in '' $ac_executable_extensions; do 4324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4325 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4327 break 2 4328 fi 4329done 4330 done 4331IFS=$as_save_IFS 4332 4333fi 4334fi 4335CC=$ac_cv_prog_CC 4336if test -n "$CC"; then 4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4338$as_echo "$CC" >&6; } 4339else 4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4341$as_echo "no" >&6; } 4342fi 4343 4344 4345fi 4346if test -z "$ac_cv_prog_CC"; then 4347 ac_ct_CC=$CC 4348 # Extract the first word of "gcc", so it can be a program name with args. 4349set dummy gcc; ac_word=$2 4350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4351$as_echo_n "checking for $ac_word... " >&6; } 4352if ${ac_cv_prog_ac_ct_CC+:} false; then : 4353 $as_echo_n "(cached) " >&6 4354else 4355 if test -n "$ac_ct_CC"; then 4356 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4357else 4358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4359for as_dir in $PATH 4360do 4361 IFS=$as_save_IFS 4362 test -z "$as_dir" && as_dir=. 4363 for ac_exec_ext in '' $ac_executable_extensions; do 4364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4365 ac_cv_prog_ac_ct_CC="gcc" 4366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4367 break 2 4368 fi 4369done 4370 done 4371IFS=$as_save_IFS 4372 4373fi 4374fi 4375ac_ct_CC=$ac_cv_prog_ac_ct_CC 4376if test -n "$ac_ct_CC"; then 4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4378$as_echo "$ac_ct_CC" >&6; } 4379else 4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4381$as_echo "no" >&6; } 4382fi 4383 4384 if test "x$ac_ct_CC" = x; then 4385 CC="" 4386 else 4387 case $cross_compiling:$ac_tool_warned in 4388yes:) 4389{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4390$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4391ac_tool_warned=yes ;; 4392esac 4393 CC=$ac_ct_CC 4394 fi 4395else 4396 CC="$ac_cv_prog_CC" 4397fi 4398 4399if test -z "$CC"; then 4400 if test -n "$ac_tool_prefix"; then 4401 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4402set dummy ${ac_tool_prefix}cc; ac_word=$2 4403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4404$as_echo_n "checking for $ac_word... " >&6; } 4405if ${ac_cv_prog_CC+:} false; then : 4406 $as_echo_n "(cached) " >&6 4407else 4408 if test -n "$CC"; then 4409 ac_cv_prog_CC="$CC" # Let the user override the test. 4410else 4411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4412for as_dir in $PATH 4413do 4414 IFS=$as_save_IFS 4415 test -z "$as_dir" && as_dir=. 4416 for ac_exec_ext in '' $ac_executable_extensions; do 4417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4418 ac_cv_prog_CC="${ac_tool_prefix}cc" 4419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4420 break 2 4421 fi 4422done 4423 done 4424IFS=$as_save_IFS 4425 4426fi 4427fi 4428CC=$ac_cv_prog_CC 4429if test -n "$CC"; then 4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4431$as_echo "$CC" >&6; } 4432else 4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4434$as_echo "no" >&6; } 4435fi 4436 4437 4438 fi 4439fi 4440if test -z "$CC"; then 4441 # Extract the first word of "cc", so it can be a program name with args. 4442set dummy cc; ac_word=$2 4443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4444$as_echo_n "checking for $ac_word... " >&6; } 4445if ${ac_cv_prog_CC+:} false; then : 4446 $as_echo_n "(cached) " >&6 4447else 4448 if test -n "$CC"; then 4449 ac_cv_prog_CC="$CC" # Let the user override the test. 4450else 4451 ac_prog_rejected=no 4452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4453for as_dir in $PATH 4454do 4455 IFS=$as_save_IFS 4456 test -z "$as_dir" && as_dir=. 4457 for ac_exec_ext in '' $ac_executable_extensions; do 4458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4459 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4460 ac_prog_rejected=yes 4461 continue 4462 fi 4463 ac_cv_prog_CC="cc" 4464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4465 break 2 4466 fi 4467done 4468 done 4469IFS=$as_save_IFS 4470 4471if test $ac_prog_rejected = yes; then 4472 # We found a bogon in the path, so make sure we never use it. 4473 set dummy $ac_cv_prog_CC 4474 shift 4475 if test $# != 0; then 4476 # We chose a different compiler from the bogus one. 4477 # However, it has the same basename, so the bogon will be chosen 4478 # first if we set CC to just the basename; use the full file name. 4479 shift 4480 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4481 fi 4482fi 4483fi 4484fi 4485CC=$ac_cv_prog_CC 4486if test -n "$CC"; then 4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4488$as_echo "$CC" >&6; } 4489else 4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4491$as_echo "no" >&6; } 4492fi 4493 4494 4495fi 4496if test -z "$CC"; then 4497 if test -n "$ac_tool_prefix"; then 4498 for ac_prog in cl.exe 4499 do 4500 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4501set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4503$as_echo_n "checking for $ac_word... " >&6; } 4504if ${ac_cv_prog_CC+:} false; then : 4505 $as_echo_n "(cached) " >&6 4506else 4507 if test -n "$CC"; then 4508 ac_cv_prog_CC="$CC" # Let the user override the test. 4509else 4510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4511for as_dir in $PATH 4512do 4513 IFS=$as_save_IFS 4514 test -z "$as_dir" && as_dir=. 4515 for ac_exec_ext in '' $ac_executable_extensions; do 4516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4517 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4519 break 2 4520 fi 4521done 4522 done 4523IFS=$as_save_IFS 4524 4525fi 4526fi 4527CC=$ac_cv_prog_CC 4528if test -n "$CC"; then 4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4530$as_echo "$CC" >&6; } 4531else 4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4533$as_echo "no" >&6; } 4534fi 4535 4536 4537 test -n "$CC" && break 4538 done 4539fi 4540if test -z "$CC"; then 4541 ac_ct_CC=$CC 4542 for ac_prog in cl.exe 4543do 4544 # Extract the first word of "$ac_prog", so it can be a program name with args. 4545set dummy $ac_prog; ac_word=$2 4546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4547$as_echo_n "checking for $ac_word... " >&6; } 4548if ${ac_cv_prog_ac_ct_CC+:} false; then : 4549 $as_echo_n "(cached) " >&6 4550else 4551 if test -n "$ac_ct_CC"; then 4552 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4553else 4554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4555for as_dir in $PATH 4556do 4557 IFS=$as_save_IFS 4558 test -z "$as_dir" && as_dir=. 4559 for ac_exec_ext in '' $ac_executable_extensions; do 4560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4561 ac_cv_prog_ac_ct_CC="$ac_prog" 4562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4563 break 2 4564 fi 4565done 4566 done 4567IFS=$as_save_IFS 4568 4569fi 4570fi 4571ac_ct_CC=$ac_cv_prog_ac_ct_CC 4572if test -n "$ac_ct_CC"; then 4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4574$as_echo "$ac_ct_CC" >&6; } 4575else 4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4577$as_echo "no" >&6; } 4578fi 4579 4580 4581 test -n "$ac_ct_CC" && break 4582done 4583 4584 if test "x$ac_ct_CC" = x; then 4585 CC="" 4586 else 4587 case $cross_compiling:$ac_tool_warned in 4588yes:) 4589{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4590$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4591ac_tool_warned=yes ;; 4592esac 4593 CC=$ac_ct_CC 4594 fi 4595fi 4596 4597fi 4598 4599 4600test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4601$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4602as_fn_error $? "no acceptable C compiler found in \$PATH 4603See \`config.log' for more details" "$LINENO" 5; } 4604 4605# Provide some information about the compiler. 4606$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4607set X $ac_compile 4608ac_compiler=$2 4609for ac_option in --version -v -V -qversion; do 4610 { { ac_try="$ac_compiler $ac_option >&5" 4611case "(($ac_try" in 4612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4613 *) ac_try_echo=$ac_try;; 4614esac 4615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4616$as_echo "$ac_try_echo"; } >&5 4617 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4618 ac_status=$? 4619 if test -s conftest.err; then 4620 sed '10a\ 4621... rest of stderr output deleted ... 4622 10q' conftest.err >conftest.er1 4623 cat conftest.er1 >&5 4624 fi 4625 rm -f conftest.er1 conftest.err 4626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4627 test $ac_status = 0; } 4628done 4629 4630cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4631/* end confdefs.h. */ 4632 4633int 4634main () 4635{ 4636 4637 ; 4638 return 0; 4639} 4640_ACEOF 4641ac_clean_files_save=$ac_clean_files 4642ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4643# Try to create an executable without -o first, disregard a.out. 4644# It will help us diagnose broken compilers, and finding out an intuition 4645# of exeext. 4646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4647$as_echo_n "checking whether the C compiler works... " >&6; } 4648ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4649 4650# The possible output files: 4651ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4652 4653ac_rmfiles= 4654for ac_file in $ac_files 4655do 4656 case $ac_file in 4657 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4658 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4659 esac 4660done 4661rm -f $ac_rmfiles 4662 4663if { { ac_try="$ac_link_default" 4664case "(($ac_try" in 4665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4666 *) ac_try_echo=$ac_try;; 4667esac 4668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4669$as_echo "$ac_try_echo"; } >&5 4670 (eval "$ac_link_default") 2>&5 4671 ac_status=$? 4672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4673 test $ac_status = 0; }; then : 4674 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4675# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4676# in a Makefile. We should not override ac_cv_exeext if it was cached, 4677# so that the user can short-circuit this test for compilers unknown to 4678# Autoconf. 4679for ac_file in $ac_files '' 4680do 4681 test -f "$ac_file" || continue 4682 case $ac_file in 4683 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4684 ;; 4685 [ab].out ) 4686 # We found the default executable, but exeext='' is most 4687 # certainly right. 4688 break;; 4689 *.* ) 4690 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4691 then :; else 4692 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4693 fi 4694 # We set ac_cv_exeext here because the later test for it is not 4695 # safe: cross compilers may not add the suffix if given an `-o' 4696 # argument, so we may need to know it at that point already. 4697 # Even if this section looks crufty: it has the advantage of 4698 # actually working. 4699 break;; 4700 * ) 4701 break;; 4702 esac 4703done 4704test "$ac_cv_exeext" = no && ac_cv_exeext= 4705 4706else 4707 ac_file='' 4708fi 4709if test -z "$ac_file"; then : 4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4711$as_echo "no" >&6; } 4712$as_echo "$as_me: failed program was:" >&5 4713sed 's/^/| /' conftest.$ac_ext >&5 4714 4715{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4716$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4717as_fn_error 77 "C compiler cannot create executables 4718See \`config.log' for more details" "$LINENO" 5; } 4719else 4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4721$as_echo "yes" >&6; } 4722fi 4723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4724$as_echo_n "checking for C compiler default output file name... " >&6; } 4725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4726$as_echo "$ac_file" >&6; } 4727ac_exeext=$ac_cv_exeext 4728 4729rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4730ac_clean_files=$ac_clean_files_save 4731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4732$as_echo_n "checking for suffix of executables... " >&6; } 4733if { { ac_try="$ac_link" 4734case "(($ac_try" in 4735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4736 *) ac_try_echo=$ac_try;; 4737esac 4738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4739$as_echo "$ac_try_echo"; } >&5 4740 (eval "$ac_link") 2>&5 4741 ac_status=$? 4742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4743 test $ac_status = 0; }; then : 4744 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4745# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4746# work properly (i.e., refer to `conftest.exe'), while it won't with 4747# `rm'. 4748for ac_file in conftest.exe conftest conftest.*; do 4749 test -f "$ac_file" || continue 4750 case $ac_file in 4751 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4752 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4753 break;; 4754 * ) break;; 4755 esac 4756done 4757else 4758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4759$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4760as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4761See \`config.log' for more details" "$LINENO" 5; } 4762fi 4763rm -f conftest conftest$ac_cv_exeext 4764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4765$as_echo "$ac_cv_exeext" >&6; } 4766 4767rm -f conftest.$ac_ext 4768EXEEXT=$ac_cv_exeext 4769ac_exeext=$EXEEXT 4770cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4771/* end confdefs.h. */ 4772#include <stdio.h> 4773int 4774main () 4775{ 4776FILE *f = fopen ("conftest.out", "w"); 4777 return ferror (f) || fclose (f) != 0; 4778 4779 ; 4780 return 0; 4781} 4782_ACEOF 4783ac_clean_files="$ac_clean_files conftest.out" 4784# Check that the compiler produces executables we can run. If not, either 4785# the compiler is broken, or we cross compile. 4786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4787$as_echo_n "checking whether we are cross compiling... " >&6; } 4788if test "$cross_compiling" != yes; then 4789 { { ac_try="$ac_link" 4790case "(($ac_try" in 4791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4792 *) ac_try_echo=$ac_try;; 4793esac 4794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4795$as_echo "$ac_try_echo"; } >&5 4796 (eval "$ac_link") 2>&5 4797 ac_status=$? 4798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4799 test $ac_status = 0; } 4800 if { ac_try='./conftest$ac_cv_exeext' 4801 { { case "(($ac_try" in 4802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4803 *) ac_try_echo=$ac_try;; 4804esac 4805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4806$as_echo "$ac_try_echo"; } >&5 4807 (eval "$ac_try") 2>&5 4808 ac_status=$? 4809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4810 test $ac_status = 0; }; }; then 4811 cross_compiling=no 4812 else 4813 if test "$cross_compiling" = maybe; then 4814 cross_compiling=yes 4815 else 4816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4817$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4818as_fn_error $? "cannot run C compiled programs. 4819If you meant to cross compile, use \`--host'. 4820See \`config.log' for more details" "$LINENO" 5; } 4821 fi 4822 fi 4823fi 4824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4825$as_echo "$cross_compiling" >&6; } 4826 4827rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4828ac_clean_files=$ac_clean_files_save 4829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4830$as_echo_n "checking for suffix of object files... " >&6; } 4831if ${ac_cv_objext+:} false; then : 4832 $as_echo_n "(cached) " >&6 4833else 4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4835/* end confdefs.h. */ 4836 4837int 4838main () 4839{ 4840 4841 ; 4842 return 0; 4843} 4844_ACEOF 4845rm -f conftest.o conftest.obj 4846if { { ac_try="$ac_compile" 4847case "(($ac_try" in 4848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4849 *) ac_try_echo=$ac_try;; 4850esac 4851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4852$as_echo "$ac_try_echo"; } >&5 4853 (eval "$ac_compile") 2>&5 4854 ac_status=$? 4855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4856 test $ac_status = 0; }; then : 4857 for ac_file in conftest.o conftest.obj conftest.*; do 4858 test -f "$ac_file" || continue; 4859 case $ac_file in 4860 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4861 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4862 break;; 4863 esac 4864done 4865else 4866 $as_echo "$as_me: failed program was:" >&5 4867sed 's/^/| /' conftest.$ac_ext >&5 4868 4869{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4870$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4871as_fn_error $? "cannot compute suffix of object files: cannot compile 4872See \`config.log' for more details" "$LINENO" 5; } 4873fi 4874rm -f conftest.$ac_cv_objext conftest.$ac_ext 4875fi 4876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4877$as_echo "$ac_cv_objext" >&6; } 4878OBJEXT=$ac_cv_objext 4879ac_objext=$OBJEXT 4880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4881$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4882if ${ac_cv_c_compiler_gnu+:} false; then : 4883 $as_echo_n "(cached) " >&6 4884else 4885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4886/* end confdefs.h. */ 4887 4888int 4889main () 4890{ 4891#ifndef __GNUC__ 4892 choke me 4893#endif 4894 4895 ; 4896 return 0; 4897} 4898_ACEOF 4899if ac_fn_c_try_compile "$LINENO"; then : 4900 ac_compiler_gnu=yes 4901else 4902 ac_compiler_gnu=no 4903fi 4904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4905ac_cv_c_compiler_gnu=$ac_compiler_gnu 4906 4907fi 4908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4909$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4910if test $ac_compiler_gnu = yes; then 4911 GCC=yes 4912else 4913 GCC= 4914fi 4915ac_test_CFLAGS=${CFLAGS+set} 4916ac_save_CFLAGS=$CFLAGS 4917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4918$as_echo_n "checking whether $CC accepts -g... " >&6; } 4919if ${ac_cv_prog_cc_g+:} false; then : 4920 $as_echo_n "(cached) " >&6 4921else 4922 ac_save_c_werror_flag=$ac_c_werror_flag 4923 ac_c_werror_flag=yes 4924 ac_cv_prog_cc_g=no 4925 CFLAGS="-g" 4926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4927/* end confdefs.h. */ 4928 4929int 4930main () 4931{ 4932 4933 ; 4934 return 0; 4935} 4936_ACEOF 4937if ac_fn_c_try_compile "$LINENO"; then : 4938 ac_cv_prog_cc_g=yes 4939else 4940 CFLAGS="" 4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4942/* end confdefs.h. */ 4943 4944int 4945main () 4946{ 4947 4948 ; 4949 return 0; 4950} 4951_ACEOF 4952if ac_fn_c_try_compile "$LINENO"; then : 4953 4954else 4955 ac_c_werror_flag=$ac_save_c_werror_flag 4956 CFLAGS="-g" 4957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4958/* end confdefs.h. */ 4959 4960int 4961main () 4962{ 4963 4964 ; 4965 return 0; 4966} 4967_ACEOF 4968if ac_fn_c_try_compile "$LINENO"; then : 4969 ac_cv_prog_cc_g=yes 4970fi 4971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4972fi 4973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4974fi 4975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4976 ac_c_werror_flag=$ac_save_c_werror_flag 4977fi 4978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4979$as_echo "$ac_cv_prog_cc_g" >&6; } 4980if test "$ac_test_CFLAGS" = set; then 4981 CFLAGS=$ac_save_CFLAGS 4982elif test $ac_cv_prog_cc_g = yes; then 4983 if test "$GCC" = yes; then 4984 CFLAGS="-g -O2" 4985 else 4986 CFLAGS="-g" 4987 fi 4988else 4989 if test "$GCC" = yes; then 4990 CFLAGS="-O2" 4991 else 4992 CFLAGS= 4993 fi 4994fi 4995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4996$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4997if ${ac_cv_prog_cc_c89+:} false; then : 4998 $as_echo_n "(cached) " >&6 4999else 5000 ac_cv_prog_cc_c89=no 5001ac_save_CC=$CC 5002cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5003/* end confdefs.h. */ 5004#include <stdarg.h> 5005#include <stdio.h> 5006struct stat; 5007/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5008struct buf { int x; }; 5009FILE * (*rcsopen) (struct buf *, struct stat *, int); 5010static char *e (p, i) 5011 char **p; 5012 int i; 5013{ 5014 return p[i]; 5015} 5016static char *f (char * (*g) (char **, int), char **p, ...) 5017{ 5018 char *s; 5019 va_list v; 5020 va_start (v,p); 5021 s = g (p, va_arg (v,int)); 5022 va_end (v); 5023 return s; 5024} 5025 5026/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5027 function prototypes and stuff, but not '\xHH' hex character constants. 5028 These don't provoke an error unfortunately, instead are silently treated 5029 as 'x'. The following induces an error, until -std is added to get 5030 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5031 array size at least. It's necessary to write '\x00'==0 to get something 5032 that's true only with -std. */ 5033int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5034 5035/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5036 inside strings and character constants. */ 5037#define FOO(x) 'x' 5038int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5039 5040int test (int i, double x); 5041struct s1 {int (*f) (int a);}; 5042struct s2 {int (*f) (double a);}; 5043int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5044int argc; 5045char **argv; 5046int 5047main () 5048{ 5049return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5050 ; 5051 return 0; 5052} 5053_ACEOF 5054for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5055 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5056do 5057 CC="$ac_save_CC $ac_arg" 5058 if ac_fn_c_try_compile "$LINENO"; then : 5059 ac_cv_prog_cc_c89=$ac_arg 5060fi 5061rm -f core conftest.err conftest.$ac_objext 5062 test "x$ac_cv_prog_cc_c89" != "xno" && break 5063done 5064rm -f conftest.$ac_ext 5065CC=$ac_save_CC 5066 5067fi 5068# AC_CACHE_VAL 5069case "x$ac_cv_prog_cc_c89" in 5070 x) 5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5072$as_echo "none needed" >&6; } ;; 5073 xno) 5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5075$as_echo "unsupported" >&6; } ;; 5076 *) 5077 CC="$CC $ac_cv_prog_cc_c89" 5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5079$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5080esac 5081if test "x$ac_cv_prog_cc_c89" != xno; then : 5082 5083fi 5084 5085ac_ext=c 5086ac_cpp='$CPP $CPPFLAGS' 5087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5089ac_compiler_gnu=$ac_cv_c_compiler_gnu 5090 5091ac_ext=c 5092ac_cpp='$CPP $CPPFLAGS' 5093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5095ac_compiler_gnu=$ac_cv_c_compiler_gnu 5096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5097$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 5098if ${am_cv_prog_cc_c_o+:} false; then : 5099 $as_echo_n "(cached) " >&6 5100else 5101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5102/* end confdefs.h. */ 5103 5104int 5105main () 5106{ 5107 5108 ; 5109 return 0; 5110} 5111_ACEOF 5112 # Make sure it works both with $CC and with simple cc. 5113 # Following AC_PROG_CC_C_O, we do the test twice because some 5114 # compilers refuse to overwrite an existing .o file with -o, 5115 # though they will create one. 5116 am_cv_prog_cc_c_o=yes 5117 for am_i in 1 2; do 5118 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5119 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5120 ac_status=$? 5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5122 (exit $ac_status); } \ 5123 && test -f conftest2.$ac_objext; then 5124 : OK 5125 else 5126 am_cv_prog_cc_c_o=no 5127 break 5128 fi 5129 done 5130 rm -f core conftest* 5131 unset am_i 5132fi 5133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5134$as_echo "$am_cv_prog_cc_c_o" >&6; } 5135if test "$am_cv_prog_cc_c_o" != yes; then 5136 # Losing compiler, so override with the script. 5137 # FIXME: It is wrong to rewrite CC. 5138 # But if we don't then we get into trouble of one sort or another. 5139 # A longer-term fix would be to have automake use am__CC in this case, 5140 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5141 CC="$am_aux_dir/compile $CC" 5142fi 5143ac_ext=c 5144ac_cpp='$CPP $CPPFLAGS' 5145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5147ac_compiler_gnu=$ac_cv_c_compiler_gnu 5148 5149 5150depcc="$CC" am_compiler_list= 5151 5152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5153$as_echo_n "checking dependency style of $depcc... " >&6; } 5154if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5155 $as_echo_n "(cached) " >&6 5156else 5157 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5158 # We make a subdir and do the tests there. Otherwise we can end up 5159 # making bogus files that we don't know about and never remove. For 5160 # instance it was reported that on HP-UX the gcc test will end up 5161 # making a dummy file named 'D' -- because '-MD' means "put the output 5162 # in D". 5163 rm -rf conftest.dir 5164 mkdir conftest.dir 5165 # Copy depcomp to subdir because otherwise we won't find it if we're 5166 # using a relative directory. 5167 cp "$am_depcomp" conftest.dir 5168 cd conftest.dir 5169 # We will build objects and dependencies in a subdirectory because 5170 # it helps to detect inapplicable dependency modes. For instance 5171 # both Tru64's cc and ICC support -MD to output dependencies as a 5172 # side effect of compilation, but ICC will put the dependencies in 5173 # the current directory while Tru64 will put them in the object 5174 # directory. 5175 mkdir sub 5176 5177 am_cv_CC_dependencies_compiler_type=none 5178 if test "$am_compiler_list" = ""; then 5179 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5180 fi 5181 am__universal=false 5182 case " $depcc " in #( 5183 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5184 esac 5185 5186 for depmode in $am_compiler_list; do 5187 # Setup a source with many dependencies, because some compilers 5188 # like to wrap large dependency lists on column 80 (with \), and 5189 # we should not choose a depcomp mode which is confused by this. 5190 # 5191 # We need to recreate these files for each test, as the compiler may 5192 # overwrite some of them when testing with obscure command lines. 5193 # This happens at least with the AIX C compiler. 5194 : > sub/conftest.c 5195 for i in 1 2 3 4 5 6; do 5196 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5197 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5198 # Solaris 10 /bin/sh. 5199 echo '/* dummy */' > sub/conftst$i.h 5200 done 5201 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5202 5203 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5204 # mode. It turns out that the SunPro C++ compiler does not properly 5205 # handle '-M -o', and we need to detect this. Also, some Intel 5206 # versions had trouble with output in subdirs. 5207 am__obj=sub/conftest.${OBJEXT-o} 5208 am__minus_obj="-o $am__obj" 5209 case $depmode in 5210 gcc) 5211 # This depmode causes a compiler race in universal mode. 5212 test "$am__universal" = false || continue 5213 ;; 5214 nosideeffect) 5215 # After this tag, mechanisms are not by side-effect, so they'll 5216 # only be used when explicitly requested. 5217 if test "x$enable_dependency_tracking" = xyes; then 5218 continue 5219 else 5220 break 5221 fi 5222 ;; 5223 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5224 # This compiler won't grok '-c -o', but also, the minuso test has 5225 # not run yet. These depmodes are late enough in the game, and 5226 # so weak that their functioning should not be impacted. 5227 am__obj=conftest.${OBJEXT-o} 5228 am__minus_obj= 5229 ;; 5230 none) break ;; 5231 esac 5232 if depmode=$depmode \ 5233 source=sub/conftest.c object=$am__obj \ 5234 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5235 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5236 >/dev/null 2>conftest.err && 5237 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5238 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5239 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5240 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5241 # icc doesn't choke on unknown options, it will just issue warnings 5242 # or remarks (even with -Werror). So we grep stderr for any message 5243 # that says an option was ignored or not supported. 5244 # When given -MP, icc 7.0 and 7.1 complain thusly: 5245 # icc: Command line warning: ignoring option '-M'; no argument required 5246 # The diagnosis changed in icc 8.0: 5247 # icc: Command line remark: option '-MP' not supported 5248 if (grep 'ignoring option' conftest.err || 5249 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5250 am_cv_CC_dependencies_compiler_type=$depmode 5251 break 5252 fi 5253 fi 5254 done 5255 5256 cd .. 5257 rm -rf conftest.dir 5258else 5259 am_cv_CC_dependencies_compiler_type=none 5260fi 5261 5262fi 5263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5264$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5265CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5266 5267 if 5268 test "x$enable_dependency_tracking" != xno \ 5269 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5270 am__fastdepCC_TRUE= 5271 am__fastdepCC_FALSE='#' 5272else 5273 am__fastdepCC_TRUE='#' 5274 am__fastdepCC_FALSE= 5275fi 5276 5277 5278 5279ac_ext=c 5280ac_cpp='$CPP $CPPFLAGS' 5281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5283ac_compiler_gnu=$ac_cv_c_compiler_gnu 5284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5285$as_echo_n "checking how to run the C preprocessor... " >&6; } 5286# On Suns, sometimes $CPP names a directory. 5287if test -n "$CPP" && test -d "$CPP"; then 5288 CPP= 5289fi 5290if test -z "$CPP"; then 5291 if ${ac_cv_prog_CPP+:} false; then : 5292 $as_echo_n "(cached) " >&6 5293else 5294 # Double quotes because CPP needs to be expanded 5295 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5296 do 5297 ac_preproc_ok=false 5298for ac_c_preproc_warn_flag in '' yes 5299do 5300 # Use a header file that comes with gcc, so configuring glibc 5301 # with a fresh cross-compiler works. 5302 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5303 # <limits.h> exists even on freestanding compilers. 5304 # On the NeXT, cc -E runs the code through the compiler's parser, 5305 # not just through cpp. "Syntax error" is here to catch this case. 5306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5307/* end confdefs.h. */ 5308#ifdef __STDC__ 5309# include <limits.h> 5310#else 5311# include <assert.h> 5312#endif 5313 Syntax error 5314_ACEOF 5315if ac_fn_c_try_cpp "$LINENO"; then : 5316 5317else 5318 # Broken: fails on valid input. 5319continue 5320fi 5321rm -f conftest.err conftest.i conftest.$ac_ext 5322 5323 # OK, works on sane cases. Now check whether nonexistent headers 5324 # can be detected and how. 5325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5326/* end confdefs.h. */ 5327#include <ac_nonexistent.h> 5328_ACEOF 5329if ac_fn_c_try_cpp "$LINENO"; then : 5330 # Broken: success on invalid input. 5331continue 5332else 5333 # Passes both tests. 5334ac_preproc_ok=: 5335break 5336fi 5337rm -f conftest.err conftest.i conftest.$ac_ext 5338 5339done 5340# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5341rm -f conftest.i conftest.err conftest.$ac_ext 5342if $ac_preproc_ok; then : 5343 break 5344fi 5345 5346 done 5347 ac_cv_prog_CPP=$CPP 5348 5349fi 5350 CPP=$ac_cv_prog_CPP 5351else 5352 ac_cv_prog_CPP=$CPP 5353fi 5354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5355$as_echo "$CPP" >&6; } 5356ac_preproc_ok=false 5357for ac_c_preproc_warn_flag in '' yes 5358do 5359 # Use a header file that comes with gcc, so configuring glibc 5360 # with a fresh cross-compiler works. 5361 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5362 # <limits.h> exists even on freestanding compilers. 5363 # On the NeXT, cc -E runs the code through the compiler's parser, 5364 # not just through cpp. "Syntax error" is here to catch this case. 5365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5366/* end confdefs.h. */ 5367#ifdef __STDC__ 5368# include <limits.h> 5369#else 5370# include <assert.h> 5371#endif 5372 Syntax error 5373_ACEOF 5374if ac_fn_c_try_cpp "$LINENO"; then : 5375 5376else 5377 # Broken: fails on valid input. 5378continue 5379fi 5380rm -f conftest.err conftest.i conftest.$ac_ext 5381 5382 # OK, works on sane cases. Now check whether nonexistent headers 5383 # can be detected and how. 5384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5385/* end confdefs.h. */ 5386#include <ac_nonexistent.h> 5387_ACEOF 5388if ac_fn_c_try_cpp "$LINENO"; then : 5389 # Broken: success on invalid input. 5390continue 5391else 5392 # Passes both tests. 5393ac_preproc_ok=: 5394break 5395fi 5396rm -f conftest.err conftest.i conftest.$ac_ext 5397 5398done 5399# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5400rm -f conftest.i conftest.err conftest.$ac_ext 5401if $ac_preproc_ok; then : 5402 5403else 5404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5405$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5406as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5407See \`config.log' for more details" "$LINENO" 5; } 5408fi 5409 5410ac_ext=c 5411ac_cpp='$CPP $CPPFLAGS' 5412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5414ac_compiler_gnu=$ac_cv_c_compiler_gnu 5415 5416 5417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5418$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5419if ${ac_cv_path_GREP+:} false; then : 5420 $as_echo_n "(cached) " >&6 5421else 5422 if test -z "$GREP"; then 5423 ac_path_GREP_found=false 5424 # Loop through the user's path and test for each of PROGNAME-LIST 5425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5426for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5427do 5428 IFS=$as_save_IFS 5429 test -z "$as_dir" && as_dir=. 5430 for ac_prog in grep ggrep; do 5431 for ac_exec_ext in '' $ac_executable_extensions; do 5432 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5433 as_fn_executable_p "$ac_path_GREP" || continue 5434# Check for GNU ac_path_GREP and select it if it is found. 5435 # Check for GNU $ac_path_GREP 5436case `"$ac_path_GREP" --version 2>&1` in 5437*GNU*) 5438 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5439*) 5440 ac_count=0 5441 $as_echo_n 0123456789 >"conftest.in" 5442 while : 5443 do 5444 cat "conftest.in" "conftest.in" >"conftest.tmp" 5445 mv "conftest.tmp" "conftest.in" 5446 cp "conftest.in" "conftest.nl" 5447 $as_echo 'GREP' >> "conftest.nl" 5448 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5449 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5450 as_fn_arith $ac_count + 1 && ac_count=$as_val 5451 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5452 # Best one so far, save it but keep looking for a better one 5453 ac_cv_path_GREP="$ac_path_GREP" 5454 ac_path_GREP_max=$ac_count 5455 fi 5456 # 10*(2^10) chars as input seems more than enough 5457 test $ac_count -gt 10 && break 5458 done 5459 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5460esac 5461 5462 $ac_path_GREP_found && break 3 5463 done 5464 done 5465 done 5466IFS=$as_save_IFS 5467 if test -z "$ac_cv_path_GREP"; then 5468 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5469 fi 5470else 5471 ac_cv_path_GREP=$GREP 5472fi 5473 5474fi 5475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5476$as_echo "$ac_cv_path_GREP" >&6; } 5477 GREP="$ac_cv_path_GREP" 5478 5479 5480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5481$as_echo_n "checking for egrep... " >&6; } 5482if ${ac_cv_path_EGREP+:} false; then : 5483 $as_echo_n "(cached) " >&6 5484else 5485 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5486 then ac_cv_path_EGREP="$GREP -E" 5487 else 5488 if test -z "$EGREP"; then 5489 ac_path_EGREP_found=false 5490 # Loop through the user's path and test for each of PROGNAME-LIST 5491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5492for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5493do 5494 IFS=$as_save_IFS 5495 test -z "$as_dir" && as_dir=. 5496 for ac_prog in egrep; do 5497 for ac_exec_ext in '' $ac_executable_extensions; do 5498 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5499 as_fn_executable_p "$ac_path_EGREP" || continue 5500# Check for GNU ac_path_EGREP and select it if it is found. 5501 # Check for GNU $ac_path_EGREP 5502case `"$ac_path_EGREP" --version 2>&1` in 5503*GNU*) 5504 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5505*) 5506 ac_count=0 5507 $as_echo_n 0123456789 >"conftest.in" 5508 while : 5509 do 5510 cat "conftest.in" "conftest.in" >"conftest.tmp" 5511 mv "conftest.tmp" "conftest.in" 5512 cp "conftest.in" "conftest.nl" 5513 $as_echo 'EGREP' >> "conftest.nl" 5514 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5515 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5516 as_fn_arith $ac_count + 1 && ac_count=$as_val 5517 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5518 # Best one so far, save it but keep looking for a better one 5519 ac_cv_path_EGREP="$ac_path_EGREP" 5520 ac_path_EGREP_max=$ac_count 5521 fi 5522 # 10*(2^10) chars as input seems more than enough 5523 test $ac_count -gt 10 && break 5524 done 5525 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5526esac 5527 5528 $ac_path_EGREP_found && break 3 5529 done 5530 done 5531 done 5532IFS=$as_save_IFS 5533 if test -z "$ac_cv_path_EGREP"; then 5534 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5535 fi 5536else 5537 ac_cv_path_EGREP=$EGREP 5538fi 5539 5540 fi 5541fi 5542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5543$as_echo "$ac_cv_path_EGREP" >&6; } 5544 EGREP="$ac_cv_path_EGREP" 5545 5546 5547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5548$as_echo_n "checking for ANSI C header files... " >&6; } 5549if ${ac_cv_header_stdc+:} false; then : 5550 $as_echo_n "(cached) " >&6 5551else 5552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5553/* end confdefs.h. */ 5554#include <stdlib.h> 5555#include <stdarg.h> 5556#include <string.h> 5557#include <float.h> 5558 5559int 5560main () 5561{ 5562 5563 ; 5564 return 0; 5565} 5566_ACEOF 5567if ac_fn_c_try_compile "$LINENO"; then : 5568 ac_cv_header_stdc=yes 5569else 5570 ac_cv_header_stdc=no 5571fi 5572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5573 5574if test $ac_cv_header_stdc = yes; then 5575 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5577/* end confdefs.h. */ 5578#include <string.h> 5579 5580_ACEOF 5581if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5582 $EGREP "memchr" >/dev/null 2>&1; then : 5583 5584else 5585 ac_cv_header_stdc=no 5586fi 5587rm -f conftest* 5588 5589fi 5590 5591if test $ac_cv_header_stdc = yes; then 5592 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5594/* end confdefs.h. */ 5595#include <stdlib.h> 5596 5597_ACEOF 5598if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5599 $EGREP "free" >/dev/null 2>&1; then : 5600 5601else 5602 ac_cv_header_stdc=no 5603fi 5604rm -f conftest* 5605 5606fi 5607 5608if test $ac_cv_header_stdc = yes; then 5609 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5610 if test "$cross_compiling" = yes; then : 5611 : 5612else 5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5614/* end confdefs.h. */ 5615#include <ctype.h> 5616#include <stdlib.h> 5617#if ((' ' & 0x0FF) == 0x020) 5618# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5619# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5620#else 5621# define ISLOWER(c) \ 5622 (('a' <= (c) && (c) <= 'i') \ 5623 || ('j' <= (c) && (c) <= 'r') \ 5624 || ('s' <= (c) && (c) <= 'z')) 5625# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5626#endif 5627 5628#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5629int 5630main () 5631{ 5632 int i; 5633 for (i = 0; i < 256; i++) 5634 if (XOR (islower (i), ISLOWER (i)) 5635 || toupper (i) != TOUPPER (i)) 5636 return 2; 5637 return 0; 5638} 5639_ACEOF 5640if ac_fn_c_try_run "$LINENO"; then : 5641 5642else 5643 ac_cv_header_stdc=no 5644fi 5645rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5646 conftest.$ac_objext conftest.beam conftest.$ac_ext 5647fi 5648 5649fi 5650fi 5651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5652$as_echo "$ac_cv_header_stdc" >&6; } 5653if test $ac_cv_header_stdc = yes; then 5654 5655$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5656 5657fi 5658 5659# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5660for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5661 inttypes.h stdint.h unistd.h 5662do : 5663 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5664ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5665" 5666if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5667 cat >>confdefs.h <<_ACEOF 5668#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5669_ACEOF 5670 5671fi 5672 5673done 5674 5675 5676 5677 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5678if test "x$ac_cv_header_minix_config_h" = xyes; then : 5679 MINIX=yes 5680else 5681 MINIX= 5682fi 5683 5684 5685 if test "$MINIX" = yes; then 5686 5687$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5688 5689 5690$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5691 5692 5693$as_echo "#define _MINIX 1" >>confdefs.h 5694 5695 fi 5696 5697 5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5699$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5700if ${ac_cv_safe_to_define___extensions__+:} false; then : 5701 $as_echo_n "(cached) " >&6 5702else 5703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5704/* end confdefs.h. */ 5705 5706# define __EXTENSIONS__ 1 5707 $ac_includes_default 5708int 5709main () 5710{ 5711 5712 ; 5713 return 0; 5714} 5715_ACEOF 5716if ac_fn_c_try_compile "$LINENO"; then : 5717 ac_cv_safe_to_define___extensions__=yes 5718else 5719 ac_cv_safe_to_define___extensions__=no 5720fi 5721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5722fi 5723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5724$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5725 test $ac_cv_safe_to_define___extensions__ = yes && 5726 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5727 5728 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5729 5730 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5731 5732 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5733 5734 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5735 5736 5737 5738# Require xorg-macros minimum of 1.14 for XORG_COMPILER_BRAND in XORG_DEFAULT_OPTIONS 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 5751$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 5752if ${ac_cv_prog_cc_c99+:} false; then : 5753 $as_echo_n "(cached) " >&6 5754else 5755 ac_cv_prog_cc_c99=no 5756ac_save_CC=$CC 5757cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5758/* end confdefs.h. */ 5759#include <stdarg.h> 5760#include <stdbool.h> 5761#include <stdlib.h> 5762#include <wchar.h> 5763#include <stdio.h> 5764 5765// Check varargs macros. These examples are taken from C99 6.10.3.5. 5766#define debug(...) fprintf (stderr, __VA_ARGS__) 5767#define showlist(...) puts (#__VA_ARGS__) 5768#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 5769static void 5770test_varargs_macros (void) 5771{ 5772 int x = 1234; 5773 int y = 5678; 5774 debug ("Flag"); 5775 debug ("X = %d\n", x); 5776 showlist (The first, second, and third items.); 5777 report (x>y, "x is %d but y is %d", x, y); 5778} 5779 5780// Check long long types. 5781#define BIG64 18446744073709551615ull 5782#define BIG32 4294967295ul 5783#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 5784#if !BIG_OK 5785 your preprocessor is broken; 5786#endif 5787#if BIG_OK 5788#else 5789 your preprocessor is broken; 5790#endif 5791static long long int bignum = -9223372036854775807LL; 5792static unsigned long long int ubignum = BIG64; 5793 5794struct incomplete_array 5795{ 5796 int datasize; 5797 double data[]; 5798}; 5799 5800struct named_init { 5801 int number; 5802 const wchar_t *name; 5803 double average; 5804}; 5805 5806typedef const char *ccp; 5807 5808static inline int 5809test_restrict (ccp restrict text) 5810{ 5811 // See if C++-style comments work. 5812 // Iterate through items via the restricted pointer. 5813 // Also check for declarations in for loops. 5814 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 5815 continue; 5816 return 0; 5817} 5818 5819// Check varargs and va_copy. 5820static void 5821test_varargs (const char *format, ...) 5822{ 5823 va_list args; 5824 va_start (args, format); 5825 va_list args_copy; 5826 va_copy (args_copy, args); 5827 5828 const char *str; 5829 int number; 5830 float fnumber; 5831 5832 while (*format) 5833 { 5834 switch (*format++) 5835 { 5836 case 's': // string 5837 str = va_arg (args_copy, const char *); 5838 break; 5839 case 'd': // int 5840 number = va_arg (args_copy, int); 5841 break; 5842 case 'f': // float 5843 fnumber = va_arg (args_copy, double); 5844 break; 5845 default: 5846 break; 5847 } 5848 } 5849 va_end (args_copy); 5850 va_end (args); 5851} 5852 5853int 5854main () 5855{ 5856 5857 // Check bool. 5858 _Bool success = false; 5859 5860 // Check restrict. 5861 if (test_restrict ("String literal") == 0) 5862 success = true; 5863 char *restrict newvar = "Another string"; 5864 5865 // Check varargs. 5866 test_varargs ("s, d' f .", "string", 65, 34.234); 5867 test_varargs_macros (); 5868 5869 // Check flexible array members. 5870 struct incomplete_array *ia = 5871 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 5872 ia->datasize = 10; 5873 for (int i = 0; i < ia->datasize; ++i) 5874 ia->data[i] = i * 1.234; 5875 5876 // Check named initializers. 5877 struct named_init ni = { 5878 .number = 34, 5879 .name = L"Test wide string", 5880 .average = 543.34343, 5881 }; 5882 5883 ni.number = 58; 5884 5885 int dynamic_array[ni.number]; 5886 dynamic_array[ni.number - 1] = 543; 5887 5888 // work around unused variable warnings 5889 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 5890 || dynamic_array[ni.number - 1] != 543); 5891 5892 ; 5893 return 0; 5894} 5895_ACEOF 5896for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 5897do 5898 CC="$ac_save_CC $ac_arg" 5899 if ac_fn_c_try_compile "$LINENO"; then : 5900 ac_cv_prog_cc_c99=$ac_arg 5901fi 5902rm -f core conftest.err conftest.$ac_objext 5903 test "x$ac_cv_prog_cc_c99" != "xno" && break 5904done 5905rm -f conftest.$ac_ext 5906CC=$ac_save_CC 5907 5908fi 5909# AC_CACHE_VAL 5910case "x$ac_cv_prog_cc_c99" in 5911 x) 5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5913$as_echo "none needed" >&6; } ;; 5914 xno) 5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5916$as_echo "unsupported" >&6; } ;; 5917 *) 5918 CC="$CC $ac_cv_prog_cc_c99" 5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5920$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 5921esac 5922if test "x$ac_cv_prog_cc_c99" != xno; then : 5923 5924fi 5925 5926 5927 5928 5929 5930 5931ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 5932if test "x$ac_cv_have_decl___clang__" = xyes; then : 5933 CLANGCC="yes" 5934else 5935 CLANGCC="no" 5936fi 5937 5938ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 5939if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 5940 INTELCC="yes" 5941else 5942 INTELCC="no" 5943fi 5944 5945ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 5946if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 5947 SUNCC="yes" 5948else 5949 SUNCC="no" 5950fi 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 5961 if test -n "$ac_tool_prefix"; then 5962 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 5963set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 5964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5965$as_echo_n "checking for $ac_word... " >&6; } 5966if ${ac_cv_path_PKG_CONFIG+:} false; then : 5967 $as_echo_n "(cached) " >&6 5968else 5969 case $PKG_CONFIG in 5970 [\\/]* | ?:[\\/]*) 5971 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 5972 ;; 5973 *) 5974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5975for as_dir in $PATH 5976do 5977 IFS=$as_save_IFS 5978 test -z "$as_dir" && as_dir=. 5979 for ac_exec_ext in '' $ac_executable_extensions; do 5980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5981 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5983 break 2 5984 fi 5985done 5986 done 5987IFS=$as_save_IFS 5988 5989 ;; 5990esac 5991fi 5992PKG_CONFIG=$ac_cv_path_PKG_CONFIG 5993if test -n "$PKG_CONFIG"; then 5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 5995$as_echo "$PKG_CONFIG" >&6; } 5996else 5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5998$as_echo "no" >&6; } 5999fi 6000 6001 6002fi 6003if test -z "$ac_cv_path_PKG_CONFIG"; then 6004 ac_pt_PKG_CONFIG=$PKG_CONFIG 6005 # Extract the first word of "pkg-config", so it can be a program name with args. 6006set dummy pkg-config; ac_word=$2 6007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6008$as_echo_n "checking for $ac_word... " >&6; } 6009if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 6010 $as_echo_n "(cached) " >&6 6011else 6012 case $ac_pt_PKG_CONFIG in 6013 [\\/]* | ?:[\\/]*) 6014 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 6015 ;; 6016 *) 6017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6018for as_dir in $PATH 6019do 6020 IFS=$as_save_IFS 6021 test -z "$as_dir" && as_dir=. 6022 for ac_exec_ext in '' $ac_executable_extensions; do 6023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6024 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 6025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6026 break 2 6027 fi 6028done 6029 done 6030IFS=$as_save_IFS 6031 6032 ;; 6033esac 6034fi 6035ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 6036if test -n "$ac_pt_PKG_CONFIG"; then 6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 6038$as_echo "$ac_pt_PKG_CONFIG" >&6; } 6039else 6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6041$as_echo "no" >&6; } 6042fi 6043 6044 if test "x$ac_pt_PKG_CONFIG" = x; then 6045 PKG_CONFIG="" 6046 else 6047 case $cross_compiling:$ac_tool_warned in 6048yes:) 6049{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6050$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6051ac_tool_warned=yes ;; 6052esac 6053 PKG_CONFIG=$ac_pt_PKG_CONFIG 6054 fi 6055else 6056 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 6057fi 6058 6059fi 6060if test -n "$PKG_CONFIG"; then 6061 _pkg_min_version=0.9.0 6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 6063$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 6064 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6066$as_echo "yes" >&6; } 6067 else 6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6069$as_echo "no" >&6; } 6070 PKG_CONFIG="" 6071 fi 6072fi 6073# Make sure we can run config.sub. 6074$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 6075 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 6076 6077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 6078$as_echo_n "checking build system type... " >&6; } 6079if ${ac_cv_build+:} false; then : 6080 $as_echo_n "(cached) " >&6 6081else 6082 ac_build_alias=$build_alias 6083test "x$ac_build_alias" = x && 6084 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 6085test "x$ac_build_alias" = x && 6086 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 6087ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 6088 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 6089 6090fi 6091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 6092$as_echo "$ac_cv_build" >&6; } 6093case $ac_cv_build in 6094*-*-*) ;; 6095*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 6096esac 6097build=$ac_cv_build 6098ac_save_IFS=$IFS; IFS='-' 6099set x $ac_cv_build 6100shift 6101build_cpu=$1 6102build_vendor=$2 6103shift; shift 6104# Remember, the first character of IFS is used to create $*, 6105# except with old shells: 6106build_os=$* 6107IFS=$ac_save_IFS 6108case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 6109 6110 6111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 6112$as_echo_n "checking host system type... " >&6; } 6113if ${ac_cv_host+:} false; then : 6114 $as_echo_n "(cached) " >&6 6115else 6116 if test "x$host_alias" = x; then 6117 ac_cv_host=$ac_cv_build 6118else 6119 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 6120 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 6121fi 6122 6123fi 6124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 6125$as_echo "$ac_cv_host" >&6; } 6126case $ac_cv_host in 6127*-*-*) ;; 6128*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 6129esac 6130host=$ac_cv_host 6131ac_save_IFS=$IFS; IFS='-' 6132set x $ac_cv_host 6133shift 6134host_cpu=$1 6135host_vendor=$2 6136shift; shift 6137# Remember, the first character of IFS is used to create $*, 6138# except with old shells: 6139host_os=$* 6140IFS=$ac_save_IFS 6141case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 6142 6143 6144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6145$as_echo_n "checking for a sed that does not truncate output... " >&6; } 6146if ${ac_cv_path_SED+:} false; then : 6147 $as_echo_n "(cached) " >&6 6148else 6149 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6150 for ac_i in 1 2 3 4 5 6 7; do 6151 ac_script="$ac_script$as_nl$ac_script" 6152 done 6153 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6154 { ac_script=; unset ac_script;} 6155 if test -z "$SED"; then 6156 ac_path_SED_found=false 6157 # Loop through the user's path and test for each of PROGNAME-LIST 6158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6159for as_dir in $PATH 6160do 6161 IFS=$as_save_IFS 6162 test -z "$as_dir" && as_dir=. 6163 for ac_prog in sed gsed; do 6164 for ac_exec_ext in '' $ac_executable_extensions; do 6165 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6166 as_fn_executable_p "$ac_path_SED" || continue 6167# Check for GNU ac_path_SED and select it if it is found. 6168 # Check for GNU $ac_path_SED 6169case `"$ac_path_SED" --version 2>&1` in 6170*GNU*) 6171 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6172*) 6173 ac_count=0 6174 $as_echo_n 0123456789 >"conftest.in" 6175 while : 6176 do 6177 cat "conftest.in" "conftest.in" >"conftest.tmp" 6178 mv "conftest.tmp" "conftest.in" 6179 cp "conftest.in" "conftest.nl" 6180 $as_echo '' >> "conftest.nl" 6181 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6182 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6183 as_fn_arith $ac_count + 1 && ac_count=$as_val 6184 if test $ac_count -gt ${ac_path_SED_max-0}; then 6185 # Best one so far, save it but keep looking for a better one 6186 ac_cv_path_SED="$ac_path_SED" 6187 ac_path_SED_max=$ac_count 6188 fi 6189 # 10*(2^10) chars as input seems more than enough 6190 test $ac_count -gt 10 && break 6191 done 6192 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6193esac 6194 6195 $ac_path_SED_found && break 3 6196 done 6197 done 6198 done 6199IFS=$as_save_IFS 6200 if test -z "$ac_cv_path_SED"; then 6201 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6202 fi 6203else 6204 ac_cv_path_SED=$SED 6205fi 6206 6207fi 6208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6209$as_echo "$ac_cv_path_SED" >&6; } 6210 SED="$ac_cv_path_SED" 6211 rm -f conftest.sed 6212 6213 6214 6215 6216 6217 6218# Check whether --enable-selective-werror was given. 6219if test "${enable_selective_werror+set}" = set; then : 6220 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 6221else 6222 SELECTIVE_WERROR=yes 6223fi 6224 6225 6226 6227 6228 6229# -v is too short to test reliably with XORG_TESTSET_CFLAG 6230if test "x$SUNCC" = "xyes"; then 6231 BASE_CFLAGS="-v" 6232else 6233 BASE_CFLAGS="" 6234fi 6235 6236# This chunk of warnings were those that existed in the legacy CWARNFLAGS 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250xorg_testset_save_CFLAGS="$CFLAGS" 6251 6252if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6255$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6256if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6257 $as_echo_n "(cached) " >&6 6258else 6259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6260/* end confdefs.h. */ 6261int i; 6262_ACEOF 6263if ac_fn_c_try_compile "$LINENO"; then : 6264 xorg_cv_cc_flag_unknown_warning_option=yes 6265else 6266 xorg_cv_cc_flag_unknown_warning_option=no 6267fi 6268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6269fi 6270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6271$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6272 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6273 CFLAGS="$xorg_testset_save_CFLAGS" 6274fi 6275 6276if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6278 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6279 fi 6280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6282$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6283if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6284 $as_echo_n "(cached) " >&6 6285else 6286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6287/* end confdefs.h. */ 6288int i; 6289_ACEOF 6290if ac_fn_c_try_compile "$LINENO"; then : 6291 xorg_cv_cc_flag_unused_command_line_argument=yes 6292else 6293 xorg_cv_cc_flag_unused_command_line_argument=no 6294fi 6295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6296fi 6297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6298$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6299 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6300 CFLAGS="$xorg_testset_save_CFLAGS" 6301fi 6302 6303found="no" 6304 6305 if test $found = "no" ; then 6306 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6307 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6308 fi 6309 6310 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6312 fi 6313 6314 CFLAGS="$CFLAGS -Wall" 6315 6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 6317$as_echo_n "checking if $CC supports -Wall... " >&6; } 6318 cacheid=xorg_cv_cc_flag__Wall 6319 if eval \${$cacheid+:} false; then : 6320 $as_echo_n "(cached) " >&6 6321else 6322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6323/* end confdefs.h. */ 6324int i; 6325int 6326main () 6327{ 6328 6329 ; 6330 return 0; 6331} 6332_ACEOF 6333if ac_fn_c_try_link "$LINENO"; then : 6334 eval $cacheid=yes 6335else 6336 eval $cacheid=no 6337fi 6338rm -f core conftest.err conftest.$ac_objext \ 6339 conftest$ac_exeext conftest.$ac_ext 6340fi 6341 6342 6343 CFLAGS="$xorg_testset_save_CFLAGS" 6344 6345 eval supported=\$$cacheid 6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6347$as_echo "$supported" >&6; } 6348 if test "$supported" = "yes" ; then 6349 BASE_CFLAGS="$BASE_CFLAGS -Wall" 6350 found="yes" 6351 fi 6352 fi 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368xorg_testset_save_CFLAGS="$CFLAGS" 6369 6370if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6373$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6374if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6375 $as_echo_n "(cached) " >&6 6376else 6377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6378/* end confdefs.h. */ 6379int i; 6380_ACEOF 6381if ac_fn_c_try_compile "$LINENO"; then : 6382 xorg_cv_cc_flag_unknown_warning_option=yes 6383else 6384 xorg_cv_cc_flag_unknown_warning_option=no 6385fi 6386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6387fi 6388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6389$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6390 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6391 CFLAGS="$xorg_testset_save_CFLAGS" 6392fi 6393 6394if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6397 fi 6398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6400$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6401if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6402 $as_echo_n "(cached) " >&6 6403else 6404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6405/* end confdefs.h. */ 6406int i; 6407_ACEOF 6408if ac_fn_c_try_compile "$LINENO"; then : 6409 xorg_cv_cc_flag_unused_command_line_argument=yes 6410else 6411 xorg_cv_cc_flag_unused_command_line_argument=no 6412fi 6413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6414fi 6415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6416$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6417 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6418 CFLAGS="$xorg_testset_save_CFLAGS" 6419fi 6420 6421found="no" 6422 6423 if test $found = "no" ; then 6424 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6425 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6426 fi 6427 6428 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6430 fi 6431 6432 CFLAGS="$CFLAGS -Wpointer-arith" 6433 6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 6435$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 6436 cacheid=xorg_cv_cc_flag__Wpointer_arith 6437 if eval \${$cacheid+:} false; then : 6438 $as_echo_n "(cached) " >&6 6439else 6440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6441/* end confdefs.h. */ 6442int i; 6443int 6444main () 6445{ 6446 6447 ; 6448 return 0; 6449} 6450_ACEOF 6451if ac_fn_c_try_link "$LINENO"; then : 6452 eval $cacheid=yes 6453else 6454 eval $cacheid=no 6455fi 6456rm -f core conftest.err conftest.$ac_objext \ 6457 conftest$ac_exeext conftest.$ac_ext 6458fi 6459 6460 6461 CFLAGS="$xorg_testset_save_CFLAGS" 6462 6463 eval supported=\$$cacheid 6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6465$as_echo "$supported" >&6; } 6466 if test "$supported" = "yes" ; then 6467 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 6468 found="yes" 6469 fi 6470 fi 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486xorg_testset_save_CFLAGS="$CFLAGS" 6487 6488if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6491$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6492if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6493 $as_echo_n "(cached) " >&6 6494else 6495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6496/* end confdefs.h. */ 6497int i; 6498_ACEOF 6499if ac_fn_c_try_compile "$LINENO"; then : 6500 xorg_cv_cc_flag_unknown_warning_option=yes 6501else 6502 xorg_cv_cc_flag_unknown_warning_option=no 6503fi 6504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6505fi 6506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6507$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6508 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6509 CFLAGS="$xorg_testset_save_CFLAGS" 6510fi 6511 6512if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6515 fi 6516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6518$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6519if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6520 $as_echo_n "(cached) " >&6 6521else 6522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6523/* end confdefs.h. */ 6524int i; 6525_ACEOF 6526if ac_fn_c_try_compile "$LINENO"; then : 6527 xorg_cv_cc_flag_unused_command_line_argument=yes 6528else 6529 xorg_cv_cc_flag_unused_command_line_argument=no 6530fi 6531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6532fi 6533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6534$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6535 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6536 CFLAGS="$xorg_testset_save_CFLAGS" 6537fi 6538 6539found="no" 6540 6541 if test $found = "no" ; then 6542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6544 fi 6545 6546 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6548 fi 6549 6550 CFLAGS="$CFLAGS -Wmissing-declarations" 6551 6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 6553$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 6554 cacheid=xorg_cv_cc_flag__Wmissing_declarations 6555 if eval \${$cacheid+:} false; then : 6556 $as_echo_n "(cached) " >&6 6557else 6558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6559/* end confdefs.h. */ 6560int i; 6561int 6562main () 6563{ 6564 6565 ; 6566 return 0; 6567} 6568_ACEOF 6569if ac_fn_c_try_link "$LINENO"; then : 6570 eval $cacheid=yes 6571else 6572 eval $cacheid=no 6573fi 6574rm -f core conftest.err conftest.$ac_objext \ 6575 conftest$ac_exeext conftest.$ac_ext 6576fi 6577 6578 6579 CFLAGS="$xorg_testset_save_CFLAGS" 6580 6581 eval supported=\$$cacheid 6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6583$as_echo "$supported" >&6; } 6584 if test "$supported" = "yes" ; then 6585 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 6586 found="yes" 6587 fi 6588 fi 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604xorg_testset_save_CFLAGS="$CFLAGS" 6605 6606if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6607 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6609$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6610if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6611 $as_echo_n "(cached) " >&6 6612else 6613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6614/* end confdefs.h. */ 6615int i; 6616_ACEOF 6617if ac_fn_c_try_compile "$LINENO"; then : 6618 xorg_cv_cc_flag_unknown_warning_option=yes 6619else 6620 xorg_cv_cc_flag_unknown_warning_option=no 6621fi 6622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6623fi 6624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6625$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6626 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6627 CFLAGS="$xorg_testset_save_CFLAGS" 6628fi 6629 6630if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6633 fi 6634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6636$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6637if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6638 $as_echo_n "(cached) " >&6 6639else 6640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6641/* end confdefs.h. */ 6642int i; 6643_ACEOF 6644if ac_fn_c_try_compile "$LINENO"; then : 6645 xorg_cv_cc_flag_unused_command_line_argument=yes 6646else 6647 xorg_cv_cc_flag_unused_command_line_argument=no 6648fi 6649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6650fi 6651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6652$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6653 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6654 CFLAGS="$xorg_testset_save_CFLAGS" 6655fi 6656 6657found="no" 6658 6659 if test $found = "no" ; then 6660 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6661 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6662 fi 6663 6664 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6666 fi 6667 6668 CFLAGS="$CFLAGS -Wformat=2" 6669 6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 6671$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 6672 cacheid=xorg_cv_cc_flag__Wformat_2 6673 if eval \${$cacheid+:} false; then : 6674 $as_echo_n "(cached) " >&6 6675else 6676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6677/* end confdefs.h. */ 6678int i; 6679int 6680main () 6681{ 6682 6683 ; 6684 return 0; 6685} 6686_ACEOF 6687if ac_fn_c_try_link "$LINENO"; then : 6688 eval $cacheid=yes 6689else 6690 eval $cacheid=no 6691fi 6692rm -f core conftest.err conftest.$ac_objext \ 6693 conftest$ac_exeext conftest.$ac_ext 6694fi 6695 6696 6697 CFLAGS="$xorg_testset_save_CFLAGS" 6698 6699 eval supported=\$$cacheid 6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6701$as_echo "$supported" >&6; } 6702 if test "$supported" = "yes" ; then 6703 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 6704 found="yes" 6705 fi 6706 fi 6707 6708 if test $found = "no" ; then 6709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6710 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6711 fi 6712 6713 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6715 fi 6716 6717 CFLAGS="$CFLAGS -Wformat" 6718 6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 6720$as_echo_n "checking if $CC supports -Wformat... " >&6; } 6721 cacheid=xorg_cv_cc_flag__Wformat 6722 if eval \${$cacheid+:} false; then : 6723 $as_echo_n "(cached) " >&6 6724else 6725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6726/* end confdefs.h. */ 6727int i; 6728int 6729main () 6730{ 6731 6732 ; 6733 return 0; 6734} 6735_ACEOF 6736if ac_fn_c_try_link "$LINENO"; then : 6737 eval $cacheid=yes 6738else 6739 eval $cacheid=no 6740fi 6741rm -f core conftest.err conftest.$ac_objext \ 6742 conftest$ac_exeext conftest.$ac_ext 6743fi 6744 6745 6746 CFLAGS="$xorg_testset_save_CFLAGS" 6747 6748 eval supported=\$$cacheid 6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6750$as_echo "$supported" >&6; } 6751 if test "$supported" = "yes" ; then 6752 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 6753 found="yes" 6754 fi 6755 fi 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773xorg_testset_save_CFLAGS="$CFLAGS" 6774 6775if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6778$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6779if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6780 $as_echo_n "(cached) " >&6 6781else 6782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6783/* end confdefs.h. */ 6784int i; 6785_ACEOF 6786if ac_fn_c_try_compile "$LINENO"; then : 6787 xorg_cv_cc_flag_unknown_warning_option=yes 6788else 6789 xorg_cv_cc_flag_unknown_warning_option=no 6790fi 6791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6792fi 6793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6794$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6795 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6796 CFLAGS="$xorg_testset_save_CFLAGS" 6797fi 6798 6799if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6801 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6802 fi 6803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6805$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6806if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6807 $as_echo_n "(cached) " >&6 6808else 6809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6810/* end confdefs.h. */ 6811int i; 6812_ACEOF 6813if ac_fn_c_try_compile "$LINENO"; then : 6814 xorg_cv_cc_flag_unused_command_line_argument=yes 6815else 6816 xorg_cv_cc_flag_unused_command_line_argument=no 6817fi 6818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6819fi 6820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6821$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6822 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6823 CFLAGS="$xorg_testset_save_CFLAGS" 6824fi 6825 6826found="no" 6827 6828 if test $found = "no" ; then 6829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6831 fi 6832 6833 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6835 fi 6836 6837 CFLAGS="$CFLAGS -Wstrict-prototypes" 6838 6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 6840$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 6841 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 6842 if eval \${$cacheid+:} false; then : 6843 $as_echo_n "(cached) " >&6 6844else 6845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6846/* end confdefs.h. */ 6847int i; 6848int 6849main () 6850{ 6851 6852 ; 6853 return 0; 6854} 6855_ACEOF 6856if ac_fn_c_try_link "$LINENO"; then : 6857 eval $cacheid=yes 6858else 6859 eval $cacheid=no 6860fi 6861rm -f core conftest.err conftest.$ac_objext \ 6862 conftest$ac_exeext conftest.$ac_ext 6863fi 6864 6865 6866 CFLAGS="$xorg_testset_save_CFLAGS" 6867 6868 eval supported=\$$cacheid 6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6870$as_echo "$supported" >&6; } 6871 if test "$supported" = "yes" ; then 6872 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 6873 found="yes" 6874 fi 6875 fi 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891xorg_testset_save_CFLAGS="$CFLAGS" 6892 6893if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6894 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6896$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6897if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6898 $as_echo_n "(cached) " >&6 6899else 6900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6901/* end confdefs.h. */ 6902int i; 6903_ACEOF 6904if ac_fn_c_try_compile "$LINENO"; then : 6905 xorg_cv_cc_flag_unknown_warning_option=yes 6906else 6907 xorg_cv_cc_flag_unknown_warning_option=no 6908fi 6909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6910fi 6911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6912$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6913 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6914 CFLAGS="$xorg_testset_save_CFLAGS" 6915fi 6916 6917if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6920 fi 6921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6923$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6924if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6925 $as_echo_n "(cached) " >&6 6926else 6927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6928/* end confdefs.h. */ 6929int i; 6930_ACEOF 6931if ac_fn_c_try_compile "$LINENO"; then : 6932 xorg_cv_cc_flag_unused_command_line_argument=yes 6933else 6934 xorg_cv_cc_flag_unused_command_line_argument=no 6935fi 6936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6937fi 6938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6939$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6940 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6941 CFLAGS="$xorg_testset_save_CFLAGS" 6942fi 6943 6944found="no" 6945 6946 if test $found = "no" ; then 6947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6949 fi 6950 6951 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6953 fi 6954 6955 CFLAGS="$CFLAGS -Wmissing-prototypes" 6956 6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 6958$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 6959 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 6960 if eval \${$cacheid+:} false; then : 6961 $as_echo_n "(cached) " >&6 6962else 6963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6964/* end confdefs.h. */ 6965int i; 6966int 6967main () 6968{ 6969 6970 ; 6971 return 0; 6972} 6973_ACEOF 6974if ac_fn_c_try_link "$LINENO"; then : 6975 eval $cacheid=yes 6976else 6977 eval $cacheid=no 6978fi 6979rm -f core conftest.err conftest.$ac_objext \ 6980 conftest$ac_exeext conftest.$ac_ext 6981fi 6982 6983 6984 CFLAGS="$xorg_testset_save_CFLAGS" 6985 6986 eval supported=\$$cacheid 6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6988$as_echo "$supported" >&6; } 6989 if test "$supported" = "yes" ; then 6990 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 6991 found="yes" 6992 fi 6993 fi 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009xorg_testset_save_CFLAGS="$CFLAGS" 7010 7011if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7012 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7014$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7015if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7016 $as_echo_n "(cached) " >&6 7017else 7018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7019/* end confdefs.h. */ 7020int i; 7021_ACEOF 7022if ac_fn_c_try_compile "$LINENO"; then : 7023 xorg_cv_cc_flag_unknown_warning_option=yes 7024else 7025 xorg_cv_cc_flag_unknown_warning_option=no 7026fi 7027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7028fi 7029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7030$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7031 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7032 CFLAGS="$xorg_testset_save_CFLAGS" 7033fi 7034 7035if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7037 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7038 fi 7039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7041$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7042if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7043 $as_echo_n "(cached) " >&6 7044else 7045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7046/* end confdefs.h. */ 7047int i; 7048_ACEOF 7049if ac_fn_c_try_compile "$LINENO"; then : 7050 xorg_cv_cc_flag_unused_command_line_argument=yes 7051else 7052 xorg_cv_cc_flag_unused_command_line_argument=no 7053fi 7054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7055fi 7056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7057$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7058 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7059 CFLAGS="$xorg_testset_save_CFLAGS" 7060fi 7061 7062found="no" 7063 7064 if test $found = "no" ; then 7065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7067 fi 7068 7069 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7071 fi 7072 7073 CFLAGS="$CFLAGS -Wnested-externs" 7074 7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 7076$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 7077 cacheid=xorg_cv_cc_flag__Wnested_externs 7078 if eval \${$cacheid+:} false; then : 7079 $as_echo_n "(cached) " >&6 7080else 7081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7082/* end confdefs.h. */ 7083int i; 7084int 7085main () 7086{ 7087 7088 ; 7089 return 0; 7090} 7091_ACEOF 7092if ac_fn_c_try_link "$LINENO"; then : 7093 eval $cacheid=yes 7094else 7095 eval $cacheid=no 7096fi 7097rm -f core conftest.err conftest.$ac_objext \ 7098 conftest$ac_exeext conftest.$ac_ext 7099fi 7100 7101 7102 CFLAGS="$xorg_testset_save_CFLAGS" 7103 7104 eval supported=\$$cacheid 7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7106$as_echo "$supported" >&6; } 7107 if test "$supported" = "yes" ; then 7108 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 7109 found="yes" 7110 fi 7111 fi 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127xorg_testset_save_CFLAGS="$CFLAGS" 7128 7129if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7132$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7133if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7134 $as_echo_n "(cached) " >&6 7135else 7136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7137/* end confdefs.h. */ 7138int i; 7139_ACEOF 7140if ac_fn_c_try_compile "$LINENO"; then : 7141 xorg_cv_cc_flag_unknown_warning_option=yes 7142else 7143 xorg_cv_cc_flag_unknown_warning_option=no 7144fi 7145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7146fi 7147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7148$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7149 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7150 CFLAGS="$xorg_testset_save_CFLAGS" 7151fi 7152 7153if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7156 fi 7157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7159$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7160if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7161 $as_echo_n "(cached) " >&6 7162else 7163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7164/* end confdefs.h. */ 7165int i; 7166_ACEOF 7167if ac_fn_c_try_compile "$LINENO"; then : 7168 xorg_cv_cc_flag_unused_command_line_argument=yes 7169else 7170 xorg_cv_cc_flag_unused_command_line_argument=no 7171fi 7172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7173fi 7174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7175$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7176 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7177 CFLAGS="$xorg_testset_save_CFLAGS" 7178fi 7179 7180found="no" 7181 7182 if test $found = "no" ; then 7183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7185 fi 7186 7187 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7189 fi 7190 7191 CFLAGS="$CFLAGS -Wbad-function-cast" 7192 7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 7194$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 7195 cacheid=xorg_cv_cc_flag__Wbad_function_cast 7196 if eval \${$cacheid+:} false; then : 7197 $as_echo_n "(cached) " >&6 7198else 7199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7200/* end confdefs.h. */ 7201int i; 7202int 7203main () 7204{ 7205 7206 ; 7207 return 0; 7208} 7209_ACEOF 7210if ac_fn_c_try_link "$LINENO"; then : 7211 eval $cacheid=yes 7212else 7213 eval $cacheid=no 7214fi 7215rm -f core conftest.err conftest.$ac_objext \ 7216 conftest$ac_exeext conftest.$ac_ext 7217fi 7218 7219 7220 CFLAGS="$xorg_testset_save_CFLAGS" 7221 7222 eval supported=\$$cacheid 7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7224$as_echo "$supported" >&6; } 7225 if test "$supported" = "yes" ; then 7226 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 7227 found="yes" 7228 fi 7229 fi 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245xorg_testset_save_CFLAGS="$CFLAGS" 7246 7247if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7250$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7251if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7252 $as_echo_n "(cached) " >&6 7253else 7254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7255/* end confdefs.h. */ 7256int i; 7257_ACEOF 7258if ac_fn_c_try_compile "$LINENO"; then : 7259 xorg_cv_cc_flag_unknown_warning_option=yes 7260else 7261 xorg_cv_cc_flag_unknown_warning_option=no 7262fi 7263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7264fi 7265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7266$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7267 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7268 CFLAGS="$xorg_testset_save_CFLAGS" 7269fi 7270 7271if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7272 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7273 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7274 fi 7275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7277$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7278if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7279 $as_echo_n "(cached) " >&6 7280else 7281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7282/* end confdefs.h. */ 7283int i; 7284_ACEOF 7285if ac_fn_c_try_compile "$LINENO"; then : 7286 xorg_cv_cc_flag_unused_command_line_argument=yes 7287else 7288 xorg_cv_cc_flag_unused_command_line_argument=no 7289fi 7290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7291fi 7292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7293$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7294 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7295 CFLAGS="$xorg_testset_save_CFLAGS" 7296fi 7297 7298found="no" 7299 7300 if test $found = "no" ; then 7301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7303 fi 7304 7305 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7307 fi 7308 7309 CFLAGS="$CFLAGS -Wold-style-definition" 7310 7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 7312$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 7313 cacheid=xorg_cv_cc_flag__Wold_style_definition 7314 if eval \${$cacheid+:} false; then : 7315 $as_echo_n "(cached) " >&6 7316else 7317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7318/* end confdefs.h. */ 7319int i; 7320int 7321main () 7322{ 7323 7324 ; 7325 return 0; 7326} 7327_ACEOF 7328if ac_fn_c_try_link "$LINENO"; then : 7329 eval $cacheid=yes 7330else 7331 eval $cacheid=no 7332fi 7333rm -f core conftest.err conftest.$ac_objext \ 7334 conftest$ac_exeext conftest.$ac_ext 7335fi 7336 7337 7338 CFLAGS="$xorg_testset_save_CFLAGS" 7339 7340 eval supported=\$$cacheid 7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7342$as_echo "$supported" >&6; } 7343 if test "$supported" = "yes" ; then 7344 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 7345 found="yes" 7346 fi 7347 fi 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 -fd" 7359 7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 7361$as_echo_n "checking if $CC supports -fd... " >&6; } 7362 cacheid=xorg_cv_cc_flag__fd 7363 if eval \${$cacheid+:} false; then : 7364 $as_echo_n "(cached) " >&6 7365else 7366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7367/* end confdefs.h. */ 7368int i; 7369int 7370main () 7371{ 7372 7373 ; 7374 return 0; 7375} 7376_ACEOF 7377if ac_fn_c_try_link "$LINENO"; then : 7378 eval $cacheid=yes 7379else 7380 eval $cacheid=no 7381fi 7382rm -f core conftest.err conftest.$ac_objext \ 7383 conftest$ac_exeext conftest.$ac_ext 7384fi 7385 7386 7387 CFLAGS="$xorg_testset_save_CFLAGS" 7388 7389 eval supported=\$$cacheid 7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7391$as_echo "$supported" >&6; } 7392 if test "$supported" = "yes" ; then 7393 BASE_CFLAGS="$BASE_CFLAGS -fd" 7394 found="yes" 7395 fi 7396 fi 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412xorg_testset_save_CFLAGS="$CFLAGS" 7413 7414if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7417$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7418if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7419 $as_echo_n "(cached) " >&6 7420else 7421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7422/* end confdefs.h. */ 7423int i; 7424_ACEOF 7425if ac_fn_c_try_compile "$LINENO"; then : 7426 xorg_cv_cc_flag_unknown_warning_option=yes 7427else 7428 xorg_cv_cc_flag_unknown_warning_option=no 7429fi 7430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7431fi 7432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7433$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7434 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7435 CFLAGS="$xorg_testset_save_CFLAGS" 7436fi 7437 7438if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7441 fi 7442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7444$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7445if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7446 $as_echo_n "(cached) " >&6 7447else 7448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7449/* end confdefs.h. */ 7450int i; 7451_ACEOF 7452if ac_fn_c_try_compile "$LINENO"; then : 7453 xorg_cv_cc_flag_unused_command_line_argument=yes 7454else 7455 xorg_cv_cc_flag_unused_command_line_argument=no 7456fi 7457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7458fi 7459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7460$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7461 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7462 CFLAGS="$xorg_testset_save_CFLAGS" 7463fi 7464 7465found="no" 7466 7467 if test $found = "no" ; then 7468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7470 fi 7471 7472 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7474 fi 7475 7476 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 7477 7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 7479$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 7480 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 7481 if eval \${$cacheid+:} false; then : 7482 $as_echo_n "(cached) " >&6 7483else 7484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7485/* end confdefs.h. */ 7486int i; 7487int 7488main () 7489{ 7490 7491 ; 7492 return 0; 7493} 7494_ACEOF 7495if ac_fn_c_try_link "$LINENO"; then : 7496 eval $cacheid=yes 7497else 7498 eval $cacheid=no 7499fi 7500rm -f core conftest.err conftest.$ac_objext \ 7501 conftest$ac_exeext conftest.$ac_ext 7502fi 7503 7504 7505 CFLAGS="$xorg_testset_save_CFLAGS" 7506 7507 eval supported=\$$cacheid 7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7509$as_echo "$supported" >&6; } 7510 if test "$supported" = "yes" ; then 7511 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 7512 found="yes" 7513 fi 7514 fi 7515 7516 7517 7518 7519 7520# This chunk adds additional warnings that could catch undesired effects. 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534xorg_testset_save_CFLAGS="$CFLAGS" 7535 7536if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7537 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7539$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7540if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7541 $as_echo_n "(cached) " >&6 7542else 7543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7544/* end confdefs.h. */ 7545int i; 7546_ACEOF 7547if ac_fn_c_try_compile "$LINENO"; then : 7548 xorg_cv_cc_flag_unknown_warning_option=yes 7549else 7550 xorg_cv_cc_flag_unknown_warning_option=no 7551fi 7552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7553fi 7554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7555$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7556 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7557 CFLAGS="$xorg_testset_save_CFLAGS" 7558fi 7559 7560if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7563 fi 7564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7566$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7567if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7568 $as_echo_n "(cached) " >&6 7569else 7570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7571/* end confdefs.h. */ 7572int i; 7573_ACEOF 7574if ac_fn_c_try_compile "$LINENO"; then : 7575 xorg_cv_cc_flag_unused_command_line_argument=yes 7576else 7577 xorg_cv_cc_flag_unused_command_line_argument=no 7578fi 7579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7580fi 7581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7582$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7583 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7584 CFLAGS="$xorg_testset_save_CFLAGS" 7585fi 7586 7587found="no" 7588 7589 if test $found = "no" ; then 7590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7592 fi 7593 7594 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7596 fi 7597 7598 CFLAGS="$CFLAGS -Wunused" 7599 7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 7601$as_echo_n "checking if $CC supports -Wunused... " >&6; } 7602 cacheid=xorg_cv_cc_flag__Wunused 7603 if eval \${$cacheid+:} false; then : 7604 $as_echo_n "(cached) " >&6 7605else 7606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7607/* end confdefs.h. */ 7608int i; 7609int 7610main () 7611{ 7612 7613 ; 7614 return 0; 7615} 7616_ACEOF 7617if ac_fn_c_try_link "$LINENO"; then : 7618 eval $cacheid=yes 7619else 7620 eval $cacheid=no 7621fi 7622rm -f core conftest.err conftest.$ac_objext \ 7623 conftest$ac_exeext conftest.$ac_ext 7624fi 7625 7626 7627 CFLAGS="$xorg_testset_save_CFLAGS" 7628 7629 eval supported=\$$cacheid 7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7631$as_echo "$supported" >&6; } 7632 if test "$supported" = "yes" ; then 7633 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 7634 found="yes" 7635 fi 7636 fi 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652xorg_testset_save_CFLAGS="$CFLAGS" 7653 7654if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7657$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7658if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7659 $as_echo_n "(cached) " >&6 7660else 7661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7662/* end confdefs.h. */ 7663int i; 7664_ACEOF 7665if ac_fn_c_try_compile "$LINENO"; then : 7666 xorg_cv_cc_flag_unknown_warning_option=yes 7667else 7668 xorg_cv_cc_flag_unknown_warning_option=no 7669fi 7670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7671fi 7672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7673$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7674 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7675 CFLAGS="$xorg_testset_save_CFLAGS" 7676fi 7677 7678if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7681 fi 7682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7684$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7685if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7686 $as_echo_n "(cached) " >&6 7687else 7688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7689/* end confdefs.h. */ 7690int i; 7691_ACEOF 7692if ac_fn_c_try_compile "$LINENO"; then : 7693 xorg_cv_cc_flag_unused_command_line_argument=yes 7694else 7695 xorg_cv_cc_flag_unused_command_line_argument=no 7696fi 7697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7698fi 7699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7700$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7701 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7702 CFLAGS="$xorg_testset_save_CFLAGS" 7703fi 7704 7705found="no" 7706 7707 if test $found = "no" ; then 7708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7710 fi 7711 7712 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7714 fi 7715 7716 CFLAGS="$CFLAGS -Wuninitialized" 7717 7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 7719$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 7720 cacheid=xorg_cv_cc_flag__Wuninitialized 7721 if eval \${$cacheid+:} false; then : 7722 $as_echo_n "(cached) " >&6 7723else 7724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7725/* end confdefs.h. */ 7726int i; 7727int 7728main () 7729{ 7730 7731 ; 7732 return 0; 7733} 7734_ACEOF 7735if ac_fn_c_try_link "$LINENO"; then : 7736 eval $cacheid=yes 7737else 7738 eval $cacheid=no 7739fi 7740rm -f core conftest.err conftest.$ac_objext \ 7741 conftest$ac_exeext conftest.$ac_ext 7742fi 7743 7744 7745 CFLAGS="$xorg_testset_save_CFLAGS" 7746 7747 eval supported=\$$cacheid 7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7749$as_echo "$supported" >&6; } 7750 if test "$supported" = "yes" ; then 7751 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 7752 found="yes" 7753 fi 7754 fi 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770xorg_testset_save_CFLAGS="$CFLAGS" 7771 7772if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7775$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7776if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7777 $as_echo_n "(cached) " >&6 7778else 7779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7780/* end confdefs.h. */ 7781int i; 7782_ACEOF 7783if ac_fn_c_try_compile "$LINENO"; then : 7784 xorg_cv_cc_flag_unknown_warning_option=yes 7785else 7786 xorg_cv_cc_flag_unknown_warning_option=no 7787fi 7788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7789fi 7790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7791$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7792 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7793 CFLAGS="$xorg_testset_save_CFLAGS" 7794fi 7795 7796if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7799 fi 7800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7802$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7803if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7804 $as_echo_n "(cached) " >&6 7805else 7806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7807/* end confdefs.h. */ 7808int i; 7809_ACEOF 7810if ac_fn_c_try_compile "$LINENO"; then : 7811 xorg_cv_cc_flag_unused_command_line_argument=yes 7812else 7813 xorg_cv_cc_flag_unused_command_line_argument=no 7814fi 7815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7816fi 7817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7818$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7819 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7820 CFLAGS="$xorg_testset_save_CFLAGS" 7821fi 7822 7823found="no" 7824 7825 if test $found = "no" ; then 7826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7828 fi 7829 7830 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7832 fi 7833 7834 CFLAGS="$CFLAGS -Wshadow" 7835 7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 7837$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 7838 cacheid=xorg_cv_cc_flag__Wshadow 7839 if eval \${$cacheid+:} false; then : 7840 $as_echo_n "(cached) " >&6 7841else 7842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7843/* end confdefs.h. */ 7844int i; 7845int 7846main () 7847{ 7848 7849 ; 7850 return 0; 7851} 7852_ACEOF 7853if ac_fn_c_try_link "$LINENO"; then : 7854 eval $cacheid=yes 7855else 7856 eval $cacheid=no 7857fi 7858rm -f core conftest.err conftest.$ac_objext \ 7859 conftest$ac_exeext conftest.$ac_ext 7860fi 7861 7862 7863 CFLAGS="$xorg_testset_save_CFLAGS" 7864 7865 eval supported=\$$cacheid 7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7867$as_echo "$supported" >&6; } 7868 if test "$supported" = "yes" ; then 7869 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 7870 found="yes" 7871 fi 7872 fi 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888xorg_testset_save_CFLAGS="$CFLAGS" 7889 7890if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7893$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7894if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7895 $as_echo_n "(cached) " >&6 7896else 7897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7898/* end confdefs.h. */ 7899int i; 7900_ACEOF 7901if ac_fn_c_try_compile "$LINENO"; then : 7902 xorg_cv_cc_flag_unknown_warning_option=yes 7903else 7904 xorg_cv_cc_flag_unknown_warning_option=no 7905fi 7906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7907fi 7908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7909$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7910 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7911 CFLAGS="$xorg_testset_save_CFLAGS" 7912fi 7913 7914if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7916 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7917 fi 7918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7920$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7921if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7922 $as_echo_n "(cached) " >&6 7923else 7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7925/* end confdefs.h. */ 7926int i; 7927_ACEOF 7928if ac_fn_c_try_compile "$LINENO"; then : 7929 xorg_cv_cc_flag_unused_command_line_argument=yes 7930else 7931 xorg_cv_cc_flag_unused_command_line_argument=no 7932fi 7933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7934fi 7935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7936$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7937 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7938 CFLAGS="$xorg_testset_save_CFLAGS" 7939fi 7940 7941found="no" 7942 7943 if test $found = "no" ; then 7944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7946 fi 7947 7948 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7950 fi 7951 7952 CFLAGS="$CFLAGS -Wmissing-noreturn" 7953 7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 7955$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 7956 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 7957 if eval \${$cacheid+:} false; then : 7958 $as_echo_n "(cached) " >&6 7959else 7960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7961/* end confdefs.h. */ 7962int i; 7963int 7964main () 7965{ 7966 7967 ; 7968 return 0; 7969} 7970_ACEOF 7971if ac_fn_c_try_link "$LINENO"; then : 7972 eval $cacheid=yes 7973else 7974 eval $cacheid=no 7975fi 7976rm -f core conftest.err conftest.$ac_objext \ 7977 conftest$ac_exeext conftest.$ac_ext 7978fi 7979 7980 7981 CFLAGS="$xorg_testset_save_CFLAGS" 7982 7983 eval supported=\$$cacheid 7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7985$as_echo "$supported" >&6; } 7986 if test "$supported" = "yes" ; then 7987 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 7988 found="yes" 7989 fi 7990 fi 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006xorg_testset_save_CFLAGS="$CFLAGS" 8007 8008if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8009 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8011$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8012if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8013 $as_echo_n "(cached) " >&6 8014else 8015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8016/* end confdefs.h. */ 8017int i; 8018_ACEOF 8019if ac_fn_c_try_compile "$LINENO"; then : 8020 xorg_cv_cc_flag_unknown_warning_option=yes 8021else 8022 xorg_cv_cc_flag_unknown_warning_option=no 8023fi 8024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8025fi 8026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8027$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8028 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8029 CFLAGS="$xorg_testset_save_CFLAGS" 8030fi 8031 8032if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8035 fi 8036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8038$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8039if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8040 $as_echo_n "(cached) " >&6 8041else 8042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8043/* end confdefs.h. */ 8044int i; 8045_ACEOF 8046if ac_fn_c_try_compile "$LINENO"; then : 8047 xorg_cv_cc_flag_unused_command_line_argument=yes 8048else 8049 xorg_cv_cc_flag_unused_command_line_argument=no 8050fi 8051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8052fi 8053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8054$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8055 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8056 CFLAGS="$xorg_testset_save_CFLAGS" 8057fi 8058 8059found="no" 8060 8061 if test $found = "no" ; then 8062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8064 fi 8065 8066 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8068 fi 8069 8070 CFLAGS="$CFLAGS -Wmissing-format-attribute" 8071 8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 8073$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 8074 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 8075 if eval \${$cacheid+:} false; then : 8076 $as_echo_n "(cached) " >&6 8077else 8078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8079/* end confdefs.h. */ 8080int i; 8081int 8082main () 8083{ 8084 8085 ; 8086 return 0; 8087} 8088_ACEOF 8089if ac_fn_c_try_link "$LINENO"; then : 8090 eval $cacheid=yes 8091else 8092 eval $cacheid=no 8093fi 8094rm -f core conftest.err conftest.$ac_objext \ 8095 conftest$ac_exeext conftest.$ac_ext 8096fi 8097 8098 8099 CFLAGS="$xorg_testset_save_CFLAGS" 8100 8101 eval supported=\$$cacheid 8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8103$as_echo "$supported" >&6; } 8104 if test "$supported" = "yes" ; then 8105 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 8106 found="yes" 8107 fi 8108 fi 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124xorg_testset_save_CFLAGS="$CFLAGS" 8125 8126if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8127 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8129$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8130if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8131 $as_echo_n "(cached) " >&6 8132else 8133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8134/* end confdefs.h. */ 8135int i; 8136_ACEOF 8137if ac_fn_c_try_compile "$LINENO"; then : 8138 xorg_cv_cc_flag_unknown_warning_option=yes 8139else 8140 xorg_cv_cc_flag_unknown_warning_option=no 8141fi 8142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8143fi 8144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8145$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8146 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8147 CFLAGS="$xorg_testset_save_CFLAGS" 8148fi 8149 8150if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8153 fi 8154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8156$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8157if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8158 $as_echo_n "(cached) " >&6 8159else 8160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8161/* end confdefs.h. */ 8162int i; 8163_ACEOF 8164if ac_fn_c_try_compile "$LINENO"; then : 8165 xorg_cv_cc_flag_unused_command_line_argument=yes 8166else 8167 xorg_cv_cc_flag_unused_command_line_argument=no 8168fi 8169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8170fi 8171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8172$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8173 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8174 CFLAGS="$xorg_testset_save_CFLAGS" 8175fi 8176 8177found="no" 8178 8179 if test $found = "no" ; then 8180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8182 fi 8183 8184 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8186 fi 8187 8188 CFLAGS="$CFLAGS -Wredundant-decls" 8189 8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 8191$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 8192 cacheid=xorg_cv_cc_flag__Wredundant_decls 8193 if eval \${$cacheid+:} false; then : 8194 $as_echo_n "(cached) " >&6 8195else 8196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8197/* end confdefs.h. */ 8198int i; 8199int 8200main () 8201{ 8202 8203 ; 8204 return 0; 8205} 8206_ACEOF 8207if ac_fn_c_try_link "$LINENO"; then : 8208 eval $cacheid=yes 8209else 8210 eval $cacheid=no 8211fi 8212rm -f core conftest.err conftest.$ac_objext \ 8213 conftest$ac_exeext conftest.$ac_ext 8214fi 8215 8216 8217 CFLAGS="$xorg_testset_save_CFLAGS" 8218 8219 eval supported=\$$cacheid 8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8221$as_echo "$supported" >&6; } 8222 if test "$supported" = "yes" ; then 8223 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 8224 found="yes" 8225 fi 8226 fi 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242xorg_testset_save_CFLAGS="$CFLAGS" 8243 8244if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8245 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8247$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8248if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8249 $as_echo_n "(cached) " >&6 8250else 8251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8252/* end confdefs.h. */ 8253int i; 8254_ACEOF 8255if ac_fn_c_try_compile "$LINENO"; then : 8256 xorg_cv_cc_flag_unknown_warning_option=yes 8257else 8258 xorg_cv_cc_flag_unknown_warning_option=no 8259fi 8260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8261fi 8262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8263$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8264 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8265 CFLAGS="$xorg_testset_save_CFLAGS" 8266fi 8267 8268if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8270 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8271 fi 8272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8274$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8275if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8276 $as_echo_n "(cached) " >&6 8277else 8278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8279/* end confdefs.h. */ 8280int i; 8281_ACEOF 8282if ac_fn_c_try_compile "$LINENO"; then : 8283 xorg_cv_cc_flag_unused_command_line_argument=yes 8284else 8285 xorg_cv_cc_flag_unused_command_line_argument=no 8286fi 8287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8288fi 8289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8290$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8291 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8292 CFLAGS="$xorg_testset_save_CFLAGS" 8293fi 8294 8295found="no" 8296 8297 if test $found = "no" ; then 8298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8300 fi 8301 8302 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8304 fi 8305 8306 CFLAGS="$CFLAGS -Wlogical-op" 8307 8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 8309$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 8310 cacheid=xorg_cv_cc_flag__Wlogical_op 8311 if eval \${$cacheid+:} false; then : 8312 $as_echo_n "(cached) " >&6 8313else 8314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8315/* end confdefs.h. */ 8316int i; 8317int 8318main () 8319{ 8320 8321 ; 8322 return 0; 8323} 8324_ACEOF 8325if ac_fn_c_try_link "$LINENO"; then : 8326 eval $cacheid=yes 8327else 8328 eval $cacheid=no 8329fi 8330rm -f core conftest.err conftest.$ac_objext \ 8331 conftest$ac_exeext conftest.$ac_ext 8332fi 8333 8334 8335 CFLAGS="$xorg_testset_save_CFLAGS" 8336 8337 eval supported=\$$cacheid 8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8339$as_echo "$supported" >&6; } 8340 if test "$supported" = "yes" ; then 8341 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 8342 found="yes" 8343 fi 8344 fi 8345 8346 8347 8348# These are currently disabled because they are noisy. They will be enabled 8349# in the future once the codebase is sufficiently modernized to silence 8350# them. For now, I don't want them to drown out the other warnings. 8351# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 8352# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 8353# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 8354 8355# Turn some warnings into errors, so we don't accidently get successful builds 8356# when there are problems that should be fixed. 8357 8358if test "x$SELECTIVE_WERROR" = "xyes" ; then 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372xorg_testset_save_CFLAGS="$CFLAGS" 8373 8374if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8377$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8378if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8379 $as_echo_n "(cached) " >&6 8380else 8381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8382/* end confdefs.h. */ 8383int i; 8384_ACEOF 8385if ac_fn_c_try_compile "$LINENO"; then : 8386 xorg_cv_cc_flag_unknown_warning_option=yes 8387else 8388 xorg_cv_cc_flag_unknown_warning_option=no 8389fi 8390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8391fi 8392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8393$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8394 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8395 CFLAGS="$xorg_testset_save_CFLAGS" 8396fi 8397 8398if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8401 fi 8402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8404$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8405if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8406 $as_echo_n "(cached) " >&6 8407else 8408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8409/* end confdefs.h. */ 8410int i; 8411_ACEOF 8412if ac_fn_c_try_compile "$LINENO"; then : 8413 xorg_cv_cc_flag_unused_command_line_argument=yes 8414else 8415 xorg_cv_cc_flag_unused_command_line_argument=no 8416fi 8417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8418fi 8419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8420$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8421 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8422 CFLAGS="$xorg_testset_save_CFLAGS" 8423fi 8424 8425found="no" 8426 8427 if test $found = "no" ; then 8428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8429 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8430 fi 8431 8432 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8434 fi 8435 8436 CFLAGS="$CFLAGS -Werror=implicit" 8437 8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 8439$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 8440 cacheid=xorg_cv_cc_flag__Werror_implicit 8441 if eval \${$cacheid+:} false; then : 8442 $as_echo_n "(cached) " >&6 8443else 8444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8445/* end confdefs.h. */ 8446int i; 8447int 8448main () 8449{ 8450 8451 ; 8452 return 0; 8453} 8454_ACEOF 8455if ac_fn_c_try_link "$LINENO"; then : 8456 eval $cacheid=yes 8457else 8458 eval $cacheid=no 8459fi 8460rm -f core conftest.err conftest.$ac_objext \ 8461 conftest$ac_exeext conftest.$ac_ext 8462fi 8463 8464 8465 CFLAGS="$xorg_testset_save_CFLAGS" 8466 8467 eval supported=\$$cacheid 8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8469$as_echo "$supported" >&6; } 8470 if test "$supported" = "yes" ; then 8471 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 8472 found="yes" 8473 fi 8474 fi 8475 8476 if test $found = "no" ; then 8477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8478 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8479 fi 8480 8481 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8483 fi 8484 8485 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 8486 8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 8488$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 8489 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 8490 if eval \${$cacheid+:} false; then : 8491 $as_echo_n "(cached) " >&6 8492else 8493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8494/* end confdefs.h. */ 8495int i; 8496int 8497main () 8498{ 8499 8500 ; 8501 return 0; 8502} 8503_ACEOF 8504if ac_fn_c_try_link "$LINENO"; then : 8505 eval $cacheid=yes 8506else 8507 eval $cacheid=no 8508fi 8509rm -f core conftest.err conftest.$ac_objext \ 8510 conftest$ac_exeext conftest.$ac_ext 8511fi 8512 8513 8514 CFLAGS="$xorg_testset_save_CFLAGS" 8515 8516 eval supported=\$$cacheid 8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8518$as_echo "$supported" >&6; } 8519 if test "$supported" = "yes" ; then 8520 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 8521 found="yes" 8522 fi 8523 fi 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539xorg_testset_save_CFLAGS="$CFLAGS" 8540 8541if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8544$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8545if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8546 $as_echo_n "(cached) " >&6 8547else 8548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8549/* end confdefs.h. */ 8550int i; 8551_ACEOF 8552if ac_fn_c_try_compile "$LINENO"; then : 8553 xorg_cv_cc_flag_unknown_warning_option=yes 8554else 8555 xorg_cv_cc_flag_unknown_warning_option=no 8556fi 8557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8558fi 8559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8560$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8561 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8562 CFLAGS="$xorg_testset_save_CFLAGS" 8563fi 8564 8565if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8568 fi 8569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8571$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8572if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8573 $as_echo_n "(cached) " >&6 8574else 8575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8576/* end confdefs.h. */ 8577int i; 8578_ACEOF 8579if ac_fn_c_try_compile "$LINENO"; then : 8580 xorg_cv_cc_flag_unused_command_line_argument=yes 8581else 8582 xorg_cv_cc_flag_unused_command_line_argument=no 8583fi 8584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8585fi 8586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8587$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8588 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8589 CFLAGS="$xorg_testset_save_CFLAGS" 8590fi 8591 8592found="no" 8593 8594 if test $found = "no" ; then 8595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8596 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8597 fi 8598 8599 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8601 fi 8602 8603 CFLAGS="$CFLAGS -Werror=nonnull" 8604 8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 8606$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 8607 cacheid=xorg_cv_cc_flag__Werror_nonnull 8608 if eval \${$cacheid+:} false; then : 8609 $as_echo_n "(cached) " >&6 8610else 8611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8612/* end confdefs.h. */ 8613int i; 8614int 8615main () 8616{ 8617 8618 ; 8619 return 0; 8620} 8621_ACEOF 8622if ac_fn_c_try_link "$LINENO"; then : 8623 eval $cacheid=yes 8624else 8625 eval $cacheid=no 8626fi 8627rm -f core conftest.err conftest.$ac_objext \ 8628 conftest$ac_exeext conftest.$ac_ext 8629fi 8630 8631 8632 CFLAGS="$xorg_testset_save_CFLAGS" 8633 8634 eval supported=\$$cacheid 8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8636$as_echo "$supported" >&6; } 8637 if test "$supported" = "yes" ; then 8638 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 8639 found="yes" 8640 fi 8641 fi 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657xorg_testset_save_CFLAGS="$CFLAGS" 8658 8659if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8660 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8662$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8663if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8664 $as_echo_n "(cached) " >&6 8665else 8666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8667/* end confdefs.h. */ 8668int i; 8669_ACEOF 8670if ac_fn_c_try_compile "$LINENO"; then : 8671 xorg_cv_cc_flag_unknown_warning_option=yes 8672else 8673 xorg_cv_cc_flag_unknown_warning_option=no 8674fi 8675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8676fi 8677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8678$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8679 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8680 CFLAGS="$xorg_testset_save_CFLAGS" 8681fi 8682 8683if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8685 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8686 fi 8687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8689$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8690if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8691 $as_echo_n "(cached) " >&6 8692else 8693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8694/* end confdefs.h. */ 8695int i; 8696_ACEOF 8697if ac_fn_c_try_compile "$LINENO"; then : 8698 xorg_cv_cc_flag_unused_command_line_argument=yes 8699else 8700 xorg_cv_cc_flag_unused_command_line_argument=no 8701fi 8702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8703fi 8704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8705$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8706 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8707 CFLAGS="$xorg_testset_save_CFLAGS" 8708fi 8709 8710found="no" 8711 8712 if test $found = "no" ; then 8713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8715 fi 8716 8717 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8719 fi 8720 8721 CFLAGS="$CFLAGS -Werror=init-self" 8722 8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 8724$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 8725 cacheid=xorg_cv_cc_flag__Werror_init_self 8726 if eval \${$cacheid+:} false; then : 8727 $as_echo_n "(cached) " >&6 8728else 8729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8730/* end confdefs.h. */ 8731int i; 8732int 8733main () 8734{ 8735 8736 ; 8737 return 0; 8738} 8739_ACEOF 8740if ac_fn_c_try_link "$LINENO"; then : 8741 eval $cacheid=yes 8742else 8743 eval $cacheid=no 8744fi 8745rm -f core conftest.err conftest.$ac_objext \ 8746 conftest$ac_exeext conftest.$ac_ext 8747fi 8748 8749 8750 CFLAGS="$xorg_testset_save_CFLAGS" 8751 8752 eval supported=\$$cacheid 8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8754$as_echo "$supported" >&6; } 8755 if test "$supported" = "yes" ; then 8756 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 8757 found="yes" 8758 fi 8759 fi 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775xorg_testset_save_CFLAGS="$CFLAGS" 8776 8777if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8780$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8781if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8782 $as_echo_n "(cached) " >&6 8783else 8784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8785/* end confdefs.h. */ 8786int i; 8787_ACEOF 8788if ac_fn_c_try_compile "$LINENO"; then : 8789 xorg_cv_cc_flag_unknown_warning_option=yes 8790else 8791 xorg_cv_cc_flag_unknown_warning_option=no 8792fi 8793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8794fi 8795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8796$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8797 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8798 CFLAGS="$xorg_testset_save_CFLAGS" 8799fi 8800 8801if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8804 fi 8805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8807$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8808if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8809 $as_echo_n "(cached) " >&6 8810else 8811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8812/* end confdefs.h. */ 8813int i; 8814_ACEOF 8815if ac_fn_c_try_compile "$LINENO"; then : 8816 xorg_cv_cc_flag_unused_command_line_argument=yes 8817else 8818 xorg_cv_cc_flag_unused_command_line_argument=no 8819fi 8820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8821fi 8822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8823$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8824 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8825 CFLAGS="$xorg_testset_save_CFLAGS" 8826fi 8827 8828found="no" 8829 8830 if test $found = "no" ; then 8831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8833 fi 8834 8835 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8837 fi 8838 8839 CFLAGS="$CFLAGS -Werror=main" 8840 8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 8842$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 8843 cacheid=xorg_cv_cc_flag__Werror_main 8844 if eval \${$cacheid+:} false; then : 8845 $as_echo_n "(cached) " >&6 8846else 8847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8848/* end confdefs.h. */ 8849int i; 8850int 8851main () 8852{ 8853 8854 ; 8855 return 0; 8856} 8857_ACEOF 8858if ac_fn_c_try_link "$LINENO"; then : 8859 eval $cacheid=yes 8860else 8861 eval $cacheid=no 8862fi 8863rm -f core conftest.err conftest.$ac_objext \ 8864 conftest$ac_exeext conftest.$ac_ext 8865fi 8866 8867 8868 CFLAGS="$xorg_testset_save_CFLAGS" 8869 8870 eval supported=\$$cacheid 8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8872$as_echo "$supported" >&6; } 8873 if test "$supported" = "yes" ; then 8874 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 8875 found="yes" 8876 fi 8877 fi 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893xorg_testset_save_CFLAGS="$CFLAGS" 8894 8895if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8898$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8899if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8900 $as_echo_n "(cached) " >&6 8901else 8902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8903/* end confdefs.h. */ 8904int i; 8905_ACEOF 8906if ac_fn_c_try_compile "$LINENO"; then : 8907 xorg_cv_cc_flag_unknown_warning_option=yes 8908else 8909 xorg_cv_cc_flag_unknown_warning_option=no 8910fi 8911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8912fi 8913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8914$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8915 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8916 CFLAGS="$xorg_testset_save_CFLAGS" 8917fi 8918 8919if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8921 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8922 fi 8923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8925$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8926if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8927 $as_echo_n "(cached) " >&6 8928else 8929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8930/* end confdefs.h. */ 8931int i; 8932_ACEOF 8933if ac_fn_c_try_compile "$LINENO"; then : 8934 xorg_cv_cc_flag_unused_command_line_argument=yes 8935else 8936 xorg_cv_cc_flag_unused_command_line_argument=no 8937fi 8938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8939fi 8940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8941$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8942 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8943 CFLAGS="$xorg_testset_save_CFLAGS" 8944fi 8945 8946found="no" 8947 8948 if test $found = "no" ; then 8949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8951 fi 8952 8953 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8955 fi 8956 8957 CFLAGS="$CFLAGS -Werror=missing-braces" 8958 8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 8960$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 8961 cacheid=xorg_cv_cc_flag__Werror_missing_braces 8962 if eval \${$cacheid+:} false; then : 8963 $as_echo_n "(cached) " >&6 8964else 8965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8966/* end confdefs.h. */ 8967int i; 8968int 8969main () 8970{ 8971 8972 ; 8973 return 0; 8974} 8975_ACEOF 8976if ac_fn_c_try_link "$LINENO"; then : 8977 eval $cacheid=yes 8978else 8979 eval $cacheid=no 8980fi 8981rm -f core conftest.err conftest.$ac_objext \ 8982 conftest$ac_exeext conftest.$ac_ext 8983fi 8984 8985 8986 CFLAGS="$xorg_testset_save_CFLAGS" 8987 8988 eval supported=\$$cacheid 8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8990$as_echo "$supported" >&6; } 8991 if test "$supported" = "yes" ; then 8992 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 8993 found="yes" 8994 fi 8995 fi 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011xorg_testset_save_CFLAGS="$CFLAGS" 9012 9013if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9016$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9017if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9018 $as_echo_n "(cached) " >&6 9019else 9020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9021/* end confdefs.h. */ 9022int i; 9023_ACEOF 9024if ac_fn_c_try_compile "$LINENO"; then : 9025 xorg_cv_cc_flag_unknown_warning_option=yes 9026else 9027 xorg_cv_cc_flag_unknown_warning_option=no 9028fi 9029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9030fi 9031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9032$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9033 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9034 CFLAGS="$xorg_testset_save_CFLAGS" 9035fi 9036 9037if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9040 fi 9041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9043$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9044if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9045 $as_echo_n "(cached) " >&6 9046else 9047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9048/* end confdefs.h. */ 9049int i; 9050_ACEOF 9051if ac_fn_c_try_compile "$LINENO"; then : 9052 xorg_cv_cc_flag_unused_command_line_argument=yes 9053else 9054 xorg_cv_cc_flag_unused_command_line_argument=no 9055fi 9056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9057fi 9058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9059$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9060 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9061 CFLAGS="$xorg_testset_save_CFLAGS" 9062fi 9063 9064found="no" 9065 9066 if test $found = "no" ; then 9067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9069 fi 9070 9071 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9073 fi 9074 9075 CFLAGS="$CFLAGS -Werror=sequence-point" 9076 9077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 9078$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 9079 cacheid=xorg_cv_cc_flag__Werror_sequence_point 9080 if eval \${$cacheid+:} false; then : 9081 $as_echo_n "(cached) " >&6 9082else 9083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9084/* end confdefs.h. */ 9085int i; 9086int 9087main () 9088{ 9089 9090 ; 9091 return 0; 9092} 9093_ACEOF 9094if ac_fn_c_try_link "$LINENO"; then : 9095 eval $cacheid=yes 9096else 9097 eval $cacheid=no 9098fi 9099rm -f core conftest.err conftest.$ac_objext \ 9100 conftest$ac_exeext conftest.$ac_ext 9101fi 9102 9103 9104 CFLAGS="$xorg_testset_save_CFLAGS" 9105 9106 eval supported=\$$cacheid 9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9108$as_echo "$supported" >&6; } 9109 if test "$supported" = "yes" ; then 9110 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 9111 found="yes" 9112 fi 9113 fi 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129xorg_testset_save_CFLAGS="$CFLAGS" 9130 9131if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9134$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9135if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9136 $as_echo_n "(cached) " >&6 9137else 9138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9139/* end confdefs.h. */ 9140int i; 9141_ACEOF 9142if ac_fn_c_try_compile "$LINENO"; then : 9143 xorg_cv_cc_flag_unknown_warning_option=yes 9144else 9145 xorg_cv_cc_flag_unknown_warning_option=no 9146fi 9147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9148fi 9149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9150$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9151 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9152 CFLAGS="$xorg_testset_save_CFLAGS" 9153fi 9154 9155if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9156 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9157 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9158 fi 9159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9161$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9162if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9163 $as_echo_n "(cached) " >&6 9164else 9165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9166/* end confdefs.h. */ 9167int i; 9168_ACEOF 9169if ac_fn_c_try_compile "$LINENO"; then : 9170 xorg_cv_cc_flag_unused_command_line_argument=yes 9171else 9172 xorg_cv_cc_flag_unused_command_line_argument=no 9173fi 9174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9175fi 9176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9177$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9178 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9179 CFLAGS="$xorg_testset_save_CFLAGS" 9180fi 9181 9182found="no" 9183 9184 if test $found = "no" ; then 9185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9187 fi 9188 9189 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9191 fi 9192 9193 CFLAGS="$CFLAGS -Werror=return-type" 9194 9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 9196$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 9197 cacheid=xorg_cv_cc_flag__Werror_return_type 9198 if eval \${$cacheid+:} false; then : 9199 $as_echo_n "(cached) " >&6 9200else 9201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9202/* end confdefs.h. */ 9203int i; 9204int 9205main () 9206{ 9207 9208 ; 9209 return 0; 9210} 9211_ACEOF 9212if ac_fn_c_try_link "$LINENO"; then : 9213 eval $cacheid=yes 9214else 9215 eval $cacheid=no 9216fi 9217rm -f core conftest.err conftest.$ac_objext \ 9218 conftest$ac_exeext conftest.$ac_ext 9219fi 9220 9221 9222 CFLAGS="$xorg_testset_save_CFLAGS" 9223 9224 eval supported=\$$cacheid 9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9226$as_echo "$supported" >&6; } 9227 if test "$supported" = "yes" ; then 9228 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 9229 found="yes" 9230 fi 9231 fi 9232 9233 if test $found = "no" ; then 9234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9236 fi 9237 9238 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9240 fi 9241 9242 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 9243 9244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 9245$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 9246 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 9247 if eval \${$cacheid+:} false; then : 9248 $as_echo_n "(cached) " >&6 9249else 9250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9251/* end confdefs.h. */ 9252int i; 9253int 9254main () 9255{ 9256 9257 ; 9258 return 0; 9259} 9260_ACEOF 9261if ac_fn_c_try_link "$LINENO"; then : 9262 eval $cacheid=yes 9263else 9264 eval $cacheid=no 9265fi 9266rm -f core conftest.err conftest.$ac_objext \ 9267 conftest$ac_exeext conftest.$ac_ext 9268fi 9269 9270 9271 CFLAGS="$xorg_testset_save_CFLAGS" 9272 9273 eval supported=\$$cacheid 9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9275$as_echo "$supported" >&6; } 9276 if test "$supported" = "yes" ; then 9277 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 9278 found="yes" 9279 fi 9280 fi 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296xorg_testset_save_CFLAGS="$CFLAGS" 9297 9298if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9301$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9302if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9303 $as_echo_n "(cached) " >&6 9304else 9305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9306/* end confdefs.h. */ 9307int i; 9308_ACEOF 9309if ac_fn_c_try_compile "$LINENO"; then : 9310 xorg_cv_cc_flag_unknown_warning_option=yes 9311else 9312 xorg_cv_cc_flag_unknown_warning_option=no 9313fi 9314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9315fi 9316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9317$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9318 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9319 CFLAGS="$xorg_testset_save_CFLAGS" 9320fi 9321 9322if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9325 fi 9326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9328$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9329if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9330 $as_echo_n "(cached) " >&6 9331else 9332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9333/* end confdefs.h. */ 9334int i; 9335_ACEOF 9336if ac_fn_c_try_compile "$LINENO"; then : 9337 xorg_cv_cc_flag_unused_command_line_argument=yes 9338else 9339 xorg_cv_cc_flag_unused_command_line_argument=no 9340fi 9341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9342fi 9343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9344$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9345 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9346 CFLAGS="$xorg_testset_save_CFLAGS" 9347fi 9348 9349found="no" 9350 9351 if test $found = "no" ; then 9352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9354 fi 9355 9356 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9358 fi 9359 9360 CFLAGS="$CFLAGS -Werror=trigraphs" 9361 9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 9363$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 9364 cacheid=xorg_cv_cc_flag__Werror_trigraphs 9365 if eval \${$cacheid+:} false; then : 9366 $as_echo_n "(cached) " >&6 9367else 9368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9369/* end confdefs.h. */ 9370int i; 9371int 9372main () 9373{ 9374 9375 ; 9376 return 0; 9377} 9378_ACEOF 9379if ac_fn_c_try_link "$LINENO"; then : 9380 eval $cacheid=yes 9381else 9382 eval $cacheid=no 9383fi 9384rm -f core conftest.err conftest.$ac_objext \ 9385 conftest$ac_exeext conftest.$ac_ext 9386fi 9387 9388 9389 CFLAGS="$xorg_testset_save_CFLAGS" 9390 9391 eval supported=\$$cacheid 9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9393$as_echo "$supported" >&6; } 9394 if test "$supported" = "yes" ; then 9395 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 9396 found="yes" 9397 fi 9398 fi 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414xorg_testset_save_CFLAGS="$CFLAGS" 9415 9416if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9419$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9420if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9421 $as_echo_n "(cached) " >&6 9422else 9423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9424/* end confdefs.h. */ 9425int i; 9426_ACEOF 9427if ac_fn_c_try_compile "$LINENO"; then : 9428 xorg_cv_cc_flag_unknown_warning_option=yes 9429else 9430 xorg_cv_cc_flag_unknown_warning_option=no 9431fi 9432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9433fi 9434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9435$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9436 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9437 CFLAGS="$xorg_testset_save_CFLAGS" 9438fi 9439 9440if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9443 fi 9444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9446$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9447if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9448 $as_echo_n "(cached) " >&6 9449else 9450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9451/* end confdefs.h. */ 9452int i; 9453_ACEOF 9454if ac_fn_c_try_compile "$LINENO"; then : 9455 xorg_cv_cc_flag_unused_command_line_argument=yes 9456else 9457 xorg_cv_cc_flag_unused_command_line_argument=no 9458fi 9459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9460fi 9461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9462$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9463 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9464 CFLAGS="$xorg_testset_save_CFLAGS" 9465fi 9466 9467found="no" 9468 9469 if test $found = "no" ; then 9470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9472 fi 9473 9474 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9476 fi 9477 9478 CFLAGS="$CFLAGS -Werror=array-bounds" 9479 9480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 9481$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 9482 cacheid=xorg_cv_cc_flag__Werror_array_bounds 9483 if eval \${$cacheid+:} false; then : 9484 $as_echo_n "(cached) " >&6 9485else 9486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9487/* end confdefs.h. */ 9488int i; 9489int 9490main () 9491{ 9492 9493 ; 9494 return 0; 9495} 9496_ACEOF 9497if ac_fn_c_try_link "$LINENO"; then : 9498 eval $cacheid=yes 9499else 9500 eval $cacheid=no 9501fi 9502rm -f core conftest.err conftest.$ac_objext \ 9503 conftest$ac_exeext conftest.$ac_ext 9504fi 9505 9506 9507 CFLAGS="$xorg_testset_save_CFLAGS" 9508 9509 eval supported=\$$cacheid 9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9511$as_echo "$supported" >&6; } 9512 if test "$supported" = "yes" ; then 9513 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 9514 found="yes" 9515 fi 9516 fi 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532xorg_testset_save_CFLAGS="$CFLAGS" 9533 9534if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9537$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9538if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9539 $as_echo_n "(cached) " >&6 9540else 9541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9542/* end confdefs.h. */ 9543int i; 9544_ACEOF 9545if ac_fn_c_try_compile "$LINENO"; then : 9546 xorg_cv_cc_flag_unknown_warning_option=yes 9547else 9548 xorg_cv_cc_flag_unknown_warning_option=no 9549fi 9550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9551fi 9552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9553$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9554 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9555 CFLAGS="$xorg_testset_save_CFLAGS" 9556fi 9557 9558if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9561 fi 9562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9564$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9565if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9566 $as_echo_n "(cached) " >&6 9567else 9568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9569/* end confdefs.h. */ 9570int i; 9571_ACEOF 9572if ac_fn_c_try_compile "$LINENO"; then : 9573 xorg_cv_cc_flag_unused_command_line_argument=yes 9574else 9575 xorg_cv_cc_flag_unused_command_line_argument=no 9576fi 9577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9578fi 9579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9580$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9581 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9582 CFLAGS="$xorg_testset_save_CFLAGS" 9583fi 9584 9585found="no" 9586 9587 if test $found = "no" ; then 9588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9590 fi 9591 9592 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9594 fi 9595 9596 CFLAGS="$CFLAGS -Werror=write-strings" 9597 9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 9599$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 9600 cacheid=xorg_cv_cc_flag__Werror_write_strings 9601 if eval \${$cacheid+:} false; then : 9602 $as_echo_n "(cached) " >&6 9603else 9604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9605/* end confdefs.h. */ 9606int i; 9607int 9608main () 9609{ 9610 9611 ; 9612 return 0; 9613} 9614_ACEOF 9615if ac_fn_c_try_link "$LINENO"; then : 9616 eval $cacheid=yes 9617else 9618 eval $cacheid=no 9619fi 9620rm -f core conftest.err conftest.$ac_objext \ 9621 conftest$ac_exeext conftest.$ac_ext 9622fi 9623 9624 9625 CFLAGS="$xorg_testset_save_CFLAGS" 9626 9627 eval supported=\$$cacheid 9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9629$as_echo "$supported" >&6; } 9630 if test "$supported" = "yes" ; then 9631 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 9632 found="yes" 9633 fi 9634 fi 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650xorg_testset_save_CFLAGS="$CFLAGS" 9651 9652if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9655$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9656if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9657 $as_echo_n "(cached) " >&6 9658else 9659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9660/* end confdefs.h. */ 9661int i; 9662_ACEOF 9663if ac_fn_c_try_compile "$LINENO"; then : 9664 xorg_cv_cc_flag_unknown_warning_option=yes 9665else 9666 xorg_cv_cc_flag_unknown_warning_option=no 9667fi 9668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9669fi 9670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9671$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9672 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9673 CFLAGS="$xorg_testset_save_CFLAGS" 9674fi 9675 9676if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9679 fi 9680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9682$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9683if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9684 $as_echo_n "(cached) " >&6 9685else 9686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9687/* end confdefs.h. */ 9688int i; 9689_ACEOF 9690if ac_fn_c_try_compile "$LINENO"; then : 9691 xorg_cv_cc_flag_unused_command_line_argument=yes 9692else 9693 xorg_cv_cc_flag_unused_command_line_argument=no 9694fi 9695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9696fi 9697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9698$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9699 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9700 CFLAGS="$xorg_testset_save_CFLAGS" 9701fi 9702 9703found="no" 9704 9705 if test $found = "no" ; then 9706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9708 fi 9709 9710 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9712 fi 9713 9714 CFLAGS="$CFLAGS -Werror=address" 9715 9716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 9717$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 9718 cacheid=xorg_cv_cc_flag__Werror_address 9719 if eval \${$cacheid+:} false; then : 9720 $as_echo_n "(cached) " >&6 9721else 9722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9723/* end confdefs.h. */ 9724int i; 9725int 9726main () 9727{ 9728 9729 ; 9730 return 0; 9731} 9732_ACEOF 9733if ac_fn_c_try_link "$LINENO"; then : 9734 eval $cacheid=yes 9735else 9736 eval $cacheid=no 9737fi 9738rm -f core conftest.err conftest.$ac_objext \ 9739 conftest$ac_exeext conftest.$ac_ext 9740fi 9741 9742 9743 CFLAGS="$xorg_testset_save_CFLAGS" 9744 9745 eval supported=\$$cacheid 9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9747$as_echo "$supported" >&6; } 9748 if test "$supported" = "yes" ; then 9749 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 9750 found="yes" 9751 fi 9752 fi 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768xorg_testset_save_CFLAGS="$CFLAGS" 9769 9770if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9771 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9773$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9774if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9775 $as_echo_n "(cached) " >&6 9776else 9777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9778/* end confdefs.h. */ 9779int i; 9780_ACEOF 9781if ac_fn_c_try_compile "$LINENO"; then : 9782 xorg_cv_cc_flag_unknown_warning_option=yes 9783else 9784 xorg_cv_cc_flag_unknown_warning_option=no 9785fi 9786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9787fi 9788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9789$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9790 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9791 CFLAGS="$xorg_testset_save_CFLAGS" 9792fi 9793 9794if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9797 fi 9798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9800$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9801if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9802 $as_echo_n "(cached) " >&6 9803else 9804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9805/* end confdefs.h. */ 9806int i; 9807_ACEOF 9808if ac_fn_c_try_compile "$LINENO"; then : 9809 xorg_cv_cc_flag_unused_command_line_argument=yes 9810else 9811 xorg_cv_cc_flag_unused_command_line_argument=no 9812fi 9813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9814fi 9815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9816$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9817 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9818 CFLAGS="$xorg_testset_save_CFLAGS" 9819fi 9820 9821found="no" 9822 9823 if test $found = "no" ; then 9824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9826 fi 9827 9828 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9830 fi 9831 9832 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 9833 9834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 9835$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 9836 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 9837 if eval \${$cacheid+:} false; then : 9838 $as_echo_n "(cached) " >&6 9839else 9840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9841/* end confdefs.h. */ 9842int i; 9843int 9844main () 9845{ 9846 9847 ; 9848 return 0; 9849} 9850_ACEOF 9851if ac_fn_c_try_link "$LINENO"; then : 9852 eval $cacheid=yes 9853else 9854 eval $cacheid=no 9855fi 9856rm -f core conftest.err conftest.$ac_objext \ 9857 conftest$ac_exeext conftest.$ac_ext 9858fi 9859 9860 9861 CFLAGS="$xorg_testset_save_CFLAGS" 9862 9863 eval supported=\$$cacheid 9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9865$as_echo "$supported" >&6; } 9866 if test "$supported" = "yes" ; then 9867 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 9868 found="yes" 9869 fi 9870 fi 9871 9872 if test $found = "no" ; then 9873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9875 fi 9876 9877 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9879 fi 9880 9881 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9882 9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 9884$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 9885 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 9886 if eval \${$cacheid+:} false; then : 9887 $as_echo_n "(cached) " >&6 9888else 9889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9890/* end confdefs.h. */ 9891int i; 9892int 9893main () 9894{ 9895 9896 ; 9897 return 0; 9898} 9899_ACEOF 9900if ac_fn_c_try_link "$LINENO"; then : 9901 eval $cacheid=yes 9902else 9903 eval $cacheid=no 9904fi 9905rm -f core conftest.err conftest.$ac_objext \ 9906 conftest$ac_exeext conftest.$ac_ext 9907fi 9908 9909 9910 CFLAGS="$xorg_testset_save_CFLAGS" 9911 9912 eval supported=\$$cacheid 9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9914$as_echo "$supported" >&6; } 9915 if test "$supported" = "yes" ; then 9916 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9917 found="yes" 9918 fi 9919 fi 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935xorg_testset_save_CFLAGS="$CFLAGS" 9936 9937if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9940$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9941if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9942 $as_echo_n "(cached) " >&6 9943else 9944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9945/* end confdefs.h. */ 9946int i; 9947_ACEOF 9948if ac_fn_c_try_compile "$LINENO"; then : 9949 xorg_cv_cc_flag_unknown_warning_option=yes 9950else 9951 xorg_cv_cc_flag_unknown_warning_option=no 9952fi 9953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9954fi 9955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9956$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9957 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9958 CFLAGS="$xorg_testset_save_CFLAGS" 9959fi 9960 9961if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9964 fi 9965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9967$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9968if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9969 $as_echo_n "(cached) " >&6 9970else 9971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9972/* end confdefs.h. */ 9973int i; 9974_ACEOF 9975if ac_fn_c_try_compile "$LINENO"; then : 9976 xorg_cv_cc_flag_unused_command_line_argument=yes 9977else 9978 xorg_cv_cc_flag_unused_command_line_argument=no 9979fi 9980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9981fi 9982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9983$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9984 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9985 CFLAGS="$xorg_testset_save_CFLAGS" 9986fi 9987 9988found="no" 9989 9990 if test $found = "no" ; then 9991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9993 fi 9994 9995 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9997 fi 9998 9999 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 10000 10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 10002$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 10003 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 10004 if eval \${$cacheid+:} false; then : 10005 $as_echo_n "(cached) " >&6 10006else 10007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10008/* end confdefs.h. */ 10009int i; 10010int 10011main () 10012{ 10013 10014 ; 10015 return 0; 10016} 10017_ACEOF 10018if ac_fn_c_try_link "$LINENO"; then : 10019 eval $cacheid=yes 10020else 10021 eval $cacheid=no 10022fi 10023rm -f core conftest.err conftest.$ac_objext \ 10024 conftest$ac_exeext conftest.$ac_ext 10025fi 10026 10027 10028 CFLAGS="$xorg_testset_save_CFLAGS" 10029 10030 eval supported=\$$cacheid 10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10032$as_echo "$supported" >&6; } 10033 if test "$supported" = "yes" ; then 10034 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 10035 found="yes" 10036 fi 10037 fi 10038 10039 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 10040else 10041{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5 10042$as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;} 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056xorg_testset_save_CFLAGS="$CFLAGS" 10057 10058if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10061$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10062if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10063 $as_echo_n "(cached) " >&6 10064else 10065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10066/* end confdefs.h. */ 10067int i; 10068_ACEOF 10069if ac_fn_c_try_compile "$LINENO"; then : 10070 xorg_cv_cc_flag_unknown_warning_option=yes 10071else 10072 xorg_cv_cc_flag_unknown_warning_option=no 10073fi 10074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10075fi 10076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10077$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10078 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10079 CFLAGS="$xorg_testset_save_CFLAGS" 10080fi 10081 10082if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10085 fi 10086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10088$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10089if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10090 $as_echo_n "(cached) " >&6 10091else 10092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10093/* end confdefs.h. */ 10094int i; 10095_ACEOF 10096if ac_fn_c_try_compile "$LINENO"; then : 10097 xorg_cv_cc_flag_unused_command_line_argument=yes 10098else 10099 xorg_cv_cc_flag_unused_command_line_argument=no 10100fi 10101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10102fi 10103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10104$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10105 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10106 CFLAGS="$xorg_testset_save_CFLAGS" 10107fi 10108 10109found="no" 10110 10111 if test $found = "no" ; then 10112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10114 fi 10115 10116 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10118 fi 10119 10120 CFLAGS="$CFLAGS -Wimplicit" 10121 10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 10123$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 10124 cacheid=xorg_cv_cc_flag__Wimplicit 10125 if eval \${$cacheid+:} false; then : 10126 $as_echo_n "(cached) " >&6 10127else 10128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10129/* end confdefs.h. */ 10130int i; 10131int 10132main () 10133{ 10134 10135 ; 10136 return 0; 10137} 10138_ACEOF 10139if ac_fn_c_try_link "$LINENO"; then : 10140 eval $cacheid=yes 10141else 10142 eval $cacheid=no 10143fi 10144rm -f core conftest.err conftest.$ac_objext \ 10145 conftest$ac_exeext conftest.$ac_ext 10146fi 10147 10148 10149 CFLAGS="$xorg_testset_save_CFLAGS" 10150 10151 eval supported=\$$cacheid 10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10153$as_echo "$supported" >&6; } 10154 if test "$supported" = "yes" ; then 10155 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 10156 found="yes" 10157 fi 10158 fi 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174xorg_testset_save_CFLAGS="$CFLAGS" 10175 10176if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10177 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10179$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10180if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10181 $as_echo_n "(cached) " >&6 10182else 10183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10184/* end confdefs.h. */ 10185int i; 10186_ACEOF 10187if ac_fn_c_try_compile "$LINENO"; then : 10188 xorg_cv_cc_flag_unknown_warning_option=yes 10189else 10190 xorg_cv_cc_flag_unknown_warning_option=no 10191fi 10192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10193fi 10194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10195$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10196 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10197 CFLAGS="$xorg_testset_save_CFLAGS" 10198fi 10199 10200if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10202 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10203 fi 10204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10206$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10207if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10208 $as_echo_n "(cached) " >&6 10209else 10210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10211/* end confdefs.h. */ 10212int i; 10213_ACEOF 10214if ac_fn_c_try_compile "$LINENO"; then : 10215 xorg_cv_cc_flag_unused_command_line_argument=yes 10216else 10217 xorg_cv_cc_flag_unused_command_line_argument=no 10218fi 10219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10220fi 10221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10222$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10223 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10224 CFLAGS="$xorg_testset_save_CFLAGS" 10225fi 10226 10227found="no" 10228 10229 if test $found = "no" ; then 10230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10232 fi 10233 10234 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10236 fi 10237 10238 CFLAGS="$CFLAGS -Wnonnull" 10239 10240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 10241$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 10242 cacheid=xorg_cv_cc_flag__Wnonnull 10243 if eval \${$cacheid+:} false; then : 10244 $as_echo_n "(cached) " >&6 10245else 10246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10247/* end confdefs.h. */ 10248int i; 10249int 10250main () 10251{ 10252 10253 ; 10254 return 0; 10255} 10256_ACEOF 10257if ac_fn_c_try_link "$LINENO"; then : 10258 eval $cacheid=yes 10259else 10260 eval $cacheid=no 10261fi 10262rm -f core conftest.err conftest.$ac_objext \ 10263 conftest$ac_exeext conftest.$ac_ext 10264fi 10265 10266 10267 CFLAGS="$xorg_testset_save_CFLAGS" 10268 10269 eval supported=\$$cacheid 10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10271$as_echo "$supported" >&6; } 10272 if test "$supported" = "yes" ; then 10273 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 10274 found="yes" 10275 fi 10276 fi 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292xorg_testset_save_CFLAGS="$CFLAGS" 10293 10294if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10297$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10298if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10299 $as_echo_n "(cached) " >&6 10300else 10301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10302/* end confdefs.h. */ 10303int i; 10304_ACEOF 10305if ac_fn_c_try_compile "$LINENO"; then : 10306 xorg_cv_cc_flag_unknown_warning_option=yes 10307else 10308 xorg_cv_cc_flag_unknown_warning_option=no 10309fi 10310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10311fi 10312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10313$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10314 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10315 CFLAGS="$xorg_testset_save_CFLAGS" 10316fi 10317 10318if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10321 fi 10322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10324$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10325if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10326 $as_echo_n "(cached) " >&6 10327else 10328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10329/* end confdefs.h. */ 10330int i; 10331_ACEOF 10332if ac_fn_c_try_compile "$LINENO"; then : 10333 xorg_cv_cc_flag_unused_command_line_argument=yes 10334else 10335 xorg_cv_cc_flag_unused_command_line_argument=no 10336fi 10337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10338fi 10339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10340$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10341 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10342 CFLAGS="$xorg_testset_save_CFLAGS" 10343fi 10344 10345found="no" 10346 10347 if test $found = "no" ; then 10348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10350 fi 10351 10352 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10354 fi 10355 10356 CFLAGS="$CFLAGS -Winit-self" 10357 10358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 10359$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 10360 cacheid=xorg_cv_cc_flag__Winit_self 10361 if eval \${$cacheid+:} false; then : 10362 $as_echo_n "(cached) " >&6 10363else 10364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10365/* end confdefs.h. */ 10366int i; 10367int 10368main () 10369{ 10370 10371 ; 10372 return 0; 10373} 10374_ACEOF 10375if ac_fn_c_try_link "$LINENO"; then : 10376 eval $cacheid=yes 10377else 10378 eval $cacheid=no 10379fi 10380rm -f core conftest.err conftest.$ac_objext \ 10381 conftest$ac_exeext conftest.$ac_ext 10382fi 10383 10384 10385 CFLAGS="$xorg_testset_save_CFLAGS" 10386 10387 eval supported=\$$cacheid 10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10389$as_echo "$supported" >&6; } 10390 if test "$supported" = "yes" ; then 10391 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 10392 found="yes" 10393 fi 10394 fi 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410xorg_testset_save_CFLAGS="$CFLAGS" 10411 10412if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10413 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10415$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10416if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10417 $as_echo_n "(cached) " >&6 10418else 10419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10420/* end confdefs.h. */ 10421int i; 10422_ACEOF 10423if ac_fn_c_try_compile "$LINENO"; then : 10424 xorg_cv_cc_flag_unknown_warning_option=yes 10425else 10426 xorg_cv_cc_flag_unknown_warning_option=no 10427fi 10428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10429fi 10430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10431$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10432 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10433 CFLAGS="$xorg_testset_save_CFLAGS" 10434fi 10435 10436if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10439 fi 10440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10442$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10443if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10444 $as_echo_n "(cached) " >&6 10445else 10446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10447/* end confdefs.h. */ 10448int i; 10449_ACEOF 10450if ac_fn_c_try_compile "$LINENO"; then : 10451 xorg_cv_cc_flag_unused_command_line_argument=yes 10452else 10453 xorg_cv_cc_flag_unused_command_line_argument=no 10454fi 10455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10456fi 10457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10458$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10459 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10460 CFLAGS="$xorg_testset_save_CFLAGS" 10461fi 10462 10463found="no" 10464 10465 if test $found = "no" ; then 10466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10468 fi 10469 10470 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10472 fi 10473 10474 CFLAGS="$CFLAGS -Wmain" 10475 10476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 10477$as_echo_n "checking if $CC supports -Wmain... " >&6; } 10478 cacheid=xorg_cv_cc_flag__Wmain 10479 if eval \${$cacheid+:} false; then : 10480 $as_echo_n "(cached) " >&6 10481else 10482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10483/* end confdefs.h. */ 10484int i; 10485int 10486main () 10487{ 10488 10489 ; 10490 return 0; 10491} 10492_ACEOF 10493if ac_fn_c_try_link "$LINENO"; then : 10494 eval $cacheid=yes 10495else 10496 eval $cacheid=no 10497fi 10498rm -f core conftest.err conftest.$ac_objext \ 10499 conftest$ac_exeext conftest.$ac_ext 10500fi 10501 10502 10503 CFLAGS="$xorg_testset_save_CFLAGS" 10504 10505 eval supported=\$$cacheid 10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10507$as_echo "$supported" >&6; } 10508 if test "$supported" = "yes" ; then 10509 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 10510 found="yes" 10511 fi 10512 fi 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528xorg_testset_save_CFLAGS="$CFLAGS" 10529 10530if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10533$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10534if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10535 $as_echo_n "(cached) " >&6 10536else 10537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10538/* end confdefs.h. */ 10539int i; 10540_ACEOF 10541if ac_fn_c_try_compile "$LINENO"; then : 10542 xorg_cv_cc_flag_unknown_warning_option=yes 10543else 10544 xorg_cv_cc_flag_unknown_warning_option=no 10545fi 10546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10547fi 10548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10549$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10550 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10551 CFLAGS="$xorg_testset_save_CFLAGS" 10552fi 10553 10554if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10555 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10557 fi 10558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10560$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10561if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10562 $as_echo_n "(cached) " >&6 10563else 10564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10565/* end confdefs.h. */ 10566int i; 10567_ACEOF 10568if ac_fn_c_try_compile "$LINENO"; then : 10569 xorg_cv_cc_flag_unused_command_line_argument=yes 10570else 10571 xorg_cv_cc_flag_unused_command_line_argument=no 10572fi 10573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10574fi 10575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10576$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10577 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10578 CFLAGS="$xorg_testset_save_CFLAGS" 10579fi 10580 10581found="no" 10582 10583 if test $found = "no" ; then 10584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10586 fi 10587 10588 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10590 fi 10591 10592 CFLAGS="$CFLAGS -Wmissing-braces" 10593 10594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 10595$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 10596 cacheid=xorg_cv_cc_flag__Wmissing_braces 10597 if eval \${$cacheid+:} false; then : 10598 $as_echo_n "(cached) " >&6 10599else 10600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10601/* end confdefs.h. */ 10602int i; 10603int 10604main () 10605{ 10606 10607 ; 10608 return 0; 10609} 10610_ACEOF 10611if ac_fn_c_try_link "$LINENO"; then : 10612 eval $cacheid=yes 10613else 10614 eval $cacheid=no 10615fi 10616rm -f core conftest.err conftest.$ac_objext \ 10617 conftest$ac_exeext conftest.$ac_ext 10618fi 10619 10620 10621 CFLAGS="$xorg_testset_save_CFLAGS" 10622 10623 eval supported=\$$cacheid 10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10625$as_echo "$supported" >&6; } 10626 if test "$supported" = "yes" ; then 10627 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 10628 found="yes" 10629 fi 10630 fi 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646xorg_testset_save_CFLAGS="$CFLAGS" 10647 10648if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10651$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10652if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10653 $as_echo_n "(cached) " >&6 10654else 10655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10656/* end confdefs.h. */ 10657int i; 10658_ACEOF 10659if ac_fn_c_try_compile "$LINENO"; then : 10660 xorg_cv_cc_flag_unknown_warning_option=yes 10661else 10662 xorg_cv_cc_flag_unknown_warning_option=no 10663fi 10664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10665fi 10666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10667$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10668 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10669 CFLAGS="$xorg_testset_save_CFLAGS" 10670fi 10671 10672if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10675 fi 10676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10678$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10679if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10680 $as_echo_n "(cached) " >&6 10681else 10682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10683/* end confdefs.h. */ 10684int i; 10685_ACEOF 10686if ac_fn_c_try_compile "$LINENO"; then : 10687 xorg_cv_cc_flag_unused_command_line_argument=yes 10688else 10689 xorg_cv_cc_flag_unused_command_line_argument=no 10690fi 10691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10692fi 10693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10694$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10695 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10696 CFLAGS="$xorg_testset_save_CFLAGS" 10697fi 10698 10699found="no" 10700 10701 if test $found = "no" ; then 10702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10703 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10704 fi 10705 10706 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10708 fi 10709 10710 CFLAGS="$CFLAGS -Wsequence-point" 10711 10712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 10713$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 10714 cacheid=xorg_cv_cc_flag__Wsequence_point 10715 if eval \${$cacheid+:} false; then : 10716 $as_echo_n "(cached) " >&6 10717else 10718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10719/* end confdefs.h. */ 10720int i; 10721int 10722main () 10723{ 10724 10725 ; 10726 return 0; 10727} 10728_ACEOF 10729if ac_fn_c_try_link "$LINENO"; then : 10730 eval $cacheid=yes 10731else 10732 eval $cacheid=no 10733fi 10734rm -f core conftest.err conftest.$ac_objext \ 10735 conftest$ac_exeext conftest.$ac_ext 10736fi 10737 10738 10739 CFLAGS="$xorg_testset_save_CFLAGS" 10740 10741 eval supported=\$$cacheid 10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10743$as_echo "$supported" >&6; } 10744 if test "$supported" = "yes" ; then 10745 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 10746 found="yes" 10747 fi 10748 fi 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764xorg_testset_save_CFLAGS="$CFLAGS" 10765 10766if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10769$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10770if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10771 $as_echo_n "(cached) " >&6 10772else 10773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10774/* end confdefs.h. */ 10775int i; 10776_ACEOF 10777if ac_fn_c_try_compile "$LINENO"; then : 10778 xorg_cv_cc_flag_unknown_warning_option=yes 10779else 10780 xorg_cv_cc_flag_unknown_warning_option=no 10781fi 10782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10783fi 10784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10785$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10786 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10787 CFLAGS="$xorg_testset_save_CFLAGS" 10788fi 10789 10790if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10792 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10793 fi 10794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10796$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10797if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10798 $as_echo_n "(cached) " >&6 10799else 10800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10801/* end confdefs.h. */ 10802int i; 10803_ACEOF 10804if ac_fn_c_try_compile "$LINENO"; then : 10805 xorg_cv_cc_flag_unused_command_line_argument=yes 10806else 10807 xorg_cv_cc_flag_unused_command_line_argument=no 10808fi 10809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10810fi 10811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10812$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10813 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10814 CFLAGS="$xorg_testset_save_CFLAGS" 10815fi 10816 10817found="no" 10818 10819 if test $found = "no" ; then 10820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10822 fi 10823 10824 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10826 fi 10827 10828 CFLAGS="$CFLAGS -Wreturn-type" 10829 10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10831$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 10832 cacheid=xorg_cv_cc_flag__Wreturn_type 10833 if eval \${$cacheid+:} false; then : 10834 $as_echo_n "(cached) " >&6 10835else 10836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10837/* end confdefs.h. */ 10838int i; 10839int 10840main () 10841{ 10842 10843 ; 10844 return 0; 10845} 10846_ACEOF 10847if ac_fn_c_try_link "$LINENO"; then : 10848 eval $cacheid=yes 10849else 10850 eval $cacheid=no 10851fi 10852rm -f core conftest.err conftest.$ac_objext \ 10853 conftest$ac_exeext conftest.$ac_ext 10854fi 10855 10856 10857 CFLAGS="$xorg_testset_save_CFLAGS" 10858 10859 eval supported=\$$cacheid 10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10861$as_echo "$supported" >&6; } 10862 if test "$supported" = "yes" ; then 10863 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10864 found="yes" 10865 fi 10866 fi 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882xorg_testset_save_CFLAGS="$CFLAGS" 10883 10884if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10885 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10887$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10888if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10889 $as_echo_n "(cached) " >&6 10890else 10891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10892/* end confdefs.h. */ 10893int i; 10894_ACEOF 10895if ac_fn_c_try_compile "$LINENO"; then : 10896 xorg_cv_cc_flag_unknown_warning_option=yes 10897else 10898 xorg_cv_cc_flag_unknown_warning_option=no 10899fi 10900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10901fi 10902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10903$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10904 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10905 CFLAGS="$xorg_testset_save_CFLAGS" 10906fi 10907 10908if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10911 fi 10912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10914$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10915if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10916 $as_echo_n "(cached) " >&6 10917else 10918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10919/* end confdefs.h. */ 10920int i; 10921_ACEOF 10922if ac_fn_c_try_compile "$LINENO"; then : 10923 xorg_cv_cc_flag_unused_command_line_argument=yes 10924else 10925 xorg_cv_cc_flag_unused_command_line_argument=no 10926fi 10927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10928fi 10929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10930$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10931 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10932 CFLAGS="$xorg_testset_save_CFLAGS" 10933fi 10934 10935found="no" 10936 10937 if test $found = "no" ; then 10938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10940 fi 10941 10942 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10944 fi 10945 10946 CFLAGS="$CFLAGS -Wtrigraphs" 10947 10948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10949$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 10950 cacheid=xorg_cv_cc_flag__Wtrigraphs 10951 if eval \${$cacheid+:} false; then : 10952 $as_echo_n "(cached) " >&6 10953else 10954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10955/* end confdefs.h. */ 10956int i; 10957int 10958main () 10959{ 10960 10961 ; 10962 return 0; 10963} 10964_ACEOF 10965if ac_fn_c_try_link "$LINENO"; then : 10966 eval $cacheid=yes 10967else 10968 eval $cacheid=no 10969fi 10970rm -f core conftest.err conftest.$ac_objext \ 10971 conftest$ac_exeext conftest.$ac_ext 10972fi 10973 10974 10975 CFLAGS="$xorg_testset_save_CFLAGS" 10976 10977 eval supported=\$$cacheid 10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10979$as_echo "$supported" >&6; } 10980 if test "$supported" = "yes" ; then 10981 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10982 found="yes" 10983 fi 10984 fi 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000xorg_testset_save_CFLAGS="$CFLAGS" 11001 11002if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11003 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11005$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11006if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11007 $as_echo_n "(cached) " >&6 11008else 11009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11010/* end confdefs.h. */ 11011int i; 11012_ACEOF 11013if ac_fn_c_try_compile "$LINENO"; then : 11014 xorg_cv_cc_flag_unknown_warning_option=yes 11015else 11016 xorg_cv_cc_flag_unknown_warning_option=no 11017fi 11018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11019fi 11020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11021$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11022 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11023 CFLAGS="$xorg_testset_save_CFLAGS" 11024fi 11025 11026if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11029 fi 11030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11032$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11033if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11034 $as_echo_n "(cached) " >&6 11035else 11036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11037/* end confdefs.h. */ 11038int i; 11039_ACEOF 11040if ac_fn_c_try_compile "$LINENO"; then : 11041 xorg_cv_cc_flag_unused_command_line_argument=yes 11042else 11043 xorg_cv_cc_flag_unused_command_line_argument=no 11044fi 11045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11046fi 11047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11048$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11049 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11050 CFLAGS="$xorg_testset_save_CFLAGS" 11051fi 11052 11053found="no" 11054 11055 if test $found = "no" ; then 11056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11057 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11058 fi 11059 11060 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11062 fi 11063 11064 CFLAGS="$CFLAGS -Warray-bounds" 11065 11066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 11067$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 11068 cacheid=xorg_cv_cc_flag__Warray_bounds 11069 if eval \${$cacheid+:} false; then : 11070 $as_echo_n "(cached) " >&6 11071else 11072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11073/* end confdefs.h. */ 11074int i; 11075int 11076main () 11077{ 11078 11079 ; 11080 return 0; 11081} 11082_ACEOF 11083if ac_fn_c_try_link "$LINENO"; then : 11084 eval $cacheid=yes 11085else 11086 eval $cacheid=no 11087fi 11088rm -f core conftest.err conftest.$ac_objext \ 11089 conftest$ac_exeext conftest.$ac_ext 11090fi 11091 11092 11093 CFLAGS="$xorg_testset_save_CFLAGS" 11094 11095 eval supported=\$$cacheid 11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11097$as_echo "$supported" >&6; } 11098 if test "$supported" = "yes" ; then 11099 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 11100 found="yes" 11101 fi 11102 fi 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118xorg_testset_save_CFLAGS="$CFLAGS" 11119 11120if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11123$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11124if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11125 $as_echo_n "(cached) " >&6 11126else 11127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11128/* end confdefs.h. */ 11129int i; 11130_ACEOF 11131if ac_fn_c_try_compile "$LINENO"; then : 11132 xorg_cv_cc_flag_unknown_warning_option=yes 11133else 11134 xorg_cv_cc_flag_unknown_warning_option=no 11135fi 11136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11137fi 11138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11139$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11140 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11141 CFLAGS="$xorg_testset_save_CFLAGS" 11142fi 11143 11144if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11147 fi 11148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11150$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11151if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11152 $as_echo_n "(cached) " >&6 11153else 11154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11155/* end confdefs.h. */ 11156int i; 11157_ACEOF 11158if ac_fn_c_try_compile "$LINENO"; then : 11159 xorg_cv_cc_flag_unused_command_line_argument=yes 11160else 11161 xorg_cv_cc_flag_unused_command_line_argument=no 11162fi 11163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11164fi 11165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11166$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11167 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11168 CFLAGS="$xorg_testset_save_CFLAGS" 11169fi 11170 11171found="no" 11172 11173 if test $found = "no" ; then 11174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11176 fi 11177 11178 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11180 fi 11181 11182 CFLAGS="$CFLAGS -Wwrite-strings" 11183 11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 11185$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 11186 cacheid=xorg_cv_cc_flag__Wwrite_strings 11187 if eval \${$cacheid+:} false; then : 11188 $as_echo_n "(cached) " >&6 11189else 11190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11191/* end confdefs.h. */ 11192int i; 11193int 11194main () 11195{ 11196 11197 ; 11198 return 0; 11199} 11200_ACEOF 11201if ac_fn_c_try_link "$LINENO"; then : 11202 eval $cacheid=yes 11203else 11204 eval $cacheid=no 11205fi 11206rm -f core conftest.err conftest.$ac_objext \ 11207 conftest$ac_exeext conftest.$ac_ext 11208fi 11209 11210 11211 CFLAGS="$xorg_testset_save_CFLAGS" 11212 11213 eval supported=\$$cacheid 11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11215$as_echo "$supported" >&6; } 11216 if test "$supported" = "yes" ; then 11217 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 11218 found="yes" 11219 fi 11220 fi 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236xorg_testset_save_CFLAGS="$CFLAGS" 11237 11238if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11241$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11242if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11243 $as_echo_n "(cached) " >&6 11244else 11245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11246/* end confdefs.h. */ 11247int i; 11248_ACEOF 11249if ac_fn_c_try_compile "$LINENO"; then : 11250 xorg_cv_cc_flag_unknown_warning_option=yes 11251else 11252 xorg_cv_cc_flag_unknown_warning_option=no 11253fi 11254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11255fi 11256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11257$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11258 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11259 CFLAGS="$xorg_testset_save_CFLAGS" 11260fi 11261 11262if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11265 fi 11266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11268$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11269if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11270 $as_echo_n "(cached) " >&6 11271else 11272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11273/* end confdefs.h. */ 11274int i; 11275_ACEOF 11276if ac_fn_c_try_compile "$LINENO"; then : 11277 xorg_cv_cc_flag_unused_command_line_argument=yes 11278else 11279 xorg_cv_cc_flag_unused_command_line_argument=no 11280fi 11281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11282fi 11283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11284$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11285 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11286 CFLAGS="$xorg_testset_save_CFLAGS" 11287fi 11288 11289found="no" 11290 11291 if test $found = "no" ; then 11292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11294 fi 11295 11296 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11298 fi 11299 11300 CFLAGS="$CFLAGS -Waddress" 11301 11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 11303$as_echo_n "checking if $CC supports -Waddress... " >&6; } 11304 cacheid=xorg_cv_cc_flag__Waddress 11305 if eval \${$cacheid+:} false; then : 11306 $as_echo_n "(cached) " >&6 11307else 11308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11309/* end confdefs.h. */ 11310int i; 11311int 11312main () 11313{ 11314 11315 ; 11316 return 0; 11317} 11318_ACEOF 11319if ac_fn_c_try_link "$LINENO"; then : 11320 eval $cacheid=yes 11321else 11322 eval $cacheid=no 11323fi 11324rm -f core conftest.err conftest.$ac_objext \ 11325 conftest$ac_exeext conftest.$ac_ext 11326fi 11327 11328 11329 CFLAGS="$xorg_testset_save_CFLAGS" 11330 11331 eval supported=\$$cacheid 11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11333$as_echo "$supported" >&6; } 11334 if test "$supported" = "yes" ; then 11335 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 11336 found="yes" 11337 fi 11338 fi 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354xorg_testset_save_CFLAGS="$CFLAGS" 11355 11356if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11359$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11360if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11361 $as_echo_n "(cached) " >&6 11362else 11363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11364/* end confdefs.h. */ 11365int i; 11366_ACEOF 11367if ac_fn_c_try_compile "$LINENO"; then : 11368 xorg_cv_cc_flag_unknown_warning_option=yes 11369else 11370 xorg_cv_cc_flag_unknown_warning_option=no 11371fi 11372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11373fi 11374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11375$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11376 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11377 CFLAGS="$xorg_testset_save_CFLAGS" 11378fi 11379 11380if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11382 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11383 fi 11384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11386$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11387if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11388 $as_echo_n "(cached) " >&6 11389else 11390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11391/* end confdefs.h. */ 11392int i; 11393_ACEOF 11394if ac_fn_c_try_compile "$LINENO"; then : 11395 xorg_cv_cc_flag_unused_command_line_argument=yes 11396else 11397 xorg_cv_cc_flag_unused_command_line_argument=no 11398fi 11399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11400fi 11401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11402$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11403 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11404 CFLAGS="$xorg_testset_save_CFLAGS" 11405fi 11406 11407found="no" 11408 11409 if test $found = "no" ; then 11410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11412 fi 11413 11414 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11416 fi 11417 11418 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 11419 11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 11421$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 11422 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 11423 if eval \${$cacheid+:} false; then : 11424 $as_echo_n "(cached) " >&6 11425else 11426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11427/* end confdefs.h. */ 11428int i; 11429int 11430main () 11431{ 11432 11433 ; 11434 return 0; 11435} 11436_ACEOF 11437if ac_fn_c_try_link "$LINENO"; then : 11438 eval $cacheid=yes 11439else 11440 eval $cacheid=no 11441fi 11442rm -f core conftest.err conftest.$ac_objext \ 11443 conftest$ac_exeext conftest.$ac_ext 11444fi 11445 11446 11447 CFLAGS="$xorg_testset_save_CFLAGS" 11448 11449 eval supported=\$$cacheid 11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11451$as_echo "$supported" >&6; } 11452 if test "$supported" = "yes" ; then 11453 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 11454 found="yes" 11455 fi 11456 fi 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472xorg_testset_save_CFLAGS="$CFLAGS" 11473 11474if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11475 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11477$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11478if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11479 $as_echo_n "(cached) " >&6 11480else 11481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11482/* end confdefs.h. */ 11483int i; 11484_ACEOF 11485if ac_fn_c_try_compile "$LINENO"; then : 11486 xorg_cv_cc_flag_unknown_warning_option=yes 11487else 11488 xorg_cv_cc_flag_unknown_warning_option=no 11489fi 11490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11491fi 11492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11493$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11494 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11495 CFLAGS="$xorg_testset_save_CFLAGS" 11496fi 11497 11498if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11501 fi 11502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11504$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11505if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11506 $as_echo_n "(cached) " >&6 11507else 11508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11509/* end confdefs.h. */ 11510int i; 11511_ACEOF 11512if ac_fn_c_try_compile "$LINENO"; then : 11513 xorg_cv_cc_flag_unused_command_line_argument=yes 11514else 11515 xorg_cv_cc_flag_unused_command_line_argument=no 11516fi 11517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11518fi 11519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11520$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11521 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11522 CFLAGS="$xorg_testset_save_CFLAGS" 11523fi 11524 11525found="no" 11526 11527 if test $found = "no" ; then 11528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11530 fi 11531 11532 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11534 fi 11535 11536 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 11537 11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 11539$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 11540 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 11541 if eval \${$cacheid+:} false; then : 11542 $as_echo_n "(cached) " >&6 11543else 11544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11545/* end confdefs.h. */ 11546int i; 11547int 11548main () 11549{ 11550 11551 ; 11552 return 0; 11553} 11554_ACEOF 11555if ac_fn_c_try_link "$LINENO"; then : 11556 eval $cacheid=yes 11557else 11558 eval $cacheid=no 11559fi 11560rm -f core conftest.err conftest.$ac_objext \ 11561 conftest$ac_exeext conftest.$ac_ext 11562fi 11563 11564 11565 CFLAGS="$xorg_testset_save_CFLAGS" 11566 11567 eval supported=\$$cacheid 11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11569$as_echo "$supported" >&6; } 11570 if test "$supported" = "yes" ; then 11571 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 11572 found="yes" 11573 fi 11574 fi 11575 11576 11577fi 11578 11579 11580 11581 11582 11583 11584 11585 CWARNFLAGS="$BASE_CFLAGS" 11586 if test "x$GCC" = xyes ; then 11587 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 11588 fi 11589 11590 11591 11592 11593 11594 11595 11596 11597# Check whether --enable-strict-compilation was given. 11598if test "${enable_strict_compilation+set}" = set; then : 11599 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 11600else 11601 STRICT_COMPILE=no 11602fi 11603 11604 11605 11606 11607 11608 11609STRICT_CFLAGS="" 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623xorg_testset_save_CFLAGS="$CFLAGS" 11624 11625if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11628$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11629if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11630 $as_echo_n "(cached) " >&6 11631else 11632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11633/* end confdefs.h. */ 11634int i; 11635_ACEOF 11636if ac_fn_c_try_compile "$LINENO"; then : 11637 xorg_cv_cc_flag_unknown_warning_option=yes 11638else 11639 xorg_cv_cc_flag_unknown_warning_option=no 11640fi 11641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11642fi 11643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11644$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11645 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11646 CFLAGS="$xorg_testset_save_CFLAGS" 11647fi 11648 11649if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11652 fi 11653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11655$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11656if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11657 $as_echo_n "(cached) " >&6 11658else 11659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11660/* end confdefs.h. */ 11661int i; 11662_ACEOF 11663if ac_fn_c_try_compile "$LINENO"; then : 11664 xorg_cv_cc_flag_unused_command_line_argument=yes 11665else 11666 xorg_cv_cc_flag_unused_command_line_argument=no 11667fi 11668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11669fi 11670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11671$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11672 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11673 CFLAGS="$xorg_testset_save_CFLAGS" 11674fi 11675 11676found="no" 11677 11678 if test $found = "no" ; then 11679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11681 fi 11682 11683 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11685 fi 11686 11687 CFLAGS="$CFLAGS -pedantic" 11688 11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 11690$as_echo_n "checking if $CC supports -pedantic... " >&6; } 11691 cacheid=xorg_cv_cc_flag__pedantic 11692 if eval \${$cacheid+:} false; then : 11693 $as_echo_n "(cached) " >&6 11694else 11695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11696/* end confdefs.h. */ 11697int i; 11698int 11699main () 11700{ 11701 11702 ; 11703 return 0; 11704} 11705_ACEOF 11706if ac_fn_c_try_link "$LINENO"; then : 11707 eval $cacheid=yes 11708else 11709 eval $cacheid=no 11710fi 11711rm -f core conftest.err conftest.$ac_objext \ 11712 conftest$ac_exeext conftest.$ac_ext 11713fi 11714 11715 11716 CFLAGS="$xorg_testset_save_CFLAGS" 11717 11718 eval supported=\$$cacheid 11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11720$as_echo "$supported" >&6; } 11721 if test "$supported" = "yes" ; then 11722 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 11723 found="yes" 11724 fi 11725 fi 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741xorg_testset_save_CFLAGS="$CFLAGS" 11742 11743if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11746$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11747if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11748 $as_echo_n "(cached) " >&6 11749else 11750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11751/* end confdefs.h. */ 11752int i; 11753_ACEOF 11754if ac_fn_c_try_compile "$LINENO"; then : 11755 xorg_cv_cc_flag_unknown_warning_option=yes 11756else 11757 xorg_cv_cc_flag_unknown_warning_option=no 11758fi 11759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11760fi 11761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11762$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11763 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11764 CFLAGS="$xorg_testset_save_CFLAGS" 11765fi 11766 11767if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11768 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11769 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11770 fi 11771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11773$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11774if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11775 $as_echo_n "(cached) " >&6 11776else 11777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11778/* end confdefs.h. */ 11779int i; 11780_ACEOF 11781if ac_fn_c_try_compile "$LINENO"; then : 11782 xorg_cv_cc_flag_unused_command_line_argument=yes 11783else 11784 xorg_cv_cc_flag_unused_command_line_argument=no 11785fi 11786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11787fi 11788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11789$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11790 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11791 CFLAGS="$xorg_testset_save_CFLAGS" 11792fi 11793 11794found="no" 11795 11796 if test $found = "no" ; then 11797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11799 fi 11800 11801 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11803 fi 11804 11805 CFLAGS="$CFLAGS -Werror" 11806 11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11808$as_echo_n "checking if $CC supports -Werror... " >&6; } 11809 cacheid=xorg_cv_cc_flag__Werror 11810 if eval \${$cacheid+:} false; then : 11811 $as_echo_n "(cached) " >&6 11812else 11813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11814/* end confdefs.h. */ 11815int i; 11816int 11817main () 11818{ 11819 11820 ; 11821 return 0; 11822} 11823_ACEOF 11824if ac_fn_c_try_link "$LINENO"; then : 11825 eval $cacheid=yes 11826else 11827 eval $cacheid=no 11828fi 11829rm -f core conftest.err conftest.$ac_objext \ 11830 conftest$ac_exeext conftest.$ac_ext 11831fi 11832 11833 11834 CFLAGS="$xorg_testset_save_CFLAGS" 11835 11836 eval supported=\$$cacheid 11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11838$as_echo "$supported" >&6; } 11839 if test "$supported" = "yes" ; then 11840 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11841 found="yes" 11842 fi 11843 fi 11844 11845 if test $found = "no" ; then 11846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11848 fi 11849 11850 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11852 fi 11853 11854 CFLAGS="$CFLAGS -errwarn" 11855 11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11857$as_echo_n "checking if $CC supports -errwarn... " >&6; } 11858 cacheid=xorg_cv_cc_flag__errwarn 11859 if eval \${$cacheid+:} false; then : 11860 $as_echo_n "(cached) " >&6 11861else 11862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11863/* end confdefs.h. */ 11864int i; 11865int 11866main () 11867{ 11868 11869 ; 11870 return 0; 11871} 11872_ACEOF 11873if ac_fn_c_try_link "$LINENO"; then : 11874 eval $cacheid=yes 11875else 11876 eval $cacheid=no 11877fi 11878rm -f core conftest.err conftest.$ac_objext \ 11879 conftest$ac_exeext conftest.$ac_ext 11880fi 11881 11882 11883 CFLAGS="$xorg_testset_save_CFLAGS" 11884 11885 eval supported=\$$cacheid 11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11887$as_echo "$supported" >&6; } 11888 if test "$supported" = "yes" ; then 11889 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11890 found="yes" 11891 fi 11892 fi 11893 11894 11895 11896# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11897# activate it with -Werror, so we add it here explicitly. 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911xorg_testset_save_CFLAGS="$CFLAGS" 11912 11913if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11916$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11917if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11918 $as_echo_n "(cached) " >&6 11919else 11920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11921/* end confdefs.h. */ 11922int i; 11923_ACEOF 11924if ac_fn_c_try_compile "$LINENO"; then : 11925 xorg_cv_cc_flag_unknown_warning_option=yes 11926else 11927 xorg_cv_cc_flag_unknown_warning_option=no 11928fi 11929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11930fi 11931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11932$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11933 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11934 CFLAGS="$xorg_testset_save_CFLAGS" 11935fi 11936 11937if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11940 fi 11941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11943$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11944if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11945 $as_echo_n "(cached) " >&6 11946else 11947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11948/* end confdefs.h. */ 11949int i; 11950_ACEOF 11951if ac_fn_c_try_compile "$LINENO"; then : 11952 xorg_cv_cc_flag_unused_command_line_argument=yes 11953else 11954 xorg_cv_cc_flag_unused_command_line_argument=no 11955fi 11956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11957fi 11958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11959$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11960 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11961 CFLAGS="$xorg_testset_save_CFLAGS" 11962fi 11963 11964found="no" 11965 11966 if test $found = "no" ; then 11967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11969 fi 11970 11971 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11973 fi 11974 11975 CFLAGS="$CFLAGS -Werror=attributes" 11976 11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11978$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 11979 cacheid=xorg_cv_cc_flag__Werror_attributes 11980 if eval \${$cacheid+:} false; then : 11981 $as_echo_n "(cached) " >&6 11982else 11983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11984/* end confdefs.h. */ 11985int i; 11986int 11987main () 11988{ 11989 11990 ; 11991 return 0; 11992} 11993_ACEOF 11994if ac_fn_c_try_link "$LINENO"; then : 11995 eval $cacheid=yes 11996else 11997 eval $cacheid=no 11998fi 11999rm -f core conftest.err conftest.$ac_objext \ 12000 conftest$ac_exeext conftest.$ac_ext 12001fi 12002 12003 12004 CFLAGS="$xorg_testset_save_CFLAGS" 12005 12006 eval supported=\$$cacheid 12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12008$as_echo "$supported" >&6; } 12009 if test "$supported" = "yes" ; then 12010 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 12011 found="yes" 12012 fi 12013 fi 12014 12015 12016 12017if test "x$STRICT_COMPILE" = "xyes"; then 12018 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 12019 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 12020fi 12021 12022 12023 12024 12025 12026 12027cat >>confdefs.h <<_ACEOF 12028#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 12029_ACEOF 12030 12031 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 12032 if test "x$PVM" = "x"; then 12033 PVM="0" 12034 fi 12035 12036cat >>confdefs.h <<_ACEOF 12037#define PACKAGE_VERSION_MINOR $PVM 12038_ACEOF 12039 12040 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 12041 if test "x$PVP" = "x"; then 12042 PVP="0" 12043 fi 12044 12045cat >>confdefs.h <<_ACEOF 12046#define PACKAGE_VERSION_PATCHLEVEL $PVP 12047_ACEOF 12048 12049 12050 12051CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 12052mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 12053|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 12054touch \$(top_srcdir)/ChangeLog; \ 12055echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 12056 12057 12058 12059 12060macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 12061INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 12062mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 12063|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 12064touch \$(top_srcdir)/INSTALL; \ 12065echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 12066 12067 12068 12069 12070 12071 12072case $host_os in 12073 solaris*) 12074 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 12075 # check for a man page file found in later versions that use 12076 # traditional section numbers instead 12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 12078$as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; } 12079if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then : 12080 $as_echo_n "(cached) " >&6 12081else 12082 test "$cross_compiling" = yes && 12083 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 12084if test -r "/usr/share/man/man7/attributes.7"; then 12085 ac_cv_file__usr_share_man_man7_attributes_7=yes 12086else 12087 ac_cv_file__usr_share_man_man7_attributes_7=no 12088fi 12089fi 12090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 12091$as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 12092if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then : 12093 SYSV_MAN_SECTIONS=false 12094else 12095 SYSV_MAN_SECTIONS=true 12096fi 12097 12098 ;; 12099 *) SYSV_MAN_SECTIONS=false ;; 12100esac 12101 12102if test x$APP_MAN_SUFFIX = x ; then 12103 APP_MAN_SUFFIX=1 12104fi 12105if test x$APP_MAN_DIR = x ; then 12106 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 12107fi 12108 12109if test x$LIB_MAN_SUFFIX = x ; then 12110 LIB_MAN_SUFFIX=3 12111fi 12112if test x$LIB_MAN_DIR = x ; then 12113 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 12114fi 12115 12116if test x$FILE_MAN_SUFFIX = x ; then 12117 case $SYSV_MAN_SECTIONS in 12118 true) FILE_MAN_SUFFIX=4 ;; 12119 *) FILE_MAN_SUFFIX=5 ;; 12120 esac 12121fi 12122if test x$FILE_MAN_DIR = x ; then 12123 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 12124fi 12125 12126if test x$MISC_MAN_SUFFIX = x ; then 12127 case $SYSV_MAN_SECTIONS in 12128 true) MISC_MAN_SUFFIX=5 ;; 12129 *) MISC_MAN_SUFFIX=7 ;; 12130 esac 12131fi 12132if test x$MISC_MAN_DIR = x ; then 12133 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 12134fi 12135 12136if test x$DRIVER_MAN_SUFFIX = x ; then 12137 case $SYSV_MAN_SECTIONS in 12138 true) DRIVER_MAN_SUFFIX=7 ;; 12139 *) DRIVER_MAN_SUFFIX=4 ;; 12140 esac 12141fi 12142if test x$DRIVER_MAN_DIR = x ; then 12143 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 12144fi 12145 12146if test x$ADMIN_MAN_SUFFIX = x ; then 12147 case $SYSV_MAN_SECTIONS in 12148 true) ADMIN_MAN_SUFFIX=1m ;; 12149 *) ADMIN_MAN_SUFFIX=8 ;; 12150 esac 12151fi 12152if test x$ADMIN_MAN_DIR = x ; then 12153 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 12154fi 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170XORG_MAN_PAGE="X Version 11" 12171 12172MAN_SUBSTS="\ 12173 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 12174 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 12175 -e 's|__xservername__|Xorg|g' \ 12176 -e 's|__xconfigfile__|xorg.conf|g' \ 12177 -e 's|__projectroot__|\$(prefix)|g' \ 12178 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 12179 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 12180 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 12181 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 12182 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 12183 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 12184 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 12185 12186 12187 12188# Check whether --enable-silent-rules was given. 12189if test "${enable_silent_rules+set}" = set; then : 12190 enableval=$enable_silent_rules; 12191fi 12192 12193case $enable_silent_rules in # ((( 12194 yes) AM_DEFAULT_VERBOSITY=0;; 12195 no) AM_DEFAULT_VERBOSITY=1;; 12196 *) AM_DEFAULT_VERBOSITY=0;; 12197esac 12198am_make=${MAKE-make} 12199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 12200$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 12201if ${am_cv_make_support_nested_variables+:} false; then : 12202 $as_echo_n "(cached) " >&6 12203else 12204 if $as_echo 'TRUE=$(BAR$(V)) 12205BAR0=false 12206BAR1=true 12207V=1 12208am__doit: 12209 @$(TRUE) 12210.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 12211 am_cv_make_support_nested_variables=yes 12212else 12213 am_cv_make_support_nested_variables=no 12214fi 12215fi 12216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 12217$as_echo "$am_cv_make_support_nested_variables" >&6; } 12218if test $am_cv_make_support_nested_variables = yes; then 12219 AM_V='$(V)' 12220 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 12221else 12222 AM_V=$AM_DEFAULT_VERBOSITY 12223 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 12224fi 12225AM_BACKSLASH='\' 12226 12227 12228 12229 12230 12231 12232 12233# Check whether --with-doxygen was given. 12234if test "${with_doxygen+set}" = set; then : 12235 withval=$with_doxygen; use_doxygen=$withval 12236else 12237 use_doxygen=auto 12238fi 12239 12240 12241 12242if test "x$use_doxygen" = x"auto"; then 12243 # Extract the first word of "doxygen", so it can be a program name with args. 12244set dummy doxygen; ac_word=$2 12245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12246$as_echo_n "checking for $ac_word... " >&6; } 12247if ${ac_cv_path_DOXYGEN+:} false; then : 12248 $as_echo_n "(cached) " >&6 12249else 12250 case $DOXYGEN in 12251 [\\/]* | ?:[\\/]*) 12252 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 12253 ;; 12254 *) 12255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12256for as_dir in $PATH 12257do 12258 IFS=$as_save_IFS 12259 test -z "$as_dir" && as_dir=. 12260 for ac_exec_ext in '' $ac_executable_extensions; do 12261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12262 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 12263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12264 break 2 12265 fi 12266done 12267 done 12268IFS=$as_save_IFS 12269 12270 ;; 12271esac 12272fi 12273DOXYGEN=$ac_cv_path_DOXYGEN 12274if test -n "$DOXYGEN"; then 12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 12276$as_echo "$DOXYGEN" >&6; } 12277else 12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12279$as_echo "no" >&6; } 12280fi 12281 12282 12283 if test "x$DOXYGEN" = "x"; then 12284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - documentation targets will be skipped" >&5 12285$as_echo "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;} 12286 have_doxygen=no 12287 else 12288 have_doxygen=yes 12289 fi 12290elif test "x$use_doxygen" = x"yes" ; then 12291 # Extract the first word of "doxygen", so it can be a program name with args. 12292set dummy doxygen; ac_word=$2 12293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12294$as_echo_n "checking for $ac_word... " >&6; } 12295if ${ac_cv_path_DOXYGEN+:} false; then : 12296 $as_echo_n "(cached) " >&6 12297else 12298 case $DOXYGEN in 12299 [\\/]* | ?:[\\/]*) 12300 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 12301 ;; 12302 *) 12303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12304for as_dir in $PATH 12305do 12306 IFS=$as_save_IFS 12307 test -z "$as_dir" && as_dir=. 12308 for ac_exec_ext in '' $ac_executable_extensions; do 12309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12310 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 12311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12312 break 2 12313 fi 12314done 12315 done 12316IFS=$as_save_IFS 12317 12318 ;; 12319esac 12320fi 12321DOXYGEN=$ac_cv_path_DOXYGEN 12322if test -n "$DOXYGEN"; then 12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 12324$as_echo "$DOXYGEN" >&6; } 12325else 12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12327$as_echo "no" >&6; } 12328fi 12329 12330 12331 if test "x$DOXYGEN" = "x"; then 12332 as_fn_error $? "--with-doxygen=yes specified but doxygen not found in PATH" "$LINENO" 5 12333 fi 12334 have_doxygen=yes 12335elif test "x$use_doxygen" = x"no" ; then 12336 if test "x$DOXYGEN" != "x"; then 12337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5 12338$as_echo "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;} 12339 fi 12340 have_doxygen=no 12341else 12342 as_fn_error $? "--with-doxygen expects 'yes' or 'no'" "$LINENO" 5 12343fi 12344if test "$have_doxygen" = yes; then 12345 # scrape the doxygen version 12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the doxygen version" >&5 12347$as_echo_n "checking the doxygen version... " >&6; } 12348 doxygen_version=`$DOXYGEN --version 2>/dev/null` 12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen_version" >&5 12350$as_echo "$doxygen_version" >&6; } 12351 as_arg_v1=$doxygen_version 12352as_arg_v2=1.6.1 12353awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 12354case $? in #( 12355 1) : 12356 if test "x$use_doxygen" = xauto; then 12357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&5 12358$as_echo "$as_me: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&2;} 12359 have_doxygen=no 12360 else 12361 as_fn_error $? "doxygen version $doxygen_version found, but 1.6.1 needed" "$LINENO" 5 12362 fi ;; #( 12363 0) : 12364 ;; #( 12365 2) : 12366 ;; #( 12367 *) : 12368 ;; 12369esac 12370fi 12371 12372HAVE_DOT=no 12373if test "x$have_doxygen" = "xyes"; then 12374 # Extract the first word of "dot", so it can be a program name with args. 12375set dummy dot; ac_word=$2 12376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12377$as_echo_n "checking for $ac_word... " >&6; } 12378if ${ac_cv_path_DOT+:} false; then : 12379 $as_echo_n "(cached) " >&6 12380else 12381 case $DOT in 12382 [\\/]* | ?:[\\/]*) 12383 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 12384 ;; 12385 *) 12386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12387for as_dir in $PATH 12388do 12389 IFS=$as_save_IFS 12390 test -z "$as_dir" && as_dir=. 12391 for ac_exec_ext in '' $ac_executable_extensions; do 12392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12393 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 12394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12395 break 2 12396 fi 12397done 12398 done 12399IFS=$as_save_IFS 12400 12401 ;; 12402esac 12403fi 12404DOT=$ac_cv_path_DOT 12405if test -n "$DOT"; then 12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 12407$as_echo "$DOT" >&6; } 12408else 12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12410$as_echo "no" >&6; } 12411fi 12412 12413 12414 if test "x$DOT" != "x"; then 12415 HAVE_DOT=yes 12416 fi 12417fi 12418 12419 12420 if test "$HAVE_DOT" = "yes"; then 12421 HAVE_DOT_TRUE= 12422 HAVE_DOT_FALSE='#' 12423else 12424 HAVE_DOT_TRUE='#' 12425 HAVE_DOT_FALSE= 12426fi 12427 12428 if test "$have_doxygen" = yes; then 12429 HAVE_DOXYGEN_TRUE= 12430 HAVE_DOXYGEN_FALSE='#' 12431else 12432 HAVE_DOXYGEN_TRUE='#' 12433 HAVE_DOXYGEN_FALSE= 12434fi 12435 12436 12437 12438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5 12439$as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; } 12440XORG_SGML_PATH= 12441if test -n "$PKG_CONFIG" && \ 12442 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5 12443 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5 12444 ac_status=$? 12445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12446 test $ac_status = 0; }; then 12447 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 12448else 12449 : 12450 12451fi 12452 12453# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 12454# the path and the name of the doc stylesheet 12455if test "x$XORG_SGML_PATH" != "x" ; then 12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 12457$as_echo "$XORG_SGML_PATH" >&6; } 12458 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 12459 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 12460else 12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12462$as_echo "no" >&6; } 12463fi 12464 12465 12466 12467 12468 if test "x$XSL_STYLESHEET" != "x"; then 12469 HAVE_STYLESHEETS_TRUE= 12470 HAVE_STYLESHEETS_FALSE='#' 12471else 12472 HAVE_STYLESHEETS_TRUE='#' 12473 HAVE_STYLESHEETS_FALSE= 12474fi 12475 12476 12477 12478 12479# Check whether --enable-docs was given. 12480if test "${enable_docs+set}" = set; then : 12481 enableval=$enable_docs; build_docs=$enableval 12482else 12483 build_docs=yes 12484fi 12485 12486 12487 if test x$build_docs = xyes; then 12488 ENABLE_DOCS_TRUE= 12489 ENABLE_DOCS_FALSE='#' 12490else 12491 ENABLE_DOCS_TRUE='#' 12492 ENABLE_DOCS_FALSE= 12493fi 12494 12495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 12496$as_echo_n "checking whether to build documentation... " >&6; } 12497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5 12498$as_echo "$build_docs" >&6; } 12499 12500 12501 12502# Check whether --enable-devel-docs was given. 12503if test "${enable_devel_docs+set}" = set; then : 12504 enableval=$enable_devel_docs; build_devel_docs=$enableval 12505else 12506 build_devel_docs=yes 12507fi 12508 12509 12510 if test x$build_devel_docs = xyes; then 12511 ENABLE_DEVEL_DOCS_TRUE= 12512 ENABLE_DEVEL_DOCS_FALSE='#' 12513else 12514 ENABLE_DEVEL_DOCS_TRUE='#' 12515 ENABLE_DEVEL_DOCS_FALSE= 12516fi 12517 12518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5 12519$as_echo_n "checking whether to build developer documentation... " >&6; } 12520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5 12521$as_echo "$build_devel_docs" >&6; } 12522 12523 12524 12525 12526 12527# Check whether --with-xmlto was given. 12528if test "${with_xmlto+set}" = set; then : 12529 withval=$with_xmlto; use_xmlto=$withval 12530else 12531 use_xmlto=auto 12532fi 12533 12534 12535 12536if test "x$use_xmlto" = x"auto"; then 12537 # Extract the first word of "xmlto", so it can be a program name with args. 12538set dummy xmlto; ac_word=$2 12539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12540$as_echo_n "checking for $ac_word... " >&6; } 12541if ${ac_cv_path_XMLTO+:} false; then : 12542 $as_echo_n "(cached) " >&6 12543else 12544 case $XMLTO in 12545 [\\/]* | ?:[\\/]*) 12546 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 12547 ;; 12548 *) 12549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12550for as_dir in $PATH 12551do 12552 IFS=$as_save_IFS 12553 test -z "$as_dir" && as_dir=. 12554 for ac_exec_ext in '' $ac_executable_extensions; do 12555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12556 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 12557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12558 break 2 12559 fi 12560done 12561 done 12562IFS=$as_save_IFS 12563 12564 ;; 12565esac 12566fi 12567XMLTO=$ac_cv_path_XMLTO 12568if test -n "$XMLTO"; then 12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 12570$as_echo "$XMLTO" >&6; } 12571else 12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12573$as_echo "no" >&6; } 12574fi 12575 12576 12577 if test "x$XMLTO" = "x"; then 12578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 12579$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 12580 have_xmlto=no 12581 else 12582 have_xmlto=yes 12583 fi 12584elif test "x$use_xmlto" = x"yes" ; then 12585 # Extract the first word of "xmlto", so it can be a program name with args. 12586set dummy xmlto; ac_word=$2 12587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12588$as_echo_n "checking for $ac_word... " >&6; } 12589if ${ac_cv_path_XMLTO+:} false; then : 12590 $as_echo_n "(cached) " >&6 12591else 12592 case $XMLTO in 12593 [\\/]* | ?:[\\/]*) 12594 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 12595 ;; 12596 *) 12597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12598for as_dir in $PATH 12599do 12600 IFS=$as_save_IFS 12601 test -z "$as_dir" && as_dir=. 12602 for ac_exec_ext in '' $ac_executable_extensions; do 12603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12604 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 12605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12606 break 2 12607 fi 12608done 12609 done 12610IFS=$as_save_IFS 12611 12612 ;; 12613esac 12614fi 12615XMLTO=$ac_cv_path_XMLTO 12616if test -n "$XMLTO"; then 12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 12618$as_echo "$XMLTO" >&6; } 12619else 12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12621$as_echo "no" >&6; } 12622fi 12623 12624 12625 if test "x$XMLTO" = "x"; then 12626 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 12627 fi 12628 have_xmlto=yes 12629elif test "x$use_xmlto" = x"no" ; then 12630 if test "x$XMLTO" != "x"; then 12631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 12632$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 12633 fi 12634 have_xmlto=no 12635else 12636 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 12637fi 12638 12639# Test for a minimum version of xmlto, if provided. 12640if test "$have_xmlto" = yes; then 12641 # scrape the xmlto version 12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 12643$as_echo_n "checking the xmlto version... " >&6; } 12644 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 12646$as_echo "$xmlto_version" >&6; } 12647 as_arg_v1=$xmlto_version 12648as_arg_v2=0.0.20 12649awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 12650case $? in #( 12651 1) : 12652 if test "x$use_xmlto" = xauto; then 12653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5 12654$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;} 12655 have_xmlto=no 12656 else 12657 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5 12658 fi ;; #( 12659 0) : 12660 ;; #( 12661 2) : 12662 ;; #( 12663 *) : 12664 ;; 12665esac 12666fi 12667 12668# Test for the ability of xmlto to generate a text target 12669# 12670# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the 12671# following test for empty XML docbook files. 12672# For compatibility reasons use the following empty XML docbook file and if 12673# it fails try it again with a non-empty XML file. 12674have_xmlto_text=no 12675cat > conftest.xml << "EOF" 12676EOF 12677if test "$have_xmlto" = yes; then : 12678 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 12679 have_xmlto_text=yes 12680else 12681 # Try it again with a non-empty XML file. 12682 cat > conftest.xml << "EOF" 12683<x></x> 12684EOF 12685 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 12686 have_xmlto_text=yes 12687else 12688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 12689$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 12690fi 12691fi 12692fi 12693rm -f conftest.xml 12694 if test $have_xmlto_text = yes; then 12695 HAVE_XMLTO_TEXT_TRUE= 12696 HAVE_XMLTO_TEXT_FALSE='#' 12697else 12698 HAVE_XMLTO_TEXT_TRUE='#' 12699 HAVE_XMLTO_TEXT_FALSE= 12700fi 12701 12702 if test "$have_xmlto" = yes; then 12703 HAVE_XMLTO_TRUE= 12704 HAVE_XMLTO_FALSE='#' 12705else 12706 HAVE_XMLTO_TRUE='#' 12707 HAVE_XMLTO_FALSE= 12708fi 12709 12710 12711 12712 12713 12714 12715# Check whether --with-fop was given. 12716if test "${with_fop+set}" = set; then : 12717 withval=$with_fop; use_fop=$withval 12718else 12719 use_fop=auto 12720fi 12721 12722 12723 12724if test "x$use_fop" = x"auto"; then 12725 # Extract the first word of "fop", so it can be a program name with args. 12726set dummy fop; ac_word=$2 12727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12728$as_echo_n "checking for $ac_word... " >&6; } 12729if ${ac_cv_path_FOP+:} false; then : 12730 $as_echo_n "(cached) " >&6 12731else 12732 case $FOP in 12733 [\\/]* | ?:[\\/]*) 12734 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 12735 ;; 12736 *) 12737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12738for as_dir in $PATH 12739do 12740 IFS=$as_save_IFS 12741 test -z "$as_dir" && as_dir=. 12742 for ac_exec_ext in '' $ac_executable_extensions; do 12743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12744 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 12745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12746 break 2 12747 fi 12748done 12749 done 12750IFS=$as_save_IFS 12751 12752 ;; 12753esac 12754fi 12755FOP=$ac_cv_path_FOP 12756if test -n "$FOP"; then 12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 12758$as_echo "$FOP" >&6; } 12759else 12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12761$as_echo "no" >&6; } 12762fi 12763 12764 12765 if test "x$FOP" = "x"; then 12766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 12767$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 12768 have_fop=no 12769 else 12770 have_fop=yes 12771 fi 12772elif test "x$use_fop" = x"yes" ; then 12773 # Extract the first word of "fop", so it can be a program name with args. 12774set dummy fop; ac_word=$2 12775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12776$as_echo_n "checking for $ac_word... " >&6; } 12777if ${ac_cv_path_FOP+:} false; then : 12778 $as_echo_n "(cached) " >&6 12779else 12780 case $FOP in 12781 [\\/]* | ?:[\\/]*) 12782 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 12783 ;; 12784 *) 12785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12786for as_dir in $PATH 12787do 12788 IFS=$as_save_IFS 12789 test -z "$as_dir" && as_dir=. 12790 for ac_exec_ext in '' $ac_executable_extensions; do 12791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12792 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 12793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12794 break 2 12795 fi 12796done 12797 done 12798IFS=$as_save_IFS 12799 12800 ;; 12801esac 12802fi 12803FOP=$ac_cv_path_FOP 12804if test -n "$FOP"; then 12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 12806$as_echo "$FOP" >&6; } 12807else 12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12809$as_echo "no" >&6; } 12810fi 12811 12812 12813 if test "x$FOP" = "x"; then 12814 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 12815 fi 12816 have_fop=yes 12817elif test "x$use_fop" = x"no" ; then 12818 if test "x$FOP" != "x"; then 12819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 12820$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 12821 fi 12822 have_fop=no 12823else 12824 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 12825fi 12826 12827# Test for a minimum version of fop, if provided. 12828 12829 if test "$have_fop" = yes; then 12830 HAVE_FOP_TRUE= 12831 HAVE_FOP_FALSE='#' 12832else 12833 HAVE_FOP_TRUE='#' 12834 HAVE_FOP_FALSE= 12835fi 12836 12837 12838 12839 12840# Preserves the interface, should it be implemented later 12841 12842 12843 12844# Check whether --with-xsltproc was given. 12845if test "${with_xsltproc+set}" = set; then : 12846 withval=$with_xsltproc; use_xsltproc=$withval 12847else 12848 use_xsltproc=auto 12849fi 12850 12851 12852 12853if test "x$use_xsltproc" = x"auto"; then 12854 # Extract the first word of "xsltproc", so it can be a program name with args. 12855set dummy xsltproc; ac_word=$2 12856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12857$as_echo_n "checking for $ac_word... " >&6; } 12858if ${ac_cv_path_XSLTPROC+:} false; then : 12859 $as_echo_n "(cached) " >&6 12860else 12861 case $XSLTPROC in 12862 [\\/]* | ?:[\\/]*) 12863 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 12864 ;; 12865 *) 12866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12867for as_dir in $PATH 12868do 12869 IFS=$as_save_IFS 12870 test -z "$as_dir" && as_dir=. 12871 for ac_exec_ext in '' $ac_executable_extensions; do 12872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12873 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 12874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12875 break 2 12876 fi 12877done 12878 done 12879IFS=$as_save_IFS 12880 12881 ;; 12882esac 12883fi 12884XSLTPROC=$ac_cv_path_XSLTPROC 12885if test -n "$XSLTPROC"; then 12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 12887$as_echo "$XSLTPROC" >&6; } 12888else 12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12890$as_echo "no" >&6; } 12891fi 12892 12893 12894 if test "x$XSLTPROC" = "x"; then 12895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 12896$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 12897 have_xsltproc=no 12898 else 12899 have_xsltproc=yes 12900 fi 12901elif test "x$use_xsltproc" = x"yes" ; then 12902 # Extract the first word of "xsltproc", so it can be a program name with args. 12903set dummy xsltproc; ac_word=$2 12904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12905$as_echo_n "checking for $ac_word... " >&6; } 12906if ${ac_cv_path_XSLTPROC+:} false; then : 12907 $as_echo_n "(cached) " >&6 12908else 12909 case $XSLTPROC in 12910 [\\/]* | ?:[\\/]*) 12911 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 12912 ;; 12913 *) 12914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12915for as_dir in $PATH 12916do 12917 IFS=$as_save_IFS 12918 test -z "$as_dir" && as_dir=. 12919 for ac_exec_ext in '' $ac_executable_extensions; do 12920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12921 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 12922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12923 break 2 12924 fi 12925done 12926 done 12927IFS=$as_save_IFS 12928 12929 ;; 12930esac 12931fi 12932XSLTPROC=$ac_cv_path_XSLTPROC 12933if test -n "$XSLTPROC"; then 12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 12935$as_echo "$XSLTPROC" >&6; } 12936else 12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12938$as_echo "no" >&6; } 12939fi 12940 12941 12942 if test "x$XSLTPROC" = "x"; then 12943 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 12944 fi 12945 have_xsltproc=yes 12946elif test "x$use_xsltproc" = x"no" ; then 12947 if test "x$XSLTPROC" != "x"; then 12948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 12949$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 12950 fi 12951 have_xsltproc=no 12952else 12953 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 12954fi 12955 12956 if test "$have_xsltproc" = yes; then 12957 HAVE_XSLTPROC_TRUE= 12958 HAVE_XSLTPROC_FALSE='#' 12959else 12960 HAVE_XSLTPROC_TRUE='#' 12961 HAVE_XSLTPROC_FALSE= 12962fi 12963 12964 12965 12966 12967 12968 12969 12970# Check for different types of support on different platforms 12971case $host_os in 12972 solaris*) 12973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5 12974$as_echo_n "checking for umem_alloc in -lumem... " >&6; } 12975if ${ac_cv_lib_umem_umem_alloc+:} false; then : 12976 $as_echo_n "(cached) " >&6 12977else 12978 ac_check_lib_save_LIBS=$LIBS 12979LIBS="-lumem $LIBS" 12980cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12981/* end confdefs.h. */ 12982 12983/* Override any GCC internal prototype to avoid an error. 12984 Use char because int might match the return type of a GCC 12985 builtin and then its argument prototype would still apply. */ 12986#ifdef __cplusplus 12987extern "C" 12988#endif 12989char umem_alloc (); 12990int 12991main () 12992{ 12993return umem_alloc (); 12994 ; 12995 return 0; 12996} 12997_ACEOF 12998if ac_fn_c_try_link "$LINENO"; then : 12999 ac_cv_lib_umem_umem_alloc=yes 13000else 13001 ac_cv_lib_umem_umem_alloc=no 13002fi 13003rm -f core conftest.err conftest.$ac_objext \ 13004 conftest$ac_exeext conftest.$ac_ext 13005LIBS=$ac_check_lib_save_LIBS 13006fi 13007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5 13008$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; } 13009if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then : 13010 malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default' 13011fi 13012 13013 ;; 13014 *-gnu*) # GNU libc - Value is used as a single byte bit pattern, 13015 # both directly and inverted, so should not be 0 or 255. 13016 malloc_debug_env='MALLOC_PERTURB_=15' 13017 ;; 13018 darwin*) 13019 malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib' 13020 ;; 13021 *bsd*) 13022 malloc_debug_env='MallocPreScribble=1 MallocScribble=1' 13023 ;; 13024esac 13025 13026# User supplied flags override default flags 13027if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then 13028 malloc_debug_env="$XORG_MALLOC_DEBUG_ENV" 13029fi 13030 13031XORG_MALLOC_DEBUG_ENV=$malloc_debug_env 13032 13033 13034 13035 13036 13037 13038 13039# Check whether --enable-unit-tests was given. 13040if test "${enable_unit_tests+set}" = set; then : 13041 enableval=$enable_unit_tests; enable_unit_tests=$enableval 13042else 13043 enable_unit_tests=auto 13044fi 13045 13046 13047 if test "x$enable_unit_tests" != xno; then 13048 ENABLE_UNIT_TESTS_TRUE= 13049 ENABLE_UNIT_TESTS_FALSE='#' 13050else 13051 ENABLE_UNIT_TESTS_TRUE='#' 13052 ENABLE_UNIT_TESTS_FALSE= 13053fi 13054 13055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build unit test cases" >&5 13056$as_echo_n "checking whether to build unit test cases... " >&6; } 13057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_unit_tests" >&5 13058$as_echo "$enable_unit_tests" >&6; } 13059 13060 13061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-wrap,exit" >&5 13062$as_echo_n "checking whether the linker accepts -Wl,-wrap,exit... " >&6; } 13063if ${xorg_cv_linker_flags__Wl__wrap_exit+:} false; then : 13064 $as_echo_n "(cached) " >&6 13065else 13066 13067 ax_save_FLAGS=$LDFLAGS 13068 LDFLAGS="-Wl,-wrap,exit" 13069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13070/* end confdefs.h. */ 13071#include <stdlib.h> 13072 void __wrap_exit(int status) { return; } 13073int 13074main () 13075{ 13076exit(0); 13077 ; 13078 return 0; 13079} 13080_ACEOF 13081if ac_fn_c_try_link "$LINENO"; then : 13082 xorg_cv_linker_flags__Wl__wrap_exit=yes 13083else 13084 xorg_cv_linker_flags__Wl__wrap_exit=no 13085fi 13086rm -f core conftest.err conftest.$ac_objext \ 13087 conftest$ac_exeext conftest.$ac_ext 13088 LDFLAGS=$ax_save_FLAGS 13089fi 13090 13091eval xorg_check_linker_flags=$xorg_cv_linker_flags__Wl__wrap_exit 13092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_check_linker_flags" >&5 13093$as_echo "$xorg_check_linker_flags" >&6; } 13094if test "x$xorg_check_linker_flags" = xyes; then 13095 have_ld_wrap=yes 13096else 13097 have_ld_wrap=no 13098fi 13099 13100# Not having ld wrap when unit testing has been explicitly requested is an error 13101if test "x$enable_unit_tests" = x"yes" -a "xoptional" != "xoptional"; then 13102 if test "x$have_ld_wrap" = x"no"; then 13103 as_fn_error $? "--enable-unit-tests=yes specified but ld -wrap support is not available" "$LINENO" 5 13104 fi 13105fi 13106 if test "$have_ld_wrap" = yes; then 13107 HAVE_LD_WRAP_TRUE= 13108 HAVE_LD_WRAP_FALSE='#' 13109else 13110 HAVE_LD_WRAP_TRUE='#' 13111 HAVE_LD_WRAP_FALSE= 13112fi 13113 13114# 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129ac_config_headers="$ac_config_headers include/do-not-use-config.h" 13130 13131ac_config_headers="$ac_config_headers include/xorg-server.h" 13132 13133ac_config_headers="$ac_config_headers include/dix-config.h" 13134 13135ac_config_headers="$ac_config_headers include/xorg-config.h" 13136 13137ac_config_headers="$ac_config_headers include/xkb-config.h" 13138 13139ac_config_headers="$ac_config_headers include/xwin-config.h" 13140 13141ac_config_headers="$ac_config_headers include/xwayland-config.h" 13142 13143ac_config_headers="$ac_config_headers include/version-config.h" 13144 13145 13146# By default we simply use the C compiler to build assembly code. 13147 13148test "${CCAS+set}" = set || CCAS=$CC 13149test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS 13150 13151 13152 13153depcc="$CCAS" am_compiler_list= 13154 13155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 13156$as_echo_n "checking dependency style of $depcc... " >&6; } 13157if ${am_cv_CCAS_dependencies_compiler_type+:} false; then : 13158 $as_echo_n "(cached) " >&6 13159else 13160 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 13161 # We make a subdir and do the tests there. Otherwise we can end up 13162 # making bogus files that we don't know about and never remove. For 13163 # instance it was reported that on HP-UX the gcc test will end up 13164 # making a dummy file named 'D' -- because '-MD' means "put the output 13165 # in D". 13166 rm -rf conftest.dir 13167 mkdir conftest.dir 13168 # Copy depcomp to subdir because otherwise we won't find it if we're 13169 # using a relative directory. 13170 cp "$am_depcomp" conftest.dir 13171 cd conftest.dir 13172 # We will build objects and dependencies in a subdirectory because 13173 # it helps to detect inapplicable dependency modes. For instance 13174 # both Tru64's cc and ICC support -MD to output dependencies as a 13175 # side effect of compilation, but ICC will put the dependencies in 13176 # the current directory while Tru64 will put them in the object 13177 # directory. 13178 mkdir sub 13179 13180 am_cv_CCAS_dependencies_compiler_type=none 13181 if test "$am_compiler_list" = ""; then 13182 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 13183 fi 13184 am__universal=false 13185 13186 13187 for depmode in $am_compiler_list; do 13188 # Setup a source with many dependencies, because some compilers 13189 # like to wrap large dependency lists on column 80 (with \), and 13190 # we should not choose a depcomp mode which is confused by this. 13191 # 13192 # We need to recreate these files for each test, as the compiler may 13193 # overwrite some of them when testing with obscure command lines. 13194 # This happens at least with the AIX C compiler. 13195 : > sub/conftest.c 13196 for i in 1 2 3 4 5 6; do 13197 echo '#include "conftst'$i'.h"' >> sub/conftest.c 13198 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 13199 # Solaris 10 /bin/sh. 13200 echo '/* dummy */' > sub/conftst$i.h 13201 done 13202 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 13203 13204 # We check with '-c' and '-o' for the sake of the "dashmstdout" 13205 # mode. It turns out that the SunPro C++ compiler does not properly 13206 # handle '-M -o', and we need to detect this. Also, some Intel 13207 # versions had trouble with output in subdirs. 13208 am__obj=sub/conftest.${OBJEXT-o} 13209 am__minus_obj="-o $am__obj" 13210 case $depmode in 13211 gcc) 13212 # This depmode causes a compiler race in universal mode. 13213 test "$am__universal" = false || continue 13214 ;; 13215 nosideeffect) 13216 # After this tag, mechanisms are not by side-effect, so they'll 13217 # only be used when explicitly requested. 13218 if test "x$enable_dependency_tracking" = xyes; then 13219 continue 13220 else 13221 break 13222 fi 13223 ;; 13224 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 13225 # This compiler won't grok '-c -o', but also, the minuso test has 13226 # not run yet. These depmodes are late enough in the game, and 13227 # so weak that their functioning should not be impacted. 13228 am__obj=conftest.${OBJEXT-o} 13229 am__minus_obj= 13230 ;; 13231 none) break ;; 13232 esac 13233 if depmode=$depmode \ 13234 source=sub/conftest.c object=$am__obj \ 13235 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 13236 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 13237 >/dev/null 2>conftest.err && 13238 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 13239 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 13240 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 13241 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 13242 # icc doesn't choke on unknown options, it will just issue warnings 13243 # or remarks (even with -Werror). So we grep stderr for any message 13244 # that says an option was ignored or not supported. 13245 # When given -MP, icc 7.0 and 7.1 complain thusly: 13246 # icc: Command line warning: ignoring option '-M'; no argument required 13247 # The diagnosis changed in icc 8.0: 13248 # icc: Command line remark: option '-MP' not supported 13249 if (grep 'ignoring option' conftest.err || 13250 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 13251 am_cv_CCAS_dependencies_compiler_type=$depmode 13252 break 13253 fi 13254 fi 13255 done 13256 13257 cd .. 13258 rm -rf conftest.dir 13259else 13260 am_cv_CCAS_dependencies_compiler_type=none 13261fi 13262 13263fi 13264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 13265$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } 13266CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type 13267 13268 if 13269 test "x$enable_dependency_tracking" != xno \ 13270 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then 13271 am__fastdepCCAS_TRUE= 13272 am__fastdepCCAS_FALSE='#' 13273else 13274 am__fastdepCCAS_TRUE='#' 13275 am__fastdepCCAS_FALSE= 13276fi 13277 13278 13279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 13280$as_echo_n "checking whether ln -s works... " >&6; } 13281LN_S=$as_ln_s 13282if test "$LN_S" = "ln -s"; then 13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13284$as_echo "yes" >&6; } 13285else 13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 13287$as_echo "no, using $LN_S" >&6; } 13288fi 13289 13290 13291case `pwd` in 13292 *\ * | *\ *) 13293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 13294$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 13295esac 13296 13297 13298 13299macro_version='2.4.6' 13300macro_revision='2.4.6' 13301 13302 13303 13304 13305 13306 13307 13308 13309 13310 13311 13312 13313 13314ltmain=$ac_aux_dir/ltmain.sh 13315 13316# Backslashify metacharacters that are still active within 13317# double-quoted strings. 13318sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 13319 13320# Same as above, but do not quote variable references. 13321double_quote_subst='s/\(["`\\]\)/\\\1/g' 13322 13323# Sed substitution to delay expansion of an escaped shell variable in a 13324# double_quote_subst'ed string. 13325delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 13326 13327# Sed substitution to delay expansion of an escaped single quote. 13328delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 13329 13330# Sed substitution to avoid accidental globbing in evaled expressions 13331no_glob_subst='s/\*/\\\*/g' 13332 13333ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13334ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 13335ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 13336 13337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 13338$as_echo_n "checking how to print strings... " >&6; } 13339# Test print first, because it will be a builtin if present. 13340if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 13341 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 13342 ECHO='print -r --' 13343elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 13344 ECHO='printf %s\n' 13345else 13346 # Use this function as a fallback that always works. 13347 func_fallback_echo () 13348 { 13349 eval 'cat <<_LTECHO_EOF 13350$1 13351_LTECHO_EOF' 13352 } 13353 ECHO='func_fallback_echo' 13354fi 13355 13356# func_echo_all arg... 13357# Invoke $ECHO with all args, space-separated. 13358func_echo_all () 13359{ 13360 $ECHO "" 13361} 13362 13363case $ECHO in 13364 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 13365$as_echo "printf" >&6; } ;; 13366 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 13367$as_echo "print -r" >&6; } ;; 13368 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 13369$as_echo "cat" >&6; } ;; 13370esac 13371 13372 13373 13374 13375 13376 13377 13378 13379 13380 13381 13382 13383 13384 13385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 13386$as_echo_n "checking for a sed that does not truncate output... " >&6; } 13387if ${ac_cv_path_SED+:} false; then : 13388 $as_echo_n "(cached) " >&6 13389else 13390 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 13391 for ac_i in 1 2 3 4 5 6 7; do 13392 ac_script="$ac_script$as_nl$ac_script" 13393 done 13394 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 13395 { ac_script=; unset ac_script;} 13396 if test -z "$SED"; then 13397 ac_path_SED_found=false 13398 # Loop through the user's path and test for each of PROGNAME-LIST 13399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13400for as_dir in $PATH 13401do 13402 IFS=$as_save_IFS 13403 test -z "$as_dir" && as_dir=. 13404 for ac_prog in sed gsed; do 13405 for ac_exec_ext in '' $ac_executable_extensions; do 13406 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 13407 as_fn_executable_p "$ac_path_SED" || continue 13408# Check for GNU ac_path_SED and select it if it is found. 13409 # Check for GNU $ac_path_SED 13410case `"$ac_path_SED" --version 2>&1` in 13411*GNU*) 13412 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 13413*) 13414 ac_count=0 13415 $as_echo_n 0123456789 >"conftest.in" 13416 while : 13417 do 13418 cat "conftest.in" "conftest.in" >"conftest.tmp" 13419 mv "conftest.tmp" "conftest.in" 13420 cp "conftest.in" "conftest.nl" 13421 $as_echo '' >> "conftest.nl" 13422 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 13423 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13424 as_fn_arith $ac_count + 1 && ac_count=$as_val 13425 if test $ac_count -gt ${ac_path_SED_max-0}; then 13426 # Best one so far, save it but keep looking for a better one 13427 ac_cv_path_SED="$ac_path_SED" 13428 ac_path_SED_max=$ac_count 13429 fi 13430 # 10*(2^10) chars as input seems more than enough 13431 test $ac_count -gt 10 && break 13432 done 13433 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13434esac 13435 13436 $ac_path_SED_found && break 3 13437 done 13438 done 13439 done 13440IFS=$as_save_IFS 13441 if test -z "$ac_cv_path_SED"; then 13442 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 13443 fi 13444else 13445 ac_cv_path_SED=$SED 13446fi 13447 13448fi 13449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 13450$as_echo "$ac_cv_path_SED" >&6; } 13451 SED="$ac_cv_path_SED" 13452 rm -f conftest.sed 13453 13454test -z "$SED" && SED=sed 13455Xsed="$SED -e 1s/^X//" 13456 13457 13458 13459 13460 13461 13462 13463 13464 13465 13466 13467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 13468$as_echo_n "checking for fgrep... " >&6; } 13469if ${ac_cv_path_FGREP+:} false; then : 13470 $as_echo_n "(cached) " >&6 13471else 13472 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 13473 then ac_cv_path_FGREP="$GREP -F" 13474 else 13475 if test -z "$FGREP"; then 13476 ac_path_FGREP_found=false 13477 # Loop through the user's path and test for each of PROGNAME-LIST 13478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13479for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13480do 13481 IFS=$as_save_IFS 13482 test -z "$as_dir" && as_dir=. 13483 for ac_prog in fgrep; do 13484 for ac_exec_ext in '' $ac_executable_extensions; do 13485 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 13486 as_fn_executable_p "$ac_path_FGREP" || continue 13487# Check for GNU ac_path_FGREP and select it if it is found. 13488 # Check for GNU $ac_path_FGREP 13489case `"$ac_path_FGREP" --version 2>&1` in 13490*GNU*) 13491 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 13492*) 13493 ac_count=0 13494 $as_echo_n 0123456789 >"conftest.in" 13495 while : 13496 do 13497 cat "conftest.in" "conftest.in" >"conftest.tmp" 13498 mv "conftest.tmp" "conftest.in" 13499 cp "conftest.in" "conftest.nl" 13500 $as_echo 'FGREP' >> "conftest.nl" 13501 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 13502 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13503 as_fn_arith $ac_count + 1 && ac_count=$as_val 13504 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 13505 # Best one so far, save it but keep looking for a better one 13506 ac_cv_path_FGREP="$ac_path_FGREP" 13507 ac_path_FGREP_max=$ac_count 13508 fi 13509 # 10*(2^10) chars as input seems more than enough 13510 test $ac_count -gt 10 && break 13511 done 13512 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13513esac 13514 13515 $ac_path_FGREP_found && break 3 13516 done 13517 done 13518 done 13519IFS=$as_save_IFS 13520 if test -z "$ac_cv_path_FGREP"; then 13521 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13522 fi 13523else 13524 ac_cv_path_FGREP=$FGREP 13525fi 13526 13527 fi 13528fi 13529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 13530$as_echo "$ac_cv_path_FGREP" >&6; } 13531 FGREP="$ac_cv_path_FGREP" 13532 13533 13534test -z "$GREP" && GREP=grep 13535 13536 13537 13538 13539 13540 13541 13542 13543 13544 13545 13546 13547 13548 13549 13550 13551 13552 13553 13554# Check whether --with-gnu-ld was given. 13555if test "${with_gnu_ld+set}" = set; then : 13556 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 13557else 13558 with_gnu_ld=no 13559fi 13560 13561ac_prog=ld 13562if test yes = "$GCC"; then 13563 # Check if gcc -print-prog-name=ld gives a path. 13564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13565$as_echo_n "checking for ld used by $CC... " >&6; } 13566 case $host in 13567 *-*-mingw*) 13568 # gcc leaves a trailing carriage return, which upsets mingw 13569 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13570 *) 13571 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13572 esac 13573 case $ac_prog in 13574 # Accept absolute paths. 13575 [\\/]* | ?:[\\/]*) 13576 re_direlt='/[^/][^/]*/\.\./' 13577 # Canonicalize the pathname of ld 13578 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13579 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13580 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13581 done 13582 test -z "$LD" && LD=$ac_prog 13583 ;; 13584 "") 13585 # If it fails, then pretend we aren't using GCC. 13586 ac_prog=ld 13587 ;; 13588 *) 13589 # If it is relative, then search for the first ld in PATH. 13590 with_gnu_ld=unknown 13591 ;; 13592 esac 13593elif test yes = "$with_gnu_ld"; then 13594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13595$as_echo_n "checking for GNU ld... " >&6; } 13596else 13597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13598$as_echo_n "checking for non-GNU ld... " >&6; } 13599fi 13600if ${lt_cv_path_LD+:} false; then : 13601 $as_echo_n "(cached) " >&6 13602else 13603 if test -z "$LD"; then 13604 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13605 for ac_dir in $PATH; do 13606 IFS=$lt_save_ifs 13607 test -z "$ac_dir" && ac_dir=. 13608 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13609 lt_cv_path_LD=$ac_dir/$ac_prog 13610 # Check to see if the program is GNU ld. I'd rather use --version, 13611 # but apparently some variants of GNU ld only accept -v. 13612 # Break only if it was the GNU/non-GNU ld that we prefer. 13613 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13614 *GNU* | *'with BFD'*) 13615 test no != "$with_gnu_ld" && break 13616 ;; 13617 *) 13618 test yes != "$with_gnu_ld" && break 13619 ;; 13620 esac 13621 fi 13622 done 13623 IFS=$lt_save_ifs 13624else 13625 lt_cv_path_LD=$LD # Let the user override the test with a path. 13626fi 13627fi 13628 13629LD=$lt_cv_path_LD 13630if test -n "$LD"; then 13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13632$as_echo "$LD" >&6; } 13633else 13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13635$as_echo "no" >&6; } 13636fi 13637test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13639$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13640if ${lt_cv_prog_gnu_ld+:} false; then : 13641 $as_echo_n "(cached) " >&6 13642else 13643 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13644case `$LD -v 2>&1 </dev/null` in 13645*GNU* | *'with BFD'*) 13646 lt_cv_prog_gnu_ld=yes 13647 ;; 13648*) 13649 lt_cv_prog_gnu_ld=no 13650 ;; 13651esac 13652fi 13653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13654$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13655with_gnu_ld=$lt_cv_prog_gnu_ld 13656 13657 13658 13659 13660 13661 13662 13663 13664 13665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 13666$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 13667if ${lt_cv_path_NM+:} false; then : 13668 $as_echo_n "(cached) " >&6 13669else 13670 if test -n "$NM"; then 13671 # Let the user override the test. 13672 lt_cv_path_NM=$NM 13673else 13674 lt_nm_to_check=${ac_tool_prefix}nm 13675 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 13676 lt_nm_to_check="$lt_nm_to_check nm" 13677 fi 13678 for lt_tmp_nm in $lt_nm_to_check; do 13679 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13680 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 13681 IFS=$lt_save_ifs 13682 test -z "$ac_dir" && ac_dir=. 13683 tmp_nm=$ac_dir/$lt_tmp_nm 13684 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 13685 # Check to see if the nm accepts a BSD-compat flag. 13686 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 13687 # nm: unknown option "B" ignored 13688 # Tru64's nm complains that /dev/null is an invalid object file 13689 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 13690 case $build_os in 13691 mingw*) lt_bad_file=conftest.nm/nofile ;; 13692 *) lt_bad_file=/dev/null ;; 13693 esac 13694 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 13695 *$lt_bad_file* | *'Invalid file or object type'*) 13696 lt_cv_path_NM="$tmp_nm -B" 13697 break 2 13698 ;; 13699 *) 13700 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 13701 */dev/null*) 13702 lt_cv_path_NM="$tmp_nm -p" 13703 break 2 13704 ;; 13705 *) 13706 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 13707 continue # so that we can try to find one that supports BSD flags 13708 ;; 13709 esac 13710 ;; 13711 esac 13712 fi 13713 done 13714 IFS=$lt_save_ifs 13715 done 13716 : ${lt_cv_path_NM=no} 13717fi 13718fi 13719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 13720$as_echo "$lt_cv_path_NM" >&6; } 13721if test no != "$lt_cv_path_NM"; then 13722 NM=$lt_cv_path_NM 13723else 13724 # Didn't find any BSD compatible name lister, look for dumpbin. 13725 if test -n "$DUMPBIN"; then : 13726 # Let the user override the test. 13727 else 13728 if test -n "$ac_tool_prefix"; then 13729 for ac_prog in dumpbin "link -dump" 13730 do 13731 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13732set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13734$as_echo_n "checking for $ac_word... " >&6; } 13735if ${ac_cv_prog_DUMPBIN+:} false; then : 13736 $as_echo_n "(cached) " >&6 13737else 13738 if test -n "$DUMPBIN"; then 13739 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 13740else 13741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13742for as_dir in $PATH 13743do 13744 IFS=$as_save_IFS 13745 test -z "$as_dir" && as_dir=. 13746 for ac_exec_ext in '' $ac_executable_extensions; do 13747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13748 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 13749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13750 break 2 13751 fi 13752done 13753 done 13754IFS=$as_save_IFS 13755 13756fi 13757fi 13758DUMPBIN=$ac_cv_prog_DUMPBIN 13759if test -n "$DUMPBIN"; then 13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 13761$as_echo "$DUMPBIN" >&6; } 13762else 13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13764$as_echo "no" >&6; } 13765fi 13766 13767 13768 test -n "$DUMPBIN" && break 13769 done 13770fi 13771if test -z "$DUMPBIN"; then 13772 ac_ct_DUMPBIN=$DUMPBIN 13773 for ac_prog in dumpbin "link -dump" 13774do 13775 # Extract the first word of "$ac_prog", so it can be a program name with args. 13776set dummy $ac_prog; ac_word=$2 13777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13778$as_echo_n "checking for $ac_word... " >&6; } 13779if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 13780 $as_echo_n "(cached) " >&6 13781else 13782 if test -n "$ac_ct_DUMPBIN"; then 13783 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 13784else 13785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13786for as_dir in $PATH 13787do 13788 IFS=$as_save_IFS 13789 test -z "$as_dir" && as_dir=. 13790 for ac_exec_ext in '' $ac_executable_extensions; do 13791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13792 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 13793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13794 break 2 13795 fi 13796done 13797 done 13798IFS=$as_save_IFS 13799 13800fi 13801fi 13802ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 13803if test -n "$ac_ct_DUMPBIN"; then 13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 13805$as_echo "$ac_ct_DUMPBIN" >&6; } 13806else 13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13808$as_echo "no" >&6; } 13809fi 13810 13811 13812 test -n "$ac_ct_DUMPBIN" && break 13813done 13814 13815 if test "x$ac_ct_DUMPBIN" = x; then 13816 DUMPBIN=":" 13817 else 13818 case $cross_compiling:$ac_tool_warned in 13819yes:) 13820{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13821$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13822ac_tool_warned=yes ;; 13823esac 13824 DUMPBIN=$ac_ct_DUMPBIN 13825 fi 13826fi 13827 13828 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 13829 *COFF*) 13830 DUMPBIN="$DUMPBIN -symbols -headers" 13831 ;; 13832 *) 13833 DUMPBIN=: 13834 ;; 13835 esac 13836 fi 13837 13838 if test : != "$DUMPBIN"; then 13839 NM=$DUMPBIN 13840 fi 13841fi 13842test -z "$NM" && NM=nm 13843 13844 13845 13846 13847 13848 13849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 13850$as_echo_n "checking the name lister ($NM) interface... " >&6; } 13851if ${lt_cv_nm_interface+:} false; then : 13852 $as_echo_n "(cached) " >&6 13853else 13854 lt_cv_nm_interface="BSD nm" 13855 echo "int some_variable = 0;" > conftest.$ac_ext 13856 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 13857 (eval "$ac_compile" 2>conftest.err) 13858 cat conftest.err >&5 13859 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 13860 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 13861 cat conftest.err >&5 13862 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 13863 cat conftest.out >&5 13864 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 13865 lt_cv_nm_interface="MS dumpbin" 13866 fi 13867 rm -f conftest* 13868fi 13869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 13870$as_echo "$lt_cv_nm_interface" >&6; } 13871 13872# find the maximum length of command line arguments 13873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 13874$as_echo_n "checking the maximum length of command line arguments... " >&6; } 13875if ${lt_cv_sys_max_cmd_len+:} false; then : 13876 $as_echo_n "(cached) " >&6 13877else 13878 i=0 13879 teststring=ABCD 13880 13881 case $build_os in 13882 msdosdjgpp*) 13883 # On DJGPP, this test can blow up pretty badly due to problems in libc 13884 # (any single argument exceeding 2000 bytes causes a buffer overrun 13885 # during glob expansion). Even if it were fixed, the result of this 13886 # check would be larger than it should be. 13887 lt_cv_sys_max_cmd_len=12288; # 12K is about right 13888 ;; 13889 13890 gnu*) 13891 # Under GNU Hurd, this test is not required because there is 13892 # no limit to the length of command line arguments. 13893 # Libtool will interpret -1 as no limit whatsoever 13894 lt_cv_sys_max_cmd_len=-1; 13895 ;; 13896 13897 cygwin* | mingw* | cegcc*) 13898 # On Win9x/ME, this test blows up -- it succeeds, but takes 13899 # about 5 minutes as the teststring grows exponentially. 13900 # Worse, since 9x/ME are not pre-emptively multitasking, 13901 # you end up with a "frozen" computer, even though with patience 13902 # the test eventually succeeds (with a max line length of 256k). 13903 # Instead, let's just punt: use the minimum linelength reported by 13904 # all of the supported platforms: 8192 (on NT/2K/XP). 13905 lt_cv_sys_max_cmd_len=8192; 13906 ;; 13907 13908 mint*) 13909 # On MiNT this can take a long time and run out of memory. 13910 lt_cv_sys_max_cmd_len=8192; 13911 ;; 13912 13913 mint*) 13914 # On MiNT this can take a long time and run out of memory. 13915 lt_cv_sys_max_cmd_len=8192; 13916 ;; 13917 13918 amigaos*) 13919 # On AmigaOS with pdksh, this test takes hours, literally. 13920 # So we just punt and use a minimum line length of 8192. 13921 lt_cv_sys_max_cmd_len=8192; 13922 ;; 13923 13924 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 13925 # This has been around since 386BSD, at least. Likely further. 13926 if test -x /sbin/sysctl; then 13927 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 13928 elif test -x /usr/sbin/sysctl; then 13929 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 13930 else 13931 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 13932 fi 13933 # And add a safety zone 13934 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 13935 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 13936 ;; 13937 13938 interix*) 13939 # We know the value 262144 and hardcode it with a safety zone (like BSD) 13940 lt_cv_sys_max_cmd_len=196608 13941 ;; 13942 13943 os2*) 13944 # The test takes a long time on OS/2. 13945 lt_cv_sys_max_cmd_len=8192 13946 ;; 13947 13948 osf*) 13949 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 13950 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 13951 # nice to cause kernel panics so lets avoid the loop below. 13952 # First set a reasonable default. 13953 lt_cv_sys_max_cmd_len=16384 13954 # 13955 if test -x /sbin/sysconfig; then 13956 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 13957 *1*) lt_cv_sys_max_cmd_len=-1 ;; 13958 esac 13959 fi 13960 ;; 13961 sco3.2v5*) 13962 lt_cv_sys_max_cmd_len=102400 13963 ;; 13964 sysv5* | sco5v6* | sysv4.2uw2*) 13965 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 13966 if test -n "$kargmax"; then 13967 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 13968 else 13969 lt_cv_sys_max_cmd_len=32768 13970 fi 13971 ;; 13972 *) 13973 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 13974 if test -n "$lt_cv_sys_max_cmd_len" && \ 13975 test undefined != "$lt_cv_sys_max_cmd_len"; then 13976 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 13977 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 13978 else 13979 # Make teststring a little bigger before we do anything with it. 13980 # a 1K string should be a reasonable start. 13981 for i in 1 2 3 4 5 6 7 8; do 13982 teststring=$teststring$teststring 13983 done 13984 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 13985 # If test is not a shell built-in, we'll probably end up computing a 13986 # maximum length that is only half of the actual maximum length, but 13987 # we can't tell. 13988 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 13989 = "X$teststring$teststring"; } >/dev/null 2>&1 && 13990 test 17 != "$i" # 1/2 MB should be enough 13991 do 13992 i=`expr $i + 1` 13993 teststring=$teststring$teststring 13994 done 13995 # Only check the string length outside the loop. 13996 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 13997 teststring= 13998 # Add a significant safety factor because C++ compilers can tack on 13999 # massive amounts of additional arguments before passing them to the 14000 # linker. It appears as though 1/2 is a usable value. 14001 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 14002 fi 14003 ;; 14004 esac 14005 14006fi 14007 14008if test -n "$lt_cv_sys_max_cmd_len"; then 14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 14010$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 14011else 14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 14013$as_echo "none" >&6; } 14014fi 14015max_cmd_len=$lt_cv_sys_max_cmd_len 14016 14017 14018 14019 14020 14021 14022: ${CP="cp -f"} 14023: ${MV="mv -f"} 14024: ${RM="rm -f"} 14025 14026if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 14027 lt_unset=unset 14028else 14029 lt_unset=false 14030fi 14031 14032 14033 14034 14035 14036# test EBCDIC or ASCII 14037case `echo X|tr X '\101'` in 14038 A) # ASCII based system 14039 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 14040 lt_SP2NL='tr \040 \012' 14041 lt_NL2SP='tr \015\012 \040\040' 14042 ;; 14043 *) # EBCDIC based system 14044 lt_SP2NL='tr \100 \n' 14045 lt_NL2SP='tr \r\n \100\100' 14046 ;; 14047esac 14048 14049 14050 14051 14052 14053 14054 14055 14056 14057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 14058$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 14059if ${lt_cv_to_host_file_cmd+:} false; then : 14060 $as_echo_n "(cached) " >&6 14061else 14062 case $host in 14063 *-*-mingw* ) 14064 case $build in 14065 *-*-mingw* ) # actually msys 14066 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 14067 ;; 14068 *-*-cygwin* ) 14069 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 14070 ;; 14071 * ) # otherwise, assume *nix 14072 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 14073 ;; 14074 esac 14075 ;; 14076 *-*-cygwin* ) 14077 case $build in 14078 *-*-mingw* ) # actually msys 14079 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 14080 ;; 14081 *-*-cygwin* ) 14082 lt_cv_to_host_file_cmd=func_convert_file_noop 14083 ;; 14084 * ) # otherwise, assume *nix 14085 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 14086 ;; 14087 esac 14088 ;; 14089 * ) # unhandled hosts (and "normal" native builds) 14090 lt_cv_to_host_file_cmd=func_convert_file_noop 14091 ;; 14092esac 14093 14094fi 14095 14096to_host_file_cmd=$lt_cv_to_host_file_cmd 14097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 14098$as_echo "$lt_cv_to_host_file_cmd" >&6; } 14099 14100 14101 14102 14103 14104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 14105$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 14106if ${lt_cv_to_tool_file_cmd+:} false; then : 14107 $as_echo_n "(cached) " >&6 14108else 14109 #assume ordinary cross tools, or native build. 14110lt_cv_to_tool_file_cmd=func_convert_file_noop 14111case $host in 14112 *-*-mingw* ) 14113 case $build in 14114 *-*-mingw* ) # actually msys 14115 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 14116 ;; 14117 esac 14118 ;; 14119esac 14120 14121fi 14122 14123to_tool_file_cmd=$lt_cv_to_tool_file_cmd 14124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 14125$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 14126 14127 14128 14129 14130 14131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 14132$as_echo_n "checking for $LD option to reload object files... " >&6; } 14133if ${lt_cv_ld_reload_flag+:} false; then : 14134 $as_echo_n "(cached) " >&6 14135else 14136 lt_cv_ld_reload_flag='-r' 14137fi 14138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 14139$as_echo "$lt_cv_ld_reload_flag" >&6; } 14140reload_flag=$lt_cv_ld_reload_flag 14141case $reload_flag in 14142"" | " "*) ;; 14143*) reload_flag=" $reload_flag" ;; 14144esac 14145reload_cmds='$LD$reload_flag -o $output$reload_objs' 14146case $host_os in 14147 cygwin* | mingw* | pw32* | cegcc*) 14148 if test yes != "$GCC"; then 14149 reload_cmds=false 14150 fi 14151 ;; 14152 darwin*) 14153 if test yes = "$GCC"; then 14154 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 14155 else 14156 reload_cmds='$LD$reload_flag -o $output$reload_objs' 14157 fi 14158 ;; 14159esac 14160 14161 14162 14163 14164 14165 14166 14167 14168 14169if test -n "$ac_tool_prefix"; then 14170 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 14171set dummy ${ac_tool_prefix}objdump; ac_word=$2 14172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14173$as_echo_n "checking for $ac_word... " >&6; } 14174if ${ac_cv_prog_OBJDUMP+:} false; then : 14175 $as_echo_n "(cached) " >&6 14176else 14177 if test -n "$OBJDUMP"; then 14178 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 14179else 14180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14181for as_dir in $PATH 14182do 14183 IFS=$as_save_IFS 14184 test -z "$as_dir" && as_dir=. 14185 for ac_exec_ext in '' $ac_executable_extensions; do 14186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14187 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 14188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14189 break 2 14190 fi 14191done 14192 done 14193IFS=$as_save_IFS 14194 14195fi 14196fi 14197OBJDUMP=$ac_cv_prog_OBJDUMP 14198if test -n "$OBJDUMP"; then 14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 14200$as_echo "$OBJDUMP" >&6; } 14201else 14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14203$as_echo "no" >&6; } 14204fi 14205 14206 14207fi 14208if test -z "$ac_cv_prog_OBJDUMP"; then 14209 ac_ct_OBJDUMP=$OBJDUMP 14210 # Extract the first word of "objdump", so it can be a program name with args. 14211set dummy objdump; ac_word=$2 14212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14213$as_echo_n "checking for $ac_word... " >&6; } 14214if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 14215 $as_echo_n "(cached) " >&6 14216else 14217 if test -n "$ac_ct_OBJDUMP"; then 14218 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 14219else 14220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14221for as_dir in $PATH 14222do 14223 IFS=$as_save_IFS 14224 test -z "$as_dir" && as_dir=. 14225 for ac_exec_ext in '' $ac_executable_extensions; do 14226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14227 ac_cv_prog_ac_ct_OBJDUMP="objdump" 14228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14229 break 2 14230 fi 14231done 14232 done 14233IFS=$as_save_IFS 14234 14235fi 14236fi 14237ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 14238if test -n "$ac_ct_OBJDUMP"; then 14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 14240$as_echo "$ac_ct_OBJDUMP" >&6; } 14241else 14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14243$as_echo "no" >&6; } 14244fi 14245 14246 if test "x$ac_ct_OBJDUMP" = x; then 14247 OBJDUMP="false" 14248 else 14249 case $cross_compiling:$ac_tool_warned in 14250yes:) 14251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14253ac_tool_warned=yes ;; 14254esac 14255 OBJDUMP=$ac_ct_OBJDUMP 14256 fi 14257else 14258 OBJDUMP="$ac_cv_prog_OBJDUMP" 14259fi 14260 14261test -z "$OBJDUMP" && OBJDUMP=objdump 14262 14263 14264 14265 14266 14267 14268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 14269$as_echo_n "checking how to recognize dependent libraries... " >&6; } 14270if ${lt_cv_deplibs_check_method+:} false; then : 14271 $as_echo_n "(cached) " >&6 14272else 14273 lt_cv_file_magic_cmd='$MAGIC_CMD' 14274lt_cv_file_magic_test_file= 14275lt_cv_deplibs_check_method='unknown' 14276# Need to set the preceding variable on all platforms that support 14277# interlibrary dependencies. 14278# 'none' -- dependencies not supported. 14279# 'unknown' -- same as none, but documents that we really don't know. 14280# 'pass_all' -- all dependencies passed with no checks. 14281# 'test_compile' -- check by making test program. 14282# 'file_magic [[regex]]' -- check by looking for files in library path 14283# that responds to the $file_magic_cmd with a given extended regex. 14284# If you have 'file' or equivalent on your system and you're not sure 14285# whether 'pass_all' will *always* work, you probably want this one. 14286 14287case $host_os in 14288aix[4-9]*) 14289 lt_cv_deplibs_check_method=pass_all 14290 ;; 14291 14292beos*) 14293 lt_cv_deplibs_check_method=pass_all 14294 ;; 14295 14296bsdi[45]*) 14297 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 14298 lt_cv_file_magic_cmd='/usr/bin/file -L' 14299 lt_cv_file_magic_test_file=/shlib/libc.so 14300 ;; 14301 14302cygwin*) 14303 # func_win32_libid is a shell function defined in ltmain.sh 14304 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 14305 lt_cv_file_magic_cmd='func_win32_libid' 14306 ;; 14307 14308mingw* | pw32*) 14309 # Base MSYS/MinGW do not provide the 'file' command needed by 14310 # func_win32_libid shell function, so use a weaker test based on 'objdump', 14311 # unless we find 'file', for example because we are cross-compiling. 14312 if ( file / ) >/dev/null 2>&1; then 14313 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 14314 lt_cv_file_magic_cmd='func_win32_libid' 14315 else 14316 # Keep this pattern in sync with the one in func_win32_libid. 14317 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 14318 lt_cv_file_magic_cmd='$OBJDUMP -f' 14319 fi 14320 ;; 14321 14322cegcc*) 14323 # use the weaker test based on 'objdump'. See mingw*. 14324 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 14325 lt_cv_file_magic_cmd='$OBJDUMP -f' 14326 ;; 14327 14328darwin* | rhapsody*) 14329 lt_cv_deplibs_check_method=pass_all 14330 ;; 14331 14332freebsd* | dragonfly*) 14333 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 14334 case $host_cpu in 14335 i*86 ) 14336 # Not sure whether the presence of OpenBSD here was a mistake. 14337 # Let's accept both of them until this is cleared up. 14338 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 14339 lt_cv_file_magic_cmd=/usr/bin/file 14340 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 14341 ;; 14342 esac 14343 else 14344 lt_cv_deplibs_check_method=pass_all 14345 fi 14346 ;; 14347 14348haiku*) 14349 lt_cv_deplibs_check_method=pass_all 14350 ;; 14351 14352hpux10.20* | hpux11*) 14353 lt_cv_file_magic_cmd=/usr/bin/file 14354 case $host_cpu in 14355 ia64*) 14356 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 14357 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 14358 ;; 14359 hppa*64*) 14360 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]' 14361 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 14362 ;; 14363 *) 14364 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 14365 lt_cv_file_magic_test_file=/usr/lib/libc.sl 14366 ;; 14367 esac 14368 ;; 14369 14370interix[3-9]*) 14371 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 14372 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 14373 ;; 14374 14375irix5* | irix6* | nonstopux*) 14376 case $LD in 14377 *-32|*"-32 ") libmagic=32-bit;; 14378 *-n32|*"-n32 ") libmagic=N32;; 14379 *-64|*"-64 ") libmagic=64-bit;; 14380 *) libmagic=never-match;; 14381 esac 14382 lt_cv_deplibs_check_method=pass_all 14383 ;; 14384 14385# This must be glibc/ELF. 14386linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14387 lt_cv_deplibs_check_method=pass_all 14388 ;; 14389 14390netbsd*) 14391 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 14392 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 14393 else 14394 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 14395 fi 14396 ;; 14397 14398newos6*) 14399 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 14400 lt_cv_file_magic_cmd=/usr/bin/file 14401 lt_cv_file_magic_test_file=/usr/lib/libnls.so 14402 ;; 14403 14404*nto* | *qnx*) 14405 lt_cv_deplibs_check_method=pass_all 14406 ;; 14407 14408openbsd* | bitrig*) 14409 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 14410 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 14411 else 14412 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 14413 fi 14414 ;; 14415 14416osf3* | osf4* | osf5*) 14417 lt_cv_deplibs_check_method=pass_all 14418 ;; 14419 14420rdos*) 14421 lt_cv_deplibs_check_method=pass_all 14422 ;; 14423 14424solaris*) 14425 lt_cv_deplibs_check_method=pass_all 14426 ;; 14427 14428sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14429 lt_cv_deplibs_check_method=pass_all 14430 ;; 14431 14432sysv4 | sysv4.3*) 14433 case $host_vendor in 14434 motorola) 14435 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]' 14436 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 14437 ;; 14438 ncr) 14439 lt_cv_deplibs_check_method=pass_all 14440 ;; 14441 sequent) 14442 lt_cv_file_magic_cmd='/bin/file' 14443 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 14444 ;; 14445 sni) 14446 lt_cv_file_magic_cmd='/bin/file' 14447 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 14448 lt_cv_file_magic_test_file=/lib/libc.so 14449 ;; 14450 siemens) 14451 lt_cv_deplibs_check_method=pass_all 14452 ;; 14453 pc) 14454 lt_cv_deplibs_check_method=pass_all 14455 ;; 14456 esac 14457 ;; 14458 14459tpf*) 14460 lt_cv_deplibs_check_method=pass_all 14461 ;; 14462os2*) 14463 lt_cv_deplibs_check_method=pass_all 14464 ;; 14465esac 14466 14467fi 14468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 14469$as_echo "$lt_cv_deplibs_check_method" >&6; } 14470 14471file_magic_glob= 14472want_nocaseglob=no 14473if test "$build" = "$host"; then 14474 case $host_os in 14475 mingw* | pw32*) 14476 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 14477 want_nocaseglob=yes 14478 else 14479 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 14480 fi 14481 ;; 14482 esac 14483fi 14484 14485file_magic_cmd=$lt_cv_file_magic_cmd 14486deplibs_check_method=$lt_cv_deplibs_check_method 14487test -z "$deplibs_check_method" && deplibs_check_method=unknown 14488 14489 14490 14491 14492 14493 14494 14495 14496 14497 14498 14499 14500 14501 14502 14503 14504 14505 14506 14507 14508 14509 14510if test -n "$ac_tool_prefix"; then 14511 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 14512set dummy ${ac_tool_prefix}dlltool; ac_word=$2 14513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14514$as_echo_n "checking for $ac_word... " >&6; } 14515if ${ac_cv_prog_DLLTOOL+:} false; then : 14516 $as_echo_n "(cached) " >&6 14517else 14518 if test -n "$DLLTOOL"; then 14519 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 14520else 14521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14522for as_dir in $PATH 14523do 14524 IFS=$as_save_IFS 14525 test -z "$as_dir" && as_dir=. 14526 for ac_exec_ext in '' $ac_executable_extensions; do 14527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14528 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 14529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14530 break 2 14531 fi 14532done 14533 done 14534IFS=$as_save_IFS 14535 14536fi 14537fi 14538DLLTOOL=$ac_cv_prog_DLLTOOL 14539if test -n "$DLLTOOL"; then 14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 14541$as_echo "$DLLTOOL" >&6; } 14542else 14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14544$as_echo "no" >&6; } 14545fi 14546 14547 14548fi 14549if test -z "$ac_cv_prog_DLLTOOL"; then 14550 ac_ct_DLLTOOL=$DLLTOOL 14551 # Extract the first word of "dlltool", so it can be a program name with args. 14552set dummy dlltool; ac_word=$2 14553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14554$as_echo_n "checking for $ac_word... " >&6; } 14555if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 14556 $as_echo_n "(cached) " >&6 14557else 14558 if test -n "$ac_ct_DLLTOOL"; then 14559 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 14560else 14561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14562for as_dir in $PATH 14563do 14564 IFS=$as_save_IFS 14565 test -z "$as_dir" && as_dir=. 14566 for ac_exec_ext in '' $ac_executable_extensions; do 14567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14568 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 14569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14570 break 2 14571 fi 14572done 14573 done 14574IFS=$as_save_IFS 14575 14576fi 14577fi 14578ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 14579if test -n "$ac_ct_DLLTOOL"; then 14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 14581$as_echo "$ac_ct_DLLTOOL" >&6; } 14582else 14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14584$as_echo "no" >&6; } 14585fi 14586 14587 if test "x$ac_ct_DLLTOOL" = x; then 14588 DLLTOOL="false" 14589 else 14590 case $cross_compiling:$ac_tool_warned in 14591yes:) 14592{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14593$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14594ac_tool_warned=yes ;; 14595esac 14596 DLLTOOL=$ac_ct_DLLTOOL 14597 fi 14598else 14599 DLLTOOL="$ac_cv_prog_DLLTOOL" 14600fi 14601 14602test -z "$DLLTOOL" && DLLTOOL=dlltool 14603 14604 14605 14606 14607 14608 14609 14610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 14611$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 14612if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 14613 $as_echo_n "(cached) " >&6 14614else 14615 lt_cv_sharedlib_from_linklib_cmd='unknown' 14616 14617case $host_os in 14618cygwin* | mingw* | pw32* | cegcc*) 14619 # two different shell functions defined in ltmain.sh; 14620 # decide which one to use based on capabilities of $DLLTOOL 14621 case `$DLLTOOL --help 2>&1` in 14622 *--identify-strict*) 14623 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 14624 ;; 14625 *) 14626 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 14627 ;; 14628 esac 14629 ;; 14630*) 14631 # fallback: assume linklib IS sharedlib 14632 lt_cv_sharedlib_from_linklib_cmd=$ECHO 14633 ;; 14634esac 14635 14636fi 14637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 14638$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 14639sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 14640test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 14641 14642 14643 14644 14645 14646 14647 14648if test -n "$ac_tool_prefix"; then 14649 for ac_prog in ar 14650 do 14651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 14652set dummy $ac_tool_prefix$ac_prog; ac_word=$2 14653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14654$as_echo_n "checking for $ac_word... " >&6; } 14655if ${ac_cv_prog_AR+:} false; then : 14656 $as_echo_n "(cached) " >&6 14657else 14658 if test -n "$AR"; then 14659 ac_cv_prog_AR="$AR" # Let the user override the test. 14660else 14661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14662for as_dir in $PATH 14663do 14664 IFS=$as_save_IFS 14665 test -z "$as_dir" && as_dir=. 14666 for ac_exec_ext in '' $ac_executable_extensions; do 14667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14668 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 14669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14670 break 2 14671 fi 14672done 14673 done 14674IFS=$as_save_IFS 14675 14676fi 14677fi 14678AR=$ac_cv_prog_AR 14679if test -n "$AR"; then 14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 14681$as_echo "$AR" >&6; } 14682else 14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14684$as_echo "no" >&6; } 14685fi 14686 14687 14688 test -n "$AR" && break 14689 done 14690fi 14691if test -z "$AR"; then 14692 ac_ct_AR=$AR 14693 for ac_prog in ar 14694do 14695 # Extract the first word of "$ac_prog", so it can be a program name with args. 14696set dummy $ac_prog; ac_word=$2 14697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14698$as_echo_n "checking for $ac_word... " >&6; } 14699if ${ac_cv_prog_ac_ct_AR+:} false; then : 14700 $as_echo_n "(cached) " >&6 14701else 14702 if test -n "$ac_ct_AR"; then 14703 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 14704else 14705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14706for as_dir in $PATH 14707do 14708 IFS=$as_save_IFS 14709 test -z "$as_dir" && as_dir=. 14710 for ac_exec_ext in '' $ac_executable_extensions; do 14711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14712 ac_cv_prog_ac_ct_AR="$ac_prog" 14713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14714 break 2 14715 fi 14716done 14717 done 14718IFS=$as_save_IFS 14719 14720fi 14721fi 14722ac_ct_AR=$ac_cv_prog_ac_ct_AR 14723if test -n "$ac_ct_AR"; then 14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 14725$as_echo "$ac_ct_AR" >&6; } 14726else 14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14728$as_echo "no" >&6; } 14729fi 14730 14731 14732 test -n "$ac_ct_AR" && break 14733done 14734 14735 if test "x$ac_ct_AR" = x; then 14736 AR="false" 14737 else 14738 case $cross_compiling:$ac_tool_warned in 14739yes:) 14740{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14741$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14742ac_tool_warned=yes ;; 14743esac 14744 AR=$ac_ct_AR 14745 fi 14746fi 14747 14748: ${AR=ar} 14749: ${AR_FLAGS=cru} 14750 14751 14752 14753 14754 14755 14756 14757 14758 14759 14760 14761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 14762$as_echo_n "checking for archiver @FILE support... " >&6; } 14763if ${lt_cv_ar_at_file+:} false; then : 14764 $as_echo_n "(cached) " >&6 14765else 14766 lt_cv_ar_at_file=no 14767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14768/* end confdefs.h. */ 14769 14770int 14771main () 14772{ 14773 14774 ; 14775 return 0; 14776} 14777_ACEOF 14778if ac_fn_c_try_compile "$LINENO"; then : 14779 echo conftest.$ac_objext > conftest.lst 14780 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 14781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 14782 (eval $lt_ar_try) 2>&5 14783 ac_status=$? 14784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14785 test $ac_status = 0; } 14786 if test 0 -eq "$ac_status"; then 14787 # Ensure the archiver fails upon bogus file names. 14788 rm -f conftest.$ac_objext libconftest.a 14789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 14790 (eval $lt_ar_try) 2>&5 14791 ac_status=$? 14792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14793 test $ac_status = 0; } 14794 if test 0 -ne "$ac_status"; then 14795 lt_cv_ar_at_file=@ 14796 fi 14797 fi 14798 rm -f conftest.* libconftest.a 14799 14800fi 14801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14802 14803fi 14804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 14805$as_echo "$lt_cv_ar_at_file" >&6; } 14806 14807if test no = "$lt_cv_ar_at_file"; then 14808 archiver_list_spec= 14809else 14810 archiver_list_spec=$lt_cv_ar_at_file 14811fi 14812 14813 14814 14815 14816 14817 14818 14819if test -n "$ac_tool_prefix"; then 14820 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 14821set dummy ${ac_tool_prefix}strip; ac_word=$2 14822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14823$as_echo_n "checking for $ac_word... " >&6; } 14824if ${ac_cv_prog_STRIP+:} false; then : 14825 $as_echo_n "(cached) " >&6 14826else 14827 if test -n "$STRIP"; then 14828 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 14829else 14830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14831for as_dir in $PATH 14832do 14833 IFS=$as_save_IFS 14834 test -z "$as_dir" && as_dir=. 14835 for ac_exec_ext in '' $ac_executable_extensions; do 14836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14837 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 14838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14839 break 2 14840 fi 14841done 14842 done 14843IFS=$as_save_IFS 14844 14845fi 14846fi 14847STRIP=$ac_cv_prog_STRIP 14848if test -n "$STRIP"; then 14849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 14850$as_echo "$STRIP" >&6; } 14851else 14852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14853$as_echo "no" >&6; } 14854fi 14855 14856 14857fi 14858if test -z "$ac_cv_prog_STRIP"; then 14859 ac_ct_STRIP=$STRIP 14860 # Extract the first word of "strip", so it can be a program name with args. 14861set dummy strip; ac_word=$2 14862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14863$as_echo_n "checking for $ac_word... " >&6; } 14864if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 14865 $as_echo_n "(cached) " >&6 14866else 14867 if test -n "$ac_ct_STRIP"; then 14868 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 14869else 14870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14871for as_dir in $PATH 14872do 14873 IFS=$as_save_IFS 14874 test -z "$as_dir" && as_dir=. 14875 for ac_exec_ext in '' $ac_executable_extensions; do 14876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14877 ac_cv_prog_ac_ct_STRIP="strip" 14878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14879 break 2 14880 fi 14881done 14882 done 14883IFS=$as_save_IFS 14884 14885fi 14886fi 14887ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 14888if test -n "$ac_ct_STRIP"; then 14889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 14890$as_echo "$ac_ct_STRIP" >&6; } 14891else 14892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14893$as_echo "no" >&6; } 14894fi 14895 14896 if test "x$ac_ct_STRIP" = x; then 14897 STRIP=":" 14898 else 14899 case $cross_compiling:$ac_tool_warned in 14900yes:) 14901{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14902$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14903ac_tool_warned=yes ;; 14904esac 14905 STRIP=$ac_ct_STRIP 14906 fi 14907else 14908 STRIP="$ac_cv_prog_STRIP" 14909fi 14910 14911test -z "$STRIP" && STRIP=: 14912 14913 14914 14915 14916 14917 14918if test -n "$ac_tool_prefix"; then 14919 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 14920set dummy ${ac_tool_prefix}ranlib; ac_word=$2 14921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14922$as_echo_n "checking for $ac_word... " >&6; } 14923if ${ac_cv_prog_RANLIB+:} false; then : 14924 $as_echo_n "(cached) " >&6 14925else 14926 if test -n "$RANLIB"; then 14927 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 14928else 14929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14930for as_dir in $PATH 14931do 14932 IFS=$as_save_IFS 14933 test -z "$as_dir" && as_dir=. 14934 for ac_exec_ext in '' $ac_executable_extensions; do 14935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14936 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 14937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14938 break 2 14939 fi 14940done 14941 done 14942IFS=$as_save_IFS 14943 14944fi 14945fi 14946RANLIB=$ac_cv_prog_RANLIB 14947if test -n "$RANLIB"; then 14948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 14949$as_echo "$RANLIB" >&6; } 14950else 14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14952$as_echo "no" >&6; } 14953fi 14954 14955 14956fi 14957if test -z "$ac_cv_prog_RANLIB"; then 14958 ac_ct_RANLIB=$RANLIB 14959 # Extract the first word of "ranlib", so it can be a program name with args. 14960set dummy ranlib; ac_word=$2 14961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14962$as_echo_n "checking for $ac_word... " >&6; } 14963if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 14964 $as_echo_n "(cached) " >&6 14965else 14966 if test -n "$ac_ct_RANLIB"; then 14967 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 14968else 14969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14970for as_dir in $PATH 14971do 14972 IFS=$as_save_IFS 14973 test -z "$as_dir" && as_dir=. 14974 for ac_exec_ext in '' $ac_executable_extensions; do 14975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14976 ac_cv_prog_ac_ct_RANLIB="ranlib" 14977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14978 break 2 14979 fi 14980done 14981 done 14982IFS=$as_save_IFS 14983 14984fi 14985fi 14986ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 14987if test -n "$ac_ct_RANLIB"; then 14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 14989$as_echo "$ac_ct_RANLIB" >&6; } 14990else 14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14992$as_echo "no" >&6; } 14993fi 14994 14995 if test "x$ac_ct_RANLIB" = x; then 14996 RANLIB=":" 14997 else 14998 case $cross_compiling:$ac_tool_warned in 14999yes:) 15000{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15001$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15002ac_tool_warned=yes ;; 15003esac 15004 RANLIB=$ac_ct_RANLIB 15005 fi 15006else 15007 RANLIB="$ac_cv_prog_RANLIB" 15008fi 15009 15010test -z "$RANLIB" && RANLIB=: 15011 15012 15013 15014 15015 15016 15017# Determine commands to create old-style static archives. 15018old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 15019old_postinstall_cmds='chmod 644 $oldlib' 15020old_postuninstall_cmds= 15021 15022if test -n "$RANLIB"; then 15023 case $host_os in 15024 bitrig* | openbsd*) 15025 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 15026 ;; 15027 *) 15028 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 15029 ;; 15030 esac 15031 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 15032fi 15033 15034case $host_os in 15035 darwin*) 15036 lock_old_archive_extraction=yes ;; 15037 *) 15038 lock_old_archive_extraction=no ;; 15039esac 15040 15041 15042 15043 15044 15045 15046 15047 15048 15049 15050 15051 15052 15053 15054 15055 15056 15057 15058 15059 15060 15061 15062 15063 15064 15065 15066 15067 15068 15069 15070 15071 15072 15073 15074 15075 15076 15077 15078 15079# If no C compiler was specified, use CC. 15080LTCC=${LTCC-"$CC"} 15081 15082# If no C compiler flags were specified, use CFLAGS. 15083LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15084 15085# Allow CC to be a program name with arguments. 15086compiler=$CC 15087 15088 15089# Check for command to grab the raw symbol name followed by C symbol from nm. 15090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 15091$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 15092if ${lt_cv_sys_global_symbol_pipe+:} false; then : 15093 $as_echo_n "(cached) " >&6 15094else 15095 15096# These are sane defaults that work on at least a few old systems. 15097# [They come from Ultrix. What could be older than Ultrix?!! ;)] 15098 15099# Character class describing NM global symbol codes. 15100symcode='[BCDEGRST]' 15101 15102# Regexp to match symbols that can be accessed directly from C. 15103sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 15104 15105# Define system-specific variables. 15106case $host_os in 15107aix*) 15108 symcode='[BCDT]' 15109 ;; 15110cygwin* | mingw* | pw32* | cegcc*) 15111 symcode='[ABCDGISTW]' 15112 ;; 15113hpux*) 15114 if test ia64 = "$host_cpu"; then 15115 symcode='[ABCDEGRST]' 15116 fi 15117 ;; 15118irix* | nonstopux*) 15119 symcode='[BCDEGRST]' 15120 ;; 15121osf*) 15122 symcode='[BCDEGQRST]' 15123 ;; 15124solaris*) 15125 symcode='[BDRT]' 15126 ;; 15127sco3.2v5*) 15128 symcode='[DT]' 15129 ;; 15130sysv4.2uw2*) 15131 symcode='[DT]' 15132 ;; 15133sysv5* | sco5v6* | unixware* | OpenUNIX*) 15134 symcode='[ABDT]' 15135 ;; 15136sysv4) 15137 symcode='[DFNSTU]' 15138 ;; 15139esac 15140 15141# If we're using GNU nm, then use its standard symbol codes. 15142case `$NM -V 2>&1` in 15143*GNU* | *'with BFD'*) 15144 symcode='[ABCDGIRSTW]' ;; 15145esac 15146 15147if test "$lt_cv_nm_interface" = "MS dumpbin"; then 15148 # Gets list of data symbols to import. 15149 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 15150 # Adjust the below global symbol transforms to fixup imported variables. 15151 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 15152 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 15153 lt_c_name_lib_hook="\ 15154 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 15155 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 15156else 15157 # Disable hooks by default. 15158 lt_cv_sys_global_symbol_to_import= 15159 lt_cdecl_hook= 15160 lt_c_name_hook= 15161 lt_c_name_lib_hook= 15162fi 15163 15164# Transform an extracted symbol line into a proper C declaration. 15165# Some systems (esp. on ia64) link data and code symbols differently, 15166# so use this general approach. 15167lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 15168$lt_cdecl_hook\ 15169" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 15170" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 15171 15172# Transform an extracted symbol line into symbol name and symbol address 15173lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 15174$lt_c_name_hook\ 15175" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 15176" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 15177 15178# Transform an extracted symbol line into symbol name with lib prefix and 15179# symbol address. 15180lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 15181$lt_c_name_lib_hook\ 15182" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 15183" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 15184" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 15185 15186# Handle CRLF in mingw tool chain 15187opt_cr= 15188case $build_os in 15189mingw*) 15190 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 15191 ;; 15192esac 15193 15194# Try without a prefix underscore, then with it. 15195for ac_symprfx in "" "_"; do 15196 15197 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 15198 symxfrm="\\1 $ac_symprfx\\2 \\2" 15199 15200 # Write the raw and C identifiers. 15201 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 15202 # Fake it for dumpbin and say T for any non-static function, 15203 # D for any global variable and I for any imported variable. 15204 # Also find C++ and __fastcall symbols from MSVC++, 15205 # which start with @ or ?. 15206 lt_cv_sys_global_symbol_pipe="$AWK '"\ 15207" {last_section=section; section=\$ 3};"\ 15208" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 15209" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 15210" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 15211" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 15212" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 15213" \$ 0!~/External *\|/{next};"\ 15214" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 15215" {if(hide[section]) next};"\ 15216" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 15217" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 15218" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 15219" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 15220" ' prfx=^$ac_symprfx" 15221 else 15222 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 15223 fi 15224 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 15225 15226 # Check to see that the pipe works correctly. 15227 pipe_works=no 15228 15229 rm -f conftest* 15230 cat > conftest.$ac_ext <<_LT_EOF 15231#ifdef __cplusplus 15232extern "C" { 15233#endif 15234char nm_test_var; 15235void nm_test_func(void); 15236void nm_test_func(void){} 15237#ifdef __cplusplus 15238} 15239#endif 15240int main(){nm_test_var='a';nm_test_func();return(0);} 15241_LT_EOF 15242 15243 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15244 (eval $ac_compile) 2>&5 15245 ac_status=$? 15246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15247 test $ac_status = 0; }; then 15248 # Now try to grab the symbols. 15249 nlist=conftest.nm 15250 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 15251 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 15252 ac_status=$? 15253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15254 test $ac_status = 0; } && test -s "$nlist"; then 15255 # Try sorting and uniquifying the output. 15256 if sort "$nlist" | uniq > "$nlist"T; then 15257 mv -f "$nlist"T "$nlist" 15258 else 15259 rm -f "$nlist"T 15260 fi 15261 15262 # Make sure that we snagged all the symbols we need. 15263 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 15264 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 15265 cat <<_LT_EOF > conftest.$ac_ext 15266/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 15267#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 15268/* DATA imports from DLLs on WIN32 can't be const, because runtime 15269 relocations are performed -- see ld's documentation on pseudo-relocs. */ 15270# define LT_DLSYM_CONST 15271#elif defined __osf__ 15272/* This system does not cope well with relocations in const data. */ 15273# define LT_DLSYM_CONST 15274#else 15275# define LT_DLSYM_CONST const 15276#endif 15277 15278#ifdef __cplusplus 15279extern "C" { 15280#endif 15281 15282_LT_EOF 15283 # Now generate the symbol file. 15284 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 15285 15286 cat <<_LT_EOF >> conftest.$ac_ext 15287 15288/* The mapping between symbol names and symbols. */ 15289LT_DLSYM_CONST struct { 15290 const char *name; 15291 void *address; 15292} 15293lt__PROGRAM__LTX_preloaded_symbols[] = 15294{ 15295 { "@PROGRAM@", (void *) 0 }, 15296_LT_EOF 15297 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 15298 cat <<\_LT_EOF >> conftest.$ac_ext 15299 {0, (void *) 0} 15300}; 15301 15302/* This works around a problem in FreeBSD linker */ 15303#ifdef FREEBSD_WORKAROUND 15304static const void *lt_preloaded_setup() { 15305 return lt__PROGRAM__LTX_preloaded_symbols; 15306} 15307#endif 15308 15309#ifdef __cplusplus 15310} 15311#endif 15312_LT_EOF 15313 # Now try linking the two files. 15314 mv conftest.$ac_objext conftstm.$ac_objext 15315 lt_globsym_save_LIBS=$LIBS 15316 lt_globsym_save_CFLAGS=$CFLAGS 15317 LIBS=conftstm.$ac_objext 15318 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 15319 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 15320 (eval $ac_link) 2>&5 15321 ac_status=$? 15322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15323 test $ac_status = 0; } && test -s conftest$ac_exeext; then 15324 pipe_works=yes 15325 fi 15326 LIBS=$lt_globsym_save_LIBS 15327 CFLAGS=$lt_globsym_save_CFLAGS 15328 else 15329 echo "cannot find nm_test_func in $nlist" >&5 15330 fi 15331 else 15332 echo "cannot find nm_test_var in $nlist" >&5 15333 fi 15334 else 15335 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 15336 fi 15337 else 15338 echo "$progname: failed program was:" >&5 15339 cat conftest.$ac_ext >&5 15340 fi 15341 rm -rf conftest* conftst* 15342 15343 # Do not use the global_symbol_pipe unless it works. 15344 if test yes = "$pipe_works"; then 15345 break 15346 else 15347 lt_cv_sys_global_symbol_pipe= 15348 fi 15349done 15350 15351fi 15352 15353if test -z "$lt_cv_sys_global_symbol_pipe"; then 15354 lt_cv_sys_global_symbol_to_cdecl= 15355fi 15356if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 15357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 15358$as_echo "failed" >&6; } 15359else 15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 15361$as_echo "ok" >&6; } 15362fi 15363 15364# Response file support. 15365if test "$lt_cv_nm_interface" = "MS dumpbin"; then 15366 nm_file_list_spec='@' 15367elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 15368 nm_file_list_spec='@' 15369fi 15370 15371 15372 15373 15374 15375 15376 15377 15378 15379 15380 15381 15382 15383 15384 15385 15386 15387 15388 15389 15390 15391 15392 15393 15394 15395 15396 15397 15398 15399 15400 15401 15402 15403 15404 15405 15406 15407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 15408$as_echo_n "checking for sysroot... " >&6; } 15409 15410# Check whether --with-sysroot was given. 15411if test "${with_sysroot+set}" = set; then : 15412 withval=$with_sysroot; 15413else 15414 with_sysroot=no 15415fi 15416 15417 15418lt_sysroot= 15419case $with_sysroot in #( 15420 yes) 15421 if test yes = "$GCC"; then 15422 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 15423 fi 15424 ;; #( 15425 /*) 15426 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 15427 ;; #( 15428 no|'') 15429 ;; #( 15430 *) 15431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 15432$as_echo "$with_sysroot" >&6; } 15433 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 15434 ;; 15435esac 15436 15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 15438$as_echo "${lt_sysroot:-no}" >&6; } 15439 15440 15441 15442 15443 15444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 15445$as_echo_n "checking for a working dd... " >&6; } 15446if ${ac_cv_path_lt_DD+:} false; then : 15447 $as_echo_n "(cached) " >&6 15448else 15449 printf 0123456789abcdef0123456789abcdef >conftest.i 15450cat conftest.i conftest.i >conftest2.i 15451: ${lt_DD:=$DD} 15452if test -z "$lt_DD"; then 15453 ac_path_lt_DD_found=false 15454 # Loop through the user's path and test for each of PROGNAME-LIST 15455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15456for as_dir in $PATH 15457do 15458 IFS=$as_save_IFS 15459 test -z "$as_dir" && as_dir=. 15460 for ac_prog in dd; do 15461 for ac_exec_ext in '' $ac_executable_extensions; do 15462 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 15463 as_fn_executable_p "$ac_path_lt_DD" || continue 15464if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 15465 cmp -s conftest.i conftest.out \ 15466 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 15467fi 15468 $ac_path_lt_DD_found && break 3 15469 done 15470 done 15471 done 15472IFS=$as_save_IFS 15473 if test -z "$ac_cv_path_lt_DD"; then 15474 : 15475 fi 15476else 15477 ac_cv_path_lt_DD=$lt_DD 15478fi 15479 15480rm -f conftest.i conftest2.i conftest.out 15481fi 15482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 15483$as_echo "$ac_cv_path_lt_DD" >&6; } 15484 15485 15486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 15487$as_echo_n "checking how to truncate binary pipes... " >&6; } 15488if ${lt_cv_truncate_bin+:} false; then : 15489 $as_echo_n "(cached) " >&6 15490else 15491 printf 0123456789abcdef0123456789abcdef >conftest.i 15492cat conftest.i conftest.i >conftest2.i 15493lt_cv_truncate_bin= 15494if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 15495 cmp -s conftest.i conftest.out \ 15496 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 15497fi 15498rm -f conftest.i conftest2.i conftest.out 15499test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 15500fi 15501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 15502$as_echo "$lt_cv_truncate_bin" >&6; } 15503 15504 15505 15506 15507 15508 15509 15510# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 15511func_cc_basename () 15512{ 15513 for cc_temp in $*""; do 15514 case $cc_temp in 15515 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15516 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15517 \-*) ;; 15518 *) break;; 15519 esac 15520 done 15521 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 15522} 15523 15524# Check whether --enable-libtool-lock was given. 15525if test "${enable_libtool_lock+set}" = set; then : 15526 enableval=$enable_libtool_lock; 15527fi 15528 15529test no = "$enable_libtool_lock" || enable_libtool_lock=yes 15530 15531# Some flags need to be propagated to the compiler or linker for good 15532# libtool support. 15533case $host in 15534ia64-*-hpux*) 15535 # Find out what ABI is being produced by ac_compile, and set mode 15536 # options accordingly. 15537 echo 'int i;' > conftest.$ac_ext 15538 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15539 (eval $ac_compile) 2>&5 15540 ac_status=$? 15541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15542 test $ac_status = 0; }; then 15543 case `/usr/bin/file conftest.$ac_objext` in 15544 *ELF-32*) 15545 HPUX_IA64_MODE=32 15546 ;; 15547 *ELF-64*) 15548 HPUX_IA64_MODE=64 15549 ;; 15550 esac 15551 fi 15552 rm -rf conftest* 15553 ;; 15554*-*-irix6*) 15555 # Find out what ABI is being produced by ac_compile, and set linker 15556 # options accordingly. 15557 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 15558 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15559 (eval $ac_compile) 2>&5 15560 ac_status=$? 15561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15562 test $ac_status = 0; }; then 15563 if test yes = "$lt_cv_prog_gnu_ld"; then 15564 case `/usr/bin/file conftest.$ac_objext` in 15565 *32-bit*) 15566 LD="${LD-ld} -melf32bsmip" 15567 ;; 15568 *N32*) 15569 LD="${LD-ld} -melf32bmipn32" 15570 ;; 15571 *64-bit*) 15572 LD="${LD-ld} -melf64bmip" 15573 ;; 15574 esac 15575 else 15576 case `/usr/bin/file conftest.$ac_objext` in 15577 *32-bit*) 15578 LD="${LD-ld} -32" 15579 ;; 15580 *N32*) 15581 LD="${LD-ld} -n32" 15582 ;; 15583 *64-bit*) 15584 LD="${LD-ld} -64" 15585 ;; 15586 esac 15587 fi 15588 fi 15589 rm -rf conftest* 15590 ;; 15591 15592mips64*-*linux*) 15593 # Find out what ABI is being produced by ac_compile, and set linker 15594 # options accordingly. 15595 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 15596 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15597 (eval $ac_compile) 2>&5 15598 ac_status=$? 15599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15600 test $ac_status = 0; }; then 15601 emul=elf 15602 case `/usr/bin/file conftest.$ac_objext` in 15603 *32-bit*) 15604 emul="${emul}32" 15605 ;; 15606 *64-bit*) 15607 emul="${emul}64" 15608 ;; 15609 esac 15610 case `/usr/bin/file conftest.$ac_objext` in 15611 *MSB*) 15612 emul="${emul}btsmip" 15613 ;; 15614 *LSB*) 15615 emul="${emul}ltsmip" 15616 ;; 15617 esac 15618 case `/usr/bin/file conftest.$ac_objext` in 15619 *N32*) 15620 emul="${emul}n32" 15621 ;; 15622 esac 15623 LD="${LD-ld} -m $emul" 15624 fi 15625 rm -rf conftest* 15626 ;; 15627 15628x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 15629s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 15630 # Find out what ABI is being produced by ac_compile, and set linker 15631 # options accordingly. Note that the listed cases only cover the 15632 # situations where additional linker options are needed (such as when 15633 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 15634 # vice versa); the common cases where no linker options are needed do 15635 # not appear in the list. 15636 echo 'int i;' > conftest.$ac_ext 15637 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15638 (eval $ac_compile) 2>&5 15639 ac_status=$? 15640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15641 test $ac_status = 0; }; then 15642 case `/usr/bin/file conftest.o` in 15643 *32-bit*) 15644 case $host in 15645 x86_64-*kfreebsd*-gnu) 15646 LD="${LD-ld} -m elf_i386_fbsd" 15647 ;; 15648 x86_64-*linux*) 15649 case `/usr/bin/file conftest.o` in 15650 *x86-64*) 15651 LD="${LD-ld} -m elf32_x86_64" 15652 ;; 15653 *) 15654 LD="${LD-ld} -m elf_i386" 15655 ;; 15656 esac 15657 ;; 15658 powerpc64le-*linux*) 15659 LD="${LD-ld} -m elf32lppclinux" 15660 ;; 15661 powerpc64-*linux*) 15662 LD="${LD-ld} -m elf32ppclinux" 15663 ;; 15664 s390x-*linux*) 15665 LD="${LD-ld} -m elf_s390" 15666 ;; 15667 sparc64-*linux*) 15668 LD="${LD-ld} -m elf32_sparc" 15669 ;; 15670 esac 15671 ;; 15672 *64-bit*) 15673 case $host in 15674 x86_64-*kfreebsd*-gnu) 15675 LD="${LD-ld} -m elf_x86_64_fbsd" 15676 ;; 15677 x86_64-*linux*) 15678 LD="${LD-ld} -m elf_x86_64" 15679 ;; 15680 powerpcle-*linux*|powerpc64le-*linux*) 15681 LD="${LD-ld} -m elf64lppc" 15682 ;; 15683 powerpc-*linux*|powerpc64-*linux*) 15684 LD="${LD-ld} -m elf64ppc" 15685 ;; 15686 s390*-*linux*|s390*-*tpf*) 15687 LD="${LD-ld} -m elf64_s390" 15688 ;; 15689 sparc*-*linux*) 15690 LD="${LD-ld} -m elf64_sparc" 15691 ;; 15692 esac 15693 ;; 15694 esac 15695 fi 15696 rm -rf conftest* 15697 ;; 15698 15699*-*-sco3.2v5*) 15700 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 15701 SAVE_CFLAGS=$CFLAGS 15702 CFLAGS="$CFLAGS -belf" 15703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 15704$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 15705if ${lt_cv_cc_needs_belf+:} false; then : 15706 $as_echo_n "(cached) " >&6 15707else 15708 ac_ext=c 15709ac_cpp='$CPP $CPPFLAGS' 15710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15712ac_compiler_gnu=$ac_cv_c_compiler_gnu 15713 15714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15715/* end confdefs.h. */ 15716 15717int 15718main () 15719{ 15720 15721 ; 15722 return 0; 15723} 15724_ACEOF 15725if ac_fn_c_try_link "$LINENO"; then : 15726 lt_cv_cc_needs_belf=yes 15727else 15728 lt_cv_cc_needs_belf=no 15729fi 15730rm -f core conftest.err conftest.$ac_objext \ 15731 conftest$ac_exeext conftest.$ac_ext 15732 ac_ext=c 15733ac_cpp='$CPP $CPPFLAGS' 15734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15736ac_compiler_gnu=$ac_cv_c_compiler_gnu 15737 15738fi 15739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 15740$as_echo "$lt_cv_cc_needs_belf" >&6; } 15741 if test yes != "$lt_cv_cc_needs_belf"; then 15742 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 15743 CFLAGS=$SAVE_CFLAGS 15744 fi 15745 ;; 15746*-*solaris*) 15747 # Find out what ABI is being produced by ac_compile, and set linker 15748 # options accordingly. 15749 echo 'int i;' > conftest.$ac_ext 15750 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15751 (eval $ac_compile) 2>&5 15752 ac_status=$? 15753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15754 test $ac_status = 0; }; then 15755 case `/usr/bin/file conftest.o` in 15756 *64-bit*) 15757 case $lt_cv_prog_gnu_ld in 15758 yes*) 15759 case $host in 15760 i?86-*-solaris*|x86_64-*-solaris*) 15761 LD="${LD-ld} -m elf_x86_64" 15762 ;; 15763 sparc*-*-solaris*) 15764 LD="${LD-ld} -m elf64_sparc" 15765 ;; 15766 esac 15767 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 15768 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 15769 LD=${LD-ld}_sol2 15770 fi 15771 ;; 15772 *) 15773 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 15774 LD="${LD-ld} -64" 15775 fi 15776 ;; 15777 esac 15778 ;; 15779 esac 15780 fi 15781 rm -rf conftest* 15782 ;; 15783esac 15784 15785need_locks=$enable_libtool_lock 15786 15787if test -n "$ac_tool_prefix"; then 15788 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 15789set dummy ${ac_tool_prefix}mt; ac_word=$2 15790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15791$as_echo_n "checking for $ac_word... " >&6; } 15792if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 15793 $as_echo_n "(cached) " >&6 15794else 15795 if test -n "$MANIFEST_TOOL"; then 15796 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 15797else 15798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15799for as_dir in $PATH 15800do 15801 IFS=$as_save_IFS 15802 test -z "$as_dir" && as_dir=. 15803 for ac_exec_ext in '' $ac_executable_extensions; do 15804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15805 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 15806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15807 break 2 15808 fi 15809done 15810 done 15811IFS=$as_save_IFS 15812 15813fi 15814fi 15815MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 15816if test -n "$MANIFEST_TOOL"; then 15817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 15818$as_echo "$MANIFEST_TOOL" >&6; } 15819else 15820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15821$as_echo "no" >&6; } 15822fi 15823 15824 15825fi 15826if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 15827 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 15828 # Extract the first word of "mt", so it can be a program name with args. 15829set dummy mt; ac_word=$2 15830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15831$as_echo_n "checking for $ac_word... " >&6; } 15832if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 15833 $as_echo_n "(cached) " >&6 15834else 15835 if test -n "$ac_ct_MANIFEST_TOOL"; then 15836 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 15837else 15838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15839for as_dir in $PATH 15840do 15841 IFS=$as_save_IFS 15842 test -z "$as_dir" && as_dir=. 15843 for ac_exec_ext in '' $ac_executable_extensions; do 15844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15845 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 15846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15847 break 2 15848 fi 15849done 15850 done 15851IFS=$as_save_IFS 15852 15853fi 15854fi 15855ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 15856if test -n "$ac_ct_MANIFEST_TOOL"; then 15857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 15858$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 15859else 15860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15861$as_echo "no" >&6; } 15862fi 15863 15864 if test "x$ac_ct_MANIFEST_TOOL" = x; then 15865 MANIFEST_TOOL=":" 15866 else 15867 case $cross_compiling:$ac_tool_warned in 15868yes:) 15869{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15870$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15871ac_tool_warned=yes ;; 15872esac 15873 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 15874 fi 15875else 15876 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 15877fi 15878 15879test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 15880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 15881$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 15882if ${lt_cv_path_mainfest_tool+:} false; then : 15883 $as_echo_n "(cached) " >&6 15884else 15885 lt_cv_path_mainfest_tool=no 15886 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 15887 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 15888 cat conftest.err >&5 15889 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 15890 lt_cv_path_mainfest_tool=yes 15891 fi 15892 rm -f conftest* 15893fi 15894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 15895$as_echo "$lt_cv_path_mainfest_tool" >&6; } 15896if test yes != "$lt_cv_path_mainfest_tool"; then 15897 MANIFEST_TOOL=: 15898fi 15899 15900 15901 15902 15903 15904 15905 case $host_os in 15906 rhapsody* | darwin*) 15907 if test -n "$ac_tool_prefix"; then 15908 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 15909set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 15910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15911$as_echo_n "checking for $ac_word... " >&6; } 15912if ${ac_cv_prog_DSYMUTIL+:} false; then : 15913 $as_echo_n "(cached) " >&6 15914else 15915 if test -n "$DSYMUTIL"; then 15916 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 15917else 15918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15919for as_dir in $PATH 15920do 15921 IFS=$as_save_IFS 15922 test -z "$as_dir" && as_dir=. 15923 for ac_exec_ext in '' $ac_executable_extensions; do 15924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15925 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 15926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15927 break 2 15928 fi 15929done 15930 done 15931IFS=$as_save_IFS 15932 15933fi 15934fi 15935DSYMUTIL=$ac_cv_prog_DSYMUTIL 15936if test -n "$DSYMUTIL"; then 15937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 15938$as_echo "$DSYMUTIL" >&6; } 15939else 15940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15941$as_echo "no" >&6; } 15942fi 15943 15944 15945fi 15946if test -z "$ac_cv_prog_DSYMUTIL"; then 15947 ac_ct_DSYMUTIL=$DSYMUTIL 15948 # Extract the first word of "dsymutil", so it can be a program name with args. 15949set dummy dsymutil; ac_word=$2 15950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15951$as_echo_n "checking for $ac_word... " >&6; } 15952if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 15953 $as_echo_n "(cached) " >&6 15954else 15955 if test -n "$ac_ct_DSYMUTIL"; then 15956 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 15957else 15958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15959for as_dir in $PATH 15960do 15961 IFS=$as_save_IFS 15962 test -z "$as_dir" && as_dir=. 15963 for ac_exec_ext in '' $ac_executable_extensions; do 15964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15965 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 15966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15967 break 2 15968 fi 15969done 15970 done 15971IFS=$as_save_IFS 15972 15973fi 15974fi 15975ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 15976if test -n "$ac_ct_DSYMUTIL"; then 15977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 15978$as_echo "$ac_ct_DSYMUTIL" >&6; } 15979else 15980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15981$as_echo "no" >&6; } 15982fi 15983 15984 if test "x$ac_ct_DSYMUTIL" = x; then 15985 DSYMUTIL=":" 15986 else 15987 case $cross_compiling:$ac_tool_warned in 15988yes:) 15989{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15990$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15991ac_tool_warned=yes ;; 15992esac 15993 DSYMUTIL=$ac_ct_DSYMUTIL 15994 fi 15995else 15996 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 15997fi 15998 15999 if test -n "$ac_tool_prefix"; then 16000 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 16001set dummy ${ac_tool_prefix}nmedit; ac_word=$2 16002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16003$as_echo_n "checking for $ac_word... " >&6; } 16004if ${ac_cv_prog_NMEDIT+:} false; then : 16005 $as_echo_n "(cached) " >&6 16006else 16007 if test -n "$NMEDIT"; then 16008 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 16009else 16010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16011for as_dir in $PATH 16012do 16013 IFS=$as_save_IFS 16014 test -z "$as_dir" && as_dir=. 16015 for ac_exec_ext in '' $ac_executable_extensions; do 16016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16017 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 16018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16019 break 2 16020 fi 16021done 16022 done 16023IFS=$as_save_IFS 16024 16025fi 16026fi 16027NMEDIT=$ac_cv_prog_NMEDIT 16028if test -n "$NMEDIT"; then 16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 16030$as_echo "$NMEDIT" >&6; } 16031else 16032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16033$as_echo "no" >&6; } 16034fi 16035 16036 16037fi 16038if test -z "$ac_cv_prog_NMEDIT"; then 16039 ac_ct_NMEDIT=$NMEDIT 16040 # Extract the first word of "nmedit", so it can be a program name with args. 16041set dummy nmedit; ac_word=$2 16042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16043$as_echo_n "checking for $ac_word... " >&6; } 16044if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 16045 $as_echo_n "(cached) " >&6 16046else 16047 if test -n "$ac_ct_NMEDIT"; then 16048 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 16049else 16050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16051for as_dir in $PATH 16052do 16053 IFS=$as_save_IFS 16054 test -z "$as_dir" && as_dir=. 16055 for ac_exec_ext in '' $ac_executable_extensions; do 16056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16057 ac_cv_prog_ac_ct_NMEDIT="nmedit" 16058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16059 break 2 16060 fi 16061done 16062 done 16063IFS=$as_save_IFS 16064 16065fi 16066fi 16067ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 16068if test -n "$ac_ct_NMEDIT"; then 16069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 16070$as_echo "$ac_ct_NMEDIT" >&6; } 16071else 16072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16073$as_echo "no" >&6; } 16074fi 16075 16076 if test "x$ac_ct_NMEDIT" = x; then 16077 NMEDIT=":" 16078 else 16079 case $cross_compiling:$ac_tool_warned in 16080yes:) 16081{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16083ac_tool_warned=yes ;; 16084esac 16085 NMEDIT=$ac_ct_NMEDIT 16086 fi 16087else 16088 NMEDIT="$ac_cv_prog_NMEDIT" 16089fi 16090 16091 if test -n "$ac_tool_prefix"; then 16092 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 16093set dummy ${ac_tool_prefix}lipo; ac_word=$2 16094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16095$as_echo_n "checking for $ac_word... " >&6; } 16096if ${ac_cv_prog_LIPO+:} false; then : 16097 $as_echo_n "(cached) " >&6 16098else 16099 if test -n "$LIPO"; then 16100 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 16101else 16102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16103for as_dir in $PATH 16104do 16105 IFS=$as_save_IFS 16106 test -z "$as_dir" && as_dir=. 16107 for ac_exec_ext in '' $ac_executable_extensions; do 16108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16109 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 16110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16111 break 2 16112 fi 16113done 16114 done 16115IFS=$as_save_IFS 16116 16117fi 16118fi 16119LIPO=$ac_cv_prog_LIPO 16120if test -n "$LIPO"; then 16121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 16122$as_echo "$LIPO" >&6; } 16123else 16124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16125$as_echo "no" >&6; } 16126fi 16127 16128 16129fi 16130if test -z "$ac_cv_prog_LIPO"; then 16131 ac_ct_LIPO=$LIPO 16132 # Extract the first word of "lipo", so it can be a program name with args. 16133set dummy lipo; ac_word=$2 16134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16135$as_echo_n "checking for $ac_word... " >&6; } 16136if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 16137 $as_echo_n "(cached) " >&6 16138else 16139 if test -n "$ac_ct_LIPO"; then 16140 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 16141else 16142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16143for as_dir in $PATH 16144do 16145 IFS=$as_save_IFS 16146 test -z "$as_dir" && as_dir=. 16147 for ac_exec_ext in '' $ac_executable_extensions; do 16148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16149 ac_cv_prog_ac_ct_LIPO="lipo" 16150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16151 break 2 16152 fi 16153done 16154 done 16155IFS=$as_save_IFS 16156 16157fi 16158fi 16159ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 16160if test -n "$ac_ct_LIPO"; then 16161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 16162$as_echo "$ac_ct_LIPO" >&6; } 16163else 16164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16165$as_echo "no" >&6; } 16166fi 16167 16168 if test "x$ac_ct_LIPO" = x; then 16169 LIPO=":" 16170 else 16171 case $cross_compiling:$ac_tool_warned in 16172yes:) 16173{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16174$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16175ac_tool_warned=yes ;; 16176esac 16177 LIPO=$ac_ct_LIPO 16178 fi 16179else 16180 LIPO="$ac_cv_prog_LIPO" 16181fi 16182 16183 if test -n "$ac_tool_prefix"; then 16184 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 16185set dummy ${ac_tool_prefix}otool; ac_word=$2 16186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16187$as_echo_n "checking for $ac_word... " >&6; } 16188if ${ac_cv_prog_OTOOL+:} false; then : 16189 $as_echo_n "(cached) " >&6 16190else 16191 if test -n "$OTOOL"; then 16192 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 16193else 16194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16195for as_dir in $PATH 16196do 16197 IFS=$as_save_IFS 16198 test -z "$as_dir" && as_dir=. 16199 for ac_exec_ext in '' $ac_executable_extensions; do 16200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16201 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 16202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16203 break 2 16204 fi 16205done 16206 done 16207IFS=$as_save_IFS 16208 16209fi 16210fi 16211OTOOL=$ac_cv_prog_OTOOL 16212if test -n "$OTOOL"; then 16213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 16214$as_echo "$OTOOL" >&6; } 16215else 16216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16217$as_echo "no" >&6; } 16218fi 16219 16220 16221fi 16222if test -z "$ac_cv_prog_OTOOL"; then 16223 ac_ct_OTOOL=$OTOOL 16224 # Extract the first word of "otool", so it can be a program name with args. 16225set dummy otool; ac_word=$2 16226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16227$as_echo_n "checking for $ac_word... " >&6; } 16228if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 16229 $as_echo_n "(cached) " >&6 16230else 16231 if test -n "$ac_ct_OTOOL"; then 16232 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 16233else 16234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16235for as_dir in $PATH 16236do 16237 IFS=$as_save_IFS 16238 test -z "$as_dir" && as_dir=. 16239 for ac_exec_ext in '' $ac_executable_extensions; do 16240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16241 ac_cv_prog_ac_ct_OTOOL="otool" 16242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16243 break 2 16244 fi 16245done 16246 done 16247IFS=$as_save_IFS 16248 16249fi 16250fi 16251ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 16252if test -n "$ac_ct_OTOOL"; then 16253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 16254$as_echo "$ac_ct_OTOOL" >&6; } 16255else 16256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16257$as_echo "no" >&6; } 16258fi 16259 16260 if test "x$ac_ct_OTOOL" = x; then 16261 OTOOL=":" 16262 else 16263 case $cross_compiling:$ac_tool_warned in 16264yes:) 16265{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16266$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16267ac_tool_warned=yes ;; 16268esac 16269 OTOOL=$ac_ct_OTOOL 16270 fi 16271else 16272 OTOOL="$ac_cv_prog_OTOOL" 16273fi 16274 16275 if test -n "$ac_tool_prefix"; then 16276 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 16277set dummy ${ac_tool_prefix}otool64; ac_word=$2 16278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16279$as_echo_n "checking for $ac_word... " >&6; } 16280if ${ac_cv_prog_OTOOL64+:} false; then : 16281 $as_echo_n "(cached) " >&6 16282else 16283 if test -n "$OTOOL64"; then 16284 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 16285else 16286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16287for as_dir in $PATH 16288do 16289 IFS=$as_save_IFS 16290 test -z "$as_dir" && as_dir=. 16291 for ac_exec_ext in '' $ac_executable_extensions; do 16292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16293 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 16294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16295 break 2 16296 fi 16297done 16298 done 16299IFS=$as_save_IFS 16300 16301fi 16302fi 16303OTOOL64=$ac_cv_prog_OTOOL64 16304if test -n "$OTOOL64"; then 16305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 16306$as_echo "$OTOOL64" >&6; } 16307else 16308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16309$as_echo "no" >&6; } 16310fi 16311 16312 16313fi 16314if test -z "$ac_cv_prog_OTOOL64"; then 16315 ac_ct_OTOOL64=$OTOOL64 16316 # Extract the first word of "otool64", so it can be a program name with args. 16317set dummy otool64; ac_word=$2 16318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16319$as_echo_n "checking for $ac_word... " >&6; } 16320if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 16321 $as_echo_n "(cached) " >&6 16322else 16323 if test -n "$ac_ct_OTOOL64"; then 16324 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 16325else 16326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16327for as_dir in $PATH 16328do 16329 IFS=$as_save_IFS 16330 test -z "$as_dir" && as_dir=. 16331 for ac_exec_ext in '' $ac_executable_extensions; do 16332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16333 ac_cv_prog_ac_ct_OTOOL64="otool64" 16334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16335 break 2 16336 fi 16337done 16338 done 16339IFS=$as_save_IFS 16340 16341fi 16342fi 16343ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 16344if test -n "$ac_ct_OTOOL64"; then 16345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 16346$as_echo "$ac_ct_OTOOL64" >&6; } 16347else 16348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16349$as_echo "no" >&6; } 16350fi 16351 16352 if test "x$ac_ct_OTOOL64" = x; then 16353 OTOOL64=":" 16354 else 16355 case $cross_compiling:$ac_tool_warned in 16356yes:) 16357{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16358$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16359ac_tool_warned=yes ;; 16360esac 16361 OTOOL64=$ac_ct_OTOOL64 16362 fi 16363else 16364 OTOOL64="$ac_cv_prog_OTOOL64" 16365fi 16366 16367 16368 16369 16370 16371 16372 16373 16374 16375 16376 16377 16378 16379 16380 16381 16382 16383 16384 16385 16386 16387 16388 16389 16390 16391 16392 16393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 16394$as_echo_n "checking for -single_module linker flag... " >&6; } 16395if ${lt_cv_apple_cc_single_mod+:} false; then : 16396 $as_echo_n "(cached) " >&6 16397else 16398 lt_cv_apple_cc_single_mod=no 16399 if test -z "$LT_MULTI_MODULE"; then 16400 # By default we will add the -single_module flag. You can override 16401 # by either setting the environment variable LT_MULTI_MODULE 16402 # non-empty at configure time, or by adding -multi_module to the 16403 # link flags. 16404 rm -rf libconftest.dylib* 16405 echo "int foo(void){return 1;}" > conftest.c 16406 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 16407-dynamiclib -Wl,-single_module conftest.c" >&5 16408 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 16409 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 16410 _lt_result=$? 16411 # If there is a non-empty error log, and "single_module" 16412 # appears in it, assume the flag caused a linker warning 16413 if test -s conftest.err && $GREP single_module conftest.err; then 16414 cat conftest.err >&5 16415 # Otherwise, if the output was created with a 0 exit code from 16416 # the compiler, it worked. 16417 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 16418 lt_cv_apple_cc_single_mod=yes 16419 else 16420 cat conftest.err >&5 16421 fi 16422 rm -rf libconftest.dylib* 16423 rm -f conftest.* 16424 fi 16425fi 16426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 16427$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 16428 16429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 16430$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 16431if ${lt_cv_ld_exported_symbols_list+:} false; then : 16432 $as_echo_n "(cached) " >&6 16433else 16434 lt_cv_ld_exported_symbols_list=no 16435 save_LDFLAGS=$LDFLAGS 16436 echo "_main" > conftest.sym 16437 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 16438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16439/* end confdefs.h. */ 16440 16441int 16442main () 16443{ 16444 16445 ; 16446 return 0; 16447} 16448_ACEOF 16449if ac_fn_c_try_link "$LINENO"; then : 16450 lt_cv_ld_exported_symbols_list=yes 16451else 16452 lt_cv_ld_exported_symbols_list=no 16453fi 16454rm -f core conftest.err conftest.$ac_objext \ 16455 conftest$ac_exeext conftest.$ac_ext 16456 LDFLAGS=$save_LDFLAGS 16457 16458fi 16459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 16460$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 16461 16462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 16463$as_echo_n "checking for -force_load linker flag... " >&6; } 16464if ${lt_cv_ld_force_load+:} false; then : 16465 $as_echo_n "(cached) " >&6 16466else 16467 lt_cv_ld_force_load=no 16468 cat > conftest.c << _LT_EOF 16469int forced_loaded() { return 2;} 16470_LT_EOF 16471 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 16472 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 16473 echo "$AR cru libconftest.a conftest.o" >&5 16474 $AR cru libconftest.a conftest.o 2>&5 16475 echo "$RANLIB libconftest.a" >&5 16476 $RANLIB libconftest.a 2>&5 16477 cat > conftest.c << _LT_EOF 16478int main() { return 0;} 16479_LT_EOF 16480 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 16481 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 16482 _lt_result=$? 16483 if test -s conftest.err && $GREP force_load conftest.err; then 16484 cat conftest.err >&5 16485 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 16486 lt_cv_ld_force_load=yes 16487 else 16488 cat conftest.err >&5 16489 fi 16490 rm -f conftest.err libconftest.a conftest conftest.c 16491 rm -rf conftest.dSYM 16492 16493fi 16494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 16495$as_echo "$lt_cv_ld_force_load" >&6; } 16496 case $host_os in 16497 rhapsody* | darwin1.[012]) 16498 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 16499 darwin1.*) 16500 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 16501 darwin*) # darwin 5.x on 16502 # if running on 10.5 or later, the deployment target defaults 16503 # to the OS version, if on x86, and 10.4, the deployment 16504 # target defaults to 10.4. Don't you love it? 16505 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 16506 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 16507 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 16508 10.[012][,.]*) 16509 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 16510 10.*) 16511 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 16512 esac 16513 ;; 16514 esac 16515 if test yes = "$lt_cv_apple_cc_single_mod"; then 16516 _lt_dar_single_mod='$single_module' 16517 fi 16518 if test yes = "$lt_cv_ld_exported_symbols_list"; then 16519 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 16520 else 16521 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 16522 fi 16523 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 16524 _lt_dsymutil='~$DSYMUTIL $lib || :' 16525 else 16526 _lt_dsymutil= 16527 fi 16528 ;; 16529 esac 16530 16531# func_munge_path_list VARIABLE PATH 16532# ----------------------------------- 16533# VARIABLE is name of variable containing _space_ separated list of 16534# directories to be munged by the contents of PATH, which is string 16535# having a format: 16536# "DIR[:DIR]:" 16537# string "DIR[ DIR]" will be prepended to VARIABLE 16538# ":DIR[:DIR]" 16539# string "DIR[ DIR]" will be appended to VARIABLE 16540# "DIRP[:DIRP]::[DIRA:]DIRA" 16541# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 16542# "DIRA[ DIRA]" will be appended to VARIABLE 16543# "DIR[:DIR]" 16544# VARIABLE will be replaced by "DIR[ DIR]" 16545func_munge_path_list () 16546{ 16547 case x$2 in 16548 x) 16549 ;; 16550 *:) 16551 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 16552 ;; 16553 x:*) 16554 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 16555 ;; 16556 *::*) 16557 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 16558 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 16559 ;; 16560 *) 16561 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 16562 ;; 16563 esac 16564} 16565 16566for ac_header in dlfcn.h 16567do : 16568 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 16569" 16570if test "x$ac_cv_header_dlfcn_h" = xyes; then : 16571 cat >>confdefs.h <<_ACEOF 16572#define HAVE_DLFCN_H 1 16573_ACEOF 16574 16575fi 16576 16577done 16578 16579 16580 16581 16582 16583# Set options 16584# Check whether --enable-static was given. 16585if test "${enable_static+set}" = set; then : 16586 enableval=$enable_static; p=${PACKAGE-default} 16587 case $enableval in 16588 yes) enable_static=yes ;; 16589 no) enable_static=no ;; 16590 *) 16591 enable_static=no 16592 # Look at the argument we got. We use all the common list separators. 16593 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 16594 for pkg in $enableval; do 16595 IFS=$lt_save_ifs 16596 if test "X$pkg" = "X$p"; then 16597 enable_static=yes 16598 fi 16599 done 16600 IFS=$lt_save_ifs 16601 ;; 16602 esac 16603else 16604 enable_static=no 16605fi 16606 16607 16608 16609 16610 16611 16612 16613enable_win32_dll=yes 16614 16615case $host in 16616*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 16617 if test -n "$ac_tool_prefix"; then 16618 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 16619set dummy ${ac_tool_prefix}as; ac_word=$2 16620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16621$as_echo_n "checking for $ac_word... " >&6; } 16622if ${ac_cv_prog_AS+:} false; then : 16623 $as_echo_n "(cached) " >&6 16624else 16625 if test -n "$AS"; then 16626 ac_cv_prog_AS="$AS" # Let the user override the test. 16627else 16628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16629for as_dir in $PATH 16630do 16631 IFS=$as_save_IFS 16632 test -z "$as_dir" && as_dir=. 16633 for ac_exec_ext in '' $ac_executable_extensions; do 16634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16635 ac_cv_prog_AS="${ac_tool_prefix}as" 16636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16637 break 2 16638 fi 16639done 16640 done 16641IFS=$as_save_IFS 16642 16643fi 16644fi 16645AS=$ac_cv_prog_AS 16646if test -n "$AS"; then 16647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 16648$as_echo "$AS" >&6; } 16649else 16650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16651$as_echo "no" >&6; } 16652fi 16653 16654 16655fi 16656if test -z "$ac_cv_prog_AS"; then 16657 ac_ct_AS=$AS 16658 # Extract the first word of "as", so it can be a program name with args. 16659set dummy as; ac_word=$2 16660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16661$as_echo_n "checking for $ac_word... " >&6; } 16662if ${ac_cv_prog_ac_ct_AS+:} false; then : 16663 $as_echo_n "(cached) " >&6 16664else 16665 if test -n "$ac_ct_AS"; then 16666 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 16667else 16668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16669for as_dir in $PATH 16670do 16671 IFS=$as_save_IFS 16672 test -z "$as_dir" && as_dir=. 16673 for ac_exec_ext in '' $ac_executable_extensions; do 16674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16675 ac_cv_prog_ac_ct_AS="as" 16676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16677 break 2 16678 fi 16679done 16680 done 16681IFS=$as_save_IFS 16682 16683fi 16684fi 16685ac_ct_AS=$ac_cv_prog_ac_ct_AS 16686if test -n "$ac_ct_AS"; then 16687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 16688$as_echo "$ac_ct_AS" >&6; } 16689else 16690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16691$as_echo "no" >&6; } 16692fi 16693 16694 if test "x$ac_ct_AS" = x; then 16695 AS="false" 16696 else 16697 case $cross_compiling:$ac_tool_warned in 16698yes:) 16699{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16700$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16701ac_tool_warned=yes ;; 16702esac 16703 AS=$ac_ct_AS 16704 fi 16705else 16706 AS="$ac_cv_prog_AS" 16707fi 16708 16709 if test -n "$ac_tool_prefix"; then 16710 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 16711set dummy ${ac_tool_prefix}dlltool; ac_word=$2 16712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16713$as_echo_n "checking for $ac_word... " >&6; } 16714if ${ac_cv_prog_DLLTOOL+:} false; then : 16715 $as_echo_n "(cached) " >&6 16716else 16717 if test -n "$DLLTOOL"; then 16718 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 16719else 16720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16721for as_dir in $PATH 16722do 16723 IFS=$as_save_IFS 16724 test -z "$as_dir" && as_dir=. 16725 for ac_exec_ext in '' $ac_executable_extensions; do 16726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16727 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 16728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16729 break 2 16730 fi 16731done 16732 done 16733IFS=$as_save_IFS 16734 16735fi 16736fi 16737DLLTOOL=$ac_cv_prog_DLLTOOL 16738if test -n "$DLLTOOL"; then 16739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 16740$as_echo "$DLLTOOL" >&6; } 16741else 16742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16743$as_echo "no" >&6; } 16744fi 16745 16746 16747fi 16748if test -z "$ac_cv_prog_DLLTOOL"; then 16749 ac_ct_DLLTOOL=$DLLTOOL 16750 # Extract the first word of "dlltool", so it can be a program name with args. 16751set dummy dlltool; ac_word=$2 16752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16753$as_echo_n "checking for $ac_word... " >&6; } 16754if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 16755 $as_echo_n "(cached) " >&6 16756else 16757 if test -n "$ac_ct_DLLTOOL"; then 16758 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 16759else 16760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16761for as_dir in $PATH 16762do 16763 IFS=$as_save_IFS 16764 test -z "$as_dir" && as_dir=. 16765 for ac_exec_ext in '' $ac_executable_extensions; do 16766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16767 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 16768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16769 break 2 16770 fi 16771done 16772 done 16773IFS=$as_save_IFS 16774 16775fi 16776fi 16777ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 16778if test -n "$ac_ct_DLLTOOL"; then 16779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 16780$as_echo "$ac_ct_DLLTOOL" >&6; } 16781else 16782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16783$as_echo "no" >&6; } 16784fi 16785 16786 if test "x$ac_ct_DLLTOOL" = x; then 16787 DLLTOOL="false" 16788 else 16789 case $cross_compiling:$ac_tool_warned in 16790yes:) 16791{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16792$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16793ac_tool_warned=yes ;; 16794esac 16795 DLLTOOL=$ac_ct_DLLTOOL 16796 fi 16797else 16798 DLLTOOL="$ac_cv_prog_DLLTOOL" 16799fi 16800 16801 if test -n "$ac_tool_prefix"; then 16802 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 16803set dummy ${ac_tool_prefix}objdump; ac_word=$2 16804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16805$as_echo_n "checking for $ac_word... " >&6; } 16806if ${ac_cv_prog_OBJDUMP+:} false; then : 16807 $as_echo_n "(cached) " >&6 16808else 16809 if test -n "$OBJDUMP"; then 16810 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 16811else 16812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16813for as_dir in $PATH 16814do 16815 IFS=$as_save_IFS 16816 test -z "$as_dir" && as_dir=. 16817 for ac_exec_ext in '' $ac_executable_extensions; do 16818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16819 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 16820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16821 break 2 16822 fi 16823done 16824 done 16825IFS=$as_save_IFS 16826 16827fi 16828fi 16829OBJDUMP=$ac_cv_prog_OBJDUMP 16830if test -n "$OBJDUMP"; then 16831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 16832$as_echo "$OBJDUMP" >&6; } 16833else 16834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16835$as_echo "no" >&6; } 16836fi 16837 16838 16839fi 16840if test -z "$ac_cv_prog_OBJDUMP"; then 16841 ac_ct_OBJDUMP=$OBJDUMP 16842 # Extract the first word of "objdump", so it can be a program name with args. 16843set dummy objdump; ac_word=$2 16844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16845$as_echo_n "checking for $ac_word... " >&6; } 16846if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 16847 $as_echo_n "(cached) " >&6 16848else 16849 if test -n "$ac_ct_OBJDUMP"; then 16850 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 16851else 16852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16853for as_dir in $PATH 16854do 16855 IFS=$as_save_IFS 16856 test -z "$as_dir" && as_dir=. 16857 for ac_exec_ext in '' $ac_executable_extensions; do 16858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16859 ac_cv_prog_ac_ct_OBJDUMP="objdump" 16860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16861 break 2 16862 fi 16863done 16864 done 16865IFS=$as_save_IFS 16866 16867fi 16868fi 16869ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 16870if test -n "$ac_ct_OBJDUMP"; then 16871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 16872$as_echo "$ac_ct_OBJDUMP" >&6; } 16873else 16874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16875$as_echo "no" >&6; } 16876fi 16877 16878 if test "x$ac_ct_OBJDUMP" = x; then 16879 OBJDUMP="false" 16880 else 16881 case $cross_compiling:$ac_tool_warned in 16882yes:) 16883{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16884$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16885ac_tool_warned=yes ;; 16886esac 16887 OBJDUMP=$ac_ct_OBJDUMP 16888 fi 16889else 16890 OBJDUMP="$ac_cv_prog_OBJDUMP" 16891fi 16892 16893 ;; 16894esac 16895 16896test -z "$AS" && AS=as 16897 16898 16899 16900 16901 16902test -z "$DLLTOOL" && DLLTOOL=dlltool 16903 16904 16905 16906 16907 16908test -z "$OBJDUMP" && OBJDUMP=objdump 16909 16910 16911 16912 16913 16914 16915 16916 enable_dlopen=no 16917 16918 16919 16920 # Check whether --enable-shared was given. 16921if test "${enable_shared+set}" = set; then : 16922 enableval=$enable_shared; p=${PACKAGE-default} 16923 case $enableval in 16924 yes) enable_shared=yes ;; 16925 no) enable_shared=no ;; 16926 *) 16927 enable_shared=no 16928 # Look at the argument we got. We use all the common list separators. 16929 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 16930 for pkg in $enableval; do 16931 IFS=$lt_save_ifs 16932 if test "X$pkg" = "X$p"; then 16933 enable_shared=yes 16934 fi 16935 done 16936 IFS=$lt_save_ifs 16937 ;; 16938 esac 16939else 16940 enable_shared=yes 16941fi 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953# Check whether --with-pic was given. 16954if test "${with_pic+set}" = set; then : 16955 withval=$with_pic; lt_p=${PACKAGE-default} 16956 case $withval in 16957 yes|no) pic_mode=$withval ;; 16958 *) 16959 pic_mode=default 16960 # Look at the argument we got. We use all the common list separators. 16961 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 16962 for lt_pkg in $withval; do 16963 IFS=$lt_save_ifs 16964 if test "X$lt_pkg" = "X$lt_p"; then 16965 pic_mode=yes 16966 fi 16967 done 16968 IFS=$lt_save_ifs 16969 ;; 16970 esac 16971else 16972 pic_mode=default 16973fi 16974 16975 16976 16977 16978 16979 16980 16981 16982 # Check whether --enable-fast-install was given. 16983if test "${enable_fast_install+set}" = set; then : 16984 enableval=$enable_fast_install; p=${PACKAGE-default} 16985 case $enableval in 16986 yes) enable_fast_install=yes ;; 16987 no) enable_fast_install=no ;; 16988 *) 16989 enable_fast_install=no 16990 # Look at the argument we got. We use all the common list separators. 16991 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 16992 for pkg in $enableval; do 16993 IFS=$lt_save_ifs 16994 if test "X$pkg" = "X$p"; then 16995 enable_fast_install=yes 16996 fi 16997 done 16998 IFS=$lt_save_ifs 16999 ;; 17000 esac 17001else 17002 enable_fast_install=yes 17003fi 17004 17005 17006 17007 17008 17009 17010 17011 17012 shared_archive_member_spec= 17013case $host,$enable_shared in 17014power*-*-aix[5-9]*,yes) 17015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 17016$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 17017 17018# Check whether --with-aix-soname was given. 17019if test "${with_aix_soname+set}" = set; then : 17020 withval=$with_aix_soname; case $withval in 17021 aix|svr4|both) 17022 ;; 17023 *) 17024 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 17025 ;; 17026 esac 17027 lt_cv_with_aix_soname=$with_aix_soname 17028else 17029 if ${lt_cv_with_aix_soname+:} false; then : 17030 $as_echo_n "(cached) " >&6 17031else 17032 lt_cv_with_aix_soname=aix 17033fi 17034 17035 with_aix_soname=$lt_cv_with_aix_soname 17036fi 17037 17038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 17039$as_echo "$with_aix_soname" >&6; } 17040 if test aix != "$with_aix_soname"; then 17041 # For the AIX way of multilib, we name the shared archive member 17042 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 17043 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 17044 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 17045 # the AIX toolchain works better with OBJECT_MODE set (default 32). 17046 if test 64 = "${OBJECT_MODE-32}"; then 17047 shared_archive_member_spec=shr_64 17048 else 17049 shared_archive_member_spec=shr 17050 fi 17051 fi 17052 ;; 17053*) 17054 with_aix_soname=aix 17055 ;; 17056esac 17057 17058 17059 17060 17061 17062 17063 17064 17065 17066 17067# This can be used to rebuild libtool when needed 17068LIBTOOL_DEPS=$ltmain 17069 17070# Always use our own libtool. 17071LIBTOOL='$(SHELL) $(top_builddir)/libtool' 17072 17073 17074 17075 17076 17077 17078 17079 17080 17081 17082 17083 17084 17085 17086 17087 17088 17089 17090 17091 17092 17093 17094 17095 17096 17097 17098 17099 17100 17101 17102test -z "$LN_S" && LN_S="ln -s" 17103 17104 17105 17106 17107 17108 17109 17110 17111 17112 17113 17114 17115 17116 17117if test -n "${ZSH_VERSION+set}"; then 17118 setopt NO_GLOB_SUBST 17119fi 17120 17121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 17122$as_echo_n "checking for objdir... " >&6; } 17123if ${lt_cv_objdir+:} false; then : 17124 $as_echo_n "(cached) " >&6 17125else 17126 rm -f .libs 2>/dev/null 17127mkdir .libs 2>/dev/null 17128if test -d .libs; then 17129 lt_cv_objdir=.libs 17130else 17131 # MS-DOS does not allow filenames that begin with a dot. 17132 lt_cv_objdir=_libs 17133fi 17134rmdir .libs 2>/dev/null 17135fi 17136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 17137$as_echo "$lt_cv_objdir" >&6; } 17138objdir=$lt_cv_objdir 17139 17140 17141 17142 17143 17144cat >>confdefs.h <<_ACEOF 17145#define LT_OBJDIR "$lt_cv_objdir/" 17146_ACEOF 17147 17148 17149 17150 17151case $host_os in 17152aix3*) 17153 # AIX sometimes has problems with the GCC collect2 program. For some 17154 # reason, if we set the COLLECT_NAMES environment variable, the problems 17155 # vanish in a puff of smoke. 17156 if test set != "${COLLECT_NAMES+set}"; then 17157 COLLECT_NAMES= 17158 export COLLECT_NAMES 17159 fi 17160 ;; 17161esac 17162 17163# Global variables: 17164ofile=libtool 17165can_build_shared=yes 17166 17167# All known linkers require a '.a' archive for static linking (except MSVC, 17168# which needs '.lib'). 17169libext=a 17170 17171with_gnu_ld=$lt_cv_prog_gnu_ld 17172 17173old_CC=$CC 17174old_CFLAGS=$CFLAGS 17175 17176# Set sane defaults for various variables 17177test -z "$CC" && CC=cc 17178test -z "$LTCC" && LTCC=$CC 17179test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 17180test -z "$LD" && LD=ld 17181test -z "$ac_objext" && ac_objext=o 17182 17183func_cc_basename $compiler 17184cc_basename=$func_cc_basename_result 17185 17186 17187# Only perform the check for file, if the check method requires it 17188test -z "$MAGIC_CMD" && MAGIC_CMD=file 17189case $deplibs_check_method in 17190file_magic*) 17191 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 17192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 17193$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 17194if ${lt_cv_path_MAGIC_CMD+:} false; then : 17195 $as_echo_n "(cached) " >&6 17196else 17197 case $MAGIC_CMD in 17198[\\/*] | ?:[\\/]*) 17199 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 17200 ;; 17201*) 17202 lt_save_MAGIC_CMD=$MAGIC_CMD 17203 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 17204 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 17205 for ac_dir in $ac_dummy; do 17206 IFS=$lt_save_ifs 17207 test -z "$ac_dir" && ac_dir=. 17208 if test -f "$ac_dir/${ac_tool_prefix}file"; then 17209 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 17210 if test -n "$file_magic_test_file"; then 17211 case $deplibs_check_method in 17212 "file_magic "*) 17213 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 17214 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 17215 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 17216 $EGREP "$file_magic_regex" > /dev/null; then 17217 : 17218 else 17219 cat <<_LT_EOF 1>&2 17220 17221*** Warning: the command libtool uses to detect shared libraries, 17222*** $file_magic_cmd, produces output that libtool cannot recognize. 17223*** The result is that libtool may fail to recognize shared libraries 17224*** as such. This will affect the creation of libtool libraries that 17225*** depend on shared libraries, but programs linked with such libtool 17226*** libraries will work regardless of this problem. Nevertheless, you 17227*** may want to report the problem to your system manager and/or to 17228*** bug-libtool@gnu.org 17229 17230_LT_EOF 17231 fi ;; 17232 esac 17233 fi 17234 break 17235 fi 17236 done 17237 IFS=$lt_save_ifs 17238 MAGIC_CMD=$lt_save_MAGIC_CMD 17239 ;; 17240esac 17241fi 17242 17243MAGIC_CMD=$lt_cv_path_MAGIC_CMD 17244if test -n "$MAGIC_CMD"; then 17245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 17246$as_echo "$MAGIC_CMD" >&6; } 17247else 17248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17249$as_echo "no" >&6; } 17250fi 17251 17252 17253 17254 17255 17256if test -z "$lt_cv_path_MAGIC_CMD"; then 17257 if test -n "$ac_tool_prefix"; then 17258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 17259$as_echo_n "checking for file... " >&6; } 17260if ${lt_cv_path_MAGIC_CMD+:} false; then : 17261 $as_echo_n "(cached) " >&6 17262else 17263 case $MAGIC_CMD in 17264[\\/*] | ?:[\\/]*) 17265 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 17266 ;; 17267*) 17268 lt_save_MAGIC_CMD=$MAGIC_CMD 17269 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 17270 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 17271 for ac_dir in $ac_dummy; do 17272 IFS=$lt_save_ifs 17273 test -z "$ac_dir" && ac_dir=. 17274 if test -f "$ac_dir/file"; then 17275 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 17276 if test -n "$file_magic_test_file"; then 17277 case $deplibs_check_method in 17278 "file_magic "*) 17279 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 17280 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 17281 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 17282 $EGREP "$file_magic_regex" > /dev/null; then 17283 : 17284 else 17285 cat <<_LT_EOF 1>&2 17286 17287*** Warning: the command libtool uses to detect shared libraries, 17288*** $file_magic_cmd, produces output that libtool cannot recognize. 17289*** The result is that libtool may fail to recognize shared libraries 17290*** as such. This will affect the creation of libtool libraries that 17291*** depend on shared libraries, but programs linked with such libtool 17292*** libraries will work regardless of this problem. Nevertheless, you 17293*** may want to report the problem to your system manager and/or to 17294*** bug-libtool@gnu.org 17295 17296_LT_EOF 17297 fi ;; 17298 esac 17299 fi 17300 break 17301 fi 17302 done 17303 IFS=$lt_save_ifs 17304 MAGIC_CMD=$lt_save_MAGIC_CMD 17305 ;; 17306esac 17307fi 17308 17309MAGIC_CMD=$lt_cv_path_MAGIC_CMD 17310if test -n "$MAGIC_CMD"; then 17311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 17312$as_echo "$MAGIC_CMD" >&6; } 17313else 17314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17315$as_echo "no" >&6; } 17316fi 17317 17318 17319 else 17320 MAGIC_CMD=: 17321 fi 17322fi 17323 17324 fi 17325 ;; 17326esac 17327 17328# Use C for the default configuration in the libtool script 17329 17330lt_save_CC=$CC 17331ac_ext=c 17332ac_cpp='$CPP $CPPFLAGS' 17333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17335ac_compiler_gnu=$ac_cv_c_compiler_gnu 17336 17337 17338# Source file extension for C test sources. 17339ac_ext=c 17340 17341# Object file extension for compiled C test sources. 17342objext=o 17343objext=$objext 17344 17345# Code to be used in simple compile tests 17346lt_simple_compile_test_code="int some_variable = 0;" 17347 17348# Code to be used in simple link tests 17349lt_simple_link_test_code='int main(){return(0);}' 17350 17351 17352 17353 17354 17355 17356 17357# If no C compiler was specified, use CC. 17358LTCC=${LTCC-"$CC"} 17359 17360# If no C compiler flags were specified, use CFLAGS. 17361LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 17362 17363# Allow CC to be a program name with arguments. 17364compiler=$CC 17365 17366# Save the default compiler, since it gets overwritten when the other 17367# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 17368compiler_DEFAULT=$CC 17369 17370# save warnings/boilerplate of simple test code 17371ac_outfile=conftest.$ac_objext 17372echo "$lt_simple_compile_test_code" >conftest.$ac_ext 17373eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17374_lt_compiler_boilerplate=`cat conftest.err` 17375$RM conftest* 17376 17377ac_outfile=conftest.$ac_objext 17378echo "$lt_simple_link_test_code" >conftest.$ac_ext 17379eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17380_lt_linker_boilerplate=`cat conftest.err` 17381$RM -r conftest* 17382 17383 17384## CAVEAT EMPTOR: 17385## There is no encapsulation within the following macros, do not change 17386## the running order or otherwise move them around unless you know exactly 17387## what you are doing... 17388if test -n "$compiler"; then 17389 17390lt_prog_compiler_no_builtin_flag= 17391 17392if test yes = "$GCC"; then 17393 case $cc_basename in 17394 nvcc*) 17395 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 17396 *) 17397 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 17398 esac 17399 17400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 17401$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 17402if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 17403 $as_echo_n "(cached) " >&6 17404else 17405 lt_cv_prog_compiler_rtti_exceptions=no 17406 ac_outfile=conftest.$ac_objext 17407 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17408 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 17409 # Insert the option either (1) after the last *FLAGS variable, or 17410 # (2) before a word containing "conftest.", or (3) at the end. 17411 # Note that $ac_compile itself does not contain backslashes and begins 17412 # with a dollar sign (not a hyphen), so the echo should work correctly. 17413 # The option is referenced via a variable to avoid confusing sed. 17414 lt_compile=`echo "$ac_compile" | $SED \ 17415 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17416 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17417 -e 's:$: $lt_compiler_flag:'` 17418 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17419 (eval "$lt_compile" 2>conftest.err) 17420 ac_status=$? 17421 cat conftest.err >&5 17422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17423 if (exit $ac_status) && test -s "$ac_outfile"; then 17424 # The compiler can only warn and ignore the option if not recognized 17425 # So say no if there are warnings other than the usual output. 17426 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 17427 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17428 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17429 lt_cv_prog_compiler_rtti_exceptions=yes 17430 fi 17431 fi 17432 $RM conftest* 17433 17434fi 17435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 17436$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 17437 17438if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 17439 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 17440else 17441 : 17442fi 17443 17444fi 17445 17446 17447 17448 17449 17450 17451 lt_prog_compiler_wl= 17452lt_prog_compiler_pic= 17453lt_prog_compiler_static= 17454 17455 17456 if test yes = "$GCC"; then 17457 lt_prog_compiler_wl='-Wl,' 17458 lt_prog_compiler_static='-static' 17459 17460 case $host_os in 17461 aix*) 17462 # All AIX code is PIC. 17463 if test ia64 = "$host_cpu"; then 17464 # AIX 5 now supports IA64 processor 17465 lt_prog_compiler_static='-Bstatic' 17466 fi 17467 lt_prog_compiler_pic='-fPIC' 17468 ;; 17469 17470 amigaos*) 17471 case $host_cpu in 17472 powerpc) 17473 # see comment about AmigaOS4 .so support 17474 lt_prog_compiler_pic='-fPIC' 17475 ;; 17476 m68k) 17477 # FIXME: we need at least 68020 code to build shared libraries, but 17478 # adding the '-m68020' flag to GCC prevents building anything better, 17479 # like '-m68040'. 17480 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 17481 ;; 17482 esac 17483 ;; 17484 17485 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 17486 # PIC is the default for these OSes. 17487 ;; 17488 17489 mingw* | cygwin* | pw32* | os2* | cegcc*) 17490 # This hack is so that the source file can tell whether it is being 17491 # built for inclusion in a dll (and should export symbols for example). 17492 # Although the cygwin gcc ignores -fPIC, still need this for old-style 17493 # (--disable-auto-import) libraries 17494 lt_prog_compiler_pic='-DDLL_EXPORT' 17495 case $host_os in 17496 os2*) 17497 lt_prog_compiler_static='$wl-static' 17498 ;; 17499 esac 17500 ;; 17501 17502 darwin* | rhapsody*) 17503 # PIC is the default on this platform 17504 # Common symbols not allowed in MH_DYLIB files 17505 lt_prog_compiler_pic='-fno-common' 17506 ;; 17507 17508 haiku*) 17509 # PIC is the default for Haiku. 17510 # The "-static" flag exists, but is broken. 17511 lt_prog_compiler_static= 17512 ;; 17513 17514 hpux*) 17515 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 17516 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 17517 # sets the default TLS model and affects inlining. 17518 case $host_cpu in 17519 hppa*64*) 17520 # +Z the default 17521 ;; 17522 *) 17523 lt_prog_compiler_pic='-fPIC' 17524 ;; 17525 esac 17526 ;; 17527 17528 interix[3-9]*) 17529 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 17530 # Instead, we relocate shared libraries at runtime. 17531 ;; 17532 17533 msdosdjgpp*) 17534 # Just because we use GCC doesn't mean we suddenly get shared libraries 17535 # on systems that don't support them. 17536 lt_prog_compiler_can_build_shared=no 17537 enable_shared=no 17538 ;; 17539 17540 *nto* | *qnx*) 17541 # QNX uses GNU C++, but need to define -shared option too, otherwise 17542 # it will coredump. 17543 lt_prog_compiler_pic='-fPIC -shared' 17544 ;; 17545 17546 sysv4*MP*) 17547 if test -d /usr/nec; then 17548 lt_prog_compiler_pic=-Kconform_pic 17549 fi 17550 ;; 17551 17552 *) 17553 lt_prog_compiler_pic='-fPIC' 17554 ;; 17555 esac 17556 17557 case $cc_basename in 17558 nvcc*) # Cuda Compiler Driver 2.2 17559 lt_prog_compiler_wl='-Xlinker ' 17560 if test -n "$lt_prog_compiler_pic"; then 17561 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 17562 fi 17563 ;; 17564 esac 17565 else 17566 # PORTME Check for flag to pass linker flags through the system compiler. 17567 case $host_os in 17568 aix*) 17569 lt_prog_compiler_wl='-Wl,' 17570 if test ia64 = "$host_cpu"; then 17571 # AIX 5 now supports IA64 processor 17572 lt_prog_compiler_static='-Bstatic' 17573 else 17574 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 17575 fi 17576 ;; 17577 17578 darwin* | rhapsody*) 17579 # PIC is the default on this platform 17580 # Common symbols not allowed in MH_DYLIB files 17581 lt_prog_compiler_pic='-fno-common' 17582 case $cc_basename in 17583 nagfor*) 17584 # NAG Fortran compiler 17585 lt_prog_compiler_wl='-Wl,-Wl,,' 17586 lt_prog_compiler_pic='-PIC' 17587 lt_prog_compiler_static='-Bstatic' 17588 ;; 17589 esac 17590 ;; 17591 17592 mingw* | cygwin* | pw32* | os2* | cegcc*) 17593 # This hack is so that the source file can tell whether it is being 17594 # built for inclusion in a dll (and should export symbols for example). 17595 lt_prog_compiler_pic='-DDLL_EXPORT' 17596 case $host_os in 17597 os2*) 17598 lt_prog_compiler_static='$wl-static' 17599 ;; 17600 esac 17601 ;; 17602 17603 hpux9* | hpux10* | hpux11*) 17604 lt_prog_compiler_wl='-Wl,' 17605 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17606 # not for PA HP-UX. 17607 case $host_cpu in 17608 hppa*64*|ia64*) 17609 # +Z the default 17610 ;; 17611 *) 17612 lt_prog_compiler_pic='+Z' 17613 ;; 17614 esac 17615 # Is there a better lt_prog_compiler_static that works with the bundled CC? 17616 lt_prog_compiler_static='$wl-a ${wl}archive' 17617 ;; 17618 17619 irix5* | irix6* | nonstopux*) 17620 lt_prog_compiler_wl='-Wl,' 17621 # PIC (with -KPIC) is the default. 17622 lt_prog_compiler_static='-non_shared' 17623 ;; 17624 17625 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17626 case $cc_basename in 17627 # old Intel for x86_64, which still supported -KPIC. 17628 ecc*) 17629 lt_prog_compiler_wl='-Wl,' 17630 lt_prog_compiler_pic='-KPIC' 17631 lt_prog_compiler_static='-static' 17632 ;; 17633 # icc used to be incompatible with GCC. 17634 # ICC 10 doesn't accept -KPIC any more. 17635 icc* | ifort*) 17636 lt_prog_compiler_wl='-Wl,' 17637 lt_prog_compiler_pic='-fPIC' 17638 lt_prog_compiler_static='-static' 17639 ;; 17640 # Lahey Fortran 8.1. 17641 lf95*) 17642 lt_prog_compiler_wl='-Wl,' 17643 lt_prog_compiler_pic='--shared' 17644 lt_prog_compiler_static='--static' 17645 ;; 17646 nagfor*) 17647 # NAG Fortran compiler 17648 lt_prog_compiler_wl='-Wl,-Wl,,' 17649 lt_prog_compiler_pic='-PIC' 17650 lt_prog_compiler_static='-Bstatic' 17651 ;; 17652 tcc*) 17653 # Fabrice Bellard et al's Tiny C Compiler 17654 lt_prog_compiler_wl='-Wl,' 17655 lt_prog_compiler_pic='-fPIC' 17656 lt_prog_compiler_static='-static' 17657 ;; 17658 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 17659 # Portland Group compilers (*not* the Pentium gcc compiler, 17660 # which looks to be a dead project) 17661 lt_prog_compiler_wl='-Wl,' 17662 lt_prog_compiler_pic='-fpic' 17663 lt_prog_compiler_static='-Bstatic' 17664 ;; 17665 ccc*) 17666 lt_prog_compiler_wl='-Wl,' 17667 # All Alpha code is PIC. 17668 lt_prog_compiler_static='-non_shared' 17669 ;; 17670 xl* | bgxl* | bgf* | mpixl*) 17671 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 17672 lt_prog_compiler_wl='-Wl,' 17673 lt_prog_compiler_pic='-qpic' 17674 lt_prog_compiler_static='-qstaticlink' 17675 ;; 17676 *) 17677 case `$CC -V 2>&1 | sed 5q` in 17678 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 17679 # Sun Fortran 8.3 passes all unrecognized flags to the linker 17680 lt_prog_compiler_pic='-KPIC' 17681 lt_prog_compiler_static='-Bstatic' 17682 lt_prog_compiler_wl='' 17683 ;; 17684 *Sun\ F* | *Sun*Fortran*) 17685 lt_prog_compiler_pic='-KPIC' 17686 lt_prog_compiler_static='-Bstatic' 17687 lt_prog_compiler_wl='-Qoption ld ' 17688 ;; 17689 *Sun\ C*) 17690 # Sun C 5.9 17691 lt_prog_compiler_pic='-KPIC' 17692 lt_prog_compiler_static='-Bstatic' 17693 lt_prog_compiler_wl='-Wl,' 17694 ;; 17695 *Intel*\ [CF]*Compiler*) 17696 lt_prog_compiler_wl='-Wl,' 17697 lt_prog_compiler_pic='-fPIC' 17698 lt_prog_compiler_static='-static' 17699 ;; 17700 *Portland\ Group*) 17701 lt_prog_compiler_wl='-Wl,' 17702 lt_prog_compiler_pic='-fpic' 17703 lt_prog_compiler_static='-Bstatic' 17704 ;; 17705 esac 17706 ;; 17707 esac 17708 ;; 17709 17710 newsos6) 17711 lt_prog_compiler_pic='-KPIC' 17712 lt_prog_compiler_static='-Bstatic' 17713 ;; 17714 17715 *nto* | *qnx*) 17716 # QNX uses GNU C++, but need to define -shared option too, otherwise 17717 # it will coredump. 17718 lt_prog_compiler_pic='-fPIC -shared' 17719 ;; 17720 17721 osf3* | osf4* | osf5*) 17722 lt_prog_compiler_wl='-Wl,' 17723 # All OSF/1 code is PIC. 17724 lt_prog_compiler_static='-non_shared' 17725 ;; 17726 17727 rdos*) 17728 lt_prog_compiler_static='-non_shared' 17729 ;; 17730 17731 solaris*) 17732 lt_prog_compiler_pic='-KPIC' 17733 lt_prog_compiler_static='-Bstatic' 17734 case $cc_basename in 17735 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 17736 lt_prog_compiler_wl='-Qoption ld ';; 17737 *) 17738 lt_prog_compiler_wl='-Wl,';; 17739 esac 17740 ;; 17741 17742 sunos4*) 17743 lt_prog_compiler_wl='-Qoption ld ' 17744 lt_prog_compiler_pic='-PIC' 17745 lt_prog_compiler_static='-Bstatic' 17746 ;; 17747 17748 sysv4 | sysv4.2uw2* | sysv4.3*) 17749 lt_prog_compiler_wl='-Wl,' 17750 lt_prog_compiler_pic='-KPIC' 17751 lt_prog_compiler_static='-Bstatic' 17752 ;; 17753 17754 sysv4*MP*) 17755 if test -d /usr/nec; then 17756 lt_prog_compiler_pic='-Kconform_pic' 17757 lt_prog_compiler_static='-Bstatic' 17758 fi 17759 ;; 17760 17761 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17762 lt_prog_compiler_wl='-Wl,' 17763 lt_prog_compiler_pic='-KPIC' 17764 lt_prog_compiler_static='-Bstatic' 17765 ;; 17766 17767 unicos*) 17768 lt_prog_compiler_wl='-Wl,' 17769 lt_prog_compiler_can_build_shared=no 17770 ;; 17771 17772 uts4*) 17773 lt_prog_compiler_pic='-pic' 17774 lt_prog_compiler_static='-Bstatic' 17775 ;; 17776 17777 *) 17778 lt_prog_compiler_can_build_shared=no 17779 ;; 17780 esac 17781 fi 17782 17783case $host_os in 17784 # For platforms that do not support PIC, -DPIC is meaningless: 17785 *djgpp*) 17786 lt_prog_compiler_pic= 17787 ;; 17788 *) 17789 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 17790 ;; 17791esac 17792 17793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 17794$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 17795if ${lt_cv_prog_compiler_pic+:} false; then : 17796 $as_echo_n "(cached) " >&6 17797else 17798 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 17799fi 17800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 17801$as_echo "$lt_cv_prog_compiler_pic" >&6; } 17802lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 17803 17804# 17805# Check to make sure the PIC flag actually works. 17806# 17807if test -n "$lt_prog_compiler_pic"; then 17808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 17809$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 17810if ${lt_cv_prog_compiler_pic_works+:} false; then : 17811 $as_echo_n "(cached) " >&6 17812else 17813 lt_cv_prog_compiler_pic_works=no 17814 ac_outfile=conftest.$ac_objext 17815 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17816 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 17817 # Insert the option either (1) after the last *FLAGS variable, or 17818 # (2) before a word containing "conftest.", or (3) at the end. 17819 # Note that $ac_compile itself does not contain backslashes and begins 17820 # with a dollar sign (not a hyphen), so the echo should work correctly. 17821 # The option is referenced via a variable to avoid confusing sed. 17822 lt_compile=`echo "$ac_compile" | $SED \ 17823 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17824 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17825 -e 's:$: $lt_compiler_flag:'` 17826 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17827 (eval "$lt_compile" 2>conftest.err) 17828 ac_status=$? 17829 cat conftest.err >&5 17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17831 if (exit $ac_status) && test -s "$ac_outfile"; then 17832 # The compiler can only warn and ignore the option if not recognized 17833 # So say no if there are warnings other than the usual output. 17834 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 17835 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17836 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17837 lt_cv_prog_compiler_pic_works=yes 17838 fi 17839 fi 17840 $RM conftest* 17841 17842fi 17843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 17844$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 17845 17846if test yes = "$lt_cv_prog_compiler_pic_works"; then 17847 case $lt_prog_compiler_pic in 17848 "" | " "*) ;; 17849 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 17850 esac 17851else 17852 lt_prog_compiler_pic= 17853 lt_prog_compiler_can_build_shared=no 17854fi 17855 17856fi 17857 17858 17859 17860 17861 17862 17863 17864 17865 17866 17867 17868# 17869# Check to make sure the static flag actually works. 17870# 17871wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 17872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17873$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 17874if ${lt_cv_prog_compiler_static_works+:} false; then : 17875 $as_echo_n "(cached) " >&6 17876else 17877 lt_cv_prog_compiler_static_works=no 17878 save_LDFLAGS=$LDFLAGS 17879 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17880 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17881 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17882 # The linker can only warn and ignore the option if not recognized 17883 # So say no if there are warnings 17884 if test -s conftest.err; then 17885 # Append any errors to the config.log. 17886 cat conftest.err 1>&5 17887 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17888 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17889 if diff conftest.exp conftest.er2 >/dev/null; then 17890 lt_cv_prog_compiler_static_works=yes 17891 fi 17892 else 17893 lt_cv_prog_compiler_static_works=yes 17894 fi 17895 fi 17896 $RM -r conftest* 17897 LDFLAGS=$save_LDFLAGS 17898 17899fi 17900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 17901$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 17902 17903if test yes = "$lt_cv_prog_compiler_static_works"; then 17904 : 17905else 17906 lt_prog_compiler_static= 17907fi 17908 17909 17910 17911 17912 17913 17914 17915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 17916$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17917if ${lt_cv_prog_compiler_c_o+:} false; then : 17918 $as_echo_n "(cached) " >&6 17919else 17920 lt_cv_prog_compiler_c_o=no 17921 $RM -r conftest 2>/dev/null 17922 mkdir conftest 17923 cd conftest 17924 mkdir out 17925 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17926 17927 lt_compiler_flag="-o out/conftest2.$ac_objext" 17928 # Insert the option either (1) after the last *FLAGS variable, or 17929 # (2) before a word containing "conftest.", or (3) at the end. 17930 # Note that $ac_compile itself does not contain backslashes and begins 17931 # with a dollar sign (not a hyphen), so the echo should work correctly. 17932 lt_compile=`echo "$ac_compile" | $SED \ 17933 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17934 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17935 -e 's:$: $lt_compiler_flag:'` 17936 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17937 (eval "$lt_compile" 2>out/conftest.err) 17938 ac_status=$? 17939 cat out/conftest.err >&5 17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17941 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17942 then 17943 # The compiler can only warn and ignore the option if not recognized 17944 # So say no if there are warnings 17945 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 17946 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17947 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17948 lt_cv_prog_compiler_c_o=yes 17949 fi 17950 fi 17951 chmod u+w . 2>&5 17952 $RM conftest* 17953 # SGI C++ compiler will create directory out/ii_files/ for 17954 # template instantiation 17955 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 17956 $RM out/* && rmdir out 17957 cd .. 17958 $RM -r conftest 17959 $RM conftest* 17960 17961fi 17962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 17963$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 17964 17965 17966 17967 17968 17969 17970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 17971$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17972if ${lt_cv_prog_compiler_c_o+:} false; then : 17973 $as_echo_n "(cached) " >&6 17974else 17975 lt_cv_prog_compiler_c_o=no 17976 $RM -r conftest 2>/dev/null 17977 mkdir conftest 17978 cd conftest 17979 mkdir out 17980 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17981 17982 lt_compiler_flag="-o out/conftest2.$ac_objext" 17983 # Insert the option either (1) after the last *FLAGS variable, or 17984 # (2) before a word containing "conftest.", or (3) at the end. 17985 # Note that $ac_compile itself does not contain backslashes and begins 17986 # with a dollar sign (not a hyphen), so the echo should work correctly. 17987 lt_compile=`echo "$ac_compile" | $SED \ 17988 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17989 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17990 -e 's:$: $lt_compiler_flag:'` 17991 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17992 (eval "$lt_compile" 2>out/conftest.err) 17993 ac_status=$? 17994 cat out/conftest.err >&5 17995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17996 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17997 then 17998 # The compiler can only warn and ignore the option if not recognized 17999 # So say no if there are warnings 18000 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 18001 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 18002 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 18003 lt_cv_prog_compiler_c_o=yes 18004 fi 18005 fi 18006 chmod u+w . 2>&5 18007 $RM conftest* 18008 # SGI C++ compiler will create directory out/ii_files/ for 18009 # template instantiation 18010 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 18011 $RM out/* && rmdir out 18012 cd .. 18013 $RM -r conftest 18014 $RM conftest* 18015 18016fi 18017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 18018$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 18019 18020 18021 18022 18023hard_links=nottested 18024if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 18025 # do not overwrite the value of need_locks provided by the user 18026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 18027$as_echo_n "checking if we can lock with hard links... " >&6; } 18028 hard_links=yes 18029 $RM conftest* 18030 ln conftest.a conftest.b 2>/dev/null && hard_links=no 18031 touch conftest.a 18032 ln conftest.a conftest.b 2>&5 || hard_links=no 18033 ln conftest.a conftest.b 2>/dev/null && hard_links=no 18034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 18035$as_echo "$hard_links" >&6; } 18036 if test no = "$hard_links"; then 18037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 18038$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 18039 need_locks=warn 18040 fi 18041else 18042 need_locks=no 18043fi 18044 18045 18046 18047 18048 18049 18050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 18051$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 18052 18053 runpath_var= 18054 allow_undefined_flag= 18055 always_export_symbols=no 18056 archive_cmds= 18057 archive_expsym_cmds= 18058 compiler_needs_object=no 18059 enable_shared_with_static_runtimes=no 18060 export_dynamic_flag_spec= 18061 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 18062 hardcode_automatic=no 18063 hardcode_direct=no 18064 hardcode_direct_absolute=no 18065 hardcode_libdir_flag_spec= 18066 hardcode_libdir_separator= 18067 hardcode_minus_L=no 18068 hardcode_shlibpath_var=unsupported 18069 inherit_rpath=no 18070 link_all_deplibs=unknown 18071 module_cmds= 18072 module_expsym_cmds= 18073 old_archive_from_new_cmds= 18074 old_archive_from_expsyms_cmds= 18075 thread_safe_flag_spec= 18076 whole_archive_flag_spec= 18077 # include_expsyms should be a list of space-separated symbols to be *always* 18078 # included in the symbol list 18079 include_expsyms= 18080 # exclude_expsyms can be an extended regexp of symbols to exclude 18081 # it will be wrapped by ' (' and ')$', so one must not match beginning or 18082 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 18083 # as well as any symbol that contains 'd'. 18084 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 18085 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 18086 # platforms (ab)use it in PIC code, but their linkers get confused if 18087 # the symbol is explicitly referenced. Since portable code cannot 18088 # rely on this symbol name, it's probably fine to never include it in 18089 # preloaded symbol tables. 18090 # Exclude shared library initialization/finalization symbols. 18091 extract_expsyms_cmds= 18092 18093 case $host_os in 18094 cygwin* | mingw* | pw32* | cegcc*) 18095 # FIXME: the MSVC++ port hasn't been tested in a loooong time 18096 # When not using gcc, we currently assume that we are using 18097 # Microsoft Visual C++. 18098 if test yes != "$GCC"; then 18099 with_gnu_ld=no 18100 fi 18101 ;; 18102 interix*) 18103 # we just hope/assume this is gcc and not c89 (= MSVC++) 18104 with_gnu_ld=yes 18105 ;; 18106 openbsd* | bitrig*) 18107 with_gnu_ld=no 18108 ;; 18109 esac 18110 18111 ld_shlibs=yes 18112 18113 # On some targets, GNU ld is compatible enough with the native linker 18114 # that we're better off using the native interface for both. 18115 lt_use_gnu_ld_interface=no 18116 if test yes = "$with_gnu_ld"; then 18117 case $host_os in 18118 aix*) 18119 # The AIX port of GNU ld has always aspired to compatibility 18120 # with the native linker. However, as the warning in the GNU ld 18121 # block says, versions before 2.19.5* couldn't really create working 18122 # shared libraries, regardless of the interface used. 18123 case `$LD -v 2>&1` in 18124 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 18125 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 18126 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 18127 *) 18128 lt_use_gnu_ld_interface=yes 18129 ;; 18130 esac 18131 ;; 18132 *) 18133 lt_use_gnu_ld_interface=yes 18134 ;; 18135 esac 18136 fi 18137 18138 if test yes = "$lt_use_gnu_ld_interface"; then 18139 # If archive_cmds runs LD, not CC, wlarc should be empty 18140 wlarc='$wl' 18141 18142 # Set some defaults for GNU ld with shared library support. These 18143 # are reset later if shared libraries are not supported. Putting them 18144 # here allows them to be overridden if necessary. 18145 runpath_var=LD_RUN_PATH 18146 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 18147 export_dynamic_flag_spec='$wl--export-dynamic' 18148 # ancient GNU ld didn't support --whole-archive et. al. 18149 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 18150 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 18151 else 18152 whole_archive_flag_spec= 18153 fi 18154 supports_anon_versioning=no 18155 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 18156 *GNU\ gold*) supports_anon_versioning=yes ;; 18157 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 18158 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 18159 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 18160 *\ 2.11.*) ;; # other 2.11 versions 18161 *) supports_anon_versioning=yes ;; 18162 esac 18163 18164 # See if GNU ld supports shared libraries. 18165 case $host_os in 18166 aix[3-9]*) 18167 # On AIX/PPC, the GNU linker is very broken 18168 if test ia64 != "$host_cpu"; then 18169 ld_shlibs=no 18170 cat <<_LT_EOF 1>&2 18171 18172*** Warning: the GNU linker, at least up to release 2.19, is reported 18173*** to be unable to reliably create shared libraries on AIX. 18174*** Therefore, libtool is disabling shared libraries support. If you 18175*** really care for shared libraries, you may want to install binutils 18176*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 18177*** You will then need to restart the configuration process. 18178 18179_LT_EOF 18180 fi 18181 ;; 18182 18183 amigaos*) 18184 case $host_cpu in 18185 powerpc) 18186 # see comment about AmigaOS4 .so support 18187 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 18188 archive_expsym_cmds='' 18189 ;; 18190 m68k) 18191 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)' 18192 hardcode_libdir_flag_spec='-L$libdir' 18193 hardcode_minus_L=yes 18194 ;; 18195 esac 18196 ;; 18197 18198 beos*) 18199 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 18200 allow_undefined_flag=unsupported 18201 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 18202 # support --undefined. This deserves some investigation. FIXME 18203 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 18204 else 18205 ld_shlibs=no 18206 fi 18207 ;; 18208 18209 cygwin* | mingw* | pw32* | cegcc*) 18210 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 18211 # as there is no search path for DLLs. 18212 hardcode_libdir_flag_spec='-L$libdir' 18213 export_dynamic_flag_spec='$wl--export-all-symbols' 18214 allow_undefined_flag=unsupported 18215 always_export_symbols=no 18216 enable_shared_with_static_runtimes=yes 18217 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' 18218 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 18219 18220 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 18221 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 18222 # If the export-symbols file already is a .def file, use it as 18223 # is; otherwise, prepend EXPORTS... 18224 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 18225 cp $export_symbols $output_objdir/$soname.def; 18226 else 18227 echo EXPORTS > $output_objdir/$soname.def; 18228 cat $export_symbols >> $output_objdir/$soname.def; 18229 fi~ 18230 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 18231 else 18232 ld_shlibs=no 18233 fi 18234 ;; 18235 18236 haiku*) 18237 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 18238 link_all_deplibs=yes 18239 ;; 18240 18241 os2*) 18242 hardcode_libdir_flag_spec='-L$libdir' 18243 hardcode_minus_L=yes 18244 allow_undefined_flag=unsupported 18245 shrext_cmds=.dll 18246 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 18247 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 18248 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 18249 $ECHO EXPORTS >> $output_objdir/$libname.def~ 18250 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 18251 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 18252 emximp -o $lib $output_objdir/$libname.def' 18253 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 18254 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 18255 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 18256 $ECHO EXPORTS >> $output_objdir/$libname.def~ 18257 prefix_cmds="$SED"~ 18258 if test EXPORTS = "`$SED 1q $export_symbols`"; then 18259 prefix_cmds="$prefix_cmds -e 1d"; 18260 fi~ 18261 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 18262 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 18263 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 18264 emximp -o $lib $output_objdir/$libname.def' 18265 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 18266 enable_shared_with_static_runtimes=yes 18267 ;; 18268 18269 interix[3-9]*) 18270 hardcode_direct=no 18271 hardcode_shlibpath_var=no 18272 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 18273 export_dynamic_flag_spec='$wl-E' 18274 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 18275 # Instead, shared libraries are loaded at an image base (0x10000000 by 18276 # default) and relocated if they conflict, which is a slow very memory 18277 # consuming and fragmenting process. To avoid this, we pick a random, 18278 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 18279 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 18280 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 18281 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' 18282 ;; 18283 18284 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 18285 tmp_diet=no 18286 if test linux-dietlibc = "$host_os"; then 18287 case $cc_basename in 18288 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 18289 esac 18290 fi 18291 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 18292 && test no = "$tmp_diet" 18293 then 18294 tmp_addflag=' $pic_flag' 18295 tmp_sharedflag='-shared' 18296 case $cc_basename,$host_cpu in 18297 pgcc*) # Portland Group C compiler 18298 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' 18299 tmp_addflag=' $pic_flag' 18300 ;; 18301 pgf77* | pgf90* | pgf95* | pgfortran*) 18302 # Portland Group f77 and f90 compilers 18303 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' 18304 tmp_addflag=' $pic_flag -Mnomain' ;; 18305 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 18306 tmp_addflag=' -i_dynamic' ;; 18307 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 18308 tmp_addflag=' -i_dynamic -nofor_main' ;; 18309 ifc* | ifort*) # Intel Fortran compiler 18310 tmp_addflag=' -nofor_main' ;; 18311 lf95*) # Lahey Fortran 8.1 18312 whole_archive_flag_spec= 18313 tmp_sharedflag='--shared' ;; 18314 nagfor*) # NAGFOR 5.3 18315 tmp_sharedflag='-Wl,-shared' ;; 18316 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 18317 tmp_sharedflag='-qmkshrobj' 18318 tmp_addflag= ;; 18319 nvcc*) # Cuda Compiler Driver 2.2 18320 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' 18321 compiler_needs_object=yes 18322 ;; 18323 esac 18324 case `$CC -V 2>&1 | sed 5q` in 18325 *Sun\ C*) # Sun C 5.9 18326 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' 18327 compiler_needs_object=yes 18328 tmp_sharedflag='-G' ;; 18329 *Sun\ F*) # Sun Fortran 8.3 18330 tmp_sharedflag='-G' ;; 18331 esac 18332 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 18333 18334 if test yes = "$supports_anon_versioning"; then 18335 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 18336 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 18337 echo "local: *; };" >> $output_objdir/$libname.ver~ 18338 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 18339 fi 18340 18341 case $cc_basename in 18342 tcc*) 18343 export_dynamic_flag_spec='-rdynamic' 18344 ;; 18345 xlf* | bgf* | bgxlf* | mpixlf*) 18346 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 18347 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 18348 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 18349 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 18350 if test yes = "$supports_anon_versioning"; then 18351 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 18352 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 18353 echo "local: *; };" >> $output_objdir/$libname.ver~ 18354 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 18355 fi 18356 ;; 18357 esac 18358 else 18359 ld_shlibs=no 18360 fi 18361 ;; 18362 18363 netbsd*) 18364 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18365 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 18366 wlarc= 18367 else 18368 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 18369 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 18370 fi 18371 ;; 18372 18373 solaris*) 18374 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 18375 ld_shlibs=no 18376 cat <<_LT_EOF 1>&2 18377 18378*** Warning: The releases 2.8.* of the GNU linker cannot reliably 18379*** create shared libraries on Solaris systems. Therefore, libtool 18380*** is disabling shared libraries support. We urge you to upgrade GNU 18381*** binutils to release 2.9.1 or newer. Another option is to modify 18382*** your PATH or compiler configuration so that the native linker is 18383*** used, and then restart. 18384 18385_LT_EOF 18386 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 18387 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 18388 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 18389 else 18390 ld_shlibs=no 18391 fi 18392 ;; 18393 18394 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 18395 case `$LD -v 2>&1` in 18396 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 18397 ld_shlibs=no 18398 cat <<_LT_EOF 1>&2 18399 18400*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 18401*** reliably create shared libraries on SCO systems. Therefore, libtool 18402*** is disabling shared libraries support. We urge you to upgrade GNU 18403*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 18404*** your PATH or compiler configuration so that the native linker is 18405*** used, and then restart. 18406 18407_LT_EOF 18408 ;; 18409 *) 18410 # For security reasons, it is highly recommended that you always 18411 # use absolute paths for naming shared libraries, and exclude the 18412 # DT_RUNPATH tag from executables and libraries. But doing so 18413 # requires that you compile everything twice, which is a pain. 18414 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 18415 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 18416 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 18417 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 18418 else 18419 ld_shlibs=no 18420 fi 18421 ;; 18422 esac 18423 ;; 18424 18425 sunos4*) 18426 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18427 wlarc= 18428 hardcode_direct=yes 18429 hardcode_shlibpath_var=no 18430 ;; 18431 18432 *) 18433 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 18434 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 18435 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 18436 else 18437 ld_shlibs=no 18438 fi 18439 ;; 18440 esac 18441 18442 if test no = "$ld_shlibs"; then 18443 runpath_var= 18444 hardcode_libdir_flag_spec= 18445 export_dynamic_flag_spec= 18446 whole_archive_flag_spec= 18447 fi 18448 else 18449 # PORTME fill in a description of your system's linker (not GNU ld) 18450 case $host_os in 18451 aix3*) 18452 allow_undefined_flag=unsupported 18453 always_export_symbols=yes 18454 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' 18455 # Note: this linker hardcodes the directories in LIBPATH if there 18456 # are no directories specified by -L. 18457 hardcode_minus_L=yes 18458 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 18459 # Neither direct hardcoding nor static linking is supported with a 18460 # broken collect2. 18461 hardcode_direct=unsupported 18462 fi 18463 ;; 18464 18465 aix[4-9]*) 18466 if test ia64 = "$host_cpu"; then 18467 # On IA64, the linker does run time linking by default, so we don't 18468 # have to do anything special. 18469 aix_use_runtimelinking=no 18470 exp_sym_flag='-Bexport' 18471 no_entry_flag= 18472 else 18473 # If we're using GNU nm, then we don't want the "-C" option. 18474 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 18475 # Without the "-l" option, or with the "-B" option, AIX nm treats 18476 # weak defined symbols like other global defined symbols, whereas 18477 # GNU nm marks them as "W". 18478 # While the 'weak' keyword is ignored in the Export File, we need 18479 # it in the Import File for the 'aix-soname' feature, so we have 18480 # to replace the "-B" option with "-P" for AIX nm. 18481 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 18482 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' 18483 else 18484 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 18485 fi 18486 aix_use_runtimelinking=no 18487 18488 # Test if we are trying to use run time linking or normal 18489 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 18490 # have runtime linking enabled, and use it for executables. 18491 # For shared libraries, we enable/disable runtime linking 18492 # depending on the kind of the shared library created - 18493 # when "with_aix_soname,aix_use_runtimelinking" is: 18494 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 18495 # "aix,yes" lib.so shared, rtl:yes, for executables 18496 # lib.a static archive 18497 # "both,no" lib.so.V(shr.o) shared, rtl:yes 18498 # lib.a(lib.so.V) shared, rtl:no, for executables 18499 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 18500 # lib.a(lib.so.V) shared, rtl:no 18501 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 18502 # lib.a static archive 18503 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 18504 for ld_flag in $LDFLAGS; do 18505 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 18506 aix_use_runtimelinking=yes 18507 break 18508 fi 18509 done 18510 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 18511 # With aix-soname=svr4, we create the lib.so.V shared archives only, 18512 # so we don't have lib.a shared libs to link our executables. 18513 # We have to force runtime linking in this case. 18514 aix_use_runtimelinking=yes 18515 LDFLAGS="$LDFLAGS -Wl,-brtl" 18516 fi 18517 ;; 18518 esac 18519 18520 exp_sym_flag='-bexport' 18521 no_entry_flag='-bnoentry' 18522 fi 18523 18524 # When large executables or shared objects are built, AIX ld can 18525 # have problems creating the table of contents. If linking a library 18526 # or program results in "error TOC overflow" add -mminimal-toc to 18527 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 18528 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 18529 18530 archive_cmds='' 18531 hardcode_direct=yes 18532 hardcode_direct_absolute=yes 18533 hardcode_libdir_separator=':' 18534 link_all_deplibs=yes 18535 file_list_spec='$wl-f,' 18536 case $with_aix_soname,$aix_use_runtimelinking in 18537 aix,*) ;; # traditional, no import file 18538 svr4,* | *,yes) # use import file 18539 # The Import File defines what to hardcode. 18540 hardcode_direct=no 18541 hardcode_direct_absolute=no 18542 ;; 18543 esac 18544 18545 if test yes = "$GCC"; then 18546 case $host_os in aix4.[012]|aix4.[012].*) 18547 # We only want to do this on AIX 4.2 and lower, the check 18548 # below for broken collect2 doesn't work under 4.3+ 18549 collect2name=`$CC -print-prog-name=collect2` 18550 if test -f "$collect2name" && 18551 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 18552 then 18553 # We have reworked collect2 18554 : 18555 else 18556 # We have old collect2 18557 hardcode_direct=unsupported 18558 # It fails to find uninstalled libraries when the uninstalled 18559 # path is not listed in the libpath. Setting hardcode_minus_L 18560 # to unsupported forces relinking 18561 hardcode_minus_L=yes 18562 hardcode_libdir_flag_spec='-L$libdir' 18563 hardcode_libdir_separator= 18564 fi 18565 ;; 18566 esac 18567 shared_flag='-shared' 18568 if test yes = "$aix_use_runtimelinking"; then 18569 shared_flag="$shared_flag "'$wl-G' 18570 fi 18571 # Need to ensure runtime linking is disabled for the traditional 18572 # shared library, or the linker may eventually find shared libraries 18573 # /with/ Import File - we do not want to mix them. 18574 shared_flag_aix='-shared' 18575 shared_flag_svr4='-shared $wl-G' 18576 else 18577 # not using gcc 18578 if test ia64 = "$host_cpu"; then 18579 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 18580 # chokes on -Wl,-G. The following line is correct: 18581 shared_flag='-G' 18582 else 18583 if test yes = "$aix_use_runtimelinking"; then 18584 shared_flag='$wl-G' 18585 else 18586 shared_flag='$wl-bM:SRE' 18587 fi 18588 shared_flag_aix='$wl-bM:SRE' 18589 shared_flag_svr4='$wl-G' 18590 fi 18591 fi 18592 18593 export_dynamic_flag_spec='$wl-bexpall' 18594 # It seems that -bexpall does not export symbols beginning with 18595 # underscore (_), so it is better to generate a list of symbols to export. 18596 always_export_symbols=yes 18597 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 18598 # Warning - without using the other runtime loading flags (-brtl), 18599 # -berok will link without error, but may produce a broken library. 18600 allow_undefined_flag='-berok' 18601 # Determine the default libpath from the value encoded in an 18602 # empty executable. 18603 if test set = "${lt_cv_aix_libpath+set}"; then 18604 aix_libpath=$lt_cv_aix_libpath 18605else 18606 if ${lt_cv_aix_libpath_+:} false; then : 18607 $as_echo_n "(cached) " >&6 18608else 18609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18610/* end confdefs.h. */ 18611 18612int 18613main () 18614{ 18615 18616 ; 18617 return 0; 18618} 18619_ACEOF 18620if ac_fn_c_try_link "$LINENO"; then : 18621 18622 lt_aix_libpath_sed=' 18623 /Import File Strings/,/^$/ { 18624 /^0/ { 18625 s/^0 *\([^ ]*\) *$/\1/ 18626 p 18627 } 18628 }' 18629 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18630 # Check for a 64-bit object if we didn't find anything. 18631 if test -z "$lt_cv_aix_libpath_"; then 18632 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18633 fi 18634fi 18635rm -f core conftest.err conftest.$ac_objext \ 18636 conftest$ac_exeext conftest.$ac_ext 18637 if test -z "$lt_cv_aix_libpath_"; then 18638 lt_cv_aix_libpath_=/usr/lib:/lib 18639 fi 18640 18641fi 18642 18643 aix_libpath=$lt_cv_aix_libpath_ 18644fi 18645 18646 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 18647 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 18648 else 18649 if test ia64 = "$host_cpu"; then 18650 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 18651 allow_undefined_flag="-z nodefs" 18652 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" 18653 else 18654 # Determine the default libpath from the value encoded in an 18655 # empty executable. 18656 if test set = "${lt_cv_aix_libpath+set}"; then 18657 aix_libpath=$lt_cv_aix_libpath 18658else 18659 if ${lt_cv_aix_libpath_+:} false; then : 18660 $as_echo_n "(cached) " >&6 18661else 18662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18663/* end confdefs.h. */ 18664 18665int 18666main () 18667{ 18668 18669 ; 18670 return 0; 18671} 18672_ACEOF 18673if ac_fn_c_try_link "$LINENO"; then : 18674 18675 lt_aix_libpath_sed=' 18676 /Import File Strings/,/^$/ { 18677 /^0/ { 18678 s/^0 *\([^ ]*\) *$/\1/ 18679 p 18680 } 18681 }' 18682 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18683 # Check for a 64-bit object if we didn't find anything. 18684 if test -z "$lt_cv_aix_libpath_"; then 18685 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18686 fi 18687fi 18688rm -f core conftest.err conftest.$ac_objext \ 18689 conftest$ac_exeext conftest.$ac_ext 18690 if test -z "$lt_cv_aix_libpath_"; then 18691 lt_cv_aix_libpath_=/usr/lib:/lib 18692 fi 18693 18694fi 18695 18696 aix_libpath=$lt_cv_aix_libpath_ 18697fi 18698 18699 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 18700 # Warning - without using the other run time loading flags, 18701 # -berok will link without error, but may produce a broken library. 18702 no_undefined_flag=' $wl-bernotok' 18703 allow_undefined_flag=' $wl-berok' 18704 if test yes = "$with_gnu_ld"; then 18705 # We only use this code for GNU lds that support --whole-archive. 18706 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 18707 else 18708 # Exported symbols can be pulled into shared objects from archives 18709 whole_archive_flag_spec='$convenience' 18710 fi 18711 archive_cmds_need_lc=yes 18712 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 18713 # -brtl affects multiple linker settings, -berok does not and is overridden later 18714 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 18715 if test svr4 != "$with_aix_soname"; then 18716 # This is similar to how AIX traditionally builds its shared libraries. 18717 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' 18718 fi 18719 if test aix != "$with_aix_soname"; then 18720 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' 18721 else 18722 # used by -dlpreopen to get the symbols 18723 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 18724 fi 18725 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 18726 fi 18727 fi 18728 ;; 18729 18730 amigaos*) 18731 case $host_cpu in 18732 powerpc) 18733 # see comment about AmigaOS4 .so support 18734 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 18735 archive_expsym_cmds='' 18736 ;; 18737 m68k) 18738 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)' 18739 hardcode_libdir_flag_spec='-L$libdir' 18740 hardcode_minus_L=yes 18741 ;; 18742 esac 18743 ;; 18744 18745 bsdi[45]*) 18746 export_dynamic_flag_spec=-rdynamic 18747 ;; 18748 18749 cygwin* | mingw* | pw32* | cegcc*) 18750 # When not using gcc, we currently assume that we are using 18751 # Microsoft Visual C++. 18752 # hardcode_libdir_flag_spec is actually meaningless, as there is 18753 # no search path for DLLs. 18754 case $cc_basename in 18755 cl*) 18756 # Native MSVC 18757 hardcode_libdir_flag_spec=' ' 18758 allow_undefined_flag=unsupported 18759 always_export_symbols=yes 18760 file_list_spec='@' 18761 # Tell ltmain to make .lib files, not .a files. 18762 libext=lib 18763 # Tell ltmain to make .dll files, not .so files. 18764 shrext_cmds=.dll 18765 # FIXME: Setting linknames here is a bad hack. 18766 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 18767 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 18768 cp "$export_symbols" "$output_objdir/$soname.def"; 18769 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 18770 else 18771 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 18772 fi~ 18773 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 18774 linknames=' 18775 # The linker will not automatically build a static lib if we build a DLL. 18776 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 18777 enable_shared_with_static_runtimes=yes 18778 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 18779 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 18780 # Don't use ranlib 18781 old_postinstall_cmds='chmod 644 $oldlib' 18782 postlink_cmds='lt_outputfile="@OUTPUT@"~ 18783 lt_tool_outputfile="@TOOL_OUTPUT@"~ 18784 case $lt_outputfile in 18785 *.exe|*.EXE) ;; 18786 *) 18787 lt_outputfile=$lt_outputfile.exe 18788 lt_tool_outputfile=$lt_tool_outputfile.exe 18789 ;; 18790 esac~ 18791 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 18792 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 18793 $RM "$lt_outputfile.manifest"; 18794 fi' 18795 ;; 18796 *) 18797 # Assume MSVC wrapper 18798 hardcode_libdir_flag_spec=' ' 18799 allow_undefined_flag=unsupported 18800 # Tell ltmain to make .lib files, not .a files. 18801 libext=lib 18802 # Tell ltmain to make .dll files, not .so files. 18803 shrext_cmds=.dll 18804 # FIXME: Setting linknames here is a bad hack. 18805 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 18806 # The linker will automatically build a .lib file if we build a DLL. 18807 old_archive_from_new_cmds='true' 18808 # FIXME: Should let the user specify the lib program. 18809 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 18810 enable_shared_with_static_runtimes=yes 18811 ;; 18812 esac 18813 ;; 18814 18815 darwin* | rhapsody*) 18816 18817 18818 archive_cmds_need_lc=no 18819 hardcode_direct=no 18820 hardcode_automatic=yes 18821 hardcode_shlibpath_var=unsupported 18822 if test yes = "$lt_cv_ld_force_load"; then 18823 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\"`' 18824 18825 else 18826 whole_archive_flag_spec='' 18827 fi 18828 link_all_deplibs=yes 18829 allow_undefined_flag=$_lt_dar_allow_undefined 18830 case $cc_basename in 18831 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 18832 *) _lt_dar_can_shared=$GCC ;; 18833 esac 18834 if test yes = "$_lt_dar_can_shared"; then 18835 output_verbose_link_cmd=func_echo_all 18836 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 18837 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 18838 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" 18839 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" 18840 18841 else 18842 ld_shlibs=no 18843 fi 18844 18845 ;; 18846 18847 dgux*) 18848 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18849 hardcode_libdir_flag_spec='-L$libdir' 18850 hardcode_shlibpath_var=no 18851 ;; 18852 18853 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 18854 # support. Future versions do this automatically, but an explicit c++rt0.o 18855 # does not break anything, and helps significantly (at the cost of a little 18856 # extra space). 18857 freebsd2.2*) 18858 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 18859 hardcode_libdir_flag_spec='-R$libdir' 18860 hardcode_direct=yes 18861 hardcode_shlibpath_var=no 18862 ;; 18863 18864 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 18865 freebsd2.*) 18866 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18867 hardcode_direct=yes 18868 hardcode_minus_L=yes 18869 hardcode_shlibpath_var=no 18870 ;; 18871 18872 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 18873 freebsd* | dragonfly*) 18874 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18875 hardcode_libdir_flag_spec='-R$libdir' 18876 hardcode_direct=yes 18877 hardcode_shlibpath_var=no 18878 ;; 18879 18880 hpux9*) 18881 if test yes = "$GCC"; then 18882 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' 18883 else 18884 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' 18885 fi 18886 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 18887 hardcode_libdir_separator=: 18888 hardcode_direct=yes 18889 18890 # hardcode_minus_L: Not really in the search PATH, 18891 # but as the default location of the library. 18892 hardcode_minus_L=yes 18893 export_dynamic_flag_spec='$wl-E' 18894 ;; 18895 18896 hpux10*) 18897 if test yes,no = "$GCC,$with_gnu_ld"; then 18898 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18899 else 18900 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18901 fi 18902 if test no = "$with_gnu_ld"; then 18903 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 18904 hardcode_libdir_separator=: 18905 hardcode_direct=yes 18906 hardcode_direct_absolute=yes 18907 export_dynamic_flag_spec='$wl-E' 18908 # hardcode_minus_L: Not really in the search PATH, 18909 # but as the default location of the library. 18910 hardcode_minus_L=yes 18911 fi 18912 ;; 18913 18914 hpux11*) 18915 if test yes,no = "$GCC,$with_gnu_ld"; then 18916 case $host_cpu in 18917 hppa*64*) 18918 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 18919 ;; 18920 ia64*) 18921 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18922 ;; 18923 *) 18924 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18925 ;; 18926 esac 18927 else 18928 case $host_cpu in 18929 hppa*64*) 18930 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 18931 ;; 18932 ia64*) 18933 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18934 ;; 18935 *) 18936 18937 # Older versions of the 11.00 compiler do not understand -b yet 18938 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 18939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 18940$as_echo_n "checking if $CC understands -b... " >&6; } 18941if ${lt_cv_prog_compiler__b+:} false; then : 18942 $as_echo_n "(cached) " >&6 18943else 18944 lt_cv_prog_compiler__b=no 18945 save_LDFLAGS=$LDFLAGS 18946 LDFLAGS="$LDFLAGS -b" 18947 echo "$lt_simple_link_test_code" > conftest.$ac_ext 18948 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 18949 # The linker can only warn and ignore the option if not recognized 18950 # So say no if there are warnings 18951 if test -s conftest.err; then 18952 # Append any errors to the config.log. 18953 cat conftest.err 1>&5 18954 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 18955 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 18956 if diff conftest.exp conftest.er2 >/dev/null; then 18957 lt_cv_prog_compiler__b=yes 18958 fi 18959 else 18960 lt_cv_prog_compiler__b=yes 18961 fi 18962 fi 18963 $RM -r conftest* 18964 LDFLAGS=$save_LDFLAGS 18965 18966fi 18967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 18968$as_echo "$lt_cv_prog_compiler__b" >&6; } 18969 18970if test yes = "$lt_cv_prog_compiler__b"; then 18971 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18972else 18973 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18974fi 18975 18976 ;; 18977 esac 18978 fi 18979 if test no = "$with_gnu_ld"; then 18980 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 18981 hardcode_libdir_separator=: 18982 18983 case $host_cpu in 18984 hppa*64*|ia64*) 18985 hardcode_direct=no 18986 hardcode_shlibpath_var=no 18987 ;; 18988 *) 18989 hardcode_direct=yes 18990 hardcode_direct_absolute=yes 18991 export_dynamic_flag_spec='$wl-E' 18992 18993 # hardcode_minus_L: Not really in the search PATH, 18994 # but as the default location of the library. 18995 hardcode_minus_L=yes 18996 ;; 18997 esac 18998 fi 18999 ;; 19000 19001 irix5* | irix6* | nonstopux*) 19002 if test yes = "$GCC"; then 19003 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' 19004 # Try to use the -exported_symbol ld option, if it does not 19005 # work, assume that -exports_file does not work either and 19006 # implicitly export all symbols. 19007 # This should be the same for all languages, so no per-tag cache variable. 19008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 19009$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 19010if ${lt_cv_irix_exported_symbol+:} false; then : 19011 $as_echo_n "(cached) " >&6 19012else 19013 save_LDFLAGS=$LDFLAGS 19014 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 19015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19016/* end confdefs.h. */ 19017int foo (void) { return 0; } 19018_ACEOF 19019if ac_fn_c_try_link "$LINENO"; then : 19020 lt_cv_irix_exported_symbol=yes 19021else 19022 lt_cv_irix_exported_symbol=no 19023fi 19024rm -f core conftest.err conftest.$ac_objext \ 19025 conftest$ac_exeext conftest.$ac_ext 19026 LDFLAGS=$save_LDFLAGS 19027fi 19028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 19029$as_echo "$lt_cv_irix_exported_symbol" >&6; } 19030 if test yes = "$lt_cv_irix_exported_symbol"; then 19031 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' 19032 fi 19033 else 19034 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' 19035 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' 19036 fi 19037 archive_cmds_need_lc='no' 19038 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 19039 hardcode_libdir_separator=: 19040 inherit_rpath=yes 19041 link_all_deplibs=yes 19042 ;; 19043 19044 linux*) 19045 case $cc_basename in 19046 tcc*) 19047 # Fabrice Bellard et al's Tiny C Compiler 19048 ld_shlibs=yes 19049 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 19050 ;; 19051 esac 19052 ;; 19053 19054 netbsd*) 19055 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 19056 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 19057 else 19058 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 19059 fi 19060 hardcode_libdir_flag_spec='-R$libdir' 19061 hardcode_direct=yes 19062 hardcode_shlibpath_var=no 19063 ;; 19064 19065 newsos6) 19066 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19067 hardcode_direct=yes 19068 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 19069 hardcode_libdir_separator=: 19070 hardcode_shlibpath_var=no 19071 ;; 19072 19073 *nto* | *qnx*) 19074 ;; 19075 19076 openbsd* | bitrig*) 19077 if test -f /usr/libexec/ld.so; then 19078 hardcode_direct=yes 19079 hardcode_shlibpath_var=no 19080 hardcode_direct_absolute=yes 19081 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 19082 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 19083 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 19084 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 19085 export_dynamic_flag_spec='$wl-E' 19086 else 19087 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 19088 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 19089 fi 19090 else 19091 ld_shlibs=no 19092 fi 19093 ;; 19094 19095 os2*) 19096 hardcode_libdir_flag_spec='-L$libdir' 19097 hardcode_minus_L=yes 19098 allow_undefined_flag=unsupported 19099 shrext_cmds=.dll 19100 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 19101 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 19102 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 19103 $ECHO EXPORTS >> $output_objdir/$libname.def~ 19104 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 19105 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 19106 emximp -o $lib $output_objdir/$libname.def' 19107 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 19108 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 19109 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 19110 $ECHO EXPORTS >> $output_objdir/$libname.def~ 19111 prefix_cmds="$SED"~ 19112 if test EXPORTS = "`$SED 1q $export_symbols`"; then 19113 prefix_cmds="$prefix_cmds -e 1d"; 19114 fi~ 19115 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 19116 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 19117 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 19118 emximp -o $lib $output_objdir/$libname.def' 19119 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 19120 enable_shared_with_static_runtimes=yes 19121 ;; 19122 19123 osf3*) 19124 if test yes = "$GCC"; then 19125 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 19126 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' 19127 else 19128 allow_undefined_flag=' -expect_unresolved \*' 19129 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' 19130 fi 19131 archive_cmds_need_lc='no' 19132 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 19133 hardcode_libdir_separator=: 19134 ;; 19135 19136 osf4* | osf5*) # as osf3* with the addition of -msym flag 19137 if test yes = "$GCC"; then 19138 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 19139 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' 19140 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 19141 else 19142 allow_undefined_flag=' -expect_unresolved \*' 19143 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' 19144 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~ 19145 $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' 19146 19147 # Both c and cxx compiler support -rpath directly 19148 hardcode_libdir_flag_spec='-rpath $libdir' 19149 fi 19150 archive_cmds_need_lc='no' 19151 hardcode_libdir_separator=: 19152 ;; 19153 19154 solaris*) 19155 no_undefined_flag=' -z defs' 19156 if test yes = "$GCC"; then 19157 wlarc='$wl' 19158 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 19159 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 19160 $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' 19161 else 19162 case `$CC -V 2>&1` in 19163 *"Compilers 5.0"*) 19164 wlarc='' 19165 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 19166 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 19167 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 19168 ;; 19169 *) 19170 wlarc='$wl' 19171 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 19172 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 19173 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 19174 ;; 19175 esac 19176 fi 19177 hardcode_libdir_flag_spec='-R$libdir' 19178 hardcode_shlibpath_var=no 19179 case $host_os in 19180 solaris2.[0-5] | solaris2.[0-5].*) ;; 19181 *) 19182 # The compiler driver will combine and reorder linker options, 19183 # but understands '-z linker_flag'. GCC discards it without '$wl', 19184 # but is careful enough not to reorder. 19185 # Supported since Solaris 2.6 (maybe 2.5.1?) 19186 if test yes = "$GCC"; then 19187 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 19188 else 19189 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 19190 fi 19191 ;; 19192 esac 19193 link_all_deplibs=yes 19194 ;; 19195 19196 sunos4*) 19197 if test sequent = "$host_vendor"; then 19198 # Use $CC to link under sequent, because it throws in some extra .o 19199 # files that make .init and .fini sections work. 19200 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 19201 else 19202 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 19203 fi 19204 hardcode_libdir_flag_spec='-L$libdir' 19205 hardcode_direct=yes 19206 hardcode_minus_L=yes 19207 hardcode_shlibpath_var=no 19208 ;; 19209 19210 sysv4) 19211 case $host_vendor in 19212 sni) 19213 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19214 hardcode_direct=yes # is this really true??? 19215 ;; 19216 siemens) 19217 ## LD is ld it makes a PLAMLIB 19218 ## CC just makes a GrossModule. 19219 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 19220 reload_cmds='$CC -r -o $output$reload_objs' 19221 hardcode_direct=no 19222 ;; 19223 motorola) 19224 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19225 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 19226 ;; 19227 esac 19228 runpath_var='LD_RUN_PATH' 19229 hardcode_shlibpath_var=no 19230 ;; 19231 19232 sysv4.3*) 19233 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19234 hardcode_shlibpath_var=no 19235 export_dynamic_flag_spec='-Bexport' 19236 ;; 19237 19238 sysv4*MP*) 19239 if test -d /usr/nec; then 19240 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19241 hardcode_shlibpath_var=no 19242 runpath_var=LD_RUN_PATH 19243 hardcode_runpath_var=yes 19244 ld_shlibs=yes 19245 fi 19246 ;; 19247 19248 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 19249 no_undefined_flag='$wl-z,text' 19250 archive_cmds_need_lc=no 19251 hardcode_shlibpath_var=no 19252 runpath_var='LD_RUN_PATH' 19253 19254 if test yes = "$GCC"; then 19255 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19256 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19257 else 19258 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19259 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19260 fi 19261 ;; 19262 19263 sysv5* | sco3.2v5* | sco5v6*) 19264 # Note: We CANNOT use -z defs as we might desire, because we do not 19265 # link with -lc, and that would cause any symbols used from libc to 19266 # always be unresolved, which means just about no library would 19267 # ever link correctly. If we're not using GNU ld we use -z text 19268 # though, which does catch some bad symbols but isn't as heavy-handed 19269 # as -z defs. 19270 no_undefined_flag='$wl-z,text' 19271 allow_undefined_flag='$wl-z,nodefs' 19272 archive_cmds_need_lc=no 19273 hardcode_shlibpath_var=no 19274 hardcode_libdir_flag_spec='$wl-R,$libdir' 19275 hardcode_libdir_separator=':' 19276 link_all_deplibs=yes 19277 export_dynamic_flag_spec='$wl-Bexport' 19278 runpath_var='LD_RUN_PATH' 19279 19280 if test yes = "$GCC"; then 19281 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19282 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19283 else 19284 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19285 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19286 fi 19287 ;; 19288 19289 uts4*) 19290 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19291 hardcode_libdir_flag_spec='-L$libdir' 19292 hardcode_shlibpath_var=no 19293 ;; 19294 19295 *) 19296 ld_shlibs=no 19297 ;; 19298 esac 19299 19300 if test sni = "$host_vendor"; then 19301 case $host in 19302 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 19303 export_dynamic_flag_spec='$wl-Blargedynsym' 19304 ;; 19305 esac 19306 fi 19307 fi 19308 19309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 19310$as_echo "$ld_shlibs" >&6; } 19311test no = "$ld_shlibs" && can_build_shared=no 19312 19313with_gnu_ld=$with_gnu_ld 19314 19315 19316 19317 19318 19319 19320 19321 19322 19323 19324 19325 19326 19327 19328 19329# 19330# Do we need to explicitly link libc? 19331# 19332case "x$archive_cmds_need_lc" in 19333x|xyes) 19334 # Assume -lc should be added 19335 archive_cmds_need_lc=yes 19336 19337 if test yes,yes = "$GCC,$enable_shared"; then 19338 case $archive_cmds in 19339 *'~'*) 19340 # FIXME: we may have to deal with multi-command sequences. 19341 ;; 19342 '$CC '*) 19343 # Test whether the compiler implicitly links with -lc since on some 19344 # systems, -lgcc has to come before -lc. If gcc already passes -lc 19345 # to ld, don't add -lc before -lgcc. 19346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 19347$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 19348if ${lt_cv_archive_cmds_need_lc+:} false; then : 19349 $as_echo_n "(cached) " >&6 19350else 19351 $RM conftest* 19352 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19353 19354 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 19355 (eval $ac_compile) 2>&5 19356 ac_status=$? 19357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19358 test $ac_status = 0; } 2>conftest.err; then 19359 soname=conftest 19360 lib=conftest 19361 libobjs=conftest.$ac_objext 19362 deplibs= 19363 wl=$lt_prog_compiler_wl 19364 pic_flag=$lt_prog_compiler_pic 19365 compiler_flags=-v 19366 linker_flags=-v 19367 verstring= 19368 output_objdir=. 19369 libname=conftest 19370 lt_save_allow_undefined_flag=$allow_undefined_flag 19371 allow_undefined_flag= 19372 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 19373 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 19374 ac_status=$? 19375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19376 test $ac_status = 0; } 19377 then 19378 lt_cv_archive_cmds_need_lc=no 19379 else 19380 lt_cv_archive_cmds_need_lc=yes 19381 fi 19382 allow_undefined_flag=$lt_save_allow_undefined_flag 19383 else 19384 cat conftest.err 1>&5 19385 fi 19386 $RM conftest* 19387 19388fi 19389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 19390$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 19391 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 19392 ;; 19393 esac 19394 fi 19395 ;; 19396esac 19397 19398 19399 19400 19401 19402 19403 19404 19405 19406 19407 19408 19409 19410 19411 19412 19413 19414 19415 19416 19417 19418 19419 19420 19421 19422 19423 19424 19425 19426 19427 19428 19429 19430 19431 19432 19433 19434 19435 19436 19437 19438 19439 19440 19441 19442 19443 19444 19445 19446 19447 19448 19449 19450 19451 19452 19453 19454 19455 19456 19457 19458 19459 19460 19461 19462 19463 19464 19465 19466 19467 19468 19469 19470 19471 19472 19473 19474 19475 19476 19477 19478 19479 19480 19481 19482 19483 19484 19485 19486 19487 19488 19489 19490 19491 19492 19493 19494 19495 19496 19497 19498 19499 19500 19501 19502 19503 19504 19505 19506 19507 19508 19509 19510 19511 19512 19513 19514 19515 19516 19517 19518 19519 19520 19521 19522 19523 19524 19525 19526 19527 19528 19529 19530 19531 19532 19533 19534 19535 19536 19537 19538 19539 19540 19541 19542 19543 19544 19545 19546 19547 19548 19549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 19550$as_echo_n "checking dynamic linker characteristics... " >&6; } 19551 19552if test yes = "$GCC"; then 19553 case $host_os in 19554 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 19555 *) lt_awk_arg='/^libraries:/' ;; 19556 esac 19557 case $host_os in 19558 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 19559 *) lt_sed_strip_eq='s|=/|/|g' ;; 19560 esac 19561 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 19562 case $lt_search_path_spec in 19563 *\;*) 19564 # if the path contains ";" then we assume it to be the separator 19565 # otherwise default to the standard path separator (i.e. ":") - it is 19566 # assumed that no part of a normal pathname contains ";" but that should 19567 # okay in the real world where ";" in dirpaths is itself problematic. 19568 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 19569 ;; 19570 *) 19571 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 19572 ;; 19573 esac 19574 # Ok, now we have the path, separated by spaces, we can step through it 19575 # and add multilib dir if necessary... 19576 lt_tmp_lt_search_path_spec= 19577 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 19578 # ...but if some path component already ends with the multilib dir we assume 19579 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 19580 case "$lt_multi_os_dir; $lt_search_path_spec " in 19581 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 19582 lt_multi_os_dir= 19583 ;; 19584 esac 19585 for lt_sys_path in $lt_search_path_spec; do 19586 if test -d "$lt_sys_path$lt_multi_os_dir"; then 19587 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 19588 elif test -n "$lt_multi_os_dir"; then 19589 test -d "$lt_sys_path" && \ 19590 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 19591 fi 19592 done 19593 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 19594BEGIN {RS = " "; FS = "/|\n";} { 19595 lt_foo = ""; 19596 lt_count = 0; 19597 for (lt_i = NF; lt_i > 0; lt_i--) { 19598 if ($lt_i != "" && $lt_i != ".") { 19599 if ($lt_i == "..") { 19600 lt_count++; 19601 } else { 19602 if (lt_count == 0) { 19603 lt_foo = "/" $lt_i lt_foo; 19604 } else { 19605 lt_count--; 19606 } 19607 } 19608 } 19609 } 19610 if (lt_foo != "") { lt_freq[lt_foo]++; } 19611 if (lt_freq[lt_foo] == 1) { print lt_foo; } 19612}'` 19613 # AWK program above erroneously prepends '/' to C:/dos/paths 19614 # for these hosts. 19615 case $host_os in 19616 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 19617 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 19618 esac 19619 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 19620else 19621 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 19622fi 19623library_names_spec= 19624libname_spec='lib$name' 19625soname_spec= 19626shrext_cmds=.so 19627postinstall_cmds= 19628postuninstall_cmds= 19629finish_cmds= 19630finish_eval= 19631shlibpath_var= 19632shlibpath_overrides_runpath=unknown 19633version_type=none 19634dynamic_linker="$host_os ld.so" 19635sys_lib_dlsearch_path_spec="/lib /usr/lib" 19636need_lib_prefix=unknown 19637hardcode_into_libs=no 19638 19639# when you set need_version to no, make sure it does not cause -set_version 19640# flags to be left without arguments 19641need_version=unknown 19642 19643 19644 19645case $host_os in 19646aix3*) 19647 version_type=linux # correct to gnu/linux during the next big refactor 19648 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 19649 shlibpath_var=LIBPATH 19650 19651 # AIX 3 has no versioning support, so we append a major version to the name. 19652 soname_spec='$libname$release$shared_ext$major' 19653 ;; 19654 19655aix[4-9]*) 19656 version_type=linux # correct to gnu/linux during the next big refactor 19657 need_lib_prefix=no 19658 need_version=no 19659 hardcode_into_libs=yes 19660 if test ia64 = "$host_cpu"; then 19661 # AIX 5 supports IA64 19662 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 19663 shlibpath_var=LD_LIBRARY_PATH 19664 else 19665 # With GCC up to 2.95.x, collect2 would create an import file 19666 # for dependence libraries. The import file would start with 19667 # the line '#! .'. This would cause the generated library to 19668 # depend on '.', always an invalid library. This was fixed in 19669 # development snapshots of GCC prior to 3.0. 19670 case $host_os in 19671 aix4 | aix4.[01] | aix4.[01].*) 19672 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 19673 echo ' yes ' 19674 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 19675 : 19676 else 19677 can_build_shared=no 19678 fi 19679 ;; 19680 esac 19681 # Using Import Files as archive members, it is possible to support 19682 # filename-based versioning of shared library archives on AIX. While 19683 # this would work for both with and without runtime linking, it will 19684 # prevent static linking of such archives. So we do filename-based 19685 # shared library versioning with .so extension only, which is used 19686 # when both runtime linking and shared linking is enabled. 19687 # Unfortunately, runtime linking may impact performance, so we do 19688 # not want this to be the default eventually. Also, we use the 19689 # versioned .so libs for executables only if there is the -brtl 19690 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 19691 # To allow for filename-based versioning support, we need to create 19692 # libNAME.so.V as an archive file, containing: 19693 # *) an Import File, referring to the versioned filename of the 19694 # archive as well as the shared archive member, telling the 19695 # bitwidth (32 or 64) of that shared object, and providing the 19696 # list of exported symbols of that shared object, eventually 19697 # decorated with the 'weak' keyword 19698 # *) the shared object with the F_LOADONLY flag set, to really avoid 19699 # it being seen by the linker. 19700 # At run time we better use the real file rather than another symlink, 19701 # but for link time we create the symlink libNAME.so -> libNAME.so.V 19702 19703 case $with_aix_soname,$aix_use_runtimelinking in 19704 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 19705 # soname into executable. Probably we can add versioning support to 19706 # collect2, so additional links can be useful in future. 19707 aix,yes) # traditional libtool 19708 dynamic_linker='AIX unversionable lib.so' 19709 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 19710 # instead of lib<name>.a to let people know that these are not 19711 # typical AIX shared libraries. 19712 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19713 ;; 19714 aix,no) # traditional AIX only 19715 dynamic_linker='AIX lib.a(lib.so.V)' 19716 # We preserve .a as extension for shared libraries through AIX4.2 19717 # and later when we are not doing run time linking. 19718 library_names_spec='$libname$release.a $libname.a' 19719 soname_spec='$libname$release$shared_ext$major' 19720 ;; 19721 svr4,*) # full svr4 only 19722 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 19723 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 19724 # We do not specify a path in Import Files, so LIBPATH fires. 19725 shlibpath_overrides_runpath=yes 19726 ;; 19727 *,yes) # both, prefer svr4 19728 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 19729 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 19730 # unpreferred sharedlib libNAME.a needs extra handling 19731 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"' 19732 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"' 19733 # We do not specify a path in Import Files, so LIBPATH fires. 19734 shlibpath_overrides_runpath=yes 19735 ;; 19736 *,no) # both, prefer aix 19737 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 19738 library_names_spec='$libname$release.a $libname.a' 19739 soname_spec='$libname$release$shared_ext$major' 19740 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 19741 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)' 19742 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"' 19743 ;; 19744 esac 19745 shlibpath_var=LIBPATH 19746 fi 19747 ;; 19748 19749amigaos*) 19750 case $host_cpu in 19751 powerpc) 19752 # Since July 2007 AmigaOS4 officially supports .so libraries. 19753 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 19754 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19755 ;; 19756 m68k) 19757 library_names_spec='$libname.ixlibrary $libname.a' 19758 # Create ${libname}_ixlibrary.a entries in /sys/libs. 19759 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' 19760 ;; 19761 esac 19762 ;; 19763 19764beos*) 19765 library_names_spec='$libname$shared_ext' 19766 dynamic_linker="$host_os ld.so" 19767 shlibpath_var=LIBRARY_PATH 19768 ;; 19769 19770bsdi[45]*) 19771 version_type=linux # correct to gnu/linux during the next big refactor 19772 need_version=no 19773 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19774 soname_spec='$libname$release$shared_ext$major' 19775 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 19776 shlibpath_var=LD_LIBRARY_PATH 19777 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 19778 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 19779 # the default ld.so.conf also contains /usr/contrib/lib and 19780 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 19781 # libtool to hard-code these into programs 19782 ;; 19783 19784cygwin* | mingw* | pw32* | cegcc*) 19785 version_type=windows 19786 shrext_cmds=.dll 19787 need_version=no 19788 need_lib_prefix=no 19789 19790 case $GCC,$cc_basename in 19791 yes,*) 19792 # gcc 19793 library_names_spec='$libname.dll.a' 19794 # DLL is installed to $(libdir)/../bin by postinstall_cmds 19795 postinstall_cmds='base_file=`basename \$file`~ 19796 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 19797 dldir=$destdir/`dirname \$dlpath`~ 19798 test -d \$dldir || mkdir -p \$dldir~ 19799 $install_prog $dir/$dlname \$dldir/$dlname~ 19800 chmod a+x \$dldir/$dlname~ 19801 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 19802 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 19803 fi' 19804 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 19805 dlpath=$dir/\$dldll~ 19806 $RM \$dlpath' 19807 shlibpath_overrides_runpath=yes 19808 19809 case $host_os in 19810 cygwin*) 19811 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 19812 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 19813 19814 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 19815 ;; 19816 mingw* | cegcc*) 19817 # MinGW DLLs use traditional 'lib' prefix 19818 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 19819 ;; 19820 pw32*) 19821 # pw32 DLLs use 'pw' prefix rather than 'lib' 19822 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 19823 ;; 19824 esac 19825 dynamic_linker='Win32 ld.exe' 19826 ;; 19827 19828 *,cl*) 19829 # Native MSVC 19830 libname_spec='$name' 19831 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 19832 library_names_spec='$libname.dll.lib' 19833 19834 case $build_os in 19835 mingw*) 19836 sys_lib_search_path_spec= 19837 lt_save_ifs=$IFS 19838 IFS=';' 19839 for lt_path in $LIB 19840 do 19841 IFS=$lt_save_ifs 19842 # Let DOS variable expansion print the short 8.3 style file name. 19843 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 19844 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 19845 done 19846 IFS=$lt_save_ifs 19847 # Convert to MSYS style. 19848 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 19849 ;; 19850 cygwin*) 19851 # Convert to unix form, then to dos form, then back to unix form 19852 # but this time dos style (no spaces!) so that the unix form looks 19853 # like /cygdrive/c/PROGRA~1:/cygdr... 19854 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 19855 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 19856 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 19857 ;; 19858 *) 19859 sys_lib_search_path_spec=$LIB 19860 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 19861 # It is most probably a Windows format PATH. 19862 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 19863 else 19864 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 19865 fi 19866 # FIXME: find the short name or the path components, as spaces are 19867 # common. (e.g. "Program Files" -> "PROGRA~1") 19868 ;; 19869 esac 19870 19871 # DLL is installed to $(libdir)/../bin by postinstall_cmds 19872 postinstall_cmds='base_file=`basename \$file`~ 19873 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 19874 dldir=$destdir/`dirname \$dlpath`~ 19875 test -d \$dldir || mkdir -p \$dldir~ 19876 $install_prog $dir/$dlname \$dldir/$dlname' 19877 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 19878 dlpath=$dir/\$dldll~ 19879 $RM \$dlpath' 19880 shlibpath_overrides_runpath=yes 19881 dynamic_linker='Win32 link.exe' 19882 ;; 19883 19884 *) 19885 # Assume MSVC wrapper 19886 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 19887 dynamic_linker='Win32 ld.exe' 19888 ;; 19889 esac 19890 # FIXME: first we should search . and the directory the executable is in 19891 shlibpath_var=PATH 19892 ;; 19893 19894darwin* | rhapsody*) 19895 dynamic_linker="$host_os dyld" 19896 version_type=darwin 19897 need_lib_prefix=no 19898 need_version=no 19899 library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext' 19900 soname_spec='$libname$release$major$shared_ext' 19901 shlibpath_overrides_runpath=yes 19902 shlibpath_var=DYLD_LIBRARY_PATH 19903 shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`' 19904 19905 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 19906 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 19907 ;; 19908 19909dgux*) 19910 version_type=linux # correct to gnu/linux during the next big refactor 19911 need_lib_prefix=no 19912 need_version=no 19913 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19914 soname_spec='$libname$release$shared_ext$major' 19915 shlibpath_var=LD_LIBRARY_PATH 19916 ;; 19917 19918freebsd* | dragonfly*) 19919 # DragonFly does not have aout. When/if they implement a new 19920 # versioning mechanism, adjust this. 19921 if test -x /usr/bin/objformat; then 19922 objformat=`/usr/bin/objformat` 19923 else 19924 case $host_os in 19925 freebsd[23].*) objformat=aout ;; 19926 *) objformat=elf ;; 19927 esac 19928 fi 19929 # Handle Gentoo/FreeBSD as it was Linux 19930 case $host_vendor in 19931 gentoo) 19932 version_type=linux ;; 19933 *) 19934 version_type=freebsd-$objformat ;; 19935 esac 19936 19937 case $version_type in 19938 freebsd-elf*) 19939 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19940 soname_spec='$libname$release$shared_ext$major' 19941 need_version=no 19942 need_lib_prefix=no 19943 ;; 19944 freebsd-*) 19945 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 19946 need_version=yes 19947 ;; 19948 linux) 19949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19950 soname_spec='${libname}${release}${shared_ext}$major' 19951 need_lib_prefix=no 19952 need_version=no 19953 ;; 19954 esac 19955 shlibpath_var=LD_LIBRARY_PATH 19956 case $host_os in 19957 freebsd2.*) 19958 shlibpath_overrides_runpath=yes 19959 ;; 19960 freebsd3.[01]* | freebsdelf3.[01]*) 19961 shlibpath_overrides_runpath=yes 19962 hardcode_into_libs=yes 19963 ;; 19964 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 19965 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 19966 shlibpath_overrides_runpath=no 19967 hardcode_into_libs=yes 19968 ;; 19969 *) # from 4.6 on, and DragonFly 19970 shlibpath_overrides_runpath=yes 19971 hardcode_into_libs=yes 19972 ;; 19973 esac 19974 ;; 19975 19976haiku*) 19977 version_type=linux # correct to gnu/linux during the next big refactor 19978 need_lib_prefix=no 19979 need_version=no 19980 dynamic_linker="$host_os runtime_loader" 19981 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19982 soname_spec='$libname$release$shared_ext$major' 19983 shlibpath_var=LIBRARY_PATH 19984 shlibpath_overrides_runpath=no 19985 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 19986 hardcode_into_libs=yes 19987 ;; 19988 19989hpux9* | hpux10* | hpux11*) 19990 # Give a soname corresponding to the major version so that dld.sl refuses to 19991 # link against other versions. 19992 version_type=sunos 19993 need_lib_prefix=no 19994 need_version=no 19995 case $host_cpu in 19996 ia64*) 19997 shrext_cmds='.so' 19998 hardcode_into_libs=yes 19999 dynamic_linker="$host_os dld.so" 20000 shlibpath_var=LD_LIBRARY_PATH 20001 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 20002 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20003 soname_spec='$libname$release$shared_ext$major' 20004 if test 32 = "$HPUX_IA64_MODE"; then 20005 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 20006 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 20007 else 20008 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 20009 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 20010 fi 20011 ;; 20012 hppa*64*) 20013 shrext_cmds='.sl' 20014 hardcode_into_libs=yes 20015 dynamic_linker="$host_os dld.sl" 20016 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 20017 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 20018 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20019 soname_spec='$libname$release$shared_ext$major' 20020 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 20021 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 20022 ;; 20023 *) 20024 shrext_cmds='.sl' 20025 dynamic_linker="$host_os dld.sl" 20026 shlibpath_var=SHLIB_PATH 20027 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 20028 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20029 soname_spec='$libname$release$shared_ext$major' 20030 ;; 20031 esac 20032 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 20033 postinstall_cmds='chmod 555 $lib' 20034 # or fails outright, so override atomically: 20035 install_override_mode=555 20036 ;; 20037 20038interix[3-9]*) 20039 version_type=linux # correct to gnu/linux during the next big refactor 20040 need_lib_prefix=no 20041 need_version=no 20042 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20043 soname_spec='$libname$release$shared_ext$major' 20044 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 20045 shlibpath_var=LD_LIBRARY_PATH 20046 shlibpath_overrides_runpath=no 20047 hardcode_into_libs=yes 20048 ;; 20049 20050irix5* | irix6* | nonstopux*) 20051 case $host_os in 20052 nonstopux*) version_type=nonstopux ;; 20053 *) 20054 if test yes = "$lt_cv_prog_gnu_ld"; then 20055 version_type=linux # correct to gnu/linux during the next big refactor 20056 else 20057 version_type=irix 20058 fi ;; 20059 esac 20060 need_lib_prefix=no 20061 need_version=no 20062 soname_spec='$libname$release$shared_ext$major' 20063 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 20064 case $host_os in 20065 irix5* | nonstopux*) 20066 libsuff= shlibsuff= 20067 ;; 20068 *) 20069 case $LD in # libtool.m4 will add one of these switches to LD 20070 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 20071 libsuff= shlibsuff= libmagic=32-bit;; 20072 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 20073 libsuff=32 shlibsuff=N32 libmagic=N32;; 20074 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 20075 libsuff=64 shlibsuff=64 libmagic=64-bit;; 20076 *) libsuff= shlibsuff= libmagic=never-match;; 20077 esac 20078 ;; 20079 esac 20080 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 20081 shlibpath_overrides_runpath=no 20082 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 20083 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 20084 hardcode_into_libs=yes 20085 ;; 20086 20087# No shared lib support for Linux oldld, aout, or coff. 20088linux*oldld* | linux*aout* | linux*coff*) 20089 dynamic_linker=no 20090 ;; 20091 20092linux*android*) 20093 version_type=none # Android doesn't support versioned libraries. 20094 need_lib_prefix=no 20095 need_version=no 20096 library_names_spec='$libname$release$shared_ext' 20097 soname_spec='$libname$release$shared_ext' 20098 finish_cmds= 20099 shlibpath_var=LD_LIBRARY_PATH 20100 shlibpath_overrides_runpath=yes 20101 20102 # This implies no fast_install, which is unacceptable. 20103 # Some rework will be needed to allow for fast_install 20104 # before this can be enabled. 20105 hardcode_into_libs=yes 20106 20107 dynamic_linker='Android linker' 20108 # Don't embed -rpath directories since the linker doesn't support them. 20109 hardcode_libdir_flag_spec='-L$libdir' 20110 ;; 20111 20112# This must be glibc/ELF. 20113linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 20114 version_type=linux # correct to gnu/linux during the next big refactor 20115 need_lib_prefix=no 20116 need_version=no 20117 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20118 soname_spec='$libname$release$shared_ext$major' 20119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 20120 shlibpath_var=LD_LIBRARY_PATH 20121 shlibpath_overrides_runpath=no 20122 20123 # Some binutils ld are patched to set DT_RUNPATH 20124 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 20125 $as_echo_n "(cached) " >&6 20126else 20127 lt_cv_shlibpath_overrides_runpath=no 20128 save_LDFLAGS=$LDFLAGS 20129 save_libdir=$libdir 20130 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 20131 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 20132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20133/* end confdefs.h. */ 20134 20135int 20136main () 20137{ 20138 20139 ; 20140 return 0; 20141} 20142_ACEOF 20143if ac_fn_c_try_link "$LINENO"; then : 20144 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 20145 lt_cv_shlibpath_overrides_runpath=yes 20146fi 20147fi 20148rm -f core conftest.err conftest.$ac_objext \ 20149 conftest$ac_exeext conftest.$ac_ext 20150 LDFLAGS=$save_LDFLAGS 20151 libdir=$save_libdir 20152 20153fi 20154 20155 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 20156 20157 # This implies no fast_install, which is unacceptable. 20158 # Some rework will be needed to allow for fast_install 20159 # before this can be enabled. 20160 hardcode_into_libs=yes 20161 20162 # Ideally, we could use ldconfig to report *all* directores which are 20163 # searched for libraries, however this is still not possible. Aside from not 20164 # being certain /sbin/ldconfig is available, command 20165 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 20166 # even though it is searched at run-time. Try to do the best guess by 20167 # appending ld.so.conf contents (and includes) to the search path. 20168 if test -f /etc/ld.so.conf; then 20169 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' ' '` 20170 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 20171 fi 20172 20173 # We used to test for /lib/ld.so.1 and disable shared libraries on 20174 # powerpc, because MkLinux only supported shared libraries with the 20175 # GNU dynamic linker. Since this was broken with cross compilers, 20176 # most powerpc-linux boxes support dynamic linking these days and 20177 # people can always --disable-shared, the test was removed, and we 20178 # assume the GNU/Linux dynamic linker is in use. 20179 dynamic_linker='GNU/Linux ld.so' 20180 ;; 20181 20182netbsd*) 20183 version_type=sunos 20184 need_lib_prefix=no 20185 need_version=no 20186 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 20187 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 20188 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 20189 dynamic_linker='NetBSD (a.out) ld.so' 20190 else 20191 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20192 soname_spec='$libname$release$shared_ext$major' 20193 dynamic_linker='NetBSD ld.elf_so' 20194 fi 20195 shlibpath_var=LD_LIBRARY_PATH 20196 shlibpath_overrides_runpath=yes 20197 hardcode_into_libs=yes 20198 ;; 20199 20200newsos6) 20201 version_type=linux # correct to gnu/linux during the next big refactor 20202 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20203 shlibpath_var=LD_LIBRARY_PATH 20204 shlibpath_overrides_runpath=yes 20205 ;; 20206 20207*nto* | *qnx*) 20208 version_type=qnx 20209 need_lib_prefix=no 20210 need_version=no 20211 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20212 soname_spec='$libname$release$shared_ext$major' 20213 shlibpath_var=LD_LIBRARY_PATH 20214 shlibpath_overrides_runpath=no 20215 hardcode_into_libs=yes 20216 dynamic_linker='ldqnx.so' 20217 ;; 20218 20219openbsd* | bitrig*) 20220 version_type=sunos 20221 sys_lib_dlsearch_path_spec=/usr/lib 20222 need_lib_prefix=no 20223 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 20224 need_version=no 20225 else 20226 need_version=yes 20227 fi 20228 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 20229 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 20230 shlibpath_var=LD_LIBRARY_PATH 20231 shlibpath_overrides_runpath=yes 20232 ;; 20233 20234os2*) 20235 libname_spec='$name' 20236 version_type=windows 20237 shrext_cmds=.dll 20238 need_version=no 20239 need_lib_prefix=no 20240 # OS/2 can only load a DLL with a base name of 8 characters or less. 20241 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 20242 v=$($ECHO $release$versuffix | tr -d .-); 20243 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 20244 $ECHO $n$v`$shared_ext' 20245 library_names_spec='${libname}_dll.$libext' 20246 dynamic_linker='OS/2 ld.exe' 20247 shlibpath_var=BEGINLIBPATH 20248 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 20249 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 20250 postinstall_cmds='base_file=`basename \$file`~ 20251 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 20252 dldir=$destdir/`dirname \$dlpath`~ 20253 test -d \$dldir || mkdir -p \$dldir~ 20254 $install_prog $dir/$dlname \$dldir/$dlname~ 20255 chmod a+x \$dldir/$dlname~ 20256 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 20257 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 20258 fi' 20259 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 20260 dlpath=$dir/\$dldll~ 20261 $RM \$dlpath' 20262 ;; 20263 20264osf3* | osf4* | osf5*) 20265 version_type=osf 20266 need_lib_prefix=no 20267 need_version=no 20268 soname_spec='$libname$release$shared_ext$major' 20269 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20270 shlibpath_var=LD_LIBRARY_PATH 20271 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 20272 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 20273 ;; 20274 20275rdos*) 20276 dynamic_linker=no 20277 ;; 20278 20279solaris*) 20280 version_type=linux # correct to gnu/linux during the next big refactor 20281 need_lib_prefix=no 20282 need_version=no 20283 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20284 soname_spec='$libname$release$shared_ext$major' 20285 shlibpath_var=LD_LIBRARY_PATH 20286 shlibpath_overrides_runpath=yes 20287 hardcode_into_libs=yes 20288 # ldd complains unless libraries are executable 20289 postinstall_cmds='chmod +x $lib' 20290 ;; 20291 20292sunos4*) 20293 version_type=sunos 20294 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 20295 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 20296 shlibpath_var=LD_LIBRARY_PATH 20297 shlibpath_overrides_runpath=yes 20298 if test yes = "$with_gnu_ld"; then 20299 need_lib_prefix=no 20300 fi 20301 need_version=yes 20302 ;; 20303 20304sysv4 | sysv4.3*) 20305 version_type=linux # correct to gnu/linux during the next big refactor 20306 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20307 soname_spec='$libname$release$shared_ext$major' 20308 shlibpath_var=LD_LIBRARY_PATH 20309 case $host_vendor in 20310 sni) 20311 shlibpath_overrides_runpath=no 20312 need_lib_prefix=no 20313 runpath_var=LD_RUN_PATH 20314 ;; 20315 siemens) 20316 need_lib_prefix=no 20317 ;; 20318 motorola) 20319 need_lib_prefix=no 20320 need_version=no 20321 shlibpath_overrides_runpath=no 20322 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 20323 ;; 20324 esac 20325 ;; 20326 20327sysv4*MP*) 20328 if test -d /usr/nec; then 20329 version_type=linux # correct to gnu/linux during the next big refactor 20330 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 20331 soname_spec='$libname$shared_ext.$major' 20332 shlibpath_var=LD_LIBRARY_PATH 20333 fi 20334 ;; 20335 20336sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 20337 version_type=sco 20338 need_lib_prefix=no 20339 need_version=no 20340 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 20341 soname_spec='$libname$release$shared_ext$major' 20342 shlibpath_var=LD_LIBRARY_PATH 20343 shlibpath_overrides_runpath=yes 20344 hardcode_into_libs=yes 20345 if test yes = "$with_gnu_ld"; then 20346 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 20347 else 20348 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 20349 case $host_os in 20350 sco3.2v5*) 20351 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 20352 ;; 20353 esac 20354 fi 20355 sys_lib_dlsearch_path_spec='/usr/lib' 20356 ;; 20357 20358tpf*) 20359 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 20360 version_type=linux # correct to gnu/linux during the next big refactor 20361 need_lib_prefix=no 20362 need_version=no 20363 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20364 shlibpath_var=LD_LIBRARY_PATH 20365 shlibpath_overrides_runpath=no 20366 hardcode_into_libs=yes 20367 ;; 20368 20369uts4*) 20370 version_type=linux # correct to gnu/linux during the next big refactor 20371 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20372 soname_spec='$libname$release$shared_ext$major' 20373 shlibpath_var=LD_LIBRARY_PATH 20374 ;; 20375 20376*) 20377 dynamic_linker=no 20378 ;; 20379esac 20380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 20381$as_echo "$dynamic_linker" >&6; } 20382test no = "$dynamic_linker" && can_build_shared=no 20383 20384variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 20385if test yes = "$GCC"; then 20386 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 20387fi 20388 20389if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 20390 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 20391fi 20392 20393if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 20394 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 20395fi 20396 20397# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 20398configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 20399 20400# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 20401func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 20402 20403# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 20404configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 20405 20406 20407 20408 20409 20410 20411 20412 20413 20414 20415 20416 20417 20418 20419 20420 20421 20422 20423 20424 20425 20426 20427 20428 20429 20430 20431 20432 20433 20434 20435 20436 20437 20438 20439 20440 20441 20442 20443 20444 20445 20446 20447 20448 20449 20450 20451 20452 20453 20454 20455 20456 20457 20458 20459 20460 20461 20462 20463 20464 20465 20466 20467 20468 20469 20470 20471 20472 20473 20474 20475 20476 20477 20478 20479 20480 20481 20482 20483 20484 20485 20486 20487 20488 20489 20490 20491 20492 20493 20494 20495 20496 20497 20498 20499 20500 20501 20502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 20503$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 20504hardcode_action= 20505if test -n "$hardcode_libdir_flag_spec" || 20506 test -n "$runpath_var" || 20507 test yes = "$hardcode_automatic"; then 20508 20509 # We can hardcode non-existent directories. 20510 if test no != "$hardcode_direct" && 20511 # If the only mechanism to avoid hardcoding is shlibpath_var, we 20512 # have to relink, otherwise we might link with an installed library 20513 # when we should be linking with a yet-to-be-installed one 20514 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 20515 test no != "$hardcode_minus_L"; then 20516 # Linking always hardcodes the temporary library directory. 20517 hardcode_action=relink 20518 else 20519 # We can link without hardcoding, and we can hardcode nonexisting dirs. 20520 hardcode_action=immediate 20521 fi 20522else 20523 # We cannot hardcode anything, or else we can only hardcode existing 20524 # directories. 20525 hardcode_action=unsupported 20526fi 20527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 20528$as_echo "$hardcode_action" >&6; } 20529 20530if test relink = "$hardcode_action" || 20531 test yes = "$inherit_rpath"; then 20532 # Fast installation is not supported 20533 enable_fast_install=no 20534elif test yes = "$shlibpath_overrides_runpath" || 20535 test no = "$enable_shared"; then 20536 # Fast installation is not necessary 20537 enable_fast_install=needless 20538fi 20539 20540 20541 20542 20543 20544 20545 if test yes != "$enable_dlopen"; then 20546 enable_dlopen=unknown 20547 enable_dlopen_self=unknown 20548 enable_dlopen_self_static=unknown 20549else 20550 lt_cv_dlopen=no 20551 lt_cv_dlopen_libs= 20552 20553 case $host_os in 20554 beos*) 20555 lt_cv_dlopen=load_add_on 20556 lt_cv_dlopen_libs= 20557 lt_cv_dlopen_self=yes 20558 ;; 20559 20560 mingw* | pw32* | cegcc*) 20561 lt_cv_dlopen=LoadLibrary 20562 lt_cv_dlopen_libs= 20563 ;; 20564 20565 cygwin*) 20566 lt_cv_dlopen=dlopen 20567 lt_cv_dlopen_libs= 20568 ;; 20569 20570 darwin*) 20571 # if libdl is installed we need to link against it 20572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 20573$as_echo_n "checking for dlopen in -ldl... " >&6; } 20574if ${ac_cv_lib_dl_dlopen+:} false; then : 20575 $as_echo_n "(cached) " >&6 20576else 20577 ac_check_lib_save_LIBS=$LIBS 20578LIBS="-ldl $LIBS" 20579cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20580/* end confdefs.h. */ 20581 20582/* Override any GCC internal prototype to avoid an error. 20583 Use char because int might match the return type of a GCC 20584 builtin and then its argument prototype would still apply. */ 20585#ifdef __cplusplus 20586extern "C" 20587#endif 20588char dlopen (); 20589int 20590main () 20591{ 20592return dlopen (); 20593 ; 20594 return 0; 20595} 20596_ACEOF 20597if ac_fn_c_try_link "$LINENO"; then : 20598 ac_cv_lib_dl_dlopen=yes 20599else 20600 ac_cv_lib_dl_dlopen=no 20601fi 20602rm -f core conftest.err conftest.$ac_objext \ 20603 conftest$ac_exeext conftest.$ac_ext 20604LIBS=$ac_check_lib_save_LIBS 20605fi 20606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 20607$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 20608if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 20609 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 20610else 20611 20612 lt_cv_dlopen=dyld 20613 lt_cv_dlopen_libs= 20614 lt_cv_dlopen_self=yes 20615 20616fi 20617 20618 ;; 20619 20620 tpf*) 20621 # Don't try to run any link tests for TPF. We know it's impossible 20622 # because TPF is a cross-compiler, and we know how we open DSOs. 20623 lt_cv_dlopen=dlopen 20624 lt_cv_dlopen_libs= 20625 lt_cv_dlopen_self=no 20626 ;; 20627 20628 *) 20629 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 20630if test "x$ac_cv_func_shl_load" = xyes; then : 20631 lt_cv_dlopen=shl_load 20632else 20633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 20634$as_echo_n "checking for shl_load in -ldld... " >&6; } 20635if ${ac_cv_lib_dld_shl_load+:} false; then : 20636 $as_echo_n "(cached) " >&6 20637else 20638 ac_check_lib_save_LIBS=$LIBS 20639LIBS="-ldld $LIBS" 20640cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20641/* end confdefs.h. */ 20642 20643/* Override any GCC internal prototype to avoid an error. 20644 Use char because int might match the return type of a GCC 20645 builtin and then its argument prototype would still apply. */ 20646#ifdef __cplusplus 20647extern "C" 20648#endif 20649char shl_load (); 20650int 20651main () 20652{ 20653return shl_load (); 20654 ; 20655 return 0; 20656} 20657_ACEOF 20658if ac_fn_c_try_link "$LINENO"; then : 20659 ac_cv_lib_dld_shl_load=yes 20660else 20661 ac_cv_lib_dld_shl_load=no 20662fi 20663rm -f core conftest.err conftest.$ac_objext \ 20664 conftest$ac_exeext conftest.$ac_ext 20665LIBS=$ac_check_lib_save_LIBS 20666fi 20667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 20668$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 20669if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 20670 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 20671else 20672 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 20673if test "x$ac_cv_func_dlopen" = xyes; then : 20674 lt_cv_dlopen=dlopen 20675else 20676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 20677$as_echo_n "checking for dlopen in -ldl... " >&6; } 20678if ${ac_cv_lib_dl_dlopen+:} false; then : 20679 $as_echo_n "(cached) " >&6 20680else 20681 ac_check_lib_save_LIBS=$LIBS 20682LIBS="-ldl $LIBS" 20683cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20684/* end confdefs.h. */ 20685 20686/* Override any GCC internal prototype to avoid an error. 20687 Use char because int might match the return type of a GCC 20688 builtin and then its argument prototype would still apply. */ 20689#ifdef __cplusplus 20690extern "C" 20691#endif 20692char dlopen (); 20693int 20694main () 20695{ 20696return dlopen (); 20697 ; 20698 return 0; 20699} 20700_ACEOF 20701if ac_fn_c_try_link "$LINENO"; then : 20702 ac_cv_lib_dl_dlopen=yes 20703else 20704 ac_cv_lib_dl_dlopen=no 20705fi 20706rm -f core conftest.err conftest.$ac_objext \ 20707 conftest$ac_exeext conftest.$ac_ext 20708LIBS=$ac_check_lib_save_LIBS 20709fi 20710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 20711$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 20712if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 20713 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 20714else 20715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 20716$as_echo_n "checking for dlopen in -lsvld... " >&6; } 20717if ${ac_cv_lib_svld_dlopen+:} false; then : 20718 $as_echo_n "(cached) " >&6 20719else 20720 ac_check_lib_save_LIBS=$LIBS 20721LIBS="-lsvld $LIBS" 20722cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20723/* end confdefs.h. */ 20724 20725/* Override any GCC internal prototype to avoid an error. 20726 Use char because int might match the return type of a GCC 20727 builtin and then its argument prototype would still apply. */ 20728#ifdef __cplusplus 20729extern "C" 20730#endif 20731char dlopen (); 20732int 20733main () 20734{ 20735return dlopen (); 20736 ; 20737 return 0; 20738} 20739_ACEOF 20740if ac_fn_c_try_link "$LINENO"; then : 20741 ac_cv_lib_svld_dlopen=yes 20742else 20743 ac_cv_lib_svld_dlopen=no 20744fi 20745rm -f core conftest.err conftest.$ac_objext \ 20746 conftest$ac_exeext conftest.$ac_ext 20747LIBS=$ac_check_lib_save_LIBS 20748fi 20749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 20750$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 20751if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 20752 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 20753else 20754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 20755$as_echo_n "checking for dld_link in -ldld... " >&6; } 20756if ${ac_cv_lib_dld_dld_link+:} false; then : 20757 $as_echo_n "(cached) " >&6 20758else 20759 ac_check_lib_save_LIBS=$LIBS 20760LIBS="-ldld $LIBS" 20761cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20762/* end confdefs.h. */ 20763 20764/* Override any GCC internal prototype to avoid an error. 20765 Use char because int might match the return type of a GCC 20766 builtin and then its argument prototype would still apply. */ 20767#ifdef __cplusplus 20768extern "C" 20769#endif 20770char dld_link (); 20771int 20772main () 20773{ 20774return dld_link (); 20775 ; 20776 return 0; 20777} 20778_ACEOF 20779if ac_fn_c_try_link "$LINENO"; then : 20780 ac_cv_lib_dld_dld_link=yes 20781else 20782 ac_cv_lib_dld_dld_link=no 20783fi 20784rm -f core conftest.err conftest.$ac_objext \ 20785 conftest$ac_exeext conftest.$ac_ext 20786LIBS=$ac_check_lib_save_LIBS 20787fi 20788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 20789$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 20790if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 20791 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 20792fi 20793 20794 20795fi 20796 20797 20798fi 20799 20800 20801fi 20802 20803 20804fi 20805 20806 20807fi 20808 20809 ;; 20810 esac 20811 20812 if test no = "$lt_cv_dlopen"; then 20813 enable_dlopen=no 20814 else 20815 enable_dlopen=yes 20816 fi 20817 20818 case $lt_cv_dlopen in 20819 dlopen) 20820 save_CPPFLAGS=$CPPFLAGS 20821 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 20822 20823 save_LDFLAGS=$LDFLAGS 20824 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 20825 20826 save_LIBS=$LIBS 20827 LIBS="$lt_cv_dlopen_libs $LIBS" 20828 20829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 20830$as_echo_n "checking whether a program can dlopen itself... " >&6; } 20831if ${lt_cv_dlopen_self+:} false; then : 20832 $as_echo_n "(cached) " >&6 20833else 20834 if test yes = "$cross_compiling"; then : 20835 lt_cv_dlopen_self=cross 20836else 20837 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 20838 lt_status=$lt_dlunknown 20839 cat > conftest.$ac_ext <<_LT_EOF 20840#line $LINENO "configure" 20841#include "confdefs.h" 20842 20843#if HAVE_DLFCN_H 20844#include <dlfcn.h> 20845#endif 20846 20847#include <stdio.h> 20848 20849#ifdef RTLD_GLOBAL 20850# define LT_DLGLOBAL RTLD_GLOBAL 20851#else 20852# ifdef DL_GLOBAL 20853# define LT_DLGLOBAL DL_GLOBAL 20854# else 20855# define LT_DLGLOBAL 0 20856# endif 20857#endif 20858 20859/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 20860 find out it does not work in some platform. */ 20861#ifndef LT_DLLAZY_OR_NOW 20862# ifdef RTLD_LAZY 20863# define LT_DLLAZY_OR_NOW RTLD_LAZY 20864# else 20865# ifdef DL_LAZY 20866# define LT_DLLAZY_OR_NOW DL_LAZY 20867# else 20868# ifdef RTLD_NOW 20869# define LT_DLLAZY_OR_NOW RTLD_NOW 20870# else 20871# ifdef DL_NOW 20872# define LT_DLLAZY_OR_NOW DL_NOW 20873# else 20874# define LT_DLLAZY_OR_NOW 0 20875# endif 20876# endif 20877# endif 20878# endif 20879#endif 20880 20881/* When -fvisibility=hidden is used, assume the code has been annotated 20882 correspondingly for the symbols needed. */ 20883#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 20884int fnord () __attribute__((visibility("default"))); 20885#endif 20886 20887int fnord () { return 42; } 20888int main () 20889{ 20890 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 20891 int status = $lt_dlunknown; 20892 20893 if (self) 20894 { 20895 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 20896 else 20897 { 20898 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 20899 else puts (dlerror ()); 20900 } 20901 /* dlclose (self); */ 20902 } 20903 else 20904 puts (dlerror ()); 20905 20906 return status; 20907} 20908_LT_EOF 20909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 20910 (eval $ac_link) 2>&5 20911 ac_status=$? 20912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20913 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 20914 (./conftest; exit; ) >&5 2>/dev/null 20915 lt_status=$? 20916 case x$lt_status in 20917 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 20918 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 20919 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 20920 esac 20921 else : 20922 # compilation failed 20923 lt_cv_dlopen_self=no 20924 fi 20925fi 20926rm -fr conftest* 20927 20928 20929fi 20930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 20931$as_echo "$lt_cv_dlopen_self" >&6; } 20932 20933 if test yes = "$lt_cv_dlopen_self"; then 20934 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 20935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 20936$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 20937if ${lt_cv_dlopen_self_static+:} false; then : 20938 $as_echo_n "(cached) " >&6 20939else 20940 if test yes = "$cross_compiling"; then : 20941 lt_cv_dlopen_self_static=cross 20942else 20943 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 20944 lt_status=$lt_dlunknown 20945 cat > conftest.$ac_ext <<_LT_EOF 20946#line $LINENO "configure" 20947#include "confdefs.h" 20948 20949#if HAVE_DLFCN_H 20950#include <dlfcn.h> 20951#endif 20952 20953#include <stdio.h> 20954 20955#ifdef RTLD_GLOBAL 20956# define LT_DLGLOBAL RTLD_GLOBAL 20957#else 20958# ifdef DL_GLOBAL 20959# define LT_DLGLOBAL DL_GLOBAL 20960# else 20961# define LT_DLGLOBAL 0 20962# endif 20963#endif 20964 20965/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 20966 find out it does not work in some platform. */ 20967#ifndef LT_DLLAZY_OR_NOW 20968# ifdef RTLD_LAZY 20969# define LT_DLLAZY_OR_NOW RTLD_LAZY 20970# else 20971# ifdef DL_LAZY 20972# define LT_DLLAZY_OR_NOW DL_LAZY 20973# else 20974# ifdef RTLD_NOW 20975# define LT_DLLAZY_OR_NOW RTLD_NOW 20976# else 20977# ifdef DL_NOW 20978# define LT_DLLAZY_OR_NOW DL_NOW 20979# else 20980# define LT_DLLAZY_OR_NOW 0 20981# endif 20982# endif 20983# endif 20984# endif 20985#endif 20986 20987/* When -fvisibility=hidden is used, assume the code has been annotated 20988 correspondingly for the symbols needed. */ 20989#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 20990int fnord () __attribute__((visibility("default"))); 20991#endif 20992 20993int fnord () { return 42; } 20994int main () 20995{ 20996 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 20997 int status = $lt_dlunknown; 20998 20999 if (self) 21000 { 21001 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 21002 else 21003 { 21004 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 21005 else puts (dlerror ()); 21006 } 21007 /* dlclose (self); */ 21008 } 21009 else 21010 puts (dlerror ()); 21011 21012 return status; 21013} 21014_LT_EOF 21015 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 21016 (eval $ac_link) 2>&5 21017 ac_status=$? 21018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21019 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 21020 (./conftest; exit; ) >&5 2>/dev/null 21021 lt_status=$? 21022 case x$lt_status in 21023 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 21024 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 21025 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 21026 esac 21027 else : 21028 # compilation failed 21029 lt_cv_dlopen_self_static=no 21030 fi 21031fi 21032rm -fr conftest* 21033 21034 21035fi 21036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 21037$as_echo "$lt_cv_dlopen_self_static" >&6; } 21038 fi 21039 21040 CPPFLAGS=$save_CPPFLAGS 21041 LDFLAGS=$save_LDFLAGS 21042 LIBS=$save_LIBS 21043 ;; 21044 esac 21045 21046 case $lt_cv_dlopen_self in 21047 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 21048 *) enable_dlopen_self=unknown ;; 21049 esac 21050 21051 case $lt_cv_dlopen_self_static in 21052 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 21053 *) enable_dlopen_self_static=unknown ;; 21054 esac 21055fi 21056 21057 21058 21059 21060 21061 21062 21063 21064 21065 21066 21067 21068 21069 21070 21071 21072 21073striplib= 21074old_striplib= 21075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 21076$as_echo_n "checking whether stripping libraries is possible... " >&6; } 21077if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 21078 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 21079 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 21080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21081$as_echo "yes" >&6; } 21082else 21083# FIXME - insert some real tests, host_os isn't really good enough 21084 case $host_os in 21085 darwin*) 21086 if test -n "$STRIP"; then 21087 striplib="$STRIP -x" 21088 old_striplib="$STRIP -S" 21089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21090$as_echo "yes" >&6; } 21091 else 21092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21093$as_echo "no" >&6; } 21094 fi 21095 ;; 21096 *) 21097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21098$as_echo "no" >&6; } 21099 ;; 21100 esac 21101fi 21102 21103 21104 21105 21106 21107 21108 21109 21110 21111 21112 21113 21114 # Report what library types will actually be built 21115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 21116$as_echo_n "checking if libtool supports shared libraries... " >&6; } 21117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 21118$as_echo "$can_build_shared" >&6; } 21119 21120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 21121$as_echo_n "checking whether to build shared libraries... " >&6; } 21122 test no = "$can_build_shared" && enable_shared=no 21123 21124 # On AIX, shared libraries and static libraries use the same namespace, and 21125 # are all built from PIC. 21126 case $host_os in 21127 aix3*) 21128 test yes = "$enable_shared" && enable_static=no 21129 if test -n "$RANLIB"; then 21130 archive_cmds="$archive_cmds~\$RANLIB \$lib" 21131 postinstall_cmds='$RANLIB $lib' 21132 fi 21133 ;; 21134 21135 aix[4-9]*) 21136 if test ia64 != "$host_cpu"; then 21137 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 21138 yes,aix,yes) ;; # shared object as lib.so file only 21139 yes,svr4,*) ;; # shared object as lib.so archive member only 21140 yes,*) enable_static=no ;; # shared object in lib.a archive as well 21141 esac 21142 fi 21143 ;; 21144 esac 21145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 21146$as_echo "$enable_shared" >&6; } 21147 21148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 21149$as_echo_n "checking whether to build static libraries... " >&6; } 21150 # Make sure either enable_shared or enable_static is yes. 21151 test yes = "$enable_shared" || enable_static=yes 21152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 21153$as_echo "$enable_static" >&6; } 21154 21155 21156 21157 21158fi 21159ac_ext=c 21160ac_cpp='$CPP $CPPFLAGS' 21161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21163ac_compiler_gnu=$ac_cv_c_compiler_gnu 21164 21165CC=$lt_save_CC 21166 21167 21168 21169 21170 21171 21172 21173 21174 21175 21176 21177 21178 21179 21180 21181 ac_config_commands="$ac_config_commands libtool" 21182 21183 21184 21185 21186# Only expand once: 21187 21188 21189 21190 21191 21192 21193 21194 21195 21196if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 21197 if test -n "$ac_tool_prefix"; then 21198 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 21199set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 21200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21201$as_echo_n "checking for $ac_word... " >&6; } 21202if ${ac_cv_path_PKG_CONFIG+:} false; then : 21203 $as_echo_n "(cached) " >&6 21204else 21205 case $PKG_CONFIG in 21206 [\\/]* | ?:[\\/]*) 21207 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 21208 ;; 21209 *) 21210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21211for as_dir in $PATH 21212do 21213 IFS=$as_save_IFS 21214 test -z "$as_dir" && as_dir=. 21215 for ac_exec_ext in '' $ac_executable_extensions; do 21216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21217 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21219 break 2 21220 fi 21221done 21222 done 21223IFS=$as_save_IFS 21224 21225 ;; 21226esac 21227fi 21228PKG_CONFIG=$ac_cv_path_PKG_CONFIG 21229if test -n "$PKG_CONFIG"; then 21230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 21231$as_echo "$PKG_CONFIG" >&6; } 21232else 21233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21234$as_echo "no" >&6; } 21235fi 21236 21237 21238fi 21239if test -z "$ac_cv_path_PKG_CONFIG"; then 21240 ac_pt_PKG_CONFIG=$PKG_CONFIG 21241 # Extract the first word of "pkg-config", so it can be a program name with args. 21242set dummy pkg-config; ac_word=$2 21243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21244$as_echo_n "checking for $ac_word... " >&6; } 21245if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 21246 $as_echo_n "(cached) " >&6 21247else 21248 case $ac_pt_PKG_CONFIG in 21249 [\\/]* | ?:[\\/]*) 21250 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 21251 ;; 21252 *) 21253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21254for as_dir in $PATH 21255do 21256 IFS=$as_save_IFS 21257 test -z "$as_dir" && as_dir=. 21258 for ac_exec_ext in '' $ac_executable_extensions; do 21259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21260 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21262 break 2 21263 fi 21264done 21265 done 21266IFS=$as_save_IFS 21267 21268 ;; 21269esac 21270fi 21271ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 21272if test -n "$ac_pt_PKG_CONFIG"; then 21273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 21274$as_echo "$ac_pt_PKG_CONFIG" >&6; } 21275else 21276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21277$as_echo "no" >&6; } 21278fi 21279 21280 if test "x$ac_pt_PKG_CONFIG" = x; then 21281 PKG_CONFIG="" 21282 else 21283 case $cross_compiling:$ac_tool_warned in 21284yes:) 21285{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 21286$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 21287ac_tool_warned=yes ;; 21288esac 21289 PKG_CONFIG=$ac_pt_PKG_CONFIG 21290 fi 21291else 21292 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 21293fi 21294 21295fi 21296if test -n "$PKG_CONFIG"; then 21297 _pkg_min_version=0.9.0 21298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 21299$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 21300 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 21301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21302$as_echo "yes" >&6; } 21303 else 21304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21305$as_echo "no" >&6; } 21306 PKG_CONFIG="" 21307 fi 21308fi 21309for ac_prog in flex lex 21310do 21311 # Extract the first word of "$ac_prog", so it can be a program name with args. 21312set dummy $ac_prog; ac_word=$2 21313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21314$as_echo_n "checking for $ac_word... " >&6; } 21315if ${ac_cv_prog_LEX+:} false; then : 21316 $as_echo_n "(cached) " >&6 21317else 21318 if test -n "$LEX"; then 21319 ac_cv_prog_LEX="$LEX" # Let the user override the test. 21320else 21321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21322for as_dir in $PATH 21323do 21324 IFS=$as_save_IFS 21325 test -z "$as_dir" && as_dir=. 21326 for ac_exec_ext in '' $ac_executable_extensions; do 21327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21328 ac_cv_prog_LEX="$ac_prog" 21329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21330 break 2 21331 fi 21332done 21333 done 21334IFS=$as_save_IFS 21335 21336fi 21337fi 21338LEX=$ac_cv_prog_LEX 21339if test -n "$LEX"; then 21340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 21341$as_echo "$LEX" >&6; } 21342else 21343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21344$as_echo "no" >&6; } 21345fi 21346 21347 21348 test -n "$LEX" && break 21349done 21350test -n "$LEX" || LEX=":" 21351 21352if test "x$LEX" != "x:"; then 21353 cat >conftest.l <<_ACEOF 21354%% 21355a { ECHO; } 21356b { REJECT; } 21357c { yymore (); } 21358d { yyless (1); } 21359e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 21360 yyless ((input () != 0)); } 21361f { unput (yytext[0]); } 21362. { BEGIN INITIAL; } 21363%% 21364#ifdef YYTEXT_POINTER 21365extern char *yytext; 21366#endif 21367int 21368main (void) 21369{ 21370 return ! yylex () + ! yywrap (); 21371} 21372_ACEOF 21373{ { ac_try="$LEX conftest.l" 21374case "(($ac_try" in 21375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21376 *) ac_try_echo=$ac_try;; 21377esac 21378eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 21379$as_echo "$ac_try_echo"; } >&5 21380 (eval "$LEX conftest.l") 2>&5 21381 ac_status=$? 21382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21383 test $ac_status = 0; } 21384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 21385$as_echo_n "checking lex output file root... " >&6; } 21386if ${ac_cv_prog_lex_root+:} false; then : 21387 $as_echo_n "(cached) " >&6 21388else 21389 21390if test -f lex.yy.c; then 21391 ac_cv_prog_lex_root=lex.yy 21392elif test -f lexyy.c; then 21393 ac_cv_prog_lex_root=lexyy 21394else 21395 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 21396fi 21397fi 21398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 21399$as_echo "$ac_cv_prog_lex_root" >&6; } 21400LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 21401 21402if test -z "${LEXLIB+set}"; then 21403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 21404$as_echo_n "checking lex library... " >&6; } 21405if ${ac_cv_lib_lex+:} false; then : 21406 $as_echo_n "(cached) " >&6 21407else 21408 21409 ac_save_LIBS=$LIBS 21410 ac_cv_lib_lex='none needed' 21411 for ac_lib in '' -lfl -ll; do 21412 LIBS="$ac_lib $ac_save_LIBS" 21413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21414/* end confdefs.h. */ 21415`cat $LEX_OUTPUT_ROOT.c` 21416_ACEOF 21417if ac_fn_c_try_link "$LINENO"; then : 21418 ac_cv_lib_lex=$ac_lib 21419fi 21420rm -f core conftest.err conftest.$ac_objext \ 21421 conftest$ac_exeext conftest.$ac_ext 21422 test "$ac_cv_lib_lex" != 'none needed' && break 21423 done 21424 LIBS=$ac_save_LIBS 21425 21426fi 21427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 21428$as_echo "$ac_cv_lib_lex" >&6; } 21429 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 21430fi 21431 21432 21433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 21434$as_echo_n "checking whether yytext is a pointer... " >&6; } 21435if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 21436 $as_echo_n "(cached) " >&6 21437else 21438 # POSIX says lex can declare yytext either as a pointer or an array; the 21439# default is implementation-dependent. Figure out which it is, since 21440# not all implementations provide the %pointer and %array declarations. 21441ac_cv_prog_lex_yytext_pointer=no 21442ac_save_LIBS=$LIBS 21443LIBS="$LEXLIB $ac_save_LIBS" 21444cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21445/* end confdefs.h. */ 21446 21447 #define YYTEXT_POINTER 1 21448`cat $LEX_OUTPUT_ROOT.c` 21449_ACEOF 21450if ac_fn_c_try_link "$LINENO"; then : 21451 ac_cv_prog_lex_yytext_pointer=yes 21452fi 21453rm -f core conftest.err conftest.$ac_objext \ 21454 conftest$ac_exeext conftest.$ac_ext 21455LIBS=$ac_save_LIBS 21456 21457fi 21458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 21459$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 21460if test $ac_cv_prog_lex_yytext_pointer = yes; then 21461 21462$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 21463 21464fi 21465rm -f conftest.l $LEX_OUTPUT_ROOT.c 21466 21467fi 21468for ac_prog in 'bison -y' byacc 21469do 21470 # Extract the first word of "$ac_prog", so it can be a program name with args. 21471set dummy $ac_prog; ac_word=$2 21472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21473$as_echo_n "checking for $ac_word... " >&6; } 21474if ${ac_cv_prog_YACC+:} false; then : 21475 $as_echo_n "(cached) " >&6 21476else 21477 if test -n "$YACC"; then 21478 ac_cv_prog_YACC="$YACC" # Let the user override the test. 21479else 21480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21481for as_dir in $PATH 21482do 21483 IFS=$as_save_IFS 21484 test -z "$as_dir" && as_dir=. 21485 for ac_exec_ext in '' $ac_executable_extensions; do 21486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21487 ac_cv_prog_YACC="$ac_prog" 21488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21489 break 2 21490 fi 21491done 21492 done 21493IFS=$as_save_IFS 21494 21495fi 21496fi 21497YACC=$ac_cv_prog_YACC 21498if test -n "$YACC"; then 21499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 21500$as_echo "$YACC" >&6; } 21501else 21502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21503$as_echo "no" >&6; } 21504fi 21505 21506 21507 test -n "$YACC" && break 21508done 21509test -n "$YACC" || YACC="yacc" 21510 21511# Check whether --enable-largefile was given. 21512if test "${enable_largefile+set}" = set; then : 21513 enableval=$enable_largefile; 21514fi 21515 21516if test "$enable_largefile" != no; then 21517 21518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 21519$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 21520if ${ac_cv_sys_largefile_CC+:} false; then : 21521 $as_echo_n "(cached) " >&6 21522else 21523 ac_cv_sys_largefile_CC=no 21524 if test "$GCC" != yes; then 21525 ac_save_CC=$CC 21526 while :; do 21527 # IRIX 6.2 and later do not support large files by default, 21528 # so use the C compiler's -n32 option if that helps. 21529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21530/* end confdefs.h. */ 21531#include <sys/types.h> 21532 /* Check that off_t can represent 2**63 - 1 correctly. 21533 We can't simply define LARGE_OFF_T to be 9223372036854775807, 21534 since some C++ compilers masquerading as C compilers 21535 incorrectly reject 9223372036854775807. */ 21536#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 21537 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 21538 && LARGE_OFF_T % 2147483647 == 1) 21539 ? 1 : -1]; 21540int 21541main () 21542{ 21543 21544 ; 21545 return 0; 21546} 21547_ACEOF 21548 if ac_fn_c_try_compile "$LINENO"; then : 21549 break 21550fi 21551rm -f core conftest.err conftest.$ac_objext 21552 CC="$CC -n32" 21553 if ac_fn_c_try_compile "$LINENO"; then : 21554 ac_cv_sys_largefile_CC=' -n32'; break 21555fi 21556rm -f core conftest.err conftest.$ac_objext 21557 break 21558 done 21559 CC=$ac_save_CC 21560 rm -f conftest.$ac_ext 21561 fi 21562fi 21563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 21564$as_echo "$ac_cv_sys_largefile_CC" >&6; } 21565 if test "$ac_cv_sys_largefile_CC" != no; then 21566 CC=$CC$ac_cv_sys_largefile_CC 21567 fi 21568 21569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 21570$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 21571if ${ac_cv_sys_file_offset_bits+:} false; then : 21572 $as_echo_n "(cached) " >&6 21573else 21574 while :; do 21575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21576/* end confdefs.h. */ 21577#include <sys/types.h> 21578 /* Check that off_t can represent 2**63 - 1 correctly. 21579 We can't simply define LARGE_OFF_T to be 9223372036854775807, 21580 since some C++ compilers masquerading as C compilers 21581 incorrectly reject 9223372036854775807. */ 21582#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 21583 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 21584 && LARGE_OFF_T % 2147483647 == 1) 21585 ? 1 : -1]; 21586int 21587main () 21588{ 21589 21590 ; 21591 return 0; 21592} 21593_ACEOF 21594if ac_fn_c_try_compile "$LINENO"; then : 21595 ac_cv_sys_file_offset_bits=no; break 21596fi 21597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21599/* end confdefs.h. */ 21600#define _FILE_OFFSET_BITS 64 21601#include <sys/types.h> 21602 /* Check that off_t can represent 2**63 - 1 correctly. 21603 We can't simply define LARGE_OFF_T to be 9223372036854775807, 21604 since some C++ compilers masquerading as C compilers 21605 incorrectly reject 9223372036854775807. */ 21606#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 21607 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 21608 && LARGE_OFF_T % 2147483647 == 1) 21609 ? 1 : -1]; 21610int 21611main () 21612{ 21613 21614 ; 21615 return 0; 21616} 21617_ACEOF 21618if ac_fn_c_try_compile "$LINENO"; then : 21619 ac_cv_sys_file_offset_bits=64; break 21620fi 21621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21622 ac_cv_sys_file_offset_bits=unknown 21623 break 21624done 21625fi 21626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 21627$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 21628case $ac_cv_sys_file_offset_bits in #( 21629 no | unknown) ;; 21630 *) 21631cat >>confdefs.h <<_ACEOF 21632#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 21633_ACEOF 21634;; 21635esac 21636rm -rf conftest* 21637 if test $ac_cv_sys_file_offset_bits = unknown; then 21638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 21639$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 21640if ${ac_cv_sys_large_files+:} false; then : 21641 $as_echo_n "(cached) " >&6 21642else 21643 while :; do 21644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21645/* end confdefs.h. */ 21646#include <sys/types.h> 21647 /* Check that off_t can represent 2**63 - 1 correctly. 21648 We can't simply define LARGE_OFF_T to be 9223372036854775807, 21649 since some C++ compilers masquerading as C compilers 21650 incorrectly reject 9223372036854775807. */ 21651#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 21652 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 21653 && LARGE_OFF_T % 2147483647 == 1) 21654 ? 1 : -1]; 21655int 21656main () 21657{ 21658 21659 ; 21660 return 0; 21661} 21662_ACEOF 21663if ac_fn_c_try_compile "$LINENO"; then : 21664 ac_cv_sys_large_files=no; break 21665fi 21666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21668/* end confdefs.h. */ 21669#define _LARGE_FILES 1 21670#include <sys/types.h> 21671 /* Check that off_t can represent 2**63 - 1 correctly. 21672 We can't simply define LARGE_OFF_T to be 9223372036854775807, 21673 since some C++ compilers masquerading as C compilers 21674 incorrectly reject 9223372036854775807. */ 21675#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 21676 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 21677 && LARGE_OFF_T % 2147483647 == 1) 21678 ? 1 : -1]; 21679int 21680main () 21681{ 21682 21683 ; 21684 return 0; 21685} 21686_ACEOF 21687if ac_fn_c_try_compile "$LINENO"; then : 21688 ac_cv_sys_large_files=1; break 21689fi 21690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21691 ac_cv_sys_large_files=unknown 21692 break 21693done 21694fi 21695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 21696$as_echo "$ac_cv_sys_large_files" >&6; } 21697case $ac_cv_sys_large_files in #( 21698 no | unknown) ;; 21699 *) 21700cat >>confdefs.h <<_ACEOF 21701#define _LARGE_FILES $ac_cv_sys_large_files 21702_ACEOF 21703;; 21704esac 21705rm -rf conftest* 21706 fi 21707 21708 21709fi 21710 21711 21712 21713if test -n "$ac_tool_prefix"; then 21714 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args. 21715set dummy ${ac_tool_prefix}cpp; ac_word=$2 21716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21717$as_echo_n "checking for $ac_word... " >&6; } 21718if ${ac_cv_path_RAWCPP+:} false; then : 21719 $as_echo_n "(cached) " >&6 21720else 21721 case $RAWCPP in 21722 [\\/]* | ?:[\\/]*) 21723 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path. 21724 ;; 21725 *) 21726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21727as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 21728for as_dir in $as_dummy 21729do 21730 IFS=$as_save_IFS 21731 test -z "$as_dir" && as_dir=. 21732 for ac_exec_ext in '' $ac_executable_extensions; do 21733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21734 ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext" 21735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21736 break 2 21737 fi 21738done 21739 done 21740IFS=$as_save_IFS 21741 21742 ;; 21743esac 21744fi 21745RAWCPP=$ac_cv_path_RAWCPP 21746if test -n "$RAWCPP"; then 21747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5 21748$as_echo "$RAWCPP" >&6; } 21749else 21750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21751$as_echo "no" >&6; } 21752fi 21753 21754 21755fi 21756if test -z "$ac_cv_path_RAWCPP"; then 21757 ac_pt_RAWCPP=$RAWCPP 21758 # Extract the first word of "cpp", so it can be a program name with args. 21759set dummy cpp; ac_word=$2 21760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21761$as_echo_n "checking for $ac_word... " >&6; } 21762if ${ac_cv_path_ac_pt_RAWCPP+:} false; then : 21763 $as_echo_n "(cached) " >&6 21764else 21765 case $ac_pt_RAWCPP in 21766 [\\/]* | ?:[\\/]*) 21767 ac_cv_path_ac_pt_RAWCPP="$ac_pt_RAWCPP" # Let the user override the test with a path. 21768 ;; 21769 *) 21770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21771as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 21772for as_dir in $as_dummy 21773do 21774 IFS=$as_save_IFS 21775 test -z "$as_dir" && as_dir=. 21776 for ac_exec_ext in '' $ac_executable_extensions; do 21777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21778 ac_cv_path_ac_pt_RAWCPP="$as_dir/$ac_word$ac_exec_ext" 21779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21780 break 2 21781 fi 21782done 21783 done 21784IFS=$as_save_IFS 21785 21786 ;; 21787esac 21788fi 21789ac_pt_RAWCPP=$ac_cv_path_ac_pt_RAWCPP 21790if test -n "$ac_pt_RAWCPP"; then 21791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RAWCPP" >&5 21792$as_echo "$ac_pt_RAWCPP" >&6; } 21793else 21794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21795$as_echo "no" >&6; } 21796fi 21797 21798 if test "x$ac_pt_RAWCPP" = x; then 21799 RAWCPP="${CPP}" 21800 else 21801 case $cross_compiling:$ac_tool_warned in 21802yes:) 21803{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 21804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 21805ac_tool_warned=yes ;; 21806esac 21807 RAWCPP=$ac_pt_RAWCPP 21808 fi 21809else 21810 RAWCPP="$ac_cv_path_RAWCPP" 21811fi 21812 21813 21814# Check for flag to avoid builtin definitions - assumes unix is predefined, 21815# which is not the best choice for supporting other OS'es, but covers most 21816# of the ones we need for now. 21817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5 21818$as_echo_n "checking if $RAWCPP requires -undef... " >&6; } 21819cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21820/* end confdefs.h. */ 21821Does cpp redefine unix ? 21822_ACEOF 21823if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 21824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21825$as_echo "no" >&6; } 21826else 21827 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 21828 RAWCPPFLAGS=-undef 21829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21830$as_echo "yes" >&6; } 21831 # under Cygwin unix is still defined even with -undef 21832 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 21833 RAWCPPFLAGS="-undef -ansi" 21834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5 21835$as_echo "yes, with -ansi" >&6; } 21836 else 21837 as_fn_error $? "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5 21838 fi 21839fi 21840rm -f conftest.$ac_ext 21841 21842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5 21843$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; } 21844cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21845/* end confdefs.h. */ 21846Does cpp preserve "whitespace"? 21847_ACEOF 21848if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 21849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21850$as_echo "no" >&6; } 21851else 21852 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 21853 TRADITIONALCPPFLAGS="-traditional" 21854 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 21855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21856$as_echo "yes" >&6; } 21857 else 21858 as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5 21859 fi 21860fi 21861rm -f conftest.$ac_ext 21862 21863 21864 21865 21866# Quoted so that make will expand $(CWARNFLAGS) in makefiles to allow 21867# easier overrides at build time. 21868XSERVER_CFLAGS='$(CWARNFLAGS)' 21869 21870if test "x$GCC" = xyes ; then 21871 XSERVER_CFLAGS="$XSERVER_CFLAGS -fno-strict-aliasing" 21872fi 21873 21874 21875# Check whether --with-dtrace was given. 21876if test "${with_dtrace+set}" = set; then : 21877 withval=$with_dtrace; WDTRACE=$withval 21878else 21879 WDTRACE=auto 21880fi 21881 21882if test "x$WDTRACE" = "xyes" -o "x$WDTRACE" = "xauto" ; then 21883 # Extract the first word of "dtrace", so it can be a program name with args. 21884set dummy dtrace; ac_word=$2 21885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21886$as_echo_n "checking for $ac_word... " >&6; } 21887if ${ac_cv_path_DTRACE+:} false; then : 21888 $as_echo_n "(cached) " >&6 21889else 21890 case $DTRACE in 21891 [\\/]* | ?:[\\/]*) 21892 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 21893 ;; 21894 *) 21895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21896as_dummy="$PATH:/usr/sbin" 21897for as_dir in $as_dummy 21898do 21899 IFS=$as_save_IFS 21900 test -z "$as_dir" && as_dir=. 21901 for ac_exec_ext in '' $ac_executable_extensions; do 21902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21903 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 21904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21905 break 2 21906 fi 21907done 21908 done 21909IFS=$as_save_IFS 21910 21911 test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not_found" 21912 ;; 21913esac 21914fi 21915DTRACE=$ac_cv_path_DTRACE 21916if test -n "$DTRACE"; then 21917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 21918$as_echo "$DTRACE" >&6; } 21919else 21920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21921$as_echo "no" >&6; } 21922fi 21923 21924 21925 if test "x$DTRACE" = "xnot_found" ; then 21926 if test "x$WDTRACE" = "xyes" ; then 21927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21928$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21929as_fn_error $? "dtrace requested but not found 21930See \`config.log' for more details" "$LINENO" 5; } 21931 fi 21932 WDTRACE="no" 21933 else 21934 ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default" 21935if test "x$ac_cv_header_sys_sdt_h" = xyes; then : 21936 HAS_SDT_H="yes" 21937else 21938 HAS_SDT_H="no" 21939fi 21940 21941 21942 if test "x$WDTRACE" = "xauto" -a "x$HAS_SDT_H" = "xno" ; then 21943 WDTRACE="no" 21944 fi 21945 fi 21946fi 21947if test "x$WDTRACE" != "xno" ; then 21948 21949$as_echo "#define XSERVER_DTRACE 1" >>confdefs.h 21950 21951 21952# Solaris/OpenSolaris require dtrace -G to build dtrace probe information into 21953# object files, and require linking with those as relocatable objects, not .a 21954# archives. MacOS X handles all this in the normal compiler toolchain, and on 21955# some releases (like Tiger), will error out on dtrace -G. For now, other 21956# platforms with Dtrace ports are assumed to support -G (the FreeBSD and Linux 21957# ports appear to, based on my web searches, but have not yet been tested). 21958 case $host_os in 21959 darwin*) SPECIAL_DTRACE_OBJECTS=no ;; 21960 *) SPECIAL_DTRACE_OBJECTS=yes ;; 21961 esac 21962fi 21963 if test "x$WDTRACE" != "xno"; then 21964 XSERVER_DTRACE_TRUE= 21965 XSERVER_DTRACE_FALSE='#' 21966else 21967 XSERVER_DTRACE_TRUE='#' 21968 XSERVER_DTRACE_FALSE= 21969fi 21970 21971 if test "x$SPECIAL_DTRACE_OBJECTS" = "xyes"; then 21972 SPECIAL_DTRACE_OBJECTS_TRUE= 21973 SPECIAL_DTRACE_OBJECTS_FALSE='#' 21974else 21975 SPECIAL_DTRACE_OBJECTS_TRUE='#' 21976 SPECIAL_DTRACE_OBJECTS_FALSE= 21977fi 21978 21979 21980ac_header_dirent=no 21981for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 21982 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 21983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 21984$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 21985if eval \${$as_ac_Header+:} false; then : 21986 $as_echo_n "(cached) " >&6 21987else 21988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21989/* end confdefs.h. */ 21990#include <sys/types.h> 21991#include <$ac_hdr> 21992 21993int 21994main () 21995{ 21996if ((DIR *) 0) 21997return 0; 21998 ; 21999 return 0; 22000} 22001_ACEOF 22002if ac_fn_c_try_compile "$LINENO"; then : 22003 eval "$as_ac_Header=yes" 22004else 22005 eval "$as_ac_Header=no" 22006fi 22007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22008fi 22009eval ac_res=\$$as_ac_Header 22010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 22011$as_echo "$ac_res" >&6; } 22012if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 22013 cat >>confdefs.h <<_ACEOF 22014#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 22015_ACEOF 22016 22017ac_header_dirent=$ac_hdr; break 22018fi 22019 22020done 22021# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 22022if test $ac_header_dirent = dirent.h; then 22023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 22024$as_echo_n "checking for library containing opendir... " >&6; } 22025if ${ac_cv_search_opendir+:} false; then : 22026 $as_echo_n "(cached) " >&6 22027else 22028 ac_func_search_save_LIBS=$LIBS 22029cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22030/* end confdefs.h. */ 22031 22032/* Override any GCC internal prototype to avoid an error. 22033 Use char because int might match the return type of a GCC 22034 builtin and then its argument prototype would still apply. */ 22035#ifdef __cplusplus 22036extern "C" 22037#endif 22038char opendir (); 22039int 22040main () 22041{ 22042return opendir (); 22043 ; 22044 return 0; 22045} 22046_ACEOF 22047for ac_lib in '' dir; do 22048 if test -z "$ac_lib"; then 22049 ac_res="none required" 22050 else 22051 ac_res=-l$ac_lib 22052 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22053 fi 22054 if ac_fn_c_try_link "$LINENO"; then : 22055 ac_cv_search_opendir=$ac_res 22056fi 22057rm -f core conftest.err conftest.$ac_objext \ 22058 conftest$ac_exeext 22059 if ${ac_cv_search_opendir+:} false; then : 22060 break 22061fi 22062done 22063if ${ac_cv_search_opendir+:} false; then : 22064 22065else 22066 ac_cv_search_opendir=no 22067fi 22068rm conftest.$ac_ext 22069LIBS=$ac_func_search_save_LIBS 22070fi 22071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 22072$as_echo "$ac_cv_search_opendir" >&6; } 22073ac_res=$ac_cv_search_opendir 22074if test "$ac_res" != no; then : 22075 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22076 22077fi 22078 22079else 22080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 22081$as_echo_n "checking for library containing opendir... " >&6; } 22082if ${ac_cv_search_opendir+:} false; then : 22083 $as_echo_n "(cached) " >&6 22084else 22085 ac_func_search_save_LIBS=$LIBS 22086cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22087/* end confdefs.h. */ 22088 22089/* Override any GCC internal prototype to avoid an error. 22090 Use char because int might match the return type of a GCC 22091 builtin and then its argument prototype would still apply. */ 22092#ifdef __cplusplus 22093extern "C" 22094#endif 22095char opendir (); 22096int 22097main () 22098{ 22099return opendir (); 22100 ; 22101 return 0; 22102} 22103_ACEOF 22104for ac_lib in '' x; do 22105 if test -z "$ac_lib"; then 22106 ac_res="none required" 22107 else 22108 ac_res=-l$ac_lib 22109 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22110 fi 22111 if ac_fn_c_try_link "$LINENO"; then : 22112 ac_cv_search_opendir=$ac_res 22113fi 22114rm -f core conftest.err conftest.$ac_objext \ 22115 conftest$ac_exeext 22116 if ${ac_cv_search_opendir+:} false; then : 22117 break 22118fi 22119done 22120if ${ac_cv_search_opendir+:} false; then : 22121 22122else 22123 ac_cv_search_opendir=no 22124fi 22125rm conftest.$ac_ext 22126LIBS=$ac_func_search_save_LIBS 22127fi 22128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 22129$as_echo "$ac_cv_search_opendir" >&6; } 22130ac_res=$ac_cv_search_opendir 22131if test "$ac_res" != no; then : 22132 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22133 22134fi 22135 22136fi 22137 22138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 22139$as_echo_n "checking for ANSI C header files... " >&6; } 22140if ${ac_cv_header_stdc+:} false; then : 22141 $as_echo_n "(cached) " >&6 22142else 22143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22144/* end confdefs.h. */ 22145#include <stdlib.h> 22146#include <stdarg.h> 22147#include <string.h> 22148#include <float.h> 22149 22150int 22151main () 22152{ 22153 22154 ; 22155 return 0; 22156} 22157_ACEOF 22158if ac_fn_c_try_compile "$LINENO"; then : 22159 ac_cv_header_stdc=yes 22160else 22161 ac_cv_header_stdc=no 22162fi 22163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22164 22165if test $ac_cv_header_stdc = yes; then 22166 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 22167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22168/* end confdefs.h. */ 22169#include <string.h> 22170 22171_ACEOF 22172if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22173 $EGREP "memchr" >/dev/null 2>&1; then : 22174 22175else 22176 ac_cv_header_stdc=no 22177fi 22178rm -f conftest* 22179 22180fi 22181 22182if test $ac_cv_header_stdc = yes; then 22183 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 22184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22185/* end confdefs.h. */ 22186#include <stdlib.h> 22187 22188_ACEOF 22189if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22190 $EGREP "free" >/dev/null 2>&1; then : 22191 22192else 22193 ac_cv_header_stdc=no 22194fi 22195rm -f conftest* 22196 22197fi 22198 22199if test $ac_cv_header_stdc = yes; then 22200 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 22201 if test "$cross_compiling" = yes; then : 22202 : 22203else 22204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22205/* end confdefs.h. */ 22206#include <ctype.h> 22207#include <stdlib.h> 22208#if ((' ' & 0x0FF) == 0x020) 22209# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 22210# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 22211#else 22212# define ISLOWER(c) \ 22213 (('a' <= (c) && (c) <= 'i') \ 22214 || ('j' <= (c) && (c) <= 'r') \ 22215 || ('s' <= (c) && (c) <= 'z')) 22216# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 22217#endif 22218 22219#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 22220int 22221main () 22222{ 22223 int i; 22224 for (i = 0; i < 256; i++) 22225 if (XOR (islower (i), ISLOWER (i)) 22226 || toupper (i) != TOUPPER (i)) 22227 return 2; 22228 return 0; 22229} 22230_ACEOF 22231if ac_fn_c_try_run "$LINENO"; then : 22232 22233else 22234 ac_cv_header_stdc=no 22235fi 22236rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22237 conftest.$ac_objext conftest.beam conftest.$ac_ext 22238fi 22239 22240fi 22241fi 22242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 22243$as_echo "$ac_cv_header_stdc" >&6; } 22244if test $ac_cv_header_stdc = yes; then 22245 22246$as_echo "#define STDC_HEADERS 1" >>confdefs.h 22247 22248fi 22249 22250for ac_header in fcntl.h stdlib.h string.h unistd.h dlfcn.h stropts.h \ 22251 fnmatch.h sys/mkdev.h sys/sysmacros.h sys/utsname.h 22252do : 22253 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 22254ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 22255if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 22256 cat >>confdefs.h <<_ACEOF 22257#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 22258_ACEOF 22259 22260fi 22261 22262done 22263 22264 22265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 22266$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 22267if ${ac_cv_c_const+:} false; then : 22268 $as_echo_n "(cached) " >&6 22269else 22270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22271/* end confdefs.h. */ 22272 22273int 22274main () 22275{ 22276 22277#ifndef __cplusplus 22278 /* Ultrix mips cc rejects this sort of thing. */ 22279 typedef int charset[2]; 22280 const charset cs = { 0, 0 }; 22281 /* SunOS 4.1.1 cc rejects this. */ 22282 char const *const *pcpcc; 22283 char **ppc; 22284 /* NEC SVR4.0.2 mips cc rejects this. */ 22285 struct point {int x, y;}; 22286 static struct point const zero = {0,0}; 22287 /* AIX XL C 1.02.0.0 rejects this. 22288 It does not let you subtract one const X* pointer from another in 22289 an arm of an if-expression whose if-part is not a constant 22290 expression */ 22291 const char *g = "string"; 22292 pcpcc = &g + (g ? g-g : 0); 22293 /* HPUX 7.0 cc rejects these. */ 22294 ++pcpcc; 22295 ppc = (char**) pcpcc; 22296 pcpcc = (char const *const *) ppc; 22297 { /* SCO 3.2v4 cc rejects this sort of thing. */ 22298 char tx; 22299 char *t = &tx; 22300 char const *s = 0 ? (char *) 0 : (char const *) 0; 22301 22302 *t++ = 0; 22303 if (s) return 0; 22304 } 22305 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 22306 int x[] = {25, 17}; 22307 const int *foo = &x[0]; 22308 ++foo; 22309 } 22310 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 22311 typedef const int *iptr; 22312 iptr p = 0; 22313 ++p; 22314 } 22315 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 22316 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 22317 struct s { int j; const int *ap[3]; } bx; 22318 struct s *b = &bx; b->j = 5; 22319 } 22320 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 22321 const int foo = 10; 22322 if (!foo) return 0; 22323 } 22324 return !cs[0] && !zero.x; 22325#endif 22326 22327 ; 22328 return 0; 22329} 22330_ACEOF 22331if ac_fn_c_try_compile "$LINENO"; then : 22332 ac_cv_c_const=yes 22333else 22334 ac_cv_c_const=no 22335fi 22336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22337fi 22338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 22339$as_echo "$ac_cv_c_const" >&6; } 22340if test $ac_cv_c_const = no; then 22341 22342$as_echo "#define const /**/" >>confdefs.h 22343 22344fi 22345 22346 22347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof syntax and keyword spelling" >&5 22348$as_echo_n "checking for typeof syntax and keyword spelling... " >&6; } 22349if ${ac_cv_c_typeof+:} false; then : 22350 $as_echo_n "(cached) " >&6 22351else 22352 ac_cv_c_typeof=no 22353 for ac_kw in typeof __typeof__ no; do 22354 test $ac_kw = no && break 22355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22356/* end confdefs.h. */ 22357 22358int 22359main () 22360{ 22361 22362 int value; 22363 typedef struct { 22364 char a [1 22365 + ! (($ac_kw (value)) 22366 (($ac_kw (value)) 0 < ($ac_kw (value)) -1 22367 ? ($ac_kw (value)) - 1 22368 : ~ (~ ($ac_kw (value)) 0 22369 << sizeof ($ac_kw (value)))))]; } 22370 ac__typeof_type_; 22371 return 22372 (! ((void) ((ac__typeof_type_ *) 0), 0)); 22373 22374 ; 22375 return 0; 22376} 22377_ACEOF 22378if ac_fn_c_try_compile "$LINENO"; then : 22379 ac_cv_c_typeof=$ac_kw 22380fi 22381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22382 test $ac_cv_c_typeof != no && break 22383 done 22384fi 22385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_typeof" >&5 22386$as_echo "$ac_cv_c_typeof" >&6; } 22387 if test $ac_cv_c_typeof != no; then 22388 22389$as_echo "#define HAVE_TYPEOF 1" >>confdefs.h 22390 22391 if test $ac_cv_c_typeof != typeof; then 22392 22393cat >>confdefs.h <<_ACEOF 22394#define typeof $ac_cv_c_typeof 22395_ACEOF 22396 22397 fi 22398 fi 22399 22400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 22401$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 22402if ${ac_cv_c_bigendian+:} false; then : 22403 $as_echo_n "(cached) " >&6 22404else 22405 ac_cv_c_bigendian=unknown 22406 # See if we're dealing with a universal compiler. 22407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22408/* end confdefs.h. */ 22409#ifndef __APPLE_CC__ 22410 not a universal capable compiler 22411 #endif 22412 typedef int dummy; 22413 22414_ACEOF 22415if ac_fn_c_try_compile "$LINENO"; then : 22416 22417 # Check for potential -arch flags. It is not universal unless 22418 # there are at least two -arch flags with different values. 22419 ac_arch= 22420 ac_prev= 22421 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 22422 if test -n "$ac_prev"; then 22423 case $ac_word in 22424 i?86 | x86_64 | ppc | ppc64) 22425 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 22426 ac_arch=$ac_word 22427 else 22428 ac_cv_c_bigendian=universal 22429 break 22430 fi 22431 ;; 22432 esac 22433 ac_prev= 22434 elif test "x$ac_word" = "x-arch"; then 22435 ac_prev=arch 22436 fi 22437 done 22438fi 22439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22440 if test $ac_cv_c_bigendian = unknown; then 22441 # See if sys/param.h defines the BYTE_ORDER macro. 22442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22443/* end confdefs.h. */ 22444#include <sys/types.h> 22445 #include <sys/param.h> 22446 22447int 22448main () 22449{ 22450#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 22451 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 22452 && LITTLE_ENDIAN) 22453 bogus endian macros 22454 #endif 22455 22456 ; 22457 return 0; 22458} 22459_ACEOF 22460if ac_fn_c_try_compile "$LINENO"; then : 22461 # It does; now see whether it defined to BIG_ENDIAN or not. 22462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22463/* end confdefs.h. */ 22464#include <sys/types.h> 22465 #include <sys/param.h> 22466 22467int 22468main () 22469{ 22470#if BYTE_ORDER != BIG_ENDIAN 22471 not big endian 22472 #endif 22473 22474 ; 22475 return 0; 22476} 22477_ACEOF 22478if ac_fn_c_try_compile "$LINENO"; then : 22479 ac_cv_c_bigendian=yes 22480else 22481 ac_cv_c_bigendian=no 22482fi 22483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22484fi 22485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22486 fi 22487 if test $ac_cv_c_bigendian = unknown; then 22488 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 22489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22490/* end confdefs.h. */ 22491#include <limits.h> 22492 22493int 22494main () 22495{ 22496#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 22497 bogus endian macros 22498 #endif 22499 22500 ; 22501 return 0; 22502} 22503_ACEOF 22504if ac_fn_c_try_compile "$LINENO"; then : 22505 # It does; now see whether it defined to _BIG_ENDIAN or not. 22506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22507/* end confdefs.h. */ 22508#include <limits.h> 22509 22510int 22511main () 22512{ 22513#ifndef _BIG_ENDIAN 22514 not big endian 22515 #endif 22516 22517 ; 22518 return 0; 22519} 22520_ACEOF 22521if ac_fn_c_try_compile "$LINENO"; then : 22522 ac_cv_c_bigendian=yes 22523else 22524 ac_cv_c_bigendian=no 22525fi 22526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22527fi 22528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22529 fi 22530 if test $ac_cv_c_bigendian = unknown; then 22531 # Compile a test program. 22532 if test "$cross_compiling" = yes; then : 22533 # Try to guess by grepping values from an object file. 22534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22535/* end confdefs.h. */ 22536short int ascii_mm[] = 22537 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 22538 short int ascii_ii[] = 22539 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 22540 int use_ascii (int i) { 22541 return ascii_mm[i] + ascii_ii[i]; 22542 } 22543 short int ebcdic_ii[] = 22544 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 22545 short int ebcdic_mm[] = 22546 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 22547 int use_ebcdic (int i) { 22548 return ebcdic_mm[i] + ebcdic_ii[i]; 22549 } 22550 extern int foo; 22551 22552int 22553main () 22554{ 22555return use_ascii (foo) == use_ebcdic (foo); 22556 ; 22557 return 0; 22558} 22559_ACEOF 22560if ac_fn_c_try_compile "$LINENO"; then : 22561 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 22562 ac_cv_c_bigendian=yes 22563 fi 22564 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 22565 if test "$ac_cv_c_bigendian" = unknown; then 22566 ac_cv_c_bigendian=no 22567 else 22568 # finding both strings is unlikely to happen, but who knows? 22569 ac_cv_c_bigendian=unknown 22570 fi 22571 fi 22572fi 22573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22574else 22575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22576/* end confdefs.h. */ 22577$ac_includes_default 22578int 22579main () 22580{ 22581 22582 /* Are we little or big endian? From Harbison&Steele. */ 22583 union 22584 { 22585 long int l; 22586 char c[sizeof (long int)]; 22587 } u; 22588 u.l = 1; 22589 return u.c[sizeof (long int) - 1] == 1; 22590 22591 ; 22592 return 0; 22593} 22594_ACEOF 22595if ac_fn_c_try_run "$LINENO"; then : 22596 ac_cv_c_bigendian=no 22597else 22598 ac_cv_c_bigendian=yes 22599fi 22600rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22601 conftest.$ac_objext conftest.beam conftest.$ac_ext 22602fi 22603 22604 fi 22605fi 22606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 22607$as_echo "$ac_cv_c_bigendian" >&6; } 22608 case $ac_cv_c_bigendian in #( 22609 yes) 22610 22611$as_echo "#define X_BYTE_ORDER X_BIG_ENDIAN" >>confdefs.h 22612;; #( 22613 no) 22614 22615$as_echo "#define X_BYTE_ORDER X_LITTLE_ENDIAN" >>confdefs.h 22616 ;; #( 22617 universal) 22618 22619$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 22620 22621 ;; #( 22622 *) 22623 as_fn_error $? "unknown endianness 22624 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 22625 esac 22626 22627 22628# The cast to long int works around a bug in the HP C Compiler 22629# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 22630# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 22631# This bug is HP SR number 8606223364. 22632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 22633$as_echo_n "checking size of unsigned long... " >&6; } 22634if ${ac_cv_sizeof_unsigned_long+:} false; then : 22635 $as_echo_n "(cached) " >&6 22636else 22637 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : 22638 22639else 22640 if test "$ac_cv_type_unsigned_long" = yes; then 22641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22642$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22643as_fn_error 77 "cannot compute sizeof (unsigned long) 22644See \`config.log' for more details" "$LINENO" 5; } 22645 else 22646 ac_cv_sizeof_unsigned_long=0 22647 fi 22648fi 22649 22650fi 22651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 22652$as_echo "$ac_cv_sizeof_unsigned_long" >&6; } 22653 22654 22655 22656cat >>confdefs.h <<_ACEOF 22657#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long 22658_ACEOF 22659 22660 22661if test "$ac_cv_sizeof_unsigned_long" = 8; then 22662 22663$as_echo "#define _XSERVER64 1" >>confdefs.h 22664 22665fi 22666 22667ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 22668if test "x$ac_cv_type_pid_t" = xyes; then : 22669 22670else 22671 22672cat >>confdefs.h <<_ACEOF 22673#define pid_t int 22674_ACEOF 22675 22676fi 22677 22678 22679ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 22680if test "x$ac_cv_func_dlopen" = xyes; then : 22681 22682else 22683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 22684$as_echo_n "checking for dlopen in -ldl... " >&6; } 22685if ${ac_cv_lib_dl_dlopen+:} false; then : 22686 $as_echo_n "(cached) " >&6 22687else 22688 ac_check_lib_save_LIBS=$LIBS 22689LIBS="-ldl $LIBS" 22690cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22691/* end confdefs.h. */ 22692 22693/* Override any GCC internal prototype to avoid an error. 22694 Use char because int might match the return type of a GCC 22695 builtin and then its argument prototype would still apply. */ 22696#ifdef __cplusplus 22697extern "C" 22698#endif 22699char dlopen (); 22700int 22701main () 22702{ 22703return dlopen (); 22704 ; 22705 return 0; 22706} 22707_ACEOF 22708if ac_fn_c_try_link "$LINENO"; then : 22709 ac_cv_lib_dl_dlopen=yes 22710else 22711 ac_cv_lib_dl_dlopen=no 22712fi 22713rm -f core conftest.err conftest.$ac_objext \ 22714 conftest$ac_exeext conftest.$ac_ext 22715LIBS=$ac_check_lib_save_LIBS 22716fi 22717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 22718$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 22719if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 22720 DLOPEN_LIBS="-ldl" 22721fi 22722 22723fi 22724 22725 22726 22727for ac_func in backtrace geteuid getuid issetugid getresuid \ 22728 getdtablesize getifaddrs getpeereid getpeerucred getprogname getzoneid \ 22729 mmap posix_fallocate seteuid shmctl64 strncasecmp vasprintf vsnprintf \ 22730 walkcontext setitimer poll epoll_create1 mkostemp memfd_create isastream 22731do : 22732 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22733ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 22734if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 22735 cat >>confdefs.h <<_ACEOF 22736#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 22737_ACEOF 22738 22739fi 22740done 22741 22742 22743ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray" 22744if test "x$ac_cv_func_reallocarray" = xyes; then : 22745 $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h 22746 22747else 22748 case " $LIBOBJS " in 22749 *" reallocarray.$ac_objext "* ) ;; 22750 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext" 22751 ;; 22752esac 22753 22754fi 22755 22756ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 22757if test "x$ac_cv_func_strcasecmp" = xyes; then : 22758 $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h 22759 22760else 22761 case " $LIBOBJS " in 22762 *" strcasecmp.$ac_objext "* ) ;; 22763 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" 22764 ;; 22765esac 22766 22767fi 22768 22769ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr" 22770if test "x$ac_cv_func_strcasestr" = xyes; then : 22771 $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h 22772 22773else 22774 case " $LIBOBJS " in 22775 *" strcasestr.$ac_objext "* ) ;; 22776 *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext" 22777 ;; 22778esac 22779 22780fi 22781 22782ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 22783if test "x$ac_cv_func_strlcat" = xyes; then : 22784 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h 22785 22786else 22787 case " $LIBOBJS " in 22788 *" strlcat.$ac_objext "* ) ;; 22789 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 22790 ;; 22791esac 22792 22793fi 22794 22795ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 22796if test "x$ac_cv_func_strlcpy" = xyes; then : 22797 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h 22798 22799else 22800 case " $LIBOBJS " in 22801 *" strlcpy.$ac_objext "* ) ;; 22802 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 22803 ;; 22804esac 22805 22806fi 22807 22808ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup" 22809if test "x$ac_cv_func_strndup" = xyes; then : 22810 $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h 22811 22812else 22813 case " $LIBOBJS " in 22814 *" strndup.$ac_objext "* ) ;; 22815 *) LIBOBJS="$LIBOBJS strndup.$ac_objext" 22816 ;; 22817esac 22818 22819fi 22820 22821ac_fn_c_check_func "$LINENO" "timingsafe_memcmp" "ac_cv_func_timingsafe_memcmp" 22822if test "x$ac_cv_func_timingsafe_memcmp" = xyes; then : 22823 $as_echo "#define HAVE_TIMINGSAFE_MEMCMP 1" >>confdefs.h 22824 22825else 22826 case " $LIBOBJS " in 22827 *" timingsafe_memcmp.$ac_objext "* ) ;; 22828 *) LIBOBJS="$LIBOBJS timingsafe_memcmp.$ac_objext" 22829 ;; 22830esac 22831 22832fi 22833 22834 22835 if test "x$ac_cv_func_poll" = "xyes"; then 22836 POLL_TRUE= 22837 POLL_FALSE='#' 22838else 22839 POLL_TRUE='#' 22840 POLL_FALSE= 22841fi 22842 22843 22844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf in -lbsd" >&5 22845$as_echo_n "checking for arc4random_buf in -lbsd... " >&6; } 22846if ${ac_cv_lib_bsd_arc4random_buf+:} false; then : 22847 $as_echo_n "(cached) " >&6 22848else 22849 ac_check_lib_save_LIBS=$LIBS 22850LIBS="-lbsd $LIBS" 22851cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22852/* end confdefs.h. */ 22853 22854/* Override any GCC internal prototype to avoid an error. 22855 Use char because int might match the return type of a GCC 22856 builtin and then its argument prototype would still apply. */ 22857#ifdef __cplusplus 22858extern "C" 22859#endif 22860char arc4random_buf (); 22861int 22862main () 22863{ 22864return arc4random_buf (); 22865 ; 22866 return 0; 22867} 22868_ACEOF 22869if ac_fn_c_try_link "$LINENO"; then : 22870 ac_cv_lib_bsd_arc4random_buf=yes 22871else 22872 ac_cv_lib_bsd_arc4random_buf=no 22873fi 22874rm -f core conftest.err conftest.$ac_objext \ 22875 conftest$ac_exeext conftest.$ac_ext 22876LIBS=$ac_check_lib_save_LIBS 22877fi 22878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_arc4random_buf" >&5 22879$as_echo "$ac_cv_lib_bsd_arc4random_buf" >&6; } 22880if test "x$ac_cv_lib_bsd_arc4random_buf" = xyes; then : 22881 cat >>confdefs.h <<_ACEOF 22882#define HAVE_LIBBSD 1 22883_ACEOF 22884 22885 LIBS="-lbsd $LIBS" 22886 22887fi 22888 22889for ac_func in arc4random_buf 22890do : 22891 ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf" 22892if test "x$ac_cv_func_arc4random_buf" = xyes; then : 22893 cat >>confdefs.h <<_ACEOF 22894#define HAVE_ARC4RANDOM_BUF 1 22895_ACEOF 22896 22897fi 22898done 22899 22900 22901ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h> 22902" 22903if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then : 22904 ac_have_decl=1 22905else 22906 ac_have_decl=0 22907fi 22908 22909cat >>confdefs.h <<_ACEOF 22910#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl 22911_ACEOF 22912 22913 22914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_PEERCRED in sys/socket.h" >&5 22915$as_echo_n "checking for SO_PEERCRED in sys/socket.h... " >&6; } 22916if ${xorg_cv_sys_have_so_peercred+:} false; then : 22917 $as_echo_n "(cached) " >&6 22918else 22919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22920/* end confdefs.h. */ 22921 22922#include <sys/types.h> 22923#include <sys/socket.h> 22924#ifdef SO_PEERCRED 22925yes_have_so_peercred 22926#endif 22927 22928_ACEOF 22929if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22930 $EGREP "yes_have_so_peercred" >/dev/null 2>&1; then : 22931 xorg_cv_sys_have_so_peercred=yes 22932else 22933 xorg_cv_sys_have_so_peercred=no 22934fi 22935rm -f conftest* 22936 22937fi 22938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_sys_have_so_peercred" >&5 22939$as_echo "$xorg_cv_sys_have_so_peercred" >&6; } 22940 22941if test "x$ac_cv_func_getpeereid" = xno && test "x$ac_cv_func_getpeerucred" = xno && test "x$xorg_cv_sys_have_so_peercred" = xno ; then 22942 22943$as_echo "#define NO_LOCAL_CLIENT_CRED 1" >>confdefs.h 22944 22945fi 22946 22947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 22948$as_echo_n "checking for sqrt in -lm... " >&6; } 22949if ${ac_cv_lib_m_sqrt+:} false; then : 22950 $as_echo_n "(cached) " >&6 22951else 22952 ac_check_lib_save_LIBS=$LIBS 22953LIBS="-lm $LIBS" 22954cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22955/* end confdefs.h. */ 22956 22957/* Override any GCC internal prototype to avoid an error. 22958 Use char because int might match the return type of a GCC 22959 builtin and then its argument prototype would still apply. */ 22960#ifdef __cplusplus 22961extern "C" 22962#endif 22963char sqrt (); 22964int 22965main () 22966{ 22967return sqrt (); 22968 ; 22969 return 0; 22970} 22971_ACEOF 22972if ac_fn_c_try_link "$LINENO"; then : 22973 ac_cv_lib_m_sqrt=yes 22974else 22975 ac_cv_lib_m_sqrt=no 22976fi 22977rm -f core conftest.err conftest.$ac_objext \ 22978 conftest$ac_exeext conftest.$ac_ext 22979LIBS=$ac_check_lib_save_LIBS 22980fi 22981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 22982$as_echo "$ac_cv_lib_m_sqrt" >&6; } 22983if test "x$ac_cv_lib_m_sqrt" = xyes; then : 22984 cat >>confdefs.h <<_ACEOF 22985#define HAVE_LIBM 1 22986_ACEOF 22987 22988 LIBS="-lm $LIBS" 22989 22990fi 22991 22992for ac_func in cbrt 22993do : 22994 ac_fn_c_check_func "$LINENO" "cbrt" "ac_cv_func_cbrt" 22995if test "x$ac_cv_func_cbrt" = xyes; then : 22996 cat >>confdefs.h <<_ACEOF 22997#define HAVE_CBRT 1 22998_ACEOF 22999 23000fi 23001done 23002 23003 23004for ac_header in linux/agpgart.h sys/agpio.h sys/agpgart.h 23005do : 23006 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23007ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 23008if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 23009 cat >>confdefs.h <<_ACEOF 23010#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23011_ACEOF 23012 AGP=yes 23013fi 23014 23015done 23016 23017 if test "x$AGP" = xyes; then 23018 AGP_TRUE= 23019 AGP_FALSE='#' 23020else 23021 AGP_TRUE='#' 23022 AGP_FALSE= 23023fi 23024 23025 23026for ac_header in linux/fb.h 23027do : 23028 ac_fn_c_check_header_mongrel "$LINENO" "linux/fb.h" "ac_cv_header_linux_fb_h" "$ac_includes_default" 23029if test "x$ac_cv_header_linux_fb_h" = xyes; then : 23030 cat >>confdefs.h <<_ACEOF 23031#define HAVE_LINUX_FB_H 1 23032_ACEOF 23033 FBDEV=yes 23034fi 23035 23036done 23037 23038 if test "x$FBDEV" = xyes; then 23039 FBDEVHW_TRUE= 23040 FBDEVHW_FALSE='#' 23041else 23042 FBDEVHW_TRUE='#' 23043 FBDEVHW_FALSE= 23044fi 23045 23046 23047for ac_header in sys/linker.h 23048do : 23049 ac_fn_c_check_header_compile "$LINENO" "sys/linker.h" "ac_cv_header_sys_linker_h" "#include <sys/param.h> 23050" 23051if test "x$ac_cv_header_sys_linker_h" = xyes; then : 23052 cat >>confdefs.h <<_ACEOF 23053#define HAVE_SYS_LINKER_H 1 23054_ACEOF 23055 ac_cv_sys_linker_h=yes 23056else 23057 ac_cv_sys_linker_h=no 23058fi 23059 23060done 23061 23062 if test "x$ac_cv_sys_linker_h" = xyes; then 23063 FREEBSD_KLDLOAD_TRUE= 23064 FREEBSD_KLDLOAD_FALSE='#' 23065else 23066 FREEBSD_KLDLOAD_TRUE='#' 23067 FREEBSD_KLDLOAD_FALSE= 23068fi 23069 23070 23071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSV IPC" >&5 23072$as_echo_n "checking for SYSV IPC... " >&6; } 23073if ${ac_cv_sysv_ipc+:} false; then : 23074 $as_echo_n "(cached) " >&6 23075else 23076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23077/* end confdefs.h. */ 23078 23079#include <sys/types.h> 23080#include <sys/ipc.h> 23081#include <sys/shm.h> 23082#include <sys/stat.h> 23083 23084int 23085main () 23086{ 23087 23088{ 23089 int id; 23090 id = shmget(IPC_PRIVATE, 512, S_IRUSR | S_IWUSR); 23091 if (id < 0) return -1; 23092 return shmctl(id, IPC_RMID, 0); 23093} 23094 ; 23095 return 0; 23096} 23097_ACEOF 23098if ac_fn_c_try_link "$LINENO"; then : 23099 ac_cv_sysv_ipc=yes 23100else 23101 ac_cv_sysv_ipc=no 23102fi 23103rm -f core conftest.err conftest.$ac_objext \ 23104 conftest$ac_exeext conftest.$ac_ext 23105fi 23106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_ipc" >&5 23107$as_echo "$ac_cv_sysv_ipc" >&6; } 23108if test "x$ac_cv_sysv_ipc" = xyes; then 23109 23110$as_echo "#define HAVE_SYSV_IPC 1" >>confdefs.h 23111 23112fi 23113 23114if test -c /dev/xf86 ; then 23115 23116$as_echo "#define HAS_APERTURE_DRV 1" >>confdefs.h 23117 23118fi 23119 23120ac_fn_c_check_header_mongrel "$LINENO" "machine/apmvar.h" "ac_cv_header_machine_apmvar_h" "$ac_includes_default" 23121if test "x$ac_cv_header_machine_apmvar_h" = xyes; then : 23122 23123 ac_fn_c_check_header_mongrel "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default" 23124if test "x$ac_cv_header_sys_event_h" = xyes; then : 23125 ac_cv_BSD_KQUEUE_APM=yes 23126else 23127 ac_cv_BSD_APM=yes 23128fi 23129 23130 23131fi 23132 23133 23134 23135 if test "x$ac_cv_BSD_APM" = xyes; then 23136 BSD_APM_TRUE= 23137 BSD_APM_FALSE='#' 23138else 23139 BSD_APM_TRUE='#' 23140 BSD_APM_FALSE= 23141fi 23142 23143 if test "x$ac_cv_BSD_KQUEUE_APM" = xyes; then 23144 BSD_KQUEUE_APM_TRUE= 23145 BSD_KQUEUE_APM_FALSE='#' 23146else 23147 BSD_KQUEUE_APM_TRUE='#' 23148 BSD_KQUEUE_APM_FALSE= 23149fi 23150 23151 23152ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default" 23153if test "x$ac_cv_header_execinfo_h" = xyes; then : 23154 23155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lc" >&5 23156$as_echo_n "checking for backtrace in -lc... " >&6; } 23157if ${ac_cv_lib_c_backtrace+:} false; then : 23158 $as_echo_n "(cached) " >&6 23159else 23160 ac_check_lib_save_LIBS=$LIBS 23161LIBS="-lc $LIBS" 23162cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23163/* end confdefs.h. */ 23164 23165/* Override any GCC internal prototype to avoid an error. 23166 Use char because int might match the return type of a GCC 23167 builtin and then its argument prototype would still apply. */ 23168#ifdef __cplusplus 23169extern "C" 23170#endif 23171char backtrace (); 23172int 23173main () 23174{ 23175return backtrace (); 23176 ; 23177 return 0; 23178} 23179_ACEOF 23180if ac_fn_c_try_link "$LINENO"; then : 23181 ac_cv_lib_c_backtrace=yes 23182else 23183 ac_cv_lib_c_backtrace=no 23184fi 23185rm -f core conftest.err conftest.$ac_objext \ 23186 conftest$ac_exeext conftest.$ac_ext 23187LIBS=$ac_check_lib_save_LIBS 23188fi 23189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_backtrace" >&5 23190$as_echo "$ac_cv_lib_c_backtrace" >&6; } 23191if test "x$ac_cv_lib_c_backtrace" = xyes; then : 23192 23193 23194$as_echo "#define HAVE_BACKTRACE 1" >>confdefs.h 23195 23196 23197$as_echo "#define HAVE_EXECINFO_H 1" >>confdefs.h 23198 23199 23200fi 23201 23202 23203fi 23204 23205 23206 23207DEFAULT_INT10="x86emu" 23208 23209 23210case $host_cpu in 23211 alpha*) 23212 ALPHA_VIDEO=yes 23213 case $host_os in 23214 *freebsd*) SYS_LIBS=-lio ;; 23215 *netbsd*) 23216$as_echo "#define USE_ALPHA_PIO 1" >>confdefs.h 23217 ;; 23218 esac 23219 GLX_ARCH_DEFINES="-D__GLX_ALIGN64 -mieee" 23220 ;; 23221 arm*) 23222 ARM_VIDEO=yes 23223 DEFAULT_INT10="stub" 23224 ;; 23225 i*86) 23226 I386_VIDEO=yes 23227 case $host_os in 23228 *freebsd*) $as_echo "#define USE_DEV_IO 1" >>confdefs.h 23229 ;; 23230 *dragonfly*) $as_echo "#define USE_DEV_IO 1" >>confdefs.h 23231 ;; 23232 *netbsd*) $as_echo "#define USE_I386_IOPL 1" >>confdefs.h 23233 23234 SYS_LIBS=-li386 23235 ;; 23236 *openbsd*) $as_echo "#define USE_I386_IOPL 1" >>confdefs.h 23237 23238 SYS_LIBS=-li386 23239 ;; 23240 esac 23241 ;; 23242 powerpc*) 23243 PPC_VIDEO=yes 23244 case $host_os in 23245 *freebsd*) DEFAULT_INT10=stub ;; 23246 esac 23247 ;; 23248 sparc*) 23249 SPARC64_VIDEO=yes 23250 BSD_ARCH_SOURCES="sparc64_video.c ioperm_noop.c" 23251 GLX_ARCH_DEFINES="-D__GLX_ALIGN64" 23252 ;; 23253 x86_64*|amd64*) 23254 I386_VIDEO=yes 23255 case $host_os in 23256 *freebsd*) 23257$as_echo "#define USE_DEV_IO 1" >>confdefs.h 23258 ;; 23259 *dragonfly*) 23260$as_echo "#define USE_DEV_IO 1" >>confdefs.h 23261 ;; 23262 *netbsd*) 23263$as_echo "#define USE_I386_IOPL 1" >>confdefs.h 23264 23265 SYS_LIBS=-lx86_64 23266 ;; 23267 *openbsd*) 23268$as_echo "#define USE_AMD64_IOPL 1" >>confdefs.h 23269 23270 SYS_LIBS=-lamd64 23271 ;; 23272 esac 23273 GLX_ARCH_DEFINES="-D__GLX_ALIGN64" 23274 ;; 23275 ia64*) 23276 GLX_ARCH_DEFINES="-D__GLX_ALIGN64" 23277 ;; 23278 s390*) 23279 GLX_ARCH_DEFINES="-D__GLX_ALIGN64" 23280 ;; 23281esac 23282 23283 23284 if test "x$ALPHA_VIDEO" = xyes; then 23285 ALPHA_VIDEO_TRUE= 23286 ALPHA_VIDEO_FALSE='#' 23287else 23288 ALPHA_VIDEO_TRUE='#' 23289 ALPHA_VIDEO_FALSE= 23290fi 23291 23292 if test "x$ARM_VIDEO" = xyes; then 23293 ARM_VIDEO_TRUE= 23294 ARM_VIDEO_FALSE='#' 23295else 23296 ARM_VIDEO_TRUE='#' 23297 ARM_VIDEO_FALSE= 23298fi 23299 23300 if test "x$I386_VIDEO" = xyes; then 23301 I386_VIDEO_TRUE= 23302 I386_VIDEO_FALSE='#' 23303else 23304 I386_VIDEO_TRUE='#' 23305 I386_VIDEO_FALSE= 23306fi 23307 23308 if test "x$PPC_VIDEO" = xyes; then 23309 PPC_VIDEO_TRUE= 23310 PPC_VIDEO_FALSE='#' 23311else 23312 PPC_VIDEO_TRUE='#' 23313 PPC_VIDEO_FALSE= 23314fi 23315 23316 if test "x$SPARC64_VIDEO" = xyes; then 23317 SPARC64_VIDEO_TRUE= 23318 SPARC64_VIDEO_FALSE='#' 23319else 23320 SPARC64_VIDEO_TRUE='#' 23321 SPARC64_VIDEO_FALSE= 23322fi 23323 23324 23325DRI=no 23326case $host_os in 23327 *freebsd* | *dragonfly*) 23328 case $host_os in 23329 kfreebsd*-gnu) ;; 23330 *) 23331$as_echo "#define CSRG_BASED 1" >>confdefs.h 23332 ;; 23333 esac 23334 23335$as_echo "#define PCCONS_SUPPORT 1" >>confdefs.h 23336 23337 23338$as_echo "#define PCVT_SUPPORT 1" >>confdefs.h 23339 23340 23341$as_echo "#define SYSCONS_SUPPORT 1" >>confdefs.h 23342 23343 DRI=yes 23344 ;; 23345 *netbsd*) 23346 23347$as_echo "#define CSRG_BASED 1" >>confdefs.h 23348 23349 23350$as_echo "#define PCCONS_SUPPORT 1" >>confdefs.h 23351 23352 23353$as_echo "#define PCVT_SUPPORT 1" >>confdefs.h 23354 23355 23356$as_echo "#define WSCONS_SUPPORT 1" >>confdefs.h 23357 23358 DRI=yes 23359 ;; 23360 *openbsd*) 23361 23362$as_echo "#define CSRG_BASED 1" >>confdefs.h 23363 23364 23365$as_echo "#define PCVT_SUPPORT 1" >>confdefs.h 23366 23367 23368$as_echo "#define WSCONS_SUPPORT 1" >>confdefs.h 23369 23370 ;; 23371 *linux*) 23372 DRI=yes 23373 ;; 23374 *solaris*) 23375 DRI=yes 23376 ;; 23377 darwin*) 23378 23379$as_echo "#define CSRG_BASED 1" >>confdefs.h 23380 23381 ;; 23382 cygwin*|mingw*) 23383 CFLAGS="$CFLAGS -DFD_SETSIZE=512" 23384 ;; 23385esac 23386 23387PVMAJOR=`echo $PACKAGE_VERSION | cut -d . -f 1` 23388PVS=`echo $PACKAGE_VERSION | cut -d . -f 4 | cut -d - -f 1` 23389if test "x$PVS" = "x"; then 23390 PVS="0" 23391fi 23392 23393VENDOR_RELEASE="((($PVMAJOR) * 10000000) + (($PVM) * 100000) + (($PVP) * 1000) + $PVS)" 23394VENDOR_MAN_VERSION="Version ${PACKAGE_VERSION}" 23395 23396VENDOR_NAME="The X.Org Foundation" 23397VENDOR_NAME_SHORT="X.Org" 23398VENDOR_WEB="http://wiki.x.org" 23399 23400# Check whether --enable-werror was given. 23401if test "${enable_werror+set}" = set; then : 23402 enableval=$enable_werror; as_fn_error $? "--enable-werror has been replaced by --enable-strict-compilation" "$LINENO" 5 23403fi 23404 23405 23406# Check whether --enable-debug was given. 23407if test "${enable_debug+set}" = set; then : 23408 enableval=$enable_debug; DEBUGGING=$enableval 23409else 23410 DEBUGGING=no 23411fi 23412 23413 23414# Check whether --with-int10 was given. 23415if test "${with_int10+set}" = set; then : 23416 withval=$with_int10; INT10="$withval" 23417else 23418 INT10="$DEFAULT_INT10" 23419fi 23420 23421 23422# Check whether --with-vendor-name was given. 23423if test "${with_vendor_name+set}" = set; then : 23424 withval=$with_vendor_name; VENDOR_NAME="$withval" 23425fi 23426 23427 23428# Check whether --with-vendor-name-short was given. 23429if test "${with_vendor_name_short+set}" = set; then : 23430 withval=$with_vendor_name_short; VENDOR_NAME_SHORT="$withval" 23431fi 23432 23433 23434# Check whether --with-vendor-web was given. 23435if test "${with_vendor_web+set}" = set; then : 23436 withval=$with_vendor_web; VENDOR_WEB="$withval" 23437fi 23438 23439 23440# Check whether --with-module-dir was given. 23441if test "${with_module_dir+set}" = set; then : 23442 withval=$with_module_dir; moduledir="$withval" 23443else 23444 moduledir="${libdir}/xorg/modules" 23445fi 23446 23447 23448# Check whether --with-log-dir was given. 23449if test "${with_log_dir+set}" = set; then : 23450 withval=$with_log_dir; logdir="$withval" 23451else 23452 logdir="$localstatedir/log" 23453fi 23454 23455 23456# Check whether --with-builder-addr was given. 23457if test "${with_builder_addr+set}" = set; then : 23458 withval=$with_builder_addr; BUILDERADDR="$withval" 23459else 23460 BUILDERADDR="xorg@lists.freedesktop.org" 23461fi 23462 23463 23464# Check whether --with-os-name was given. 23465if test "${with_os_name+set}" = set; then : 23466 withval=$with_os_name; OSNAME="$withval" 23467else 23468 OSNAME=`uname -srm` 23469fi 23470 23471 23472# Check whether --with-os-vendor was given. 23473if test "${with_os_vendor+set}" = set; then : 23474 withval=$with_os_vendor; OSVENDOR="$withval" 23475else 23476 OSVENDOR="" 23477fi 23478 23479 23480# Check whether --with-builderstring was given. 23481if test "${with_builderstring+set}" = set; then : 23482 withval=$with_builderstring; BUILDERSTRING="$withval" 23483 23484fi 23485 23486# Check whether --enable-listen-tcp was given. 23487if test "${enable_listen_tcp+set}" = set; then : 23488 enableval=$enable_listen_tcp; LISTEN_TCP=$enableval 23489else 23490 LISTEN_TCP=no 23491fi 23492 23493# Check whether --enable-listen-unix was given. 23494if test "${enable_listen_unix+set}" = set; then : 23495 enableval=$enable_listen_unix; LISTEN_UNIX=$enableval 23496else 23497 LISTEN_UNIX=yes 23498fi 23499 23500 23501# Check whether --enable-listen-local was given. 23502if test "${enable_listen_local+set}" = set; then : 23503 enableval=$enable_listen_local; LISTEN_LOCAL=$enableval 23504else 23505 LISTEN_LOCAL=yes 23506fi 23507 23508 23509case $host_os in 23510 linux*) 23511 FALLBACK_INPUT_DRIVER="libinput" 23512 ;; 23513 *) 23514 FALLBACK_INPUT_DRIVER="" 23515 ;; 23516esac 23517 23518# Check whether --with-fallback-input-driver was given. 23519if test "${with_fallback_input_driver+set}" = set; then : 23520 withval=$with_fallback_input_driver; FALLBACK_INPUT_DRIVER=$withval 23521fi 23522 23523if test "x$FALLBACK_INPUT_DRIVER" = "xno"; then 23524 FALLBACK_INPUT_DRIVER="" 23525fi 23526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallback input driver" >&5 23527$as_echo_n "checking for fallback input driver... " >&6; } 23528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALLBACK_INPUT_DRIVER" >&5 23529$as_echo "$FALLBACK_INPUT_DRIVER" >&6; } 23530 23531cat >>confdefs.h <<_ACEOF 23532#define FALLBACK_INPUT_DRIVER "$FALLBACK_INPUT_DRIVER" 23533_ACEOF 23534 23535 23536 23537 23538 23539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5 23540$as_echo_n "checking for root directory for font files... " >&6; } 23541 23542# Check whether --with-fontrootdir was given. 23543if test "${with_fontrootdir+set}" = set; then : 23544 withval=$with_fontrootdir; FONTROOTDIR="$withval" 23545fi 23546 23547 # if --with-fontrootdir not specified... 23548 if test "x${FONTROOTDIR}" = "x"; then 23549 FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil` 23550 fi 23551 # ...and if pkg-config didn't find fontdir in fontutil.pc... 23552 if test "x${FONTROOTDIR}" = "x"; then 23553 FONTROOTDIR="${datadir}/fonts/X11" 23554 fi 23555 23556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5 23557$as_echo "${FONTROOTDIR}" >&6; } 23558 23559 23560 23561 23562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for misc files" >&5 23563$as_echo_n "checking for directory for misc files... " >&6; } 23564 23565# Check whether --with-fontmiscdir was given. 23566if test "${with_fontmiscdir+set}" = set; then : 23567 withval=$with_fontmiscdir; FONTMISCDIR="${withval}" 23568else 23569 FONTMISCDIR='${FONTROOTDIR}/misc' 23570fi 23571 23572 23573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTMISCDIR}" >&5 23574$as_echo "${FONTMISCDIR}" >&6; } 23575 23576 23577 23578 23579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for OTF files" >&5 23580$as_echo_n "checking for directory for OTF files... " >&6; } 23581 23582# Check whether --with-fontotfdir was given. 23583if test "${with_fontotfdir+set}" = set; then : 23584 withval=$with_fontotfdir; FONTOTFDIR="${withval}" 23585else 23586 FONTOTFDIR='${FONTROOTDIR}/OTF' 23587fi 23588 23589 23590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTOTFDIR}" >&5 23591$as_echo "${FONTOTFDIR}" >&6; } 23592 23593 23594 23595 23596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for TTF files" >&5 23597$as_echo_n "checking for directory for TTF files... " >&6; } 23598 23599# Check whether --with-fontttfdir was given. 23600if test "${with_fontttfdir+set}" = set; then : 23601 withval=$with_fontttfdir; FONTTTFDIR="${withval}" 23602else 23603 FONTTTFDIR='${FONTROOTDIR}/TTF' 23604fi 23605 23606 23607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTTTFDIR}" >&5 23608$as_echo "${FONTTTFDIR}" >&6; } 23609 23610 23611 23612 23613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for Type1 files" >&5 23614$as_echo_n "checking for directory for Type1 files... " >&6; } 23615 23616# Check whether --with-fonttype1dir was given. 23617if test "${with_fonttype1dir+set}" = set; then : 23618 withval=$with_fonttype1dir; FONTTYPE1DIR="${withval}" 23619else 23620 FONTTYPE1DIR='${FONTROOTDIR}/Type1' 23621fi 23622 23623 23624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTTYPE1DIR}" >&5 23625$as_echo "${FONTTYPE1DIR}" >&6; } 23626 23627 23628 23629 23630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for 75dpi files" >&5 23631$as_echo_n "checking for directory for 75dpi files... " >&6; } 23632 23633# Check whether --with-font75dpidir was given. 23634if test "${with_font75dpidir+set}" = set; then : 23635 withval=$with_font75dpidir; FONT75DPIDIR="${withval}" 23636else 23637 FONT75DPIDIR='${FONTROOTDIR}/75dpi' 23638fi 23639 23640 23641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONT75DPIDIR}" >&5 23642$as_echo "${FONT75DPIDIR}" >&6; } 23643 23644 23645 23646 23647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for 100dpi files" >&5 23648$as_echo_n "checking for directory for 100dpi files... " >&6; } 23649 23650# Check whether --with-font100dpidir was given. 23651if test "${with_font100dpidir+set}" = set; then : 23652 withval=$with_font100dpidir; FONT100DPIDIR="${withval}" 23653else 23654 FONT100DPIDIR='${FONTROOTDIR}/100dpi' 23655fi 23656 23657 23658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONT100DPIDIR}" >&5 23659$as_echo "${FONT100DPIDIR}" >&6; } 23660 23661 23662DEFAULT_FONT_PATH="${FONTMISCDIR}/,${FONTTTFDIR}/,${FONTOTFDIR}/,${FONTTYPE1DIR}/,${FONT100DPIDIR}/,${FONT75DPIDIR}/" 23663case $host_os in 23664 darwin*) DEFAULT_FONT_PATH="${DEFAULT_FONT_PATH},/Library/Fonts,/System/Library/Fonts" ;; 23665esac 23666 23667 23668# Check whether --with-default-font-path was given. 23669if test "${with_default_font_path+set}" = set; then : 23670 withval=$with_default_font_path; FONTPATH="$withval" 23671else 23672 FONTPATH="${DEFAULT_FONT_PATH}" 23673fi 23674 23675 23676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default font path" >&5 23677$as_echo_n "checking for default font path... " >&6; } 23678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTPATH" >&5 23679$as_echo "$FONTPATH" >&6; } 23680 23681 23682# Check whether --with-xkb-path was given. 23683if test "${with_xkb_path+set}" = set; then : 23684 withval=$with_xkb_path; XKBPATH="$withval" 23685else 23686 XKBPATH="auto" 23687fi 23688 23689 23690# Check whether --with-xkb-output was given. 23691if test "${with_xkb_output+set}" = set; then : 23692 withval=$with_xkb_output; XKBOUTPUT="$withval" 23693else 23694 XKBOUTPUT="compiled" 23695fi 23696 23697 23698# Check whether --with-default-xkb-rules was given. 23699if test "${with_default_xkb_rules+set}" = set; then : 23700 withval=$with_default_xkb_rules; XKB_DFLT_RULES="$withval" 23701else 23702 XKB_DFLT_RULES="" 23703fi 23704 23705 23706# Check whether --with-default-xkb-model was given. 23707if test "${with_default_xkb_model+set}" = set; then : 23708 withval=$with_default_xkb_model; XKB_DFLT_MODEL="$withval" 23709else 23710 XKB_DFLT_MODEL="pc105" 23711fi 23712 23713 23714# Check whether --with-default-xkb-layout was given. 23715if test "${with_default_xkb_layout+set}" = set; then : 23716 withval=$with_default_xkb_layout; XKB_DFLT_LAYOUT="$withval" 23717else 23718 XKB_DFLT_LAYOUT="us" 23719fi 23720 23721 23722# Check whether --with-default-xkb-variant was given. 23723if test "${with_default_xkb_variant+set}" = set; then : 23724 withval=$with_default_xkb_variant; XKB_DFLT_VARIANT="$withval" 23725else 23726 XKB_DFLT_VARIANT="" 23727fi 23728 23729 23730# Check whether --with-default-xkb-options was given. 23731if test "${with_default_xkb_options+set}" = set; then : 23732 withval=$with_default_xkb_options; XKB_DFLT_OPTIONS="$withval" 23733else 23734 XKB_DFLT_OPTIONS="" 23735fi 23736 23737 23738# Check whether --with-serverconfig-path was given. 23739if test "${with_serverconfig_path+set}" = set; then : 23740 withval=$with_serverconfig_path; SERVERCONFIG="$withval" 23741else 23742 SERVERCONFIG="${libdir}/xorg" 23743fi 23744 23745 23746# Check whether --with-apple-applications-dir was given. 23747if test "${with_apple_applications_dir+set}" = set; then : 23748 withval=$with_apple_applications_dir; APPLE_APPLICATIONS_DIR="${withval}" 23749else 23750 APPLE_APPLICATIONS_DIR="/Applications/Utilities" 23751fi 23752 23753 23754 23755# Check whether --with-apple-application-name was given. 23756if test "${with_apple_application_name+set}" = set; then : 23757 withval=$with_apple_application_name; APPLE_APPLICATION_NAME="${withval}" 23758else 23759 APPLE_APPLICATION_NAME="X11" 23760fi 23761 23762 23763 23764# Check whether --with-bundle-id-prefix was given. 23765if test "${with_bundle_id_prefix+set}" = set; then : 23766 withval=$with_bundle_id_prefix; BUNDLE_ID_PREFIX="${withval}" 23767fi 23768 23769 23770 23771cat >>confdefs.h <<_ACEOF 23772#define BUNDLE_ID_PREFIX "$BUNDLE_ID_PREFIX" 23773_ACEOF 23774 23775 23776 23777# Check whether --with-bundle-version was given. 23778if test "${with_bundle_version+set}" = set; then : 23779 withval=$with_bundle_version; BUNDLE_VERSION="${withval}" 23780else 23781 BUNDLE_VERSION="1.20.10" 23782fi 23783 23784 23785 23786# Check whether --with-bundle-version-string was given. 23787if test "${with_bundle_version_string+set}" = set; then : 23788 withval=$with_bundle_version_string; BUNDLE_VERSION_STRING="${withval}" 23789else 23790 BUNDLE_VERSION_STRING="${PACKAGE_VERSION}" 23791fi 23792 23793 23794# Check whether --enable-sparkle was given. 23795if test "${enable_sparkle+set}" = set; then : 23796 enableval=$enable_sparkle; XQUARTZ_SPARKLE="${enableval}" 23797else 23798 XQUARTZ_SPARKLE="no" 23799fi 23800 23801 23802 23803# Check whether --with-sparkle-feed-url was given. 23804if test "${with_sparkle_feed_url+set}" = set; then : 23805 withval=$with_sparkle_feed_url; XQUARTZ_SPARKLE_FEED_URL="${withval}" 23806else 23807 XQUARTZ_SPARKLE_FEED_URL="https://www.xquartz.org/releases/sparkle/release.xml" 23808fi 23809 23810 23811# Check whether --enable-visibility was given. 23812if test "${enable_visibility+set}" = set; then : 23813 enableval=$enable_visibility; SYMBOL_VISIBILITY=$enableval 23814else 23815 SYMBOL_VISIBILITY=auto 23816fi 23817 23818 23819 23820# Check whether --with-khronos-spec-dir was given. 23821if test "${with_khronos_spec_dir+set}" = set; then : 23822 withval=$with_khronos_spec_dir; KHRONOS_SPEC_DIR="${withval}" 23823else 23824 KHRONOS_SPEC_DIR=auto 23825fi 23826 23827 23828# Check whether --enable-composite was given. 23829if test "${enable_composite+set}" = set; then : 23830 enableval=$enable_composite; COMPOSITE=$enableval 23831else 23832 COMPOSITE=yes 23833fi 23834 23835# Check whether --enable-mitshm was given. 23836if test "${enable_mitshm+set}" = set; then : 23837 enableval=$enable_mitshm; MITSHM=$enableval 23838else 23839 MITSHM=auto 23840fi 23841 23842# Check whether --enable-xres was given. 23843if test "${enable_xres+set}" = set; then : 23844 enableval=$enable_xres; RES=$enableval 23845else 23846 RES=yes 23847fi 23848 23849# Check whether --enable-record was given. 23850if test "${enable_record+set}" = set; then : 23851 enableval=$enable_record; RECORD=$enableval 23852else 23853 RECORD=yes 23854fi 23855 23856# Check whether --enable-xv was given. 23857if test "${enable_xv+set}" = set; then : 23858 enableval=$enable_xv; XV=$enableval 23859else 23860 XV=yes 23861fi 23862 23863# Check whether --enable-xvmc was given. 23864if test "${enable_xvmc+set}" = set; then : 23865 enableval=$enable_xvmc; XVMC=$enableval 23866else 23867 XVMC=yes 23868fi 23869 23870# Check whether --enable-dga was given. 23871if test "${enable_dga+set}" = set; then : 23872 enableval=$enable_dga; DGA=$enableval 23873else 23874 DGA=auto 23875fi 23876 23877# Check whether --enable-screensaver was given. 23878if test "${enable_screensaver+set}" = set; then : 23879 enableval=$enable_screensaver; SCREENSAVER=$enableval 23880else 23881 SCREENSAVER=yes 23882fi 23883 23884# Check whether --enable-xdmcp was given. 23885if test "${enable_xdmcp+set}" = set; then : 23886 enableval=$enable_xdmcp; XDMCP=$enableval 23887else 23888 XDMCP=auto 23889fi 23890 23891# Check whether --enable-xdm-auth-1 was given. 23892if test "${enable_xdm_auth_1+set}" = set; then : 23893 enableval=$enable_xdm_auth_1; XDMAUTH=$enableval 23894else 23895 XDMAUTH=auto 23896fi 23897 23898# Check whether --enable-glx was given. 23899if test "${enable_glx+set}" = set; then : 23900 enableval=$enable_glx; GLX=$enableval 23901else 23902 GLX=yes 23903fi 23904 23905# Check whether --enable-dri was given. 23906if test "${enable_dri+set}" = set; then : 23907 enableval=$enable_dri; DRI=$enableval 23908fi 23909 23910# Check whether --enable-dri2 was given. 23911if test "${enable_dri2+set}" = set; then : 23912 enableval=$enable_dri2; DRI2=$enableval 23913else 23914 DRI2=auto 23915fi 23916 23917# Check whether --enable-dri3 was given. 23918if test "${enable_dri3+set}" = set; then : 23919 enableval=$enable_dri3; DRI3=$enableval 23920else 23921 DRI3=auto 23922fi 23923 23924# Check whether --enable-present was given. 23925if test "${enable_present+set}" = set; then : 23926 enableval=$enable_present; PRESENT=$enableval 23927else 23928 PRESENT=yes 23929fi 23930 23931# Check whether --enable-xinerama was given. 23932if test "${enable_xinerama+set}" = set; then : 23933 enableval=$enable_xinerama; XINERAMA=$enableval 23934else 23935 XINERAMA=yes 23936fi 23937 23938# Check whether --enable-xf86vidmode was given. 23939if test "${enable_xf86vidmode+set}" = set; then : 23940 enableval=$enable_xf86vidmode; XF86VIDMODE=$enableval 23941else 23942 XF86VIDMODE=auto 23943fi 23944 23945# Check whether --enable-xace was given. 23946if test "${enable_xace+set}" = set; then : 23947 enableval=$enable_xace; XACE=$enableval 23948else 23949 XACE=yes 23950fi 23951 23952# Check whether --enable-xselinux was given. 23953if test "${enable_xselinux+set}" = set; then : 23954 enableval=$enable_xselinux; XSELINUX=$enableval 23955else 23956 XSELINUX=no 23957fi 23958 23959# Check whether --enable-xcsecurity was given. 23960if test "${enable_xcsecurity+set}" = set; then : 23961 enableval=$enable_xcsecurity; XCSECURITY=$enableval 23962else 23963 XCSECURITY=no 23964fi 23965 23966# Check whether --enable-dbe was given. 23967if test "${enable_dbe+set}" = set; then : 23968 enableval=$enable_dbe; DBE=$enableval 23969else 23970 DBE=yes 23971fi 23972 23973# Check whether --enable-xf86bigfont was given. 23974if test "${enable_xf86bigfont+set}" = set; then : 23975 enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval 23976else 23977 XF86BIGFONT=no 23978fi 23979 23980# Check whether --enable-dpms was given. 23981if test "${enable_dpms+set}" = set; then : 23982 enableval=$enable_dpms; DPMSExtension=$enableval 23983else 23984 DPMSExtension=yes 23985fi 23986 23987# Check whether --enable-config-udev was given. 23988if test "${enable_config_udev+set}" = set; then : 23989 enableval=$enable_config_udev; CONFIG_UDEV=$enableval 23990else 23991 CONFIG_UDEV=auto 23992fi 23993 23994# Check whether --enable-config-udev-kms was given. 23995if test "${enable_config_udev_kms+set}" = set; then : 23996 enableval=$enable_config_udev_kms; CONFIG_UDEV_KMS=$enableval 23997else 23998 CONFIG_UDEV_KMS=auto 23999fi 24000 24001# Check whether --enable-config-hal was given. 24002if test "${enable_config_hal+set}" = set; then : 24003 enableval=$enable_config_hal; CONFIG_HAL=$enableval 24004else 24005 CONFIG_HAL=auto 24006fi 24007 24008# Check whether --enable-config-wscons was given. 24009if test "${enable_config_wscons+set}" = set; then : 24010 enableval=$enable_config_wscons; CONFIG_WSCONS=$enableval 24011else 24012 CONFIG_WSCONS=auto 24013fi 24014 24015# Check whether --enable-xfree86-utils was given. 24016if test "${enable_xfree86_utils+set}" = set; then : 24017 enableval=$enable_xfree86_utils; XF86UTILS=$enableval 24018else 24019 XF86UTILS=yes 24020fi 24021 24022# Check whether --enable-vgahw was given. 24023if test "${enable_vgahw+set}" = set; then : 24024 enableval=$enable_vgahw; VGAHW=$enableval 24025else 24026 VGAHW=yes 24027fi 24028 24029# Check whether --enable-vbe was given. 24030if test "${enable_vbe+set}" = set; then : 24031 enableval=$enable_vbe; VBE=$enableval 24032else 24033 VBE=yes 24034fi 24035 24036# Check whether --enable-int10-module was given. 24037if test "${enable_int10_module+set}" = set; then : 24038 enableval=$enable_int10_module; INT10MODULE=$enableval 24039else 24040 INT10MODULE=yes 24041fi 24042 24043# Check whether --enable-windowswm was given. 24044if test "${enable_windowswm+set}" = set; then : 24045 enableval=$enable_windowswm; WINDOWSWM=$enableval 24046else 24047 WINDOWSWM=no 24048fi 24049 24050# Check whether --enable-windowsdri was given. 24051if test "${enable_windowsdri+set}" = set; then : 24052 enableval=$enable_windowsdri; WINDOWSDRI=$enableval 24053else 24054 WINDOWSDRI=auto 24055fi 24056 24057# Check whether --enable-libdrm was given. 24058if test "${enable_libdrm+set}" = set; then : 24059 enableval=$enable_libdrm; DRM=$enableval 24060else 24061 DRM=yes 24062fi 24063 24064# Check whether --enable-clientids was given. 24065if test "${enable_clientids+set}" = set; then : 24066 enableval=$enable_clientids; CLIENTIDS=$enableval 24067else 24068 CLIENTIDS=yes 24069fi 24070 24071# Check whether --enable-pciaccess was given. 24072if test "${enable_pciaccess+set}" = set; then : 24073 enableval=$enable_pciaccess; PCI=$enableval 24074else 24075 PCI=yes 24076fi 24077 24078# Check whether --enable-linux_acpi was given. 24079if test "${enable_linux_acpi+set}" = set; then : 24080 enableval=$enable_linux_acpi; enable_linux_acpi=$enableval 24081else 24082 enable_linux_acpi=yes 24083fi 24084 24085# Check whether --enable-linux_apm was given. 24086if test "${enable_linux_apm+set}" = set; then : 24087 enableval=$enable_linux_apm; enable_linux_apm=$enableval 24088else 24089 enable_linux_apm=yes 24090fi 24091 24092# Check whether --enable-systemd-logind was given. 24093if test "${enable_systemd_logind+set}" = set; then : 24094 enableval=$enable_systemd_logind; SYSTEMD_LOGIND=$enableval 24095else 24096 SYSTEMD_LOGIND=auto 24097fi 24098 24099# Check whether --enable-suid-wrapper was given. 24100if test "${enable_suid_wrapper+set}" = set; then : 24101 enableval=$enable_suid_wrapper; SUID_WRAPPER=$enableval 24102else 24103 SUID_WRAPPER=no 24104fi 24105 24106 24107# Check whether --enable-xorg was given. 24108if test "${enable_xorg+set}" = set; then : 24109 enableval=$enable_xorg; XORG=$enableval 24110else 24111 XORG=auto 24112fi 24113 24114# Check whether --enable-dmx was given. 24115if test "${enable_dmx+set}" = set; then : 24116 enableval=$enable_dmx; DMX=$enableval 24117else 24118 DMX=no 24119fi 24120 24121# Check whether --enable-xvfb was given. 24122if test "${enable_xvfb+set}" = set; then : 24123 enableval=$enable_xvfb; XVFB=$enableval 24124else 24125 XVFB=yes 24126fi 24127 24128# Check whether --enable-xnest was given. 24129if test "${enable_xnest+set}" = set; then : 24130 enableval=$enable_xnest; XNEST=$enableval 24131else 24132 XNEST=auto 24133fi 24134 24135# Check whether --enable-xquartz was given. 24136if test "${enable_xquartz+set}" = set; then : 24137 enableval=$enable_xquartz; XQUARTZ=$enableval 24138else 24139 XQUARTZ=auto 24140fi 24141 24142# Check whether --enable-xwayland was given. 24143if test "${enable_xwayland+set}" = set; then : 24144 enableval=$enable_xwayland; XWAYLAND=$enableval 24145else 24146 XWAYLAND=auto 24147fi 24148 24149# Check whether --enable-xwayland-eglstream was given. 24150if test "${enable_xwayland_eglstream+set}" = set; then : 24151 enableval=$enable_xwayland_eglstream; XWAYLAND_EGLSTREAM=$enableval 24152else 24153 XWAYLAND_EGLSTREAM=no 24154fi 24155 24156# Check whether --enable-standalone-xpbproxy was given. 24157if test "${enable_standalone_xpbproxy+set}" = set; then : 24158 enableval=$enable_standalone_xpbproxy; STANDALONE_XPBPROXY=$enableval 24159else 24160 STANDALONE_XPBPROXY=no 24161fi 24162 24163# Check whether --enable-xwin was given. 24164if test "${enable_xwin+set}" = set; then : 24165 enableval=$enable_xwin; XWIN=$enableval 24166else 24167 XWIN=auto 24168fi 24169 24170# Check whether --enable-glamor was given. 24171if test "${enable_glamor+set}" = set; then : 24172 enableval=$enable_glamor; GLAMOR=$enableval 24173else 24174 GLAMOR=auto 24175fi 24176 24177# Check whether --enable-kdrive was given. 24178if test "${enable_kdrive+set}" = set; then : 24179 enableval=$enable_kdrive; KDRIVE=$enableval 24180else 24181 KDRIVE=no 24182fi 24183 24184# Check whether --enable-xephyr was given. 24185if test "${enable_xephyr+set}" = set; then : 24186 enableval=$enable_xephyr; XEPHYR=$enableval 24187else 24188 XEPHYR=auto 24189fi 24190 24191# Check whether --enable-libunwind was given. 24192if test "${enable_libunwind+set}" = set; then : 24193 enableval=$enable_libunwind; LIBUNWIND="$enableval" 24194else 24195 LIBUNWIND="auto" 24196fi 24197 24198# Check whether --enable-xshmfence was given. 24199if test "${enable_xshmfence+set}" = set; then : 24200 enableval=$enable_xshmfence; XSHMFENCE="$enableval" 24201else 24202 XSHMFENCE="auto" 24203fi 24204 24205 24206 24207# Check whether --enable-install-setuid was given. 24208if test "${enable_install_setuid+set}" = set; then : 24209 enableval=$enable_install_setuid; SETUID=$enableval 24210else 24211 SETUID=auto 24212fi 24213 24214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we can install the Xorg server as root" >&5 24215$as_echo_n "checking to see if we can install the Xorg server as root... " >&6; } 24216if test "x$SETUID" = "xauto" ; then 24217 case $host_os in 24218 cygwin*) SETUID="no" ;; 24219 mingw*) SETUID="no" ;; 24220 darwin*) SETUID="no" ;; 24221 *) 24222 case $host_cpu in 24223 sparc) SETUID="no" ;; 24224 *) SETUID="yes" ;; 24225 esac 24226 esac 24227 if test "x$SETUID" = xyes; then 24228 touch testfile 24229 chown root testfile > /dev/null 2>&1 || SETUID="no" 24230 rm -f testfile 24231 fi 24232fi 24233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETUID" >&5 24234$as_echo "$SETUID" >&6; } 24235 if test "x$SETUID" = "xyes"; then 24236 INSTALL_SETUID_TRUE= 24237 INSTALL_SETUID_FALSE='#' 24238else 24239 INSTALL_SETUID_TRUE='#' 24240 INSTALL_SETUID_FALSE= 24241fi 24242 24243 24244 24245 24246# Transport selection macro from xtrans.m4 24247 24248 24249 case $host_os in 24250 mingw*) unixdef="no" ;; 24251 *) unixdef="yes" ;; 24252 esac 24253 # Check whether --enable-unix-transport was given. 24254if test "${enable_unix_transport+set}" = set; then : 24255 enableval=$enable_unix_transport; UNIXCONN=$enableval 24256else 24257 UNIXCONN=$unixdef 24258fi 24259 24260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 24261$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; } 24262 if test "$UNIXCONN" = "yes"; then 24263 24264$as_echo "#define UNIXCONN 1" >>confdefs.h 24265 24266 fi 24267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 24268$as_echo "$UNIXCONN" >&6; } 24269 # Check whether --enable-tcp-transport was given. 24270if test "${enable_tcp_transport+set}" = set; then : 24271 enableval=$enable_tcp_transport; TCPCONN=$enableval 24272else 24273 TCPCONN=yes 24274fi 24275 24276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 24277$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; } 24278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 24279$as_echo "$TCPCONN" >&6; } 24280 if test "$TCPCONN" = "yes"; then 24281 24282$as_echo "#define TCPCONN 1" >>confdefs.h 24283 24284 24285 # SVR4 hides these in libraries other than libc 24286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 24287$as_echo_n "checking for library containing socket... " >&6; } 24288if ${ac_cv_search_socket+:} false; then : 24289 $as_echo_n "(cached) " >&6 24290else 24291 ac_func_search_save_LIBS=$LIBS 24292cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24293/* end confdefs.h. */ 24294 24295/* Override any GCC internal prototype to avoid an error. 24296 Use char because int might match the return type of a GCC 24297 builtin and then its argument prototype would still apply. */ 24298#ifdef __cplusplus 24299extern "C" 24300#endif 24301char socket (); 24302int 24303main () 24304{ 24305return socket (); 24306 ; 24307 return 0; 24308} 24309_ACEOF 24310for ac_lib in '' socket; do 24311 if test -z "$ac_lib"; then 24312 ac_res="none required" 24313 else 24314 ac_res=-l$ac_lib 24315 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24316 fi 24317 if ac_fn_c_try_link "$LINENO"; then : 24318 ac_cv_search_socket=$ac_res 24319fi 24320rm -f core conftest.err conftest.$ac_objext \ 24321 conftest$ac_exeext 24322 if ${ac_cv_search_socket+:} false; then : 24323 break 24324fi 24325done 24326if ${ac_cv_search_socket+:} false; then : 24327 24328else 24329 ac_cv_search_socket=no 24330fi 24331rm conftest.$ac_ext 24332LIBS=$ac_func_search_save_LIBS 24333fi 24334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 24335$as_echo "$ac_cv_search_socket" >&6; } 24336ac_res=$ac_cv_search_socket 24337if test "$ac_res" != no; then : 24338 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24339 24340fi 24341 24342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 24343$as_echo_n "checking for library containing gethostbyname... " >&6; } 24344if ${ac_cv_search_gethostbyname+:} false; then : 24345 $as_echo_n "(cached) " >&6 24346else 24347 ac_func_search_save_LIBS=$LIBS 24348cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24349/* end confdefs.h. */ 24350 24351/* Override any GCC internal prototype to avoid an error. 24352 Use char because int might match the return type of a GCC 24353 builtin and then its argument prototype would still apply. */ 24354#ifdef __cplusplus 24355extern "C" 24356#endif 24357char gethostbyname (); 24358int 24359main () 24360{ 24361return gethostbyname (); 24362 ; 24363 return 0; 24364} 24365_ACEOF 24366for ac_lib in '' nsl; do 24367 if test -z "$ac_lib"; then 24368 ac_res="none required" 24369 else 24370 ac_res=-l$ac_lib 24371 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24372 fi 24373 if ac_fn_c_try_link "$LINENO"; then : 24374 ac_cv_search_gethostbyname=$ac_res 24375fi 24376rm -f core conftest.err conftest.$ac_objext \ 24377 conftest$ac_exeext 24378 if ${ac_cv_search_gethostbyname+:} false; then : 24379 break 24380fi 24381done 24382if ${ac_cv_search_gethostbyname+:} false; then : 24383 24384else 24385 ac_cv_search_gethostbyname=no 24386fi 24387rm conftest.$ac_ext 24388LIBS=$ac_func_search_save_LIBS 24389fi 24390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 24391$as_echo "$ac_cv_search_gethostbyname" >&6; } 24392ac_res=$ac_cv_search_gethostbyname 24393if test "$ac_res" != no; then : 24394 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24395 24396fi 24397 24398 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 24399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 24400$as_echo_n "checking for main in -lws2_32... " >&6; } 24401if ${ac_cv_lib_ws2_32_main+:} false; then : 24402 $as_echo_n "(cached) " >&6 24403else 24404 ac_check_lib_save_LIBS=$LIBS 24405LIBS="-lws2_32 $LIBS" 24406cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24407/* end confdefs.h. */ 24408 24409 24410int 24411main () 24412{ 24413return main (); 24414 ; 24415 return 0; 24416} 24417_ACEOF 24418if ac_fn_c_try_link "$LINENO"; then : 24419 ac_cv_lib_ws2_32_main=yes 24420else 24421 ac_cv_lib_ws2_32_main=no 24422fi 24423rm -f core conftest.err conftest.$ac_objext \ 24424 conftest$ac_exeext conftest.$ac_ext 24425LIBS=$ac_check_lib_save_LIBS 24426fi 24427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 24428$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 24429if test "x$ac_cv_lib_ws2_32_main" = xyes; then : 24430 cat >>confdefs.h <<_ACEOF 24431#define HAVE_LIBWS2_32 1 24432_ACEOF 24433 24434 LIBS="-lws2_32 $LIBS" 24435 24436fi 24437 24438 fi 24439 24440 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 24441 # Check whether --enable-ipv6 was given. 24442if test "${enable_ipv6+set}" = set; then : 24443 enableval=$enable_ipv6; IPV6CONN=$enableval 24444else 24445 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 24446if test "x$ac_cv_func_getaddrinfo" = xyes; then : 24447 IPV6CONN=yes 24448else 24449 IPV6CONN=no 24450fi 24451 24452fi 24453 24454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 24455$as_echo_n "checking if IPv6 support should be built... " >&6; } 24456 if test "$IPV6CONN" = "yes"; then 24457 24458$as_echo "#define IPv6 1" >>confdefs.h 24459 24460 fi 24461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 24462$as_echo "$IPV6CONN" >&6; } 24463 24464 # 4.3BSD-Reno added a new member to struct sockaddr_in 24465 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 24466#include <sys/types.h> 24467#include <sys/socket.h> 24468#include <netinet/in.h> 24469 24470" 24471if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : 24472 24473$as_echo "#define BSD44SOCKETS 1" >>confdefs.h 24474 24475fi 24476 24477 24478 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 24479 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 24480$ac_includes_default 24481#include <sys/socket.h> 24482" 24483if test "x$ac_cv_type_socklen_t" = xyes; then : 24484 24485cat >>confdefs.h <<_ACEOF 24486#define HAVE_SOCKLEN_T 1 24487_ACEOF 24488 24489 24490fi 24491 24492 24493 # XPG4v2/UNIX95 added msg_control - check to see if we need to define 24494 # _XOPEN_SOURCE to get it (such as on Solaris) 24495 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 24496$ac_includes_default 24497#include <sys/socket.h> 24498 24499" 24500if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 24501 24502fi 24503 24504 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03 24505 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 24506 unset ac_cv_member_struct_msghdr_msg_control 24507 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5 24508$as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;} 24509 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 24510#define _XOPEN_SOURCE 600 24511$ac_includes_default 24512#include <sys/socket.h> 24513 24514" 24515if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 24516 24517$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h 24518 24519 24520fi 24521 24522 fi 24523 # If that didn't work, fall back to XPG5/UNIX98 with C89 24524 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 24525 unset ac_cv_member_struct_msghdr_msg_control 24526 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5 24527$as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;} 24528 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 24529#define _XOPEN_SOURCE 500 24530$ac_includes_default 24531#include <sys/socket.h> 24532 24533" 24534if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 24535 24536$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h 24537 24538 24539fi 24540 24541 fi 24542 24543 24544 24545 fi 24546 case $host_os in 24547 solaris*|sco*|sysv4*) localdef="yes" ;; 24548 *) localdef="no" ;; 24549 esac 24550 # Check whether --enable-local-transport was given. 24551if test "${enable_local_transport+set}" = set; then : 24552 enableval=$enable_local_transport; LOCALCONN=$enableval 24553else 24554 LOCALCONN=$localdef 24555fi 24556 24557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 24558$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; } 24559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 24560$as_echo "$LOCALCONN" >&6; } 24561 if test "$LOCALCONN" = "yes"; then 24562 24563$as_echo "#define LOCALCONN 1" >>confdefs.h 24564 24565 fi 24566 24567 # Other functions Xtrans may need 24568 for ac_func in strcasecmp strlcpy 24569do : 24570 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 24571ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 24572if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 24573 cat >>confdefs.h <<_ACEOF 24574#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 24575_ACEOF 24576 24577fi 24578done 24579 24580 24581 24582 24583# Secure RPC detection macro from xtrans.m4 24584 24585 # Check whether --enable-secure-rpc was given. 24586if test "${enable_secure_rpc+set}" = set; then : 24587 enableval=$enable_secure_rpc; SECURE_RPC=$enableval 24588else 24589 SECURE_RPC="try" 24590fi 24591 24592 24593 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then 24594 FOUND_SECURE_RPC="no" 24595 for ac_func in authdes_seccreate authdes_create 24596do : 24597 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 24598ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 24599if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 24600 cat >>confdefs.h <<_ACEOF 24601#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 24602_ACEOF 24603 FOUND_SECURE_RPC="yes" 24604fi 24605done 24606 24607 if test "x$FOUND_SECURE_RPC" = "xno" ; then 24608 if test "x$SECURE_RPC" = "xyes" ; then 24609 as_fn_error $? "Secure RPC requested, but required functions not found" "$LINENO" 5 24610 fi 24611 SECURE_RPC="no" 24612 else 24613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5 24614$as_echo_n "checking for library containing getsecretkey... " >&6; } 24615if ${ac_cv_search_getsecretkey+:} false; then : 24616 $as_echo_n "(cached) " >&6 24617else 24618 ac_func_search_save_LIBS=$LIBS 24619cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24620/* end confdefs.h. */ 24621 24622/* Override any GCC internal prototype to avoid an error. 24623 Use char because int might match the return type of a GCC 24624 builtin and then its argument prototype would still apply. */ 24625#ifdef __cplusplus 24626extern "C" 24627#endif 24628char getsecretkey (); 24629int 24630main () 24631{ 24632return getsecretkey (); 24633 ; 24634 return 0; 24635} 24636_ACEOF 24637for ac_lib in '' rpcsvc; do 24638 if test -z "$ac_lib"; then 24639 ac_res="none required" 24640 else 24641 ac_res=-l$ac_lib 24642 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24643 fi 24644 if ac_fn_c_try_link "$LINENO"; then : 24645 ac_cv_search_getsecretkey=$ac_res 24646fi 24647rm -f core conftest.err conftest.$ac_objext \ 24648 conftest$ac_exeext 24649 if ${ac_cv_search_getsecretkey+:} false; then : 24650 break 24651fi 24652done 24653if ${ac_cv_search_getsecretkey+:} false; then : 24654 24655else 24656 ac_cv_search_getsecretkey=no 24657fi 24658rm conftest.$ac_ext 24659LIBS=$ac_func_search_save_LIBS 24660fi 24661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5 24662$as_echo "$ac_cv_search_getsecretkey" >&6; } 24663ac_res=$ac_cv_search_getsecretkey 24664if test "$ac_res" != no; then : 24665 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24666 24667fi 24668 24669 SECURE_RPC="yes" 24670 fi 24671 fi 24672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5 24673$as_echo_n "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; } 24674 if test "x$SECURE_RPC" = "xyes" ; then 24675 24676$as_echo "#define SECURE_RPC 1" >>confdefs.h 24677 24678 fi 24679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5 24680$as_echo "$SECURE_RPC" >&6; } 24681 24682 if test "x$SECURE_RPC" = xyes; then 24683 SECURE_RPC_TRUE= 24684 SECURE_RPC_FALSE='#' 24685else 24686 SECURE_RPC_TRUE='#' 24687 SECURE_RPC_FALSE= 24688fi 24689 24690 24691 if test "x$INT10" = xvm86; then 24692 INT10_VM86_TRUE= 24693 INT10_VM86_FALSE='#' 24694else 24695 INT10_VM86_TRUE='#' 24696 INT10_VM86_FALSE= 24697fi 24698 24699 if test "x$INT10" = xx86emu; then 24700 INT10_X86EMU_TRUE= 24701 INT10_X86EMU_FALSE='#' 24702else 24703 INT10_X86EMU_TRUE='#' 24704 INT10_X86EMU_FALSE= 24705fi 24706 24707 if test "x$INT10" = xstub; then 24708 INT10_STUB_TRUE= 24709 INT10_STUB_FALSE='#' 24710else 24711 INT10_STUB_TRUE='#' 24712 INT10_STUB_FALSE= 24713fi 24714 24715 24716case $host_os in 24717 cygwin* | mingw*) 24718 CONFIG_HAL=no 24719 CONFIG_UDEV=no 24720 CONFIG_UDEV_KMS=no 24721 DGA=no 24722 DRM=no 24723 DRI2=no 24724 DRI3=no 24725 INT10MODULE=no 24726 PCI=no 24727 VGAHW=no 24728 VBE=no 24729 XF86UTILS=no 24730 XF86VIDMODE=no 24731 XSELINUX=no 24732 SYMBOL_VISIBILITY=no 24733 ;; 24734 darwin*) 24735 PCI=no 24736 INT10MODULE=no 24737 VGAHW=no 24738 VBE=no 24739 DRM=no 24740 DRI2=no 24741 DRI3=no 24742 24743 if test x$XQUARTZ = xauto; then 24744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xquartz" >&5 24745$as_echo_n "checking whether to build Xquartz... " >&6; } 24746if ${xorg_cv_Carbon_framework+:} false; then : 24747 $as_echo_n "(cached) " >&6 24748else 24749 24750 save_LDFLAGS=$LDFLAGS 24751 LDFLAGS="$LDFLAGS -framework Carbon" 24752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24753/* end confdefs.h. */ 24754char FSFindFolder(); int main() { FSFindFolder(); return 0;} 24755_ACEOF 24756if ac_fn_c_try_link "$LINENO"; then : 24757 xorg_cv_Carbon_framework=yes 24758else 24759 xorg_cv_Carbon_framework=no 24760fi 24761rm -f core conftest.err conftest.$ac_objext \ 24762 conftest$ac_exeext conftest.$ac_ext 24763 LDFLAGS=$save_LDFLAGS 24764fi 24765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_Carbon_framework" >&5 24766$as_echo "$xorg_cv_Carbon_framework" >&6; } 24767 24768 if test "X$xorg_cv_Carbon_framework" = Xyes; then 24769 XQUARTZ=yes 24770 else 24771 XQUARTZ=no 24772 fi 24773 fi 24774 24775 ac_fn_c_check_func "$LINENO" "dispatch_async" "ac_cv_func_dispatch_async" 24776if test "x$ac_cv_func_dispatch_async" = xyes; then : 24777 24778$as_echo "#define HAVE_LIBDISPATCH 1" >>confdefs.h 24779 24780fi 24781 24782 24783 if test "x$XQUARTZ" = xyes ; then 24784 XQUARTZ=yes 24785 XVFB=no 24786 XNEST=no 24787 XWAYLAND=no 24788 24789 COMPOSITE=no 24790 DGA=no 24791 DPMSExtension=no 24792 XF86VIDMODE=no 24793 fi 24794 ;; 24795 gnu*) 24796 DRM=no 24797 DRI2=no 24798 DRI3=no 24799 ;; 24800 *) XQUARTZ=no ;; 24801esac 24802 24803XEXT_INC='-I$(top_srcdir)/Xext' 24804XEXT_LIB='$(top_builddir)/Xext/libXext.la' 24805 24806VIDEOPROTO="videoproto" 24807COMPOSITEPROTO="compositeproto >= 0.4" 24808RECORDPROTO="recordproto >= 1.13.99.1" 24809SCRNSAVERPROTO="scrnsaverproto >= 1.1" 24810RESOURCEPROTO="resourceproto >= 1.2.0" 24811DRIPROTO="xf86driproto >= 2.1.0" 24812DRI2PROTO="dri2proto >= 2.8" 24813DRI3PROTO="dri3proto >= 1.2" 24814XINERAMAPROTO="xineramaproto" 24815BIGFONTPROTO="xf86bigfontproto >= 1.2.0" 24816DGAPROTO="xf86dgaproto >= 2.0.99.1" 24817GLPROTO="glproto >= 1.4.17" 24818DMXPROTO="dmxproto >= 2.2.99.1" 24819VIDMODEPROTO="xf86vidmodeproto >= 2.2.99.1" 24820WINDOWSWMPROTO="windowswmproto" 24821APPLEWMPROTO="applewmproto >= 1.4" 24822LIBXSHMFENCE="xshmfence >= 1.1" 24823 24824XPROTO="xproto >= 7.0.31" 24825RANDRPROTO="randrproto >= 1.6.0" 24826RENDERPROTO="renderproto >= 0.11" 24827XEXTPROTO="xextproto >= 7.2.99.901" 24828INPUTPROTO="inputproto >= 2.3" 24829KBPROTO="kbproto >= 1.0.3" 24830FONTSPROTO="fontsproto >= 2.1.3" 24831FIXESPROTO="fixesproto >= 5.0" 24832DAMAGEPROTO="damageproto >= 1.1" 24833XCMISCPROTO="xcmiscproto >= 1.2.0" 24834BIGREQSPROTO="bigreqsproto >= 1.1.0" 24835XTRANS="xtrans >= 1.3.5" 24836PRESENTPROTO="presentproto >= 1.1" 24837 24838LIBAPPLEWM="applewm >= 1.4" 24839LIBDMX="dmx >= 1.0.99.1" 24840LIBDRI="dri >= 7.8.0" 24841LIBDRM="libdrm >= 2.4.89" 24842LIBEGL="egl" 24843LIBGBM="gbm >= 10.2.0" 24844LIBGL="gl >= 1.2" 24845LIBXEXT="xext >= 1.0.99.4" 24846LIBXFONT="xfont2 >= 2.0.0" 24847LIBXI="xi >= 1.2.99.1" 24848LIBXTST="xtst >= 1.0.99.2" 24849LIBPCIACCESS="pciaccess >= 0.12.901" 24850LIBUDEV="libudev >= 143" 24851LIBSELINUX="libselinux >= 2.0.86" 24852LIBDBUS="dbus-1 >= 1.0" 24853LIBPIXMAN="pixman-1 >= 0.27.2" 24854 24855 24856pkg_failed=no 24857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIXMAN" >&5 24858$as_echo_n "checking for PIXMAN... " >&6; } 24859 24860if test -n "$PIXMAN_CFLAGS"; then 24861 pkg_cv_PIXMAN_CFLAGS="$PIXMAN_CFLAGS" 24862 elif test -n "$PKG_CONFIG"; then 24863 if test -n "$PKG_CONFIG" && \ 24864 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPIXMAN\""; } >&5 24865 ($PKG_CONFIG --exists --print-errors "$LIBPIXMAN") 2>&5 24866 ac_status=$? 24867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24868 test $ac_status = 0; }; then 24869 pkg_cv_PIXMAN_CFLAGS=`$PKG_CONFIG --cflags "$LIBPIXMAN" 2>/dev/null` 24870 test "x$?" != "x0" && pkg_failed=yes 24871else 24872 pkg_failed=yes 24873fi 24874 else 24875 pkg_failed=untried 24876fi 24877if test -n "$PIXMAN_LIBS"; then 24878 pkg_cv_PIXMAN_LIBS="$PIXMAN_LIBS" 24879 elif test -n "$PKG_CONFIG"; then 24880 if test -n "$PKG_CONFIG" && \ 24881 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPIXMAN\""; } >&5 24882 ($PKG_CONFIG --exists --print-errors "$LIBPIXMAN") 2>&5 24883 ac_status=$? 24884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24885 test $ac_status = 0; }; then 24886 pkg_cv_PIXMAN_LIBS=`$PKG_CONFIG --libs "$LIBPIXMAN" 2>/dev/null` 24887 test "x$?" != "x0" && pkg_failed=yes 24888else 24889 pkg_failed=yes 24890fi 24891 else 24892 pkg_failed=untried 24893fi 24894 24895 24896 24897if test $pkg_failed = yes; then 24898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24899$as_echo "no" >&6; } 24900 24901if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 24902 _pkg_short_errors_supported=yes 24903else 24904 _pkg_short_errors_supported=no 24905fi 24906 if test $_pkg_short_errors_supported = yes; then 24907 PIXMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBPIXMAN" 2>&1` 24908 else 24909 PIXMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBPIXMAN" 2>&1` 24910 fi 24911 # Put the nasty error message in config.log where it belongs 24912 echo "$PIXMAN_PKG_ERRORS" >&5 24913 24914 as_fn_error $? "Package requirements ($LIBPIXMAN) were not met: 24915 24916$PIXMAN_PKG_ERRORS 24917 24918Consider adjusting the PKG_CONFIG_PATH environment variable if you 24919installed software in a non-standard prefix. 24920 24921Alternatively, you may set the environment variables PIXMAN_CFLAGS 24922and PIXMAN_LIBS to avoid the need to call pkg-config. 24923See the pkg-config man page for more details." "$LINENO" 5 24924elif test $pkg_failed = untried; then 24925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24926$as_echo "no" >&6; } 24927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24928$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24929as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 24930is in your PATH or set the PKG_CONFIG environment variable to the full 24931path to pkg-config. 24932 24933Alternatively, you may set the environment variables PIXMAN_CFLAGS 24934and PIXMAN_LIBS to avoid the need to call pkg-config. 24935See the pkg-config man page for more details. 24936 24937To get pkg-config, see <http://pkg-config.freedesktop.org/>. 24938See \`config.log' for more details" "$LINENO" 5; } 24939else 24940 PIXMAN_CFLAGS=$pkg_cv_PIXMAN_CFLAGS 24941 PIXMAN_LIBS=$pkg_cv_PIXMAN_LIBS 24942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24943$as_echo "yes" >&6; } 24944 24945fi 24946REQUIRED_LIBS="$REQUIRED_LIBS $LIBPIXMAN $LIBXFONT xau" 24947 24948SDK_REQUIRED_MODULES="$XPROTO $RANDRPROTO $RENDERPROTO $XEXTPROTO $INPUTPROTO $KBPROTO $FONTSPROTO $LIBPIXMAN" 24949# Make SDK_REQUIRED_MODULES available for inclusion in xorg-server.pc 24950 24951 24952ac_fn_c_check_decl "$LINENO" "PTHREAD_MUTEX_RECURSIVE" "ac_cv_have_decl_PTHREAD_MUTEX_RECURSIVE" "#include <pthread.h> 24953" 24954if test "x$ac_cv_have_decl_PTHREAD_MUTEX_RECURSIVE" = xyes; then : 24955 HAVE_RECURSIVE_MUTEX=yes 24956else 24957 HAVE_RECURSIVE_MUTEX=no 24958fi 24959 24960 24961THREAD_DEFAULT=no 24962 24963if test "x$HAVE_RECURSIVE_MUTEX" = "xyes" ; then 24964 THREAD_DEFAULT=yes 24965fi 24966 24967# Check whether --enable-input-thread was given. 24968if test "${enable_input_thread+set}" = set; then : 24969 enableval=$enable_input_thread; INPUTTHREAD=$enableval 24970else 24971 INPUTTHREAD=$THREAD_DEFAULT 24972fi 24973 24974 24975if test "x$INPUTTHREAD" = "xyes" ; then 24976 24977 24978ac_ext=c 24979ac_cpp='$CPP $CPPFLAGS' 24980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24982ac_compiler_gnu=$ac_cv_c_compiler_gnu 24983 24984ax_pthread_ok=no 24985 24986# We used to check for pthread.h first, but this fails if pthread.h 24987# requires special compiler flags (e.g. on True64 or Sequent). 24988# It gets checked for in the link test anyway. 24989 24990# First of all, check if the user has set any of the PTHREAD_LIBS, 24991# etcetera environment variables, and if threads linking works using 24992# them: 24993if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 24994 save_CFLAGS="$CFLAGS" 24995 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 24996 save_LIBS="$LIBS" 24997 LIBS="$PTHREAD_LIBS $LIBS" 24998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 24999$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 25000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25001/* end confdefs.h. */ 25002 25003/* Override any GCC internal prototype to avoid an error. 25004 Use char because int might match the return type of a GCC 25005 builtin and then its argument prototype would still apply. */ 25006#ifdef __cplusplus 25007extern "C" 25008#endif 25009char pthread_join (); 25010int 25011main () 25012{ 25013return pthread_join (); 25014 ; 25015 return 0; 25016} 25017_ACEOF 25018if ac_fn_c_try_link "$LINENO"; then : 25019 ax_pthread_ok=yes 25020fi 25021rm -f core conftest.err conftest.$ac_objext \ 25022 conftest$ac_exeext conftest.$ac_ext 25023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 25024$as_echo "$ax_pthread_ok" >&6; } 25025 if test x"$ax_pthread_ok" = xno; then 25026 PTHREAD_LIBS="" 25027 PTHREAD_CFLAGS="" 25028 fi 25029 LIBS="$save_LIBS" 25030 CFLAGS="$save_CFLAGS" 25031fi 25032 25033# We must check for the threads library under a number of different 25034# names; the ordering is very important because some systems 25035# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 25036# libraries is broken (non-POSIX). 25037 25038# Create a list of thread flags to try. Items starting with a "-" are 25039# C compiler flags, and other items are library names, except for "none" 25040# which indicates that we try without any flags at all, and "pthread-config" 25041# which is a program returning the flags for the Pth emulation library. 25042 25043ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 25044 25045# The ordering *is* (sometimes) important. Some notes on the 25046# individual items follow: 25047 25048# pthreads: AIX (must check this before -lpthread) 25049# none: in case threads are in libc; should be tried before -Kthread and 25050# other compiler flags to prevent continual compiler warnings 25051# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 25052# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 25053# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 25054# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 25055# -pthreads: Solaris/gcc 25056# -mthreads: Mingw32/gcc, Lynx/gcc 25057# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 25058# doesn't hurt to check since this sometimes defines pthreads too; 25059# also defines -D_REENTRANT) 25060# ... -mt is also the pthreads flag for HP/aCC 25061# pthread: Linux, etcetera 25062# --thread-safe: KAI C++ 25063# pthread-config: use pthread-config program (for GNU Pth library) 25064 25065case ${host_os} in 25066 solaris*) 25067 25068 # On Solaris (at least, for some versions), libc contains stubbed 25069 # (non-functional) versions of the pthreads routines, so link-based 25070 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 25071 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 25072 # a function called by this macro, so we could check for that, but 25073 # who knows whether they'll stub that too in a future libc.) So, 25074 # we'll just look for -pthreads and -lpthread first: 25075 25076 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 25077 ;; 25078 25079 darwin*) 25080 ax_pthread_flags="-pthread $ax_pthread_flags" 25081 ;; 25082 netbsd*) 25083 # use libc stubs, don't link against libpthread, to allow 25084 # dynamic loading 25085 ax_pthread_flags="" 25086 ;; 25087esac 25088 25089# Clang doesn't consider unrecognized options an error unless we specify 25090# -Werror. We throw in some extra Clang-specific options to ensure that 25091# this doesn't happen for GCC, which also accepts -Werror. 25092 25093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5 25094$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; } 25095save_CFLAGS="$CFLAGS" 25096ax_pthread_extra_flags="-Werror" 25097CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument" 25098cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25099/* end confdefs.h. */ 25100int foo(void); 25101int 25102main () 25103{ 25104foo() 25105 ; 25106 return 0; 25107} 25108_ACEOF 25109if ac_fn_c_try_compile "$LINENO"; then : 25110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25111$as_echo "yes" >&6; } 25112else 25113 ax_pthread_extra_flags= 25114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25115$as_echo "no" >&6; } 25116fi 25117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25118CFLAGS="$save_CFLAGS" 25119 25120if test x"$ax_pthread_ok" = xno; then 25121for flag in $ax_pthread_flags; do 25122 25123 case $flag in 25124 none) 25125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 25126$as_echo_n "checking whether pthreads work without any flags... " >&6; } 25127 ;; 25128 25129 -*) 25130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 25131$as_echo_n "checking whether pthreads work with $flag... " >&6; } 25132 PTHREAD_CFLAGS="$flag" 25133 ;; 25134 25135 pthread-config) 25136 # Extract the first word of "pthread-config", so it can be a program name with args. 25137set dummy pthread-config; ac_word=$2 25138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25139$as_echo_n "checking for $ac_word... " >&6; } 25140if ${ac_cv_prog_ax_pthread_config+:} false; then : 25141 $as_echo_n "(cached) " >&6 25142else 25143 if test -n "$ax_pthread_config"; then 25144 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 25145else 25146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25147for as_dir in $PATH 25148do 25149 IFS=$as_save_IFS 25150 test -z "$as_dir" && as_dir=. 25151 for ac_exec_ext in '' $ac_executable_extensions; do 25152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25153 ac_cv_prog_ax_pthread_config="yes" 25154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25155 break 2 25156 fi 25157done 25158 done 25159IFS=$as_save_IFS 25160 25161 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 25162fi 25163fi 25164ax_pthread_config=$ac_cv_prog_ax_pthread_config 25165if test -n "$ax_pthread_config"; then 25166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 25167$as_echo "$ax_pthread_config" >&6; } 25168else 25169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25170$as_echo "no" >&6; } 25171fi 25172 25173 25174 if test x"$ax_pthread_config" = xno; then continue; fi 25175 PTHREAD_CFLAGS="`pthread-config --cflags`" 25176 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 25177 ;; 25178 25179 *) 25180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 25181$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 25182 PTHREAD_LIBS="-l$flag" 25183 ;; 25184 esac 25185 25186 save_LIBS="$LIBS" 25187 save_CFLAGS="$CFLAGS" 25188 LIBS="$PTHREAD_LIBS $LIBS" 25189 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags" 25190 25191 # Check for various functions. We must include pthread.h, 25192 # since some functions may be macros. (On the Sequent, we 25193 # need a special flag -Kthread to make this header compile.) 25194 # We check for pthread_join because it is in -lpthread on IRIX 25195 # while pthread_create is in libc. We check for pthread_attr_init 25196 # due to DEC craziness with -lpthreads. We check for 25197 # pthread_cleanup_push because it is one of the few pthread 25198 # functions on Solaris that doesn't have a non-functional libc stub. 25199 # We try pthread_create on general principles. 25200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25201/* end confdefs.h. */ 25202#include <pthread.h> 25203 static void routine(void *a) { a = 0; } 25204 static void *start_routine(void *a) { return a; } 25205int 25206main () 25207{ 25208pthread_t th; pthread_attr_t attr; 25209 pthread_create(&th, 0, start_routine, 0); 25210 pthread_join(th, 0); 25211 pthread_attr_init(&attr); 25212 pthread_cleanup_push(routine, 0); 25213 pthread_cleanup_pop(0) /* ; */ 25214 ; 25215 return 0; 25216} 25217_ACEOF 25218if ac_fn_c_try_link "$LINENO"; then : 25219 ax_pthread_ok=yes 25220fi 25221rm -f core conftest.err conftest.$ac_objext \ 25222 conftest$ac_exeext conftest.$ac_ext 25223 25224 LIBS="$save_LIBS" 25225 CFLAGS="$save_CFLAGS" 25226 25227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 25228$as_echo "$ax_pthread_ok" >&6; } 25229 if test "x$ax_pthread_ok" = xyes; then 25230 break; 25231 fi 25232 25233 PTHREAD_LIBS="" 25234 PTHREAD_CFLAGS="" 25235done 25236fi 25237 25238# Various other checks: 25239if test "x$ax_pthread_ok" = xyes; then 25240 save_LIBS="$LIBS" 25241 LIBS="$PTHREAD_LIBS $LIBS" 25242 save_CFLAGS="$CFLAGS" 25243 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 25244 25245 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 25246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 25247$as_echo_n "checking for joinable pthread attribute... " >&6; } 25248 attr_name=unknown 25249 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 25250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25251/* end confdefs.h. */ 25252#include <pthread.h> 25253int 25254main () 25255{ 25256int attr = $attr; return attr /* ; */ 25257 ; 25258 return 0; 25259} 25260_ACEOF 25261if ac_fn_c_try_link "$LINENO"; then : 25262 attr_name=$attr; break 25263fi 25264rm -f core conftest.err conftest.$ac_objext \ 25265 conftest$ac_exeext conftest.$ac_ext 25266 done 25267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 25268$as_echo "$attr_name" >&6; } 25269 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 25270 25271cat >>confdefs.h <<_ACEOF 25272#define PTHREAD_CREATE_JOINABLE $attr_name 25273_ACEOF 25274 25275 fi 25276 25277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 25278$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 25279 flag=no 25280 case ${host_os} in 25281 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; 25282 osf* | hpux*) flag="-D_REENTRANT";; 25283 solaris*) 25284 if test "$GCC" = "yes"; then 25285 flag="-D_REENTRANT" 25286 else 25287 # TODO: What about Clang on Solaris? 25288 flag="-mt -D_REENTRANT" 25289 fi 25290 ;; 25291 esac 25292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5 25293$as_echo "$flag" >&6; } 25294 if test "x$flag" != xno; then 25295 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 25296 fi 25297 25298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 25299$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 25300if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 25301 $as_echo_n "(cached) " >&6 25302else 25303 25304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25305/* end confdefs.h. */ 25306#include <pthread.h> 25307int 25308main () 25309{ 25310int i = PTHREAD_PRIO_INHERIT; 25311 ; 25312 return 0; 25313} 25314_ACEOF 25315if ac_fn_c_try_link "$LINENO"; then : 25316 ax_cv_PTHREAD_PRIO_INHERIT=yes 25317else 25318 ax_cv_PTHREAD_PRIO_INHERIT=no 25319fi 25320rm -f core conftest.err conftest.$ac_objext \ 25321 conftest$ac_exeext conftest.$ac_ext 25322 25323fi 25324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 25325$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 25326 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : 25327 25328$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 25329 25330fi 25331 25332 LIBS="$save_LIBS" 25333 CFLAGS="$save_CFLAGS" 25334 25335 # More AIX lossage: compile with *_r variant 25336 if test "x$GCC" != xyes; then 25337 case $host_os in 25338 aix*) 25339 case "x/$CC" in #( 25340 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 25341 #handle absolute path differently from PATH based program lookup 25342 case "x$CC" in #( 25343 x/*) : 25344 if as_fn_executable_p ${CC}_r; then : 25345 PTHREAD_CC="${CC}_r" 25346fi ;; #( 25347 *) : 25348 for ac_prog in ${CC}_r 25349do 25350 # Extract the first word of "$ac_prog", so it can be a program name with args. 25351set dummy $ac_prog; ac_word=$2 25352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25353$as_echo_n "checking for $ac_word... " >&6; } 25354if ${ac_cv_prog_PTHREAD_CC+:} false; then : 25355 $as_echo_n "(cached) " >&6 25356else 25357 if test -n "$PTHREAD_CC"; then 25358 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 25359else 25360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25361for as_dir in $PATH 25362do 25363 IFS=$as_save_IFS 25364 test -z "$as_dir" && as_dir=. 25365 for ac_exec_ext in '' $ac_executable_extensions; do 25366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25367 ac_cv_prog_PTHREAD_CC="$ac_prog" 25368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25369 break 2 25370 fi 25371done 25372 done 25373IFS=$as_save_IFS 25374 25375fi 25376fi 25377PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 25378if test -n "$PTHREAD_CC"; then 25379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 25380$as_echo "$PTHREAD_CC" >&6; } 25381else 25382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25383$as_echo "no" >&6; } 25384fi 25385 25386 25387 test -n "$PTHREAD_CC" && break 25388done 25389test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 25390 ;; 25391esac ;; #( 25392 *) : 25393 ;; 25394esac 25395 ;; 25396 esac 25397 fi 25398fi 25399 25400test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 25401 25402 25403 25404 25405 25406# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 25407if test x"$ax_pthread_ok" = xyes; then 25408 25409$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 25410 25411 : 25412else 25413 ax_pthread_ok=no 25414 as_fn_error $? "threaded input requested but no pthread support has been found" "$LINENO" 5 25415fi 25416ac_ext=c 25417ac_cpp='$CPP $CPPFLAGS' 25418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25420ac_compiler_gnu=$ac_cv_c_compiler_gnu 25421 25422 25423 SYS_LIBS="$SYS_LIBS $PTHREAD_LIBS" 25424 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 25425 25426$as_echo "#define INPUTTHREAD 1" >>confdefs.h 25427 25428 25429 save_LIBS="$LIBS" 25430 LIBS="$LIBS $SYS_LIBS" 25431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np(const char*)" >&5 25432$as_echo_n "checking for pthread_setname_np(const char*)... " >&6; } 25433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25434/* end confdefs.h. */ 25435#include <pthread.h> 25436int 25437main () 25438{ 25439pthread_setname_np("example") 25440 ; 25441 return 0; 25442} 25443_ACEOF 25444if ac_fn_c_try_link "$LINENO"; then : 25445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25446$as_echo "yes" >&6; } 25447 25448$as_echo "#define HAVE_PTHREAD_SETNAME_NP_WITHOUT_TID 1" >>confdefs.h 25449 25450else 25451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25452$as_echo "no" >&6; } 25453fi 25454rm -f core conftest.err conftest.$ac_objext \ 25455 conftest$ac_exeext conftest.$ac_ext 25456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np(pthread_t, const char*)" >&5 25457$as_echo_n "checking for pthread_setname_np(pthread_t, const char*)... " >&6; } 25458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25459/* end confdefs.h. */ 25460#include <pthread.h> 25461int 25462main () 25463{ 25464pthread_setname_np(pthread_self(), "example") 25465 ; 25466 return 0; 25467} 25468_ACEOF 25469if ac_fn_c_try_link "$LINENO"; then : 25470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25471$as_echo "yes" >&6; } 25472 25473$as_echo "#define HAVE_PTHREAD_SETNAME_NP_WITH_TID 1" >>confdefs.h 25474 25475else 25476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25477$as_echo "no" >&6; } 25478fi 25479rm -f core conftest.err conftest.$ac_objext \ 25480 conftest$ac_exeext conftest.$ac_ext 25481 LIBS="$save_LIBS" 25482fi 25483 25484REQUIRED_MODULES="$FIXESPROTO $DAMAGEPROTO $XCMISCPROTO $XTRANS $BIGREQSPROTO $SDK_REQUIRED_MODULES" 25485 25486LIBSYSTEMD="libsystemd >= 209" 25487 25488# Check whether --with-systemd-daemon was given. 25489if test "${with_systemd_daemon+set}" = set; then : 25490 withval=$with_systemd_daemon; WITH_SYSTEMD_DAEMON=$withval 25491else 25492 WITH_SYSTEMD_DAEMON=auto 25493fi 25494 25495if test "x$WITH_SYSTEMD_DAEMON" = "xyes" -o "x$WITH_SYSTEMD_DAEMON" = "xauto" ; then 25496 25497pkg_failed=no 25498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5 25499$as_echo_n "checking for SYSTEMD_DAEMON... " >&6; } 25500 25501if test -n "$SYSTEMD_DAEMON_CFLAGS"; then 25502 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS" 25503 elif test -n "$PKG_CONFIG"; then 25504 if test -n "$PKG_CONFIG" && \ 25505 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSYSTEMD\""; } >&5 25506 ($PKG_CONFIG --exists --print-errors "$LIBSYSTEMD") 2>&5 25507 ac_status=$? 25508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25509 test $ac_status = 0; }; then 25510 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "$LIBSYSTEMD" 2>/dev/null` 25511 test "x$?" != "x0" && pkg_failed=yes 25512else 25513 pkg_failed=yes 25514fi 25515 else 25516 pkg_failed=untried 25517fi 25518if test -n "$SYSTEMD_DAEMON_LIBS"; then 25519 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS" 25520 elif test -n "$PKG_CONFIG"; then 25521 if test -n "$PKG_CONFIG" && \ 25522 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSYSTEMD\""; } >&5 25523 ($PKG_CONFIG --exists --print-errors "$LIBSYSTEMD") 2>&5 25524 ac_status=$? 25525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25526 test $ac_status = 0; }; then 25527 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "$LIBSYSTEMD" 2>/dev/null` 25528 test "x$?" != "x0" && pkg_failed=yes 25529else 25530 pkg_failed=yes 25531fi 25532 else 25533 pkg_failed=untried 25534fi 25535 25536 25537 25538if test $pkg_failed = yes; then 25539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25540$as_echo "no" >&6; } 25541 25542if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25543 _pkg_short_errors_supported=yes 25544else 25545 _pkg_short_errors_supported=no 25546fi 25547 if test $_pkg_short_errors_supported = yes; then 25548 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBSYSTEMD" 2>&1` 25549 else 25550 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBSYSTEMD" 2>&1` 25551 fi 25552 # Put the nasty error message in config.log where it belongs 25553 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5 25554 25555 25556pkg_failed=no 25557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5 25558$as_echo_n "checking for SYSTEMD_DAEMON... " >&6; } 25559 25560if test -n "$SYSTEMD_DAEMON_CFLAGS"; then 25561 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS" 25562 elif test -n "$PKG_CONFIG"; then 25563 if test -n "$PKG_CONFIG" && \ 25564 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 25565 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 25566 ac_status=$? 25567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25568 test $ac_status = 0; }; then 25569 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null` 25570 test "x$?" != "x0" && pkg_failed=yes 25571else 25572 pkg_failed=yes 25573fi 25574 else 25575 pkg_failed=untried 25576fi 25577if test -n "$SYSTEMD_DAEMON_LIBS"; then 25578 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS" 25579 elif test -n "$PKG_CONFIG"; then 25580 if test -n "$PKG_CONFIG" && \ 25581 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 25582 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 25583 ac_status=$? 25584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25585 test $ac_status = 0; }; then 25586 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null` 25587 test "x$?" != "x0" && pkg_failed=yes 25588else 25589 pkg_failed=yes 25590fi 25591 else 25592 pkg_failed=untried 25593fi 25594 25595 25596 25597if test $pkg_failed = yes; then 25598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25599$as_echo "no" >&6; } 25600 25601if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25602 _pkg_short_errors_supported=yes 25603else 25604 _pkg_short_errors_supported=no 25605fi 25606 if test $_pkg_short_errors_supported = yes; then 25607 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 25608 else 25609 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 25610 fi 25611 # Put the nasty error message in config.log where it belongs 25612 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5 25613 25614 HAVE_SYSTEMD_DAEMON=no 25615elif test $pkg_failed = untried; then 25616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25617$as_echo "no" >&6; } 25618 HAVE_SYSTEMD_DAEMON=no 25619else 25620 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS 25621 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS 25622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25623$as_echo "yes" >&6; } 25624 HAVE_SYSTEMD_DAEMON=yes; 25625 LIBSYSTEMD_DAEMON=libsystemd-daemon 25626fi 25627elif test $pkg_failed = untried; then 25628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25629$as_echo "no" >&6; } 25630 25631pkg_failed=no 25632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5 25633$as_echo_n "checking for SYSTEMD_DAEMON... " >&6; } 25634 25635if test -n "$SYSTEMD_DAEMON_CFLAGS"; then 25636 pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS" 25637 elif test -n "$PKG_CONFIG"; then 25638 if test -n "$PKG_CONFIG" && \ 25639 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 25640 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 25641 ac_status=$? 25642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25643 test $ac_status = 0; }; then 25644 pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null` 25645 test "x$?" != "x0" && pkg_failed=yes 25646else 25647 pkg_failed=yes 25648fi 25649 else 25650 pkg_failed=untried 25651fi 25652if test -n "$SYSTEMD_DAEMON_LIBS"; then 25653 pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS" 25654 elif test -n "$PKG_CONFIG"; then 25655 if test -n "$PKG_CONFIG" && \ 25656 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 25657 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 25658 ac_status=$? 25659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25660 test $ac_status = 0; }; then 25661 pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null` 25662 test "x$?" != "x0" && pkg_failed=yes 25663else 25664 pkg_failed=yes 25665fi 25666 else 25667 pkg_failed=untried 25668fi 25669 25670 25671 25672if test $pkg_failed = yes; then 25673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25674$as_echo "no" >&6; } 25675 25676if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25677 _pkg_short_errors_supported=yes 25678else 25679 _pkg_short_errors_supported=no 25680fi 25681 if test $_pkg_short_errors_supported = yes; then 25682 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 25683 else 25684 SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 25685 fi 25686 # Put the nasty error message in config.log where it belongs 25687 echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5 25688 25689 HAVE_SYSTEMD_DAEMON=no 25690elif test $pkg_failed = untried; then 25691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25692$as_echo "no" >&6; } 25693 HAVE_SYSTEMD_DAEMON=no 25694else 25695 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS 25696 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS 25697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25698$as_echo "yes" >&6; } 25699 HAVE_SYSTEMD_DAEMON=yes; 25700 LIBSYSTEMD_DAEMON=libsystemd-daemon 25701fi 25702else 25703 SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS 25704 SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS 25705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25706$as_echo "yes" >&6; } 25707 HAVE_SYSTEMD_DAEMON=yes; 25708 LIBSYSTEMD_DAEMON="$LIBSYSTEMD" 25709fi 25710 if test "x$HAVE_SYSTEMD_DAEMON" = xyes; then 25711 25712$as_echo "#define HAVE_SYSTEMD_DAEMON 1" >>confdefs.h 25713 25714 REQUIRED_LIBS="$REQUIRED_LIBS $LIBSYSTEMD_DAEMON" 25715 elif test "x$WITH_SYSTEMD_DAEMON" = xyes; then 25716 as_fn_error $? "systemd support requested but no library has been found" "$LINENO" 5 25717 fi 25718fi 25719 if test "x$HAVE_SYSTEMD_DAEMON" = "xyes"; then 25720 HAVE_SYSTEMD_DAEMON_TRUE= 25721 HAVE_SYSTEMD_DAEMON_FALSE='#' 25722else 25723 HAVE_SYSTEMD_DAEMON_TRUE='#' 25724 HAVE_SYSTEMD_DAEMON_FALSE= 25725fi 25726 25727 25728if test "x$CONFIG_UDEV" = xyes && test "x$CONFIG_HAL" = xyes; then 25729 as_fn_error $? "Hotplugging through both libudev and hal not allowed" "$LINENO" 5 25730fi 25731 25732 25733pkg_failed=no 25734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5 25735$as_echo_n "checking for UDEV... " >&6; } 25736 25737if test -n "$UDEV_CFLAGS"; then 25738 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS" 25739 elif test -n "$PKG_CONFIG"; then 25740 if test -n "$PKG_CONFIG" && \ 25741 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBUDEV\""; } >&5 25742 ($PKG_CONFIG --exists --print-errors "$LIBUDEV") 2>&5 25743 ac_status=$? 25744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25745 test $ac_status = 0; }; then 25746 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "$LIBUDEV" 2>/dev/null` 25747 test "x$?" != "x0" && pkg_failed=yes 25748else 25749 pkg_failed=yes 25750fi 25751 else 25752 pkg_failed=untried 25753fi 25754if test -n "$UDEV_LIBS"; then 25755 pkg_cv_UDEV_LIBS="$UDEV_LIBS" 25756 elif test -n "$PKG_CONFIG"; then 25757 if test -n "$PKG_CONFIG" && \ 25758 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBUDEV\""; } >&5 25759 ($PKG_CONFIG --exists --print-errors "$LIBUDEV") 2>&5 25760 ac_status=$? 25761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25762 test $ac_status = 0; }; then 25763 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "$LIBUDEV" 2>/dev/null` 25764 test "x$?" != "x0" && pkg_failed=yes 25765else 25766 pkg_failed=yes 25767fi 25768 else 25769 pkg_failed=untried 25770fi 25771 25772 25773 25774if test $pkg_failed = yes; then 25775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25776$as_echo "no" >&6; } 25777 25778if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25779 _pkg_short_errors_supported=yes 25780else 25781 _pkg_short_errors_supported=no 25782fi 25783 if test $_pkg_short_errors_supported = yes; then 25784 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBUDEV" 2>&1` 25785 else 25786 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBUDEV" 2>&1` 25787 fi 25788 # Put the nasty error message in config.log where it belongs 25789 echo "$UDEV_PKG_ERRORS" >&5 25790 25791 HAVE_LIBUDEV=no 25792elif test $pkg_failed = untried; then 25793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25794$as_echo "no" >&6; } 25795 HAVE_LIBUDEV=no 25796else 25797 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS 25798 UDEV_LIBS=$pkg_cv_UDEV_LIBS 25799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25800$as_echo "yes" >&6; } 25801 HAVE_LIBUDEV=yes 25802fi 25803if test "x$CONFIG_UDEV" = xauto; then 25804 CONFIG_UDEV="$HAVE_LIBUDEV" 25805 25806$as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h 25807 25808fi 25809 if test "x$CONFIG_UDEV" = xyes; then 25810 CONFIG_UDEV_TRUE= 25811 CONFIG_UDEV_FALSE='#' 25812else 25813 CONFIG_UDEV_TRUE='#' 25814 CONFIG_UDEV_FALSE= 25815fi 25816 25817if test "x$CONFIG_UDEV" = xyes; then 25818 CONFIG_HAL=no 25819 if test "x$CONFIG_UDEV_KMS" = xauto; then 25820 CONFIG_UDEV_KMS="$HAVE_LIBUDEV" 25821 fi 25822 if ! test "x$HAVE_LIBUDEV" = xyes; then 25823 as_fn_error $? "udev configuration API requested, but libudev is not installed" "$LINENO" 5 25824 fi 25825 25826$as_echo "#define CONFIG_UDEV 1" >>confdefs.h 25827 25828 if test "x$CONFIG_UDEV_KMS" = xyes; then 25829 25830$as_echo "#define CONFIG_UDEV_KMS 1" >>confdefs.h 25831 25832 fi 25833 SAVE_LIBS=$LIBS 25834 SAVE_CFLAGS=$CFLAGS 25835 CFLAGS="$CFLAGS $UDEV_CFLAGS" 25836 LIBS=$UDEV_LIBS 25837 for ac_func in udev_monitor_filter_add_match_tag 25838do : 25839 ac_fn_c_check_func "$LINENO" "udev_monitor_filter_add_match_tag" "ac_cv_func_udev_monitor_filter_add_match_tag" 25840if test "x$ac_cv_func_udev_monitor_filter_add_match_tag" = xyes; then : 25841 cat >>confdefs.h <<_ACEOF 25842#define HAVE_UDEV_MONITOR_FILTER_ADD_MATCH_TAG 1 25843_ACEOF 25844 25845fi 25846done 25847 25848 for ac_func in udev_enumerate_add_match_tag 25849do : 25850 ac_fn_c_check_func "$LINENO" "udev_enumerate_add_match_tag" "ac_cv_func_udev_enumerate_add_match_tag" 25851if test "x$ac_cv_func_udev_enumerate_add_match_tag" = xyes; then : 25852 cat >>confdefs.h <<_ACEOF 25853#define HAVE_UDEV_ENUMERATE_ADD_MATCH_TAG 1 25854_ACEOF 25855 25856fi 25857done 25858 25859 LIBS=$SAVE_LIBS 25860 CFLAGS=$SAVE_CFLAGS 25861fi 25862 if test "x$CONFIG_UDEV_KMS" = xyes; then 25863 CONFIG_UDEV_KMS_TRUE= 25864 CONFIG_UDEV_KMS_FALSE='#' 25865else 25866 CONFIG_UDEV_KMS_TRUE='#' 25867 CONFIG_UDEV_KMS_FALSE= 25868fi 25869 25870 25871 25872pkg_failed=no 25873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5 25874$as_echo_n "checking for DBUS... " >&6; } 25875 25876if test -n "$DBUS_CFLAGS"; then 25877 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS" 25878 elif test -n "$PKG_CONFIG"; then 25879 if test -n "$PKG_CONFIG" && \ 25880 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDBUS\""; } >&5 25881 ($PKG_CONFIG --exists --print-errors "$LIBDBUS") 2>&5 25882 ac_status=$? 25883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25884 test $ac_status = 0; }; then 25885 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "$LIBDBUS" 2>/dev/null` 25886 test "x$?" != "x0" && pkg_failed=yes 25887else 25888 pkg_failed=yes 25889fi 25890 else 25891 pkg_failed=untried 25892fi 25893if test -n "$DBUS_LIBS"; then 25894 pkg_cv_DBUS_LIBS="$DBUS_LIBS" 25895 elif test -n "$PKG_CONFIG"; then 25896 if test -n "$PKG_CONFIG" && \ 25897 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDBUS\""; } >&5 25898 ($PKG_CONFIG --exists --print-errors "$LIBDBUS") 2>&5 25899 ac_status=$? 25900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25901 test $ac_status = 0; }; then 25902 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "$LIBDBUS" 2>/dev/null` 25903 test "x$?" != "x0" && pkg_failed=yes 25904else 25905 pkg_failed=yes 25906fi 25907 else 25908 pkg_failed=untried 25909fi 25910 25911 25912 25913if test $pkg_failed = yes; then 25914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25915$as_echo "no" >&6; } 25916 25917if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25918 _pkg_short_errors_supported=yes 25919else 25920 _pkg_short_errors_supported=no 25921fi 25922 if test $_pkg_short_errors_supported = yes; then 25923 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDBUS" 2>&1` 25924 else 25925 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDBUS" 2>&1` 25926 fi 25927 # Put the nasty error message in config.log where it belongs 25928 echo "$DBUS_PKG_ERRORS" >&5 25929 25930 HAVE_DBUS=no 25931elif test $pkg_failed = untried; then 25932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25933$as_echo "no" >&6; } 25934 HAVE_DBUS=no 25935else 25936 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS 25937 DBUS_LIBS=$pkg_cv_DBUS_LIBS 25938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25939$as_echo "yes" >&6; } 25940 HAVE_DBUS=yes 25941fi 25942if test "x$HAVE_DBUS" = xyes; then 25943 25944$as_echo "#define HAVE_DBUS 1" >>confdefs.h 25945 25946fi 25947 if test "x$HAVE_DBUS" = xyes; then 25948 HAVE_DBUS_TRUE= 25949 HAVE_DBUS_FALSE='#' 25950else 25951 HAVE_DBUS_TRUE='#' 25952 HAVE_DBUS_FALSE= 25953fi 25954 25955 25956 25957pkg_failed=no 25958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HAL" >&5 25959$as_echo_n "checking for HAL... " >&6; } 25960 25961if test -n "$HAL_CFLAGS"; then 25962 pkg_cv_HAL_CFLAGS="$HAL_CFLAGS" 25963 elif test -n "$PKG_CONFIG"; then 25964 if test -n "$PKG_CONFIG" && \ 25965 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal\""; } >&5 25966 ($PKG_CONFIG --exists --print-errors "hal") 2>&5 25967 ac_status=$? 25968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25969 test $ac_status = 0; }; then 25970 pkg_cv_HAL_CFLAGS=`$PKG_CONFIG --cflags "hal" 2>/dev/null` 25971 test "x$?" != "x0" && pkg_failed=yes 25972else 25973 pkg_failed=yes 25974fi 25975 else 25976 pkg_failed=untried 25977fi 25978if test -n "$HAL_LIBS"; then 25979 pkg_cv_HAL_LIBS="$HAL_LIBS" 25980 elif test -n "$PKG_CONFIG"; then 25981 if test -n "$PKG_CONFIG" && \ 25982 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal\""; } >&5 25983 ($PKG_CONFIG --exists --print-errors "hal") 2>&5 25984 ac_status=$? 25985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25986 test $ac_status = 0; }; then 25987 pkg_cv_HAL_LIBS=`$PKG_CONFIG --libs "hal" 2>/dev/null` 25988 test "x$?" != "x0" && pkg_failed=yes 25989else 25990 pkg_failed=yes 25991fi 25992 else 25993 pkg_failed=untried 25994fi 25995 25996 25997 25998if test $pkg_failed = yes; then 25999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26000$as_echo "no" >&6; } 26001 26002if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 26003 _pkg_short_errors_supported=yes 26004else 26005 _pkg_short_errors_supported=no 26006fi 26007 if test $_pkg_short_errors_supported = yes; then 26008 HAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "hal" 2>&1` 26009 else 26010 HAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "hal" 2>&1` 26011 fi 26012 # Put the nasty error message in config.log where it belongs 26013 echo "$HAL_PKG_ERRORS" >&5 26014 26015 HAVE_HAL=no 26016elif test $pkg_failed = untried; then 26017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26018$as_echo "no" >&6; } 26019 HAVE_HAL=no 26020else 26021 HAL_CFLAGS=$pkg_cv_HAL_CFLAGS 26022 HAL_LIBS=$pkg_cv_HAL_LIBS 26023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26024$as_echo "yes" >&6; } 26025 HAVE_HAL=yes 26026fi 26027if test "x$CONFIG_HAL" = xauto; then 26028 CONFIG_HAL="$HAVE_HAL" 26029fi 26030if test "x$CONFIG_HAL" = xyes; then 26031 if ! test "x$HAVE_HAL" = xyes; then 26032 as_fn_error $? "HAL hotplug API requested, but HAL is not installed." "$LINENO" 5 26033 fi 26034 26035 26036$as_echo "#define CONFIG_HAL 1" >>confdefs.h 26037 26038 NEED_DBUS="yes" 26039fi 26040 if test "x$CONFIG_HAL" = xyes; then 26041 CONFIG_HAL_TRUE= 26042 CONFIG_HAL_FALSE='#' 26043else 26044 CONFIG_HAL_TRUE='#' 26045 CONFIG_HAL_FALSE= 26046fi 26047 26048 26049if test "x$SYSTEMD_LOGIND" = xauto; then 26050 if test "x$HAVE_DBUS" = xyes -a "x$CONFIG_UDEV" = xyes ; then 26051 SYSTEMD_LOGIND=yes 26052 else 26053 SYSTEMD_LOGIND=no 26054 fi 26055fi 26056if test "x$SYSTEMD_LOGIND" = xyes; then 26057 if ! test "x$HAVE_DBUS" = xyes; then 26058 as_fn_error $? "systemd-logind requested, but D-Bus is not installed." "$LINENO" 5 26059 fi 26060 if ! test "x$CONFIG_UDEV" = xyes ; then 26061 as_fn_error $? "systemd-logind is only supported in combination with udev configuration." "$LINENO" 5 26062 fi 26063 26064 26065$as_echo "#define SYSTEMD_LOGIND 1" >>confdefs.h 26066 26067 NEED_DBUS="yes" 26068fi 26069 if test "x$SYSTEMD_LOGIND" = xyes; then 26070 SYSTEMD_LOGIND_TRUE= 26071 SYSTEMD_LOGIND_FALSE='#' 26072else 26073 SYSTEMD_LOGIND_TRUE='#' 26074 SYSTEMD_LOGIND_FALSE= 26075fi 26076 26077 26078if test "x$SUID_WRAPPER" = xyes; then 26079 26080 prefix_NONE= 26081 exec_prefix_NONE= 26082 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 26083 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 26084 eval ac_define_dir="\"$libexecdir\"" 26085 eval ac_define_dir="\"$ac_define_dir\"" 26086 SUID_WRAPPER_DIR="$ac_define_dir" 26087 26088 26089cat >>confdefs.h <<_ACEOF 26090#define SUID_WRAPPER_DIR "$ac_define_dir" 26091_ACEOF 26092 26093 test "$prefix_NONE" && prefix=NONE 26094 test "$exec_prefix_NONE" && exec_prefix=NONE 26095 26096 SETUID="no" 26097fi 26098 if test "x$SUID_WRAPPER" = xyes; then 26099 SUID_WRAPPER_TRUE= 26100 SUID_WRAPPER_FALSE='#' 26101else 26102 SUID_WRAPPER_TRUE='#' 26103 SUID_WRAPPER_FALSE= 26104fi 26105 26106 26107if test "x$NEED_DBUS" = xyes; then 26108 26109$as_echo "#define NEED_DBUS 1" >>confdefs.h 26110 26111fi 26112 if test "x$NEED_DBUS" = xyes; then 26113 NEED_DBUS_TRUE= 26114 NEED_DBUS_FALSE='#' 26115else 26116 NEED_DBUS_TRUE='#' 26117 NEED_DBUS_FALSE= 26118fi 26119 26120 26121if test "x$CONFIG_WSCONS" = xauto; then 26122 case $host_os in 26123 *openbsd*) 26124 CONFIG_WSCONS=yes; 26125 ;; 26126 *) 26127 CONFIG_WSCONS=no; 26128 ;; 26129 esac 26130fi 26131 if test "x$CONFIG_WSCONS" = xyes; then 26132 CONFIG_WSCONS_TRUE= 26133 CONFIG_WSCONS_FALSE='#' 26134else 26135 CONFIG_WSCONS_TRUE='#' 26136 CONFIG_WSCONS_FALSE= 26137fi 26138 26139if test "x$CONFIG_WSCONS" = xyes; then 26140 26141$as_echo "#define CONFIG_WSCONS 1" >>confdefs.h 26142 26143fi 26144 26145 26146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc..." >&5 26147$as_echo_n "checking for glibc...... " >&6; } 26148cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26149/* end confdefs.h. */ 26150 26151#include <features.h> 26152#ifndef __GLIBC__ 26153#error 26154#endif 26155 26156_ACEOF 26157if ac_fn_c_try_cpp "$LINENO"; then : 26158 glibc=yes 26159else 26160 glibc=no 26161fi 26162rm -f conftest.err conftest.i conftest.$ac_ext 26163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc" >&5 26164$as_echo "$glibc" >&6; } 26165 26166for ac_func in clock_gettime 26167do : 26168 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 26169if test "x$ac_cv_func_clock_gettime" = xyes; then : 26170 cat >>confdefs.h <<_ACEOF 26171#define HAVE_CLOCK_GETTIME 1 26172_ACEOF 26173 have_clock_gettime=yes 26174else 26175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 26176$as_echo_n "checking for clock_gettime in -lrt... " >&6; } 26177if ${ac_cv_lib_rt_clock_gettime+:} false; then : 26178 $as_echo_n "(cached) " >&6 26179else 26180 ac_check_lib_save_LIBS=$LIBS 26181LIBS="-lrt $LIBS" 26182cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26183/* end confdefs.h. */ 26184 26185/* Override any GCC internal prototype to avoid an error. 26186 Use char because int might match the return type of a GCC 26187 builtin and then its argument prototype would still apply. */ 26188#ifdef __cplusplus 26189extern "C" 26190#endif 26191char clock_gettime (); 26192int 26193main () 26194{ 26195return clock_gettime (); 26196 ; 26197 return 0; 26198} 26199_ACEOF 26200if ac_fn_c_try_link "$LINENO"; then : 26201 ac_cv_lib_rt_clock_gettime=yes 26202else 26203 ac_cv_lib_rt_clock_gettime=no 26204fi 26205rm -f core conftest.err conftest.$ac_objext \ 26206 conftest$ac_exeext conftest.$ac_ext 26207LIBS=$ac_check_lib_save_LIBS 26208fi 26209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 26210$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } 26211if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : 26212 have_clock_gettime=-lrt 26213else 26214 have_clock_gettime=no 26215fi 26216 26217fi 26218done 26219 26220 26221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a useful monotonic clock ..." >&5 26222$as_echo_n "checking for a useful monotonic clock ...... " >&6; } 26223 26224if ! test "x$have_clock_gettime" = xno; then 26225 if ! test "x$have_clock_gettime" = xyes; then 26226 CLOCK_LIBS="$have_clock_gettime" 26227 else 26228 CLOCK_LIBS="" 26229 fi 26230 26231 LIBS_SAVE="$LIBS" 26232 LIBS="$CLOCK_LIBS" 26233 CPPFLAGS_SAVE="$CPPFLAGS" 26234 26235 if test x"$glibc" = xyes; then 26236 CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE=200112L" 26237 fi 26238 26239 if test "$cross_compiling" = yes; then : 26240 MONOTONIC_CLOCK="cross compiling" 26241else 26242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26243/* end confdefs.h. */ 26244 26245#include <time.h> 26246 26247int main(int argc, char *argv[]) { 26248 struct timespec tp; 26249 26250 if (clock_gettime(CLOCK_MONOTONIC, &tp) == 0) 26251 return 0; 26252 else 26253 return 1; 26254} 26255 26256_ACEOF 26257if ac_fn_c_try_run "$LINENO"; then : 26258 MONOTONIC_CLOCK=yes 26259else 26260 MONOTONIC_CLOCK=no 26261fi 26262rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26263 conftest.$ac_objext conftest.beam conftest.$ac_ext 26264fi 26265 26266 26267 if test "$MONOTONIC_CLOCK" = "cross compiling"; then 26268 ac_fn_c_check_decl "$LINENO" "CLOCK_MONOTONIC" "ac_cv_have_decl_CLOCK_MONOTONIC" "#include <time.h> 26269" 26270if test "x$ac_cv_have_decl_CLOCK_MONOTONIC" = xyes; then : 26271 MONOTONIC_CLOCK="guessing yes" 26272else 26273 MONOTONIC_CLOCK=no 26274fi 26275 26276 fi 26277 26278 LIBS="$LIBS_SAVE" 26279 CPPFLAGS="$CPPFLAGS_SAVE" 26280else 26281 MONOTONIC_CLOCK=no 26282fi 26283 26284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MONOTONIC_CLOCK" >&5 26285$as_echo "$MONOTONIC_CLOCK" >&6; } 26286if test "$MONOTONIC_CLOCK" = "guessing yes"; then 26287 MONOTONIC_CLOCK=yes 26288fi 26289 26290if test "x$MONOTONIC_CLOCK" = xyes; then 26291 26292$as_echo "#define MONOTONIC_CLOCK 1" >>confdefs.h 26293 26294 LIBS="$LIBS $CLOCK_LIBS" 26295fi 26296 26297 if test "x$XV" = xyes; then 26298 XV_TRUE= 26299 XV_FALSE='#' 26300else 26301 XV_TRUE='#' 26302 XV_FALSE= 26303fi 26304 26305if test "x$XV" = xyes; then 26306 26307$as_echo "#define XV 1" >>confdefs.h 26308 26309 26310$as_echo "#define XvExtension 1" >>confdefs.h 26311 26312 REQUIRED_MODULES="$REQUIRED_MODULES $VIDEOPROTO" 26313 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $VIDEOPROTO" 26314else 26315 XVMC=no 26316fi 26317 26318 if test "x$XVMC" = xyes; then 26319 XVMC_TRUE= 26320 XVMC_FALSE='#' 26321else 26322 XVMC_TRUE='#' 26323 XVMC_FALSE= 26324fi 26325 26326if test "x$XVMC" = xyes; then 26327 26328$as_echo "#define XvMCExtension 1" >>confdefs.h 26329 26330fi 26331 26332 if test "x$COMPOSITE" = xyes; then 26333 COMPOSITE_TRUE= 26334 COMPOSITE_FALSE='#' 26335else 26336 COMPOSITE_TRUE='#' 26337 COMPOSITE_FALSE= 26338fi 26339 26340if test "x$COMPOSITE" = xyes; then 26341 26342$as_echo "#define COMPOSITE 1" >>confdefs.h 26343 26344 REQUIRED_MODULES="$REQUIRED_MODULES $COMPOSITEPROTO" 26345 COMPOSITE_LIB='$(top_builddir)/composite/libcomposite.la' 26346 COMPOSITE_INC='-I$(top_srcdir)/composite' 26347fi 26348 26349if test "x$MITSHM" = xauto; then 26350 MITSHM="$ac_cv_sysv_ipc" 26351fi 26352 if test "x$MITSHM" = xyes; then 26353 MITSHM_TRUE= 26354 MITSHM_FALSE='#' 26355else 26356 MITSHM_TRUE='#' 26357 MITSHM_FALSE= 26358fi 26359 26360if test "x$MITSHM" = xyes; then 26361 26362$as_echo "#define MITSHM 1" >>confdefs.h 26363 26364 26365$as_echo "#define HAS_SHM 1" >>confdefs.h 26366 26367fi 26368 26369 if test "x$RECORD" = xyes; then 26370 RECORD_TRUE= 26371 RECORD_FALSE='#' 26372else 26373 RECORD_TRUE='#' 26374 RECORD_FALSE= 26375fi 26376 26377if test "x$RECORD" = xyes; then 26378 26379$as_echo "#define XRECORD 1" >>confdefs.h 26380 26381 REQUIRED_MODULES="$REQUIRED_MODULES $RECORDPROTO" 26382 RECORD_LIB='$(top_builddir)/record/librecord.la' 26383fi 26384 26385 if test "x$SCREENSAVER" = xyes; then 26386 SCREENSAVER_TRUE= 26387 SCREENSAVER_FALSE='#' 26388else 26389 SCREENSAVER_TRUE='#' 26390 SCREENSAVER_FALSE= 26391fi 26392 26393if test "x$SCREENSAVER" = xyes; then 26394 26395$as_echo "#define SCREENSAVER 1" >>confdefs.h 26396 26397 REQUIRED_MODULES="$REQUIRED_MODULES $SCRNSAVERPROTO" 26398 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $SCRNSAVERPROTO" 26399fi 26400 26401HASHTABLE=no 26402 if test "x$RES" = xyes; then 26403 RES_TRUE= 26404 RES_FALSE='#' 26405else 26406 RES_TRUE='#' 26407 RES_FALSE= 26408fi 26409 26410if test "x$RES" = xyes; then 26411 26412$as_echo "#define RES 1" >>confdefs.h 26413 26414 HASHTABLE=yes 26415 REQUIRED_MODULES="$REQUIRED_MODULES $RESOURCEPROTO" 26416 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $RESOURCEPROTO" 26417fi 26418 26419if test "x$LISTEN_TCP" = xyes; then 26420 26421$as_echo "#define LISTEN_TCP 1" >>confdefs.h 26422 26423fi 26424if test "x$LISTEN_UNIX" = xyes; then 26425 26426$as_echo "#define LISTEN_UNIX 1" >>confdefs.h 26427 26428fi 26429if test "x$LISTEN_LOCAL" = xyes; then 26430 26431$as_echo "#define LISTEN_LOCAL 1" >>confdefs.h 26432 26433fi 26434 26435# The XRes extension may support client ID tracking only if it has 26436# been specifically enabled. Client ID tracking is implicitly not 26437# supported if XRes extension is disabled. 26438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to track client ids" >&5 26439$as_echo_n "checking whether to track client ids... " >&6; } 26440if test "x$RES" = xyes && test "x$CLIENTIDS" = xyes; then 26441 26442$as_echo "#define CLIENTIDS 1" >>confdefs.h 26443 26444else 26445 CLIENTIDS=no 26446fi 26447if test "x$CLIENTIDS" = xyes; then 26448 case $host_os in 26449 openbsd*) 26450 SYS_LIBS="$SYS_LIBS -lkvm" 26451 ;; 26452 esac 26453fi 26454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLIENTIDS" >&5 26455$as_echo "$CLIENTIDS" >&6; } 26456 if test "x$CLIENTIDS" = xyes; then 26457 CLIENTIDS_TRUE= 26458 CLIENTIDS_FALSE='#' 26459else 26460 CLIENTIDS_TRUE='#' 26461 CLIENTIDS_FALSE= 26462fi 26463 26464 26465 if test "x$DRI" = xyes; then 26466 DRI_TRUE= 26467 DRI_FALSE='#' 26468else 26469 DRI_TRUE='#' 26470 DRI_FALSE= 26471fi 26472 26473if test "x$DRI" = xyes; then 26474 26475$as_echo "#define XF86DRI 1" >>confdefs.h 26476 26477 REQUIRED_MODULES="$REQUIRED_MODULES $DRIPROTO $GLPROTO $LIBDRI" 26478 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRIPROTO $GLPROTO $LIBDRI" 26479fi 26480 26481 26482pkg_failed=no 26483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI2PROTO" >&5 26484$as_echo_n "checking for DRI2PROTO... " >&6; } 26485 26486if test -n "$DRI2PROTO_CFLAGS"; then 26487 pkg_cv_DRI2PROTO_CFLAGS="$DRI2PROTO_CFLAGS" 26488 elif test -n "$PKG_CONFIG"; then 26489 if test -n "$PKG_CONFIG" && \ 26490 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI2PROTO\""; } >&5 26491 ($PKG_CONFIG --exists --print-errors "$DRI2PROTO") 2>&5 26492 ac_status=$? 26493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26494 test $ac_status = 0; }; then 26495 pkg_cv_DRI2PROTO_CFLAGS=`$PKG_CONFIG --cflags "$DRI2PROTO" 2>/dev/null` 26496 test "x$?" != "x0" && pkg_failed=yes 26497else 26498 pkg_failed=yes 26499fi 26500 else 26501 pkg_failed=untried 26502fi 26503if test -n "$DRI2PROTO_LIBS"; then 26504 pkg_cv_DRI2PROTO_LIBS="$DRI2PROTO_LIBS" 26505 elif test -n "$PKG_CONFIG"; then 26506 if test -n "$PKG_CONFIG" && \ 26507 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI2PROTO\""; } >&5 26508 ($PKG_CONFIG --exists --print-errors "$DRI2PROTO") 2>&5 26509 ac_status=$? 26510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26511 test $ac_status = 0; }; then 26512 pkg_cv_DRI2PROTO_LIBS=`$PKG_CONFIG --libs "$DRI2PROTO" 2>/dev/null` 26513 test "x$?" != "x0" && pkg_failed=yes 26514else 26515 pkg_failed=yes 26516fi 26517 else 26518 pkg_failed=untried 26519fi 26520 26521 26522 26523if test $pkg_failed = yes; then 26524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26525$as_echo "no" >&6; } 26526 26527if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 26528 _pkg_short_errors_supported=yes 26529else 26530 _pkg_short_errors_supported=no 26531fi 26532 if test $_pkg_short_errors_supported = yes; then 26533 DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DRI2PROTO" 2>&1` 26534 else 26535 DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DRI2PROTO" 2>&1` 26536 fi 26537 # Put the nasty error message in config.log where it belongs 26538 echo "$DRI2PROTO_PKG_ERRORS" >&5 26539 26540 HAVE_DRI2PROTO=no 26541elif test $pkg_failed = untried; then 26542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26543$as_echo "no" >&6; } 26544 HAVE_DRI2PROTO=no 26545else 26546 DRI2PROTO_CFLAGS=$pkg_cv_DRI2PROTO_CFLAGS 26547 DRI2PROTO_LIBS=$pkg_cv_DRI2PROTO_LIBS 26548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26549$as_echo "yes" >&6; } 26550 HAVE_DRI2PROTO=yes 26551fi 26552case "$DRI2,$HAVE_DRI2PROTO" in 26553 yes,no) 26554 as_fn_error $? "DRI2 requested, but dri2proto not found." "$LINENO" 5 26555 ;; 26556 yes,yes | auto,yes) 26557 26558$as_echo "#define DRI2 1" >>confdefs.h 26559 26560 DRI2=yes 26561 LIBGL="gl >= 1.2" 26562 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRI2PROTO" 26563 ;; 26564esac 26565 if test "x$DRI2" = xyes; then 26566 DRI2_TRUE= 26567 DRI2_FALSE='#' 26568else 26569 DRI2_TRUE='#' 26570 DRI2_FALSE= 26571fi 26572 26573 26574# Check whether --enable-xtrans-send-fds was given. 26575if test "${enable_xtrans_send_fds+set}" = set; then : 26576 enableval=$enable_xtrans_send_fds; XTRANS_SEND_FDS=$enableval 26577else 26578 XTRANS_SEND_FDS=auto 26579fi 26580 26581 26582case "x$XTRANS_SEND_FDS" in 26583xauto) 26584 case "$host_os" in 26585 linux*|solaris*|freebsd*|dragonfly*|openbsd*) 26586 XTRANS_SEND_FDS=yes 26587 ;; 26588 *) 26589 XTRANS_SEND_FDS=no 26590 ;; 26591 esac 26592esac 26593 26594case "x$XTRANS_SEND_FDS" in 26595xyes) 26596 26597$as_echo "#define XTRANS_SEND_FDS 1" >>confdefs.h 26598 26599 ;; 26600esac 26601 26602case "$DRI3,$XTRANS_SEND_FDS" in 26603 yes,yes | auto,yes) 26604 ;; 26605 yes,no) 26606 as_fn_error $? "DRI3 requested, but xtrans fd passing support not found." "$LINENO" 5 26607 DRI3=no 26608 ;; 26609 no,*) 26610 ;; 26611 *) 26612 { $as_echo "$as_me:${as_lineno-$LINENO}: DRI3 disabled because xtrans fd passing support not found." >&5 26613$as_echo "$as_me: DRI3 disabled because xtrans fd passing support not found." >&6;} 26614 DRI3=no 26615 ;; 26616esac 26617 26618 26619pkg_failed=no 26620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI3PROTO" >&5 26621$as_echo_n "checking for DRI3PROTO... " >&6; } 26622 26623if test -n "$DRI3PROTO_CFLAGS"; then 26624 pkg_cv_DRI3PROTO_CFLAGS="$DRI3PROTO_CFLAGS" 26625 elif test -n "$PKG_CONFIG"; then 26626 if test -n "$PKG_CONFIG" && \ 26627 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI3PROTO\""; } >&5 26628 ($PKG_CONFIG --exists --print-errors "$DRI3PROTO") 2>&5 26629 ac_status=$? 26630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26631 test $ac_status = 0; }; then 26632 pkg_cv_DRI3PROTO_CFLAGS=`$PKG_CONFIG --cflags "$DRI3PROTO" 2>/dev/null` 26633 test "x$?" != "x0" && pkg_failed=yes 26634else 26635 pkg_failed=yes 26636fi 26637 else 26638 pkg_failed=untried 26639fi 26640if test -n "$DRI3PROTO_LIBS"; then 26641 pkg_cv_DRI3PROTO_LIBS="$DRI3PROTO_LIBS" 26642 elif test -n "$PKG_CONFIG"; then 26643 if test -n "$PKG_CONFIG" && \ 26644 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI3PROTO\""; } >&5 26645 ($PKG_CONFIG --exists --print-errors "$DRI3PROTO") 2>&5 26646 ac_status=$? 26647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26648 test $ac_status = 0; }; then 26649 pkg_cv_DRI3PROTO_LIBS=`$PKG_CONFIG --libs "$DRI3PROTO" 2>/dev/null` 26650 test "x$?" != "x0" && pkg_failed=yes 26651else 26652 pkg_failed=yes 26653fi 26654 else 26655 pkg_failed=untried 26656fi 26657 26658 26659 26660if test $pkg_failed = yes; then 26661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26662$as_echo "no" >&6; } 26663 26664if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 26665 _pkg_short_errors_supported=yes 26666else 26667 _pkg_short_errors_supported=no 26668fi 26669 if test $_pkg_short_errors_supported = yes; then 26670 DRI3PROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DRI3PROTO" 2>&1` 26671 else 26672 DRI3PROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DRI3PROTO" 2>&1` 26673 fi 26674 # Put the nasty error message in config.log where it belongs 26675 echo "$DRI3PROTO_PKG_ERRORS" >&5 26676 26677 HAVE_DRI3PROTO=no 26678elif test $pkg_failed = untried; then 26679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26680$as_echo "no" >&6; } 26681 HAVE_DRI3PROTO=no 26682else 26683 DRI3PROTO_CFLAGS=$pkg_cv_DRI3PROTO_CFLAGS 26684 DRI3PROTO_LIBS=$pkg_cv_DRI3PROTO_LIBS 26685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26686$as_echo "yes" >&6; } 26687 HAVE_DRI3PROTO=yes 26688fi 26689 26690case "$DRI3,$HAVE_DRI3PROTO" in 26691 yes,yes | auto,yes) 26692 REQUIRED_MODULES="$REQUIRED_MODULES dri3proto" 26693 ;; 26694 yes,no) 26695 as_fn_error $? "DRI3 requested, but dri3proto not found." "$LINENO" 5 26696 DRI3=no 26697 ;; 26698 no,*) 26699 ;; 26700 *) 26701 { $as_echo "$as_me:${as_lineno-$LINENO}: DRI3 disabled because dri3proto not found." >&5 26702$as_echo "$as_me: DRI3 disabled because dri3proto not found." >&6;} 26703 DRI3=no 26704 ;; 26705esac 26706 26707for ac_func in sigaction 26708do : 26709 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" 26710if test "x$ac_cv_func_sigaction" = xyes; then : 26711 cat >>confdefs.h <<_ACEOF 26712#define HAVE_SIGACTION 1 26713_ACEOF 26714 26715fi 26716done 26717 26718 26719BUSFAULT=no 26720 26721case x"$ac_cv_func_sigaction" in 26722 xyes) 26723 26724$as_echo "#define HAVE_SIGACTION 1" >>confdefs.h 26725 26726 BUSFAULT=yes 26727 ;; 26728esac 26729 26730case x"$BUSFAULT" in 26731 xyes) 26732 26733$as_echo "#define BUSFAULT 1" >>confdefs.h 26734 26735 ;; 26736esac 26737 26738 if test x"$BUSFAULT" = xyes; then 26739 BUSFAULT_TRUE= 26740 BUSFAULT_FALSE='#' 26741else 26742 BUSFAULT_TRUE='#' 26743 BUSFAULT_FALSE= 26744fi 26745 26746 26747 26748 26749pkg_failed=no 26750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSHMFENCE" >&5 26751$as_echo_n "checking for XSHMFENCE... " >&6; } 26752 26753if test -n "$XSHMFENCE_CFLAGS"; then 26754 pkg_cv_XSHMFENCE_CFLAGS="$XSHMFENCE_CFLAGS" 26755 elif test -n "$PKG_CONFIG"; then 26756 if test -n "$PKG_CONFIG" && \ 26757 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXSHMFENCE\""; } >&5 26758 ($PKG_CONFIG --exists --print-errors "$LIBXSHMFENCE") 2>&5 26759 ac_status=$? 26760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26761 test $ac_status = 0; }; then 26762 pkg_cv_XSHMFENCE_CFLAGS=`$PKG_CONFIG --cflags "$LIBXSHMFENCE" 2>/dev/null` 26763 test "x$?" != "x0" && pkg_failed=yes 26764else 26765 pkg_failed=yes 26766fi 26767 else 26768 pkg_failed=untried 26769fi 26770if test -n "$XSHMFENCE_LIBS"; then 26771 pkg_cv_XSHMFENCE_LIBS="$XSHMFENCE_LIBS" 26772 elif test -n "$PKG_CONFIG"; then 26773 if test -n "$PKG_CONFIG" && \ 26774 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXSHMFENCE\""; } >&5 26775 ($PKG_CONFIG --exists --print-errors "$LIBXSHMFENCE") 2>&5 26776 ac_status=$? 26777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26778 test $ac_status = 0; }; then 26779 pkg_cv_XSHMFENCE_LIBS=`$PKG_CONFIG --libs "$LIBXSHMFENCE" 2>/dev/null` 26780 test "x$?" != "x0" && pkg_failed=yes 26781else 26782 pkg_failed=yes 26783fi 26784 else 26785 pkg_failed=untried 26786fi 26787 26788 26789 26790if test $pkg_failed = yes; then 26791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26792$as_echo "no" >&6; } 26793 26794if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 26795 _pkg_short_errors_supported=yes 26796else 26797 _pkg_short_errors_supported=no 26798fi 26799 if test $_pkg_short_errors_supported = yes; then 26800 XSHMFENCE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXSHMFENCE" 2>&1` 26801 else 26802 XSHMFENCE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXSHMFENCE" 2>&1` 26803 fi 26804 # Put the nasty error message in config.log where it belongs 26805 echo "$XSHMFENCE_PKG_ERRORS" >&5 26806 26807 HAVE_XSHMFENCE=no 26808elif test $pkg_failed = untried; then 26809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26810$as_echo "no" >&6; } 26811 HAVE_XSHMFENCE=no 26812else 26813 XSHMFENCE_CFLAGS=$pkg_cv_XSHMFENCE_CFLAGS 26814 XSHMFENCE_LIBS=$pkg_cv_XSHMFENCE_LIBS 26815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26816$as_echo "yes" >&6; } 26817 HAVE_XSHMFENCE=yes 26818fi 26819if test "x$XSHMFENCE" = "xauto"; then 26820 XSHMFENCE="$HAVE_XSHMFENCE" 26821fi 26822 26823if test "x$XSHMFENCE" = "xyes"; then 26824 if test "x$HAVE_XSHMFENCE" != "xyes"; then 26825 as_fn_error $? "xshmfence requested but not installed." "$LINENO" 5 26826 fi 26827 26828$as_echo "#define HAVE_XSHMFENCE 1" >>confdefs.h 26829 26830 REQUIRED_LIBS="$REQUIRED_LIBS $LIBXSHMFENCE" 26831fi 26832 26833 if test "x$XSHMFENCE" = xyes; then 26834 XSHMFENCE_TRUE= 26835 XSHMFENCE_FALSE='#' 26836else 26837 XSHMFENCE_TRUE='#' 26838 XSHMFENCE_FALSE= 26839fi 26840 26841 26842case "$DRI3,$XSHMFENCE" in 26843 yes,yes | auto,yes) 26844 ;; 26845 yes,no) 26846 as_fn_error $? "DRI3 requested, but xshmfence not found." "$LINENO" 5 26847 DRI3=no 26848 ;; 26849 no,*) 26850 ;; 26851 *) 26852 { $as_echo "$as_me:${as_lineno-$LINENO}: DRI3 disabled because xshmfence not found." >&5 26853$as_echo "$as_me: DRI3 disabled because xshmfence not found." >&6;} 26854 DRI3=no 26855 ;; 26856esac 26857 26858case x"$DRI3" in 26859 xyes|xauto) 26860 DRI3=yes 26861 26862$as_echo "#define DRI3 1" >>confdefs.h 26863 26864 DRI3_LIB='$(top_builddir)/dri3/libdri3.la' 26865 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRI3PROTO" 26866 { $as_echo "$as_me:${as_lineno-$LINENO}: DRI3 enabled" >&5 26867$as_echo "$as_me: DRI3 enabled" >&6;}; 26868 ;; 26869esac 26870 26871 if test "x$DRI3" = xyes; then 26872 DRI3_TRUE= 26873 DRI3_FALSE='#' 26874else 26875 DRI3_TRUE='#' 26876 DRI3_FALSE= 26877fi 26878 26879 26880if test "x$DRI" = xyes || test "x$DRI2" = xyes || test "x$DRI3" = xyes || test "x$CONFIG_UDEV_KMS" = xyes || test "x$XORG" = xyes; then 26881 if test "x$DRM" = xyes; then 26882 26883$as_echo "#define WITH_LIBDRM 1" >>confdefs.h 26884 26885 26886pkg_failed=no 26887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5 26888$as_echo_n "checking for LIBDRM... " >&6; } 26889 26890if test -n "$LIBDRM_CFLAGS"; then 26891 pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS" 26892 elif test -n "$PKG_CONFIG"; then 26893 if test -n "$PKG_CONFIG" && \ 26894 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDRM\""; } >&5 26895 ($PKG_CONFIG --exists --print-errors "$LIBDRM") 2>&5 26896 ac_status=$? 26897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26898 test $ac_status = 0; }; then 26899 pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "$LIBDRM" 2>/dev/null` 26900 test "x$?" != "x0" && pkg_failed=yes 26901else 26902 pkg_failed=yes 26903fi 26904 else 26905 pkg_failed=untried 26906fi 26907if test -n "$LIBDRM_LIBS"; then 26908 pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS" 26909 elif test -n "$PKG_CONFIG"; then 26910 if test -n "$PKG_CONFIG" && \ 26911 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDRM\""; } >&5 26912 ($PKG_CONFIG --exists --print-errors "$LIBDRM") 2>&5 26913 ac_status=$? 26914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26915 test $ac_status = 0; }; then 26916 pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "$LIBDRM" 2>/dev/null` 26917 test "x$?" != "x0" && pkg_failed=yes 26918else 26919 pkg_failed=yes 26920fi 26921 else 26922 pkg_failed=untried 26923fi 26924 26925 26926 26927if test $pkg_failed = yes; then 26928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26929$as_echo "no" >&6; } 26930 26931if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 26932 _pkg_short_errors_supported=yes 26933else 26934 _pkg_short_errors_supported=no 26935fi 26936 if test $_pkg_short_errors_supported = yes; then 26937 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDRM" 2>&1` 26938 else 26939 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDRM" 2>&1` 26940 fi 26941 # Put the nasty error message in config.log where it belongs 26942 echo "$LIBDRM_PKG_ERRORS" >&5 26943 26944 as_fn_error $? "Package requirements ($LIBDRM) were not met: 26945 26946$LIBDRM_PKG_ERRORS 26947 26948Consider adjusting the PKG_CONFIG_PATH environment variable if you 26949installed software in a non-standard prefix. 26950 26951Alternatively, you may set the environment variables LIBDRM_CFLAGS 26952and LIBDRM_LIBS to avoid the need to call pkg-config. 26953See the pkg-config man page for more details." "$LINENO" 5 26954elif test $pkg_failed = untried; then 26955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26956$as_echo "no" >&6; } 26957 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26958$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26959as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 26960is in your PATH or set the PKG_CONFIG environment variable to the full 26961path to pkg-config. 26962 26963Alternatively, you may set the environment variables LIBDRM_CFLAGS 26964and LIBDRM_LIBS to avoid the need to call pkg-config. 26965See the pkg-config man page for more details. 26966 26967To get pkg-config, see <http://pkg-config.freedesktop.org/>. 26968See \`config.log' for more details" "$LINENO" 5; } 26969else 26970 LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS 26971 LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS 26972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26973$as_echo "yes" >&6; } 26974 26975fi 26976 fi 26977fi 26978 26979if test "x$GLX" = xyes; then 26980 26981pkg_failed=no 26982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB" >&5 26983$as_echo_n "checking for XLIB... " >&6; } 26984 26985if test -n "$XLIB_CFLAGS"; then 26986 pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS" 26987 elif test -n "$PKG_CONFIG"; then 26988 if test -n "$PKG_CONFIG" && \ 26989 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 26990 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 26991 ac_status=$? 26992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26993 test $ac_status = 0; }; then 26994 pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null` 26995 test "x$?" != "x0" && pkg_failed=yes 26996else 26997 pkg_failed=yes 26998fi 26999 else 27000 pkg_failed=untried 27001fi 27002if test -n "$XLIB_LIBS"; then 27003 pkg_cv_XLIB_LIBS="$XLIB_LIBS" 27004 elif test -n "$PKG_CONFIG"; then 27005 if test -n "$PKG_CONFIG" && \ 27006 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 27007 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 27008 ac_status=$? 27009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27010 test $ac_status = 0; }; then 27011 pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null` 27012 test "x$?" != "x0" && pkg_failed=yes 27013else 27014 pkg_failed=yes 27015fi 27016 else 27017 pkg_failed=untried 27018fi 27019 27020 27021 27022if test $pkg_failed = yes; then 27023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27024$as_echo "no" >&6; } 27025 27026if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 27027 _pkg_short_errors_supported=yes 27028else 27029 _pkg_short_errors_supported=no 27030fi 27031 if test $_pkg_short_errors_supported = yes; then 27032 XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1` 27033 else 27034 XLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1` 27035 fi 27036 # Put the nasty error message in config.log where it belongs 27037 echo "$XLIB_PKG_ERRORS" >&5 27038 27039 as_fn_error $? "Package requirements (x11) were not met: 27040 27041$XLIB_PKG_ERRORS 27042 27043Consider adjusting the PKG_CONFIG_PATH environment variable if you 27044installed software in a non-standard prefix. 27045 27046Alternatively, you may set the environment variables XLIB_CFLAGS 27047and XLIB_LIBS to avoid the need to call pkg-config. 27048See the pkg-config man page for more details." "$LINENO" 5 27049elif test $pkg_failed = untried; then 27050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27051$as_echo "no" >&6; } 27052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 27053$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 27054as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 27055is in your PATH or set the PKG_CONFIG environment variable to the full 27056path to pkg-config. 27057 27058Alternatively, you may set the environment variables XLIB_CFLAGS 27059and XLIB_LIBS to avoid the need to call pkg-config. 27060See the pkg-config man page for more details. 27061 27062To get pkg-config, see <http://pkg-config.freedesktop.org/>. 27063See \`config.log' for more details" "$LINENO" 5; } 27064else 27065 XLIB_CFLAGS=$pkg_cv_XLIB_CFLAGS 27066 XLIB_LIBS=$pkg_cv_XLIB_LIBS 27067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27068$as_echo "yes" >&6; } 27069 27070fi 27071 27072pkg_failed=no 27073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL" >&5 27074$as_echo_n "checking for GL... " >&6; } 27075 27076if test -n "$GL_CFLAGS"; then 27077 pkg_cv_GL_CFLAGS="$GL_CFLAGS" 27078 elif test -n "$PKG_CONFIG"; then 27079 if test -n "$PKG_CONFIG" && \ 27080 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBGL\""; } >&5 27081 ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBGL") 2>&5 27082 ac_status=$? 27083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27084 test $ac_status = 0; }; then 27085 pkg_cv_GL_CFLAGS=`$PKG_CONFIG --cflags "$GLPROTO $LIBGL" 2>/dev/null` 27086 test "x$?" != "x0" && pkg_failed=yes 27087else 27088 pkg_failed=yes 27089fi 27090 else 27091 pkg_failed=untried 27092fi 27093if test -n "$GL_LIBS"; then 27094 pkg_cv_GL_LIBS="$GL_LIBS" 27095 elif test -n "$PKG_CONFIG"; then 27096 if test -n "$PKG_CONFIG" && \ 27097 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBGL\""; } >&5 27098 ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBGL") 2>&5 27099 ac_status=$? 27100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27101 test $ac_status = 0; }; then 27102 pkg_cv_GL_LIBS=`$PKG_CONFIG --libs "$GLPROTO $LIBGL" 2>/dev/null` 27103 test "x$?" != "x0" && pkg_failed=yes 27104else 27105 pkg_failed=yes 27106fi 27107 else 27108 pkg_failed=untried 27109fi 27110 27111 27112 27113if test $pkg_failed = yes; then 27114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27115$as_echo "no" >&6; } 27116 27117if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 27118 _pkg_short_errors_supported=yes 27119else 27120 _pkg_short_errors_supported=no 27121fi 27122 if test $_pkg_short_errors_supported = yes; then 27123 GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GLPROTO $LIBGL" 2>&1` 27124 else 27125 GL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GLPROTO $LIBGL" 2>&1` 27126 fi 27127 # Put the nasty error message in config.log where it belongs 27128 echo "$GL_PKG_ERRORS" >&5 27129 27130 as_fn_error $? "Package requirements ($GLPROTO $LIBGL) were not met: 27131 27132$GL_PKG_ERRORS 27133 27134Consider adjusting the PKG_CONFIG_PATH environment variable if you 27135installed software in a non-standard prefix. 27136 27137Alternatively, you may set the environment variables GL_CFLAGS 27138and GL_LIBS to avoid the need to call pkg-config. 27139See the pkg-config man page for more details." "$LINENO" 5 27140elif test $pkg_failed = untried; then 27141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27142$as_echo "no" >&6; } 27143 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 27144$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 27145as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 27146is in your PATH or set the PKG_CONFIG environment variable to the full 27147path to pkg-config. 27148 27149Alternatively, you may set the environment variables GL_CFLAGS 27150and GL_LIBS to avoid the need to call pkg-config. 27151See the pkg-config man page for more details. 27152 27153To get pkg-config, see <http://pkg-config.freedesktop.org/>. 27154See \`config.log' for more details" "$LINENO" 5; } 27155else 27156 GL_CFLAGS=$pkg_cv_GL_CFLAGS 27157 GL_LIBS=$pkg_cv_GL_LIBS 27158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27159$as_echo "yes" >&6; } 27160 27161fi 27162 27163 27164$as_echo "#define GLXEXT 1" >>confdefs.h 27165 27166 HASHTABLE=yes 27167 GLX_LIBS='$(top_builddir)/glx/libglx.la $(top_builddir)/glx/libglxvnd.la' 27168 GLX_SYS_LIBS="$GLX_SYS_LIBS $GL_LIBS" 27169else 27170 GLX=no 27171fi 27172 if test "x$GLX" = xyes; then 27173 GLX_TRUE= 27174 GLX_FALSE='#' 27175else 27176 GLX_TRUE='#' 27177 GLX_FALSE= 27178fi 27179 27180 27181 if test "x$HASHTABLE" = xyes; then 27182 HASHTABLE_TRUE= 27183 HASHTABLE_FALSE='#' 27184else 27185 HASHTABLE_TRUE='#' 27186 HASHTABLE_FALSE= 27187fi 27188 27189 27190 27191 27192 27193 if test "x$PRESENT" = xyes; then 27194 PRESENT_TRUE= 27195 PRESENT_FALSE='#' 27196else 27197 PRESENT_TRUE='#' 27198 PRESENT_FALSE= 27199fi 27200 27201if test "x$PRESENT" = xyes; then 27202 27203$as_echo "#define PRESENT 1" >>confdefs.h 27204 27205 REQUIRED_MODULES="$REQUIRED_MODULES $PRESENTPROTO" 27206 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $PRESENTPROTO" 27207 PRESENT_INC='-I$(top_srcdir)/present' 27208 PRESENT_LIB='$(top_builddir)/present/libpresent.la' 27209fi 27210 27211 if test "x$XINERAMA" = xyes; then 27212 XINERAMA_TRUE= 27213 XINERAMA_FALSE='#' 27214else 27215 XINERAMA_TRUE='#' 27216 XINERAMA_FALSE= 27217fi 27218 27219if test "x$XINERAMA" = xyes; then 27220 27221$as_echo "#define XINERAMA 1" >>confdefs.h 27222 27223 27224$as_echo "#define PANORAMIX 1" >>confdefs.h 27225 27226 REQUIRED_MODULES="$REQUIRED_MODULES $XINERAMAPROTO" 27227 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $XINERAMAPROTO" 27228fi 27229 27230 if test "x$XACE" = xyes; then 27231 XACE_TRUE= 27232 XACE_FALSE='#' 27233else 27234 XACE_TRUE='#' 27235 XACE_FALSE= 27236fi 27237 27238if test "x$XACE" = xyes; then 27239 27240$as_echo "#define XACE 1" >>confdefs.h 27241 27242fi 27243 27244 if test "x$XSELINUX" = xyes; then 27245 XSELINUX_TRUE= 27246 XSELINUX_FALSE='#' 27247else 27248 XSELINUX_TRUE='#' 27249 XSELINUX_FALSE= 27250fi 27251 27252if test "x$XSELINUX" = xyes; then 27253 if test "x$XACE" != xyes; then 27254 as_fn_error $? "cannot build SELinux extension without X-ACE" "$LINENO" 5 27255 fi 27256 for ac_header in libaudit.h 27257do : 27258 ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default" 27259if test "x$ac_cv_header_libaudit_h" = xyes; then : 27260 cat >>confdefs.h <<_ACEOF 27261#define HAVE_LIBAUDIT_H 1 27262_ACEOF 27263 27264else 27265 as_fn_error $? "SELinux extension requires audit system headers" "$LINENO" 5 27266fi 27267 27268done 27269 27270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_open in -laudit" >&5 27271$as_echo_n "checking for audit_open in -laudit... " >&6; } 27272if ${ac_cv_lib_audit_audit_open+:} false; then : 27273 $as_echo_n "(cached) " >&6 27274else 27275 ac_check_lib_save_LIBS=$LIBS 27276LIBS="-laudit $LIBS" 27277cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27278/* end confdefs.h. */ 27279 27280/* Override any GCC internal prototype to avoid an error. 27281 Use char because int might match the return type of a GCC 27282 builtin and then its argument prototype would still apply. */ 27283#ifdef __cplusplus 27284extern "C" 27285#endif 27286char audit_open (); 27287int 27288main () 27289{ 27290return audit_open (); 27291 ; 27292 return 0; 27293} 27294_ACEOF 27295if ac_fn_c_try_link "$LINENO"; then : 27296 ac_cv_lib_audit_audit_open=yes 27297else 27298 ac_cv_lib_audit_audit_open=no 27299fi 27300rm -f core conftest.err conftest.$ac_objext \ 27301 conftest$ac_exeext conftest.$ac_ext 27302LIBS=$ac_check_lib_save_LIBS 27303fi 27304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_open" >&5 27305$as_echo "$ac_cv_lib_audit_audit_open" >&6; } 27306if test "x$ac_cv_lib_audit_audit_open" = xyes; then : 27307 cat >>confdefs.h <<_ACEOF 27308#define HAVE_LIBAUDIT 1 27309_ACEOF 27310 27311 LIBS="-laudit $LIBS" 27312 27313else 27314 as_fn_error $? "SELinux extension requires audit system library" "$LINENO" 5 27315fi 27316 27317 27318pkg_failed=no 27319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SELINUX" >&5 27320$as_echo_n "checking for SELINUX... " >&6; } 27321 27322if test -n "$SELINUX_CFLAGS"; then 27323 pkg_cv_SELINUX_CFLAGS="$SELINUX_CFLAGS" 27324 elif test -n "$PKG_CONFIG"; then 27325 if test -n "$PKG_CONFIG" && \ 27326 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSELINUX\""; } >&5 27327 ($PKG_CONFIG --exists --print-errors "$LIBSELINUX") 2>&5 27328 ac_status=$? 27329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27330 test $ac_status = 0; }; then 27331 pkg_cv_SELINUX_CFLAGS=`$PKG_CONFIG --cflags "$LIBSELINUX" 2>/dev/null` 27332 test "x$?" != "x0" && pkg_failed=yes 27333else 27334 pkg_failed=yes 27335fi 27336 else 27337 pkg_failed=untried 27338fi 27339if test -n "$SELINUX_LIBS"; then 27340 pkg_cv_SELINUX_LIBS="$SELINUX_LIBS" 27341 elif test -n "$PKG_CONFIG"; then 27342 if test -n "$PKG_CONFIG" && \ 27343 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSELINUX\""; } >&5 27344 ($PKG_CONFIG --exists --print-errors "$LIBSELINUX") 2>&5 27345 ac_status=$? 27346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27347 test $ac_status = 0; }; then 27348 pkg_cv_SELINUX_LIBS=`$PKG_CONFIG --libs "$LIBSELINUX" 2>/dev/null` 27349 test "x$?" != "x0" && pkg_failed=yes 27350else 27351 pkg_failed=yes 27352fi 27353 else 27354 pkg_failed=untried 27355fi 27356 27357 27358 27359if test $pkg_failed = yes; then 27360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27361$as_echo "no" >&6; } 27362 27363if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 27364 _pkg_short_errors_supported=yes 27365else 27366 _pkg_short_errors_supported=no 27367fi 27368 if test $_pkg_short_errors_supported = yes; then 27369 SELINUX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBSELINUX" 2>&1` 27370 else 27371 SELINUX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBSELINUX" 2>&1` 27372 fi 27373 # Put the nasty error message in config.log where it belongs 27374 echo "$SELINUX_PKG_ERRORS" >&5 27375 27376 as_fn_error $? "Package requirements ($LIBSELINUX) were not met: 27377 27378$SELINUX_PKG_ERRORS 27379 27380Consider adjusting the PKG_CONFIG_PATH environment variable if you 27381installed software in a non-standard prefix. 27382 27383Alternatively, you may set the environment variables SELINUX_CFLAGS 27384and SELINUX_LIBS to avoid the need to call pkg-config. 27385See the pkg-config man page for more details." "$LINENO" 5 27386elif test $pkg_failed = untried; then 27387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27388$as_echo "no" >&6; } 27389 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 27390$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 27391as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 27392is in your PATH or set the PKG_CONFIG environment variable to the full 27393path to pkg-config. 27394 27395Alternatively, you may set the environment variables SELINUX_CFLAGS 27396and SELINUX_LIBS to avoid the need to call pkg-config. 27397See the pkg-config man page for more details. 27398 27399To get pkg-config, see <http://pkg-config.freedesktop.org/>. 27400See \`config.log' for more details" "$LINENO" 5; } 27401else 27402 SELINUX_CFLAGS=$pkg_cv_SELINUX_CFLAGS 27403 SELINUX_LIBS=$pkg_cv_SELINUX_LIBS 27404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27405$as_echo "yes" >&6; } 27406 27407fi 27408 SELINUX_LIBS="$SELINUX_LIBS -laudit" 27409 27410$as_echo "#define XSELINUX 1" >>confdefs.h 27411 27412fi 27413 27414 if test "x$XCSECURITY" = xyes; then 27415 XCSECURITY_TRUE= 27416 XCSECURITY_FALSE='#' 27417else 27418 XCSECURITY_TRUE='#' 27419 XCSECURITY_FALSE= 27420fi 27421 27422if test "x$XCSECURITY" = xyes; then 27423 if test "x$XACE" != xyes; then 27424 as_fn_error $? "cannot build Security extension without X-ACE" "$LINENO" 5 27425 fi 27426 27427$as_echo "#define XCSECURITY 1" >>confdefs.h 27428 27429fi 27430 27431 if test "x$DBE" = xyes; then 27432 DBE_TRUE= 27433 DBE_FALSE='#' 27434else 27435 DBE_TRUE='#' 27436 DBE_FALSE= 27437fi 27438 27439if test "x$DBE" = xyes; then 27440 27441$as_echo "#define DBE 1" >>confdefs.h 27442 27443 DBE_LIB='$(top_builddir)/dbe/libdbe.la' 27444 DBE_INC='-I$(top_srcdir)/dbe' 27445fi 27446 27447 if test "x$XF86BIGFONT" = xyes; then 27448 XF86BIGFONT_TRUE= 27449 XF86BIGFONT_FALSE='#' 27450else 27451 XF86BIGFONT_TRUE='#' 27452 XF86BIGFONT_FALSE= 27453fi 27454 27455if test "x$XF86BIGFONT" = xyes; then 27456 27457$as_echo "#define XF86BIGFONT 1" >>confdefs.h 27458 27459 REQUIRED_MODULES="$REQUIRED_MODULES $BIGFONTPROTO" 27460 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $BIGFONTPROTO" 27461fi 27462 27463 if test "x$DPMSExtension" = xyes; then 27464 DPMSExtension_TRUE= 27465 DPMSExtension_FALSE='#' 27466else 27467 DPMSExtension_TRUE='#' 27468 DPMSExtension_FALSE= 27469fi 27470 27471if test "x$DPMSExtension" = xyes; then 27472 27473$as_echo "#define DPMSExtension 1" >>confdefs.h 27474 27475fi 27476 27477 27478$as_echo "#define RENDER 1" >>confdefs.h 27479 27480RENDER_LIB='$(top_builddir)/render/librender.la' 27481RENDER_INC='-I$(top_srcdir)/render' 27482 27483 27484$as_echo "#define RANDR 1" >>confdefs.h 27485 27486RANDR_LIB='$(top_builddir)/randr/librandr.la' 27487RANDR_INC='-I$(top_srcdir)/randr' 27488 27489 27490$as_echo "#define XFIXES 1" >>confdefs.h 27491 27492FIXES_LIB='$(top_builddir)/xfixes/libxfixes.la' 27493FIXES_INC='-I$(top_srcdir)/xfixes' 27494 27495 27496$as_echo "#define DAMAGE 1" >>confdefs.h 27497 27498DAMAGE_LIB='$(top_builddir)/damageext/libdamageext.la' 27499DAMAGE_INC='-I$(top_srcdir)/damageext' 27500MIEXT_DAMAGE_LIB='$(top_builddir)/miext/damage/libdamage.la' 27501MIEXT_DAMAGE_INC='-I$(top_srcdir)/miext/damage' 27502 27503# XINPUT extension is integral part of the server 27504 27505$as_echo "#define XINPUT 1" >>confdefs.h 27506 27507XI_LIB='$(top_builddir)/Xi/libXi.la' 27508XI_INC='-I$(top_srcdir)/Xi' 27509 27510 if test "x$XF86UTILS" = xyes; then 27511 XF86UTILS_TRUE= 27512 XF86UTILS_FALSE='#' 27513else 27514 XF86UTILS_TRUE='#' 27515 XF86UTILS_FALSE= 27516fi 27517 27518 if test "x$VGAHW" = xyes; then 27519 VGAHW_TRUE= 27520 VGAHW_FALSE='#' 27521else 27522 VGAHW_TRUE='#' 27523 VGAHW_FALSE= 27524fi 27525 27526 if test "x$VBE" = xyes; then 27527 VBE_TRUE= 27528 VBE_FALSE='#' 27529else 27530 VBE_TRUE='#' 27531 VBE_FALSE= 27532fi 27533 27534 if test "x$INT10MODULE" = xyes; then 27535 INT10MODULE_TRUE= 27536 INT10MODULE_FALSE='#' 27537else 27538 INT10MODULE_TRUE='#' 27539 INT10MODULE_FALSE= 27540fi 27541 27542 27543 27544$as_echo "#define SHAPE 1" >>confdefs.h 27545 27546 27547if test "x$XKBPATH" = "xauto"; then 27548 XKBPATH=$(pkg-config --variable datadir xkbcomp || echo ${datadir})/X11/xkb 27549fi 27550 27551 27552 prefix_NONE= 27553 exec_prefix_NONE= 27554 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 27555 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 27556 eval ac_define_dir="\"$XKBPATH\"" 27557 eval ac_define_dir="\"$ac_define_dir\"" 27558 XKB_BASE_DIRECTORY="$ac_define_dir" 27559 27560 27561cat >>confdefs.h <<_ACEOF 27562#define XKB_BASE_DIRECTORY "$ac_define_dir" 27563_ACEOF 27564 27565 test "$prefix_NONE" && prefix=NONE 27566 test "$exec_prefix_NONE" && exec_prefix=NONE 27567 27568 27569# Check whether --with-xkb-bin-directory was given. 27570if test "${with_xkb_bin_directory+set}" = set; then : 27571 withval=$with_xkb_bin_directory; XKB_BIN_DIRECTORY="$withval" 27572else 27573 XKB_BIN_DIRECTORY="auto" 27574fi 27575 27576 27577if test "x$XKB_BIN_DIRECTORY" = "xauto"; then 27578 XKB_BIN_DIRECTORY=$(pkg-config --variable bindir xkbcomp || echo ${bindir}) 27579fi 27580 27581 27582 prefix_NONE= 27583 exec_prefix_NONE= 27584 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 27585 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 27586 eval ac_define_dir="\"$XKB_BIN_DIRECTORY\"" 27587 eval ac_define_dir="\"$ac_define_dir\"" 27588 XKB_BIN_DIRECTORY="$ac_define_dir" 27589 27590 27591cat >>confdefs.h <<_ACEOF 27592#define XKB_BIN_DIRECTORY "$ac_define_dir" 27593_ACEOF 27594 27595 test "$prefix_NONE" && prefix=NONE 27596 test "$exec_prefix_NONE" && exec_prefix=NONE 27597 27598 27599XKBOUTPUT_FIRSTCHAR=`echo $XKBOUTPUT | cut -b 1` 27600if [ x$XKBOUTPUT_FIRSTCHAR != x/ -a x$XKBOUTPUT_FIRSTCHAR != 'x$' ] ; then 27601 XKBOUTPUT="$XKB_BASE_DIRECTORY/$XKBOUTPUT" 27602fi 27603 27604 27605XKBOUTPUT=`echo $XKBOUTPUT/ | $SED 's|/*$|/|'` 27606XKB_COMPILED_DIR=`echo $XKBOUTPUT | $SED 's|/*$||'` 27607 27608 prefix_NONE= 27609 exec_prefix_NONE= 27610 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 27611 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 27612 eval ac_define_dir="\"$XKBOUTPUT\"" 27613 eval ac_define_dir="\"$ac_define_dir\"" 27614 XKM_OUTPUT_DIR="$ac_define_dir" 27615 27616 27617cat >>confdefs.h <<_ACEOF 27618#define XKM_OUTPUT_DIR "$ac_define_dir" 27619_ACEOF 27620 27621 test "$prefix_NONE" && prefix=NONE 27622 test "$exec_prefix_NONE" && exec_prefix=NONE 27623 27624 27625 27626if test "x$XKB_DFLT_RULES" = x; then 27627 case $host_os in 27628 linux*) 27629 XKB_DFLT_RULES="evdev" 27630 ;; 27631 *) 27632 XKB_DFLT_RULES="base" 27633 ;; 27634 esac 27635fi 27636 27637cat >>confdefs.h <<_ACEOF 27638#define XKB_DFLT_RULES "$XKB_DFLT_RULES" 27639_ACEOF 27640 27641 27642cat >>confdefs.h <<_ACEOF 27643#define XKB_DFLT_MODEL "$XKB_DFLT_MODEL" 27644_ACEOF 27645 27646 27647cat >>confdefs.h <<_ACEOF 27648#define XKB_DFLT_LAYOUT "$XKB_DFLT_LAYOUT" 27649_ACEOF 27650 27651 27652cat >>confdefs.h <<_ACEOF 27653#define XKB_DFLT_VARIANT "$XKB_DFLT_VARIANT" 27654_ACEOF 27655 27656 27657cat >>confdefs.h <<_ACEOF 27658#define XKB_DFLT_OPTIONS "$XKB_DFLT_OPTIONS" 27659_ACEOF 27660 27661 27662 27663 27664 27665 27666 27667XKB_LIB='$(top_builddir)/xkb/libxkb.la' 27668XKB_STUB_LIB='$(top_builddir)/xkb/libxkbstubs.la' 27669REQUIRED_MODULES="$REQUIRED_MODULES xkbfile" 27670 27671 27672pkg_failed=no 27673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMCP" >&5 27674$as_echo_n "checking for XDMCP... " >&6; } 27675 27676if test -n "$XDMCP_CFLAGS"; then 27677 pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS" 27678 elif test -n "$PKG_CONFIG"; then 27679 if test -n "$PKG_CONFIG" && \ 27680 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 27681 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 27682 ac_status=$? 27683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27684 test $ac_status = 0; }; then 27685 pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null` 27686 test "x$?" != "x0" && pkg_failed=yes 27687else 27688 pkg_failed=yes 27689fi 27690 else 27691 pkg_failed=untried 27692fi 27693if test -n "$XDMCP_LIBS"; then 27694 pkg_cv_XDMCP_LIBS="$XDMCP_LIBS" 27695 elif test -n "$PKG_CONFIG"; then 27696 if test -n "$PKG_CONFIG" && \ 27697 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 27698 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 27699 ac_status=$? 27700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27701 test $ac_status = 0; }; then 27702 pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null` 27703 test "x$?" != "x0" && pkg_failed=yes 27704else 27705 pkg_failed=yes 27706fi 27707 else 27708 pkg_failed=untried 27709fi 27710 27711 27712 27713if test $pkg_failed = yes; then 27714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27715$as_echo "no" >&6; } 27716 27717if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 27718 _pkg_short_errors_supported=yes 27719else 27720 _pkg_short_errors_supported=no 27721fi 27722 if test $_pkg_short_errors_supported = yes; then 27723 XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xdmcp" 2>&1` 27724 else 27725 XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xdmcp" 2>&1` 27726 fi 27727 # Put the nasty error message in config.log where it belongs 27728 echo "$XDMCP_PKG_ERRORS" >&5 27729 27730 have_libxdmcp="no" 27731elif test $pkg_failed = untried; then 27732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27733$as_echo "no" >&6; } 27734 have_libxdmcp="no" 27735else 27736 XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS 27737 XDMCP_LIBS=$pkg_cv_XDMCP_LIBS 27738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27739$as_echo "yes" >&6; } 27740 have_libxdmcp="yes" 27741fi 27742if test "x$XDMCP" = xauto; then 27743 if test "x$have_libxdmcp" = xyes; then 27744 XDMCP=yes 27745 else 27746 XDMCP=no 27747 fi 27748fi 27749if test "x$XDMAUTH" = xauto; then 27750 if test "x$have_libxdmcp" = xyes; then 27751 XDMAUTH=yes 27752 else 27753 XDMAUTH=no 27754 fi 27755fi 27756 27757 if test "x$XDMCP" = xyes; then 27758 XDMCP_TRUE= 27759 XDMCP_FALSE='#' 27760else 27761 XDMCP_TRUE='#' 27762 XDMCP_FALSE= 27763fi 27764 27765if test "x$XDMCP" = xyes; then 27766 27767$as_echo "#define XDMCP 1" >>confdefs.h 27768 27769 REQUIRED_LIBS="$REQUIRED_LIBS xdmcp" 27770 XDMCP_MODULES="xdmcp" 27771fi 27772 27773 if test "x$XDMAUTH" = xyes; then 27774 XDMAUTH_TRUE= 27775 XDMAUTH_FALSE='#' 27776else 27777 XDMAUTH_TRUE='#' 27778 XDMAUTH_FALSE= 27779fi 27780 27781if test "x$XDMAUTH" = xyes; then 27782 27783$as_echo "#define HASXDMAUTH 1" >>confdefs.h 27784 27785 if ! test "x$XDMCP" = xyes; then 27786 REQUIRED_LIBS="$REQUIRED_LIBS xdmcp" 27787 XDMCP_MODULES="xdmcp" 27788 fi 27789fi 27790 27791if test "x$XF86VIDMODE" = xauto; then 27792 if test -n "$PKG_CONFIG" && \ 27793 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$VIDMODEPROTO\""; } >&5 27794 ($PKG_CONFIG --exists --print-errors "$VIDMODEPROTO") 2>&5 27795 ac_status=$? 27796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27797 test $ac_status = 0; }; then 27798 XF86VIDMODE=yes 27799else 27800 XF86VIDMODE=no 27801fi 27802fi 27803if test "x$XF86VIDMODE" = xyes; then 27804 27805$as_echo "#define XF86VIDMODE 1" >>confdefs.h 27806 27807fi 27808 if test "x$XF86VIDMODE" = xyes; then 27809 XF86VIDMODE_TRUE= 27810 XF86VIDMODE_FALSE='#' 27811else 27812 XF86VIDMODE_TRUE='#' 27813 XF86VIDMODE_FALSE= 27814fi 27815 27816 27817 27818 prefix_NONE= 27819 exec_prefix_NONE= 27820 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 27821 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 27822 eval ac_define_dir="\"$FONTPATH\"" 27823 eval ac_define_dir="\"$ac_define_dir\"" 27824 COMPILEDDEFAULTFONTPATH="$ac_define_dir" 27825 27826 27827cat >>confdefs.h <<_ACEOF 27828#define COMPILEDDEFAULTFONTPATH "$ac_define_dir" 27829_ACEOF 27830 27831 test "$prefix_NONE" && prefix=NONE 27832 test "$exec_prefix_NONE" && exec_prefix=NONE 27833 27834 27835 prefix_NONE= 27836 exec_prefix_NONE= 27837 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 27838 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 27839 eval ac_define_dir="\"$SERVERCONFIG\"" 27840 eval ac_define_dir="\"$ac_define_dir\"" 27841 SERVER_MISC_CONFIG_PATH="$ac_define_dir" 27842 27843 27844cat >>confdefs.h <<_ACEOF 27845#define SERVER_MISC_CONFIG_PATH "$ac_define_dir" 27846_ACEOF 27847 27848 test "$prefix_NONE" && prefix=NONE 27849 test "$exec_prefix_NONE" && exec_prefix=NONE 27850 27851 27852 prefix_NONE= 27853 exec_prefix_NONE= 27854 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 27855 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 27856 eval ac_define_dir="\"$FONTROOTDIR\"" 27857 eval ac_define_dir="\"$ac_define_dir\"" 27858 BASE_FONT_PATH="$ac_define_dir" 27859 27860 27861cat >>confdefs.h <<_ACEOF 27862#define BASE_FONT_PATH "$ac_define_dir" 27863_ACEOF 27864 27865 test "$prefix_NONE" && prefix=NONE 27866 test "$exec_prefix_NONE" && exec_prefix=NONE 27867 27868dridriverdir=`$PKG_CONFIG --variable=dridriverdir dri` 27869 27870 prefix_NONE= 27871 exec_prefix_NONE= 27872 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 27873 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 27874 eval ac_define_dir="\"$dridriverdir\"" 27875 eval ac_define_dir="\"$ac_define_dir\"" 27876 DRI_DRIVER_PATH="$ac_define_dir" 27877 27878 27879cat >>confdefs.h <<_ACEOF 27880#define DRI_DRIVER_PATH "$ac_define_dir" 27881_ACEOF 27882 27883 test "$prefix_NONE" && prefix=NONE 27884 test "$exec_prefix_NONE" && exec_prefix=NONE 27885 27886 27887cat >>confdefs.h <<_ACEOF 27888#define XVENDORNAME "$VENDOR_NAME" 27889_ACEOF 27890 27891 27892cat >>confdefs.h <<_ACEOF 27893#define XVENDORNAMESHORT "$VENDOR_NAME_SHORT" 27894_ACEOF 27895 27896 27897cat >>confdefs.h <<_ACEOF 27898#define XORG_MAN_VERSION "$VENDOR_MAN_VERSION" 27899_ACEOF 27900 27901 27902cat >>confdefs.h <<_ACEOF 27903#define BUILDERADDR "$BUILDERADDR" 27904_ACEOF 27905 27906 27907if test -z "$OSNAME"; then 27908 OSNAME="UNKNOWN" 27909fi 27910 27911 27912cat >>confdefs.h <<_ACEOF 27913#define OSNAME "$OSNAME" 27914_ACEOF 27915 27916 27917cat >>confdefs.h <<_ACEOF 27918#define OSVENDOR "$OSVENDOR" 27919_ACEOF 27920 27921 27922cat >>confdefs.h <<_ACEOF 27923#define BUILDERSTRING "$BUILDERSTRING" 27924_ACEOF 27925 27926 27927 27928 27929cat >>confdefs.h <<_ACEOF 27930#define VENDOR_NAME "$VENDOR_NAME" 27931_ACEOF 27932 27933 27934cat >>confdefs.h <<_ACEOF 27935#define VENDOR_NAME_SHORT "$VENDOR_NAME_SHORT" 27936_ACEOF 27937 27938 27939cat >>confdefs.h <<_ACEOF 27940#define VENDOR_RELEASE $VENDOR_RELEASE 27941_ACEOF 27942 27943 27944cat >>confdefs.h <<_ACEOF 27945#define VENDOR_MAN_VERSION "$VENDOR_MAN_VERSION" 27946_ACEOF 27947 27948 27949if test "x$DEBUGGING" = xyes; then 27950 27951$as_echo "#define DEBUG 1" >>confdefs.h 27952 27953fi 27954 if test "x$DEBUGGING" = xyes; then 27955 DEBUG_TRUE= 27956 DEBUG_FALSE='#' 27957else 27958 DEBUG_TRUE='#' 27959 DEBUG_FALSE= 27960fi 27961 27962 27963 27964$as_echo "#define XTEST 1" >>confdefs.h 27965 27966 27967$as_echo "#define XSYNC 1" >>confdefs.h 27968 27969 27970$as_echo "#define XCMISC 1" >>confdefs.h 27971 27972 27973$as_echo "#define BIGREQS 1" >>confdefs.h 27974 27975 27976if test "x$SPECIAL_DTRACE_OBJECTS" = "xyes" ; then 27977 DIX_LIB='$(top_builddir)/dix/dix.O' 27978 OS_LIB='$(top_builddir)/os/os.O $(SHA1_LIBS) $(DLOPEN_LIBS) $(LIBUNWIND_LIBS)' 27979else 27980 DIX_LIB='$(top_builddir)/dix/libdix.la' 27981 OS_LIB='$(top_builddir)/os/libos.la' 27982fi 27983 27984 27985 27986MAIN_LIB='$(top_builddir)/dix/libmain.la' 27987 27988 27989MI_LIB='$(top_builddir)/mi/libmi.la' 27990MI_EXT_LIB='$(top_builddir)/mi/libmiext.la' 27991MI_INC='-I$(top_srcdir)/mi' 27992FB_LIB='$(top_builddir)/fb/libfb.la' 27993FB_INC='-I$(top_srcdir)/fb' 27994MIEXT_SHADOW_INC='-I$(top_srcdir)/miext/shadow' 27995MIEXT_SHADOW_LIB='$(top_builddir)/miext/shadow/libshadow.la' 27996MIEXT_SYNC_INC='-I$(top_srcdir)/miext/sync' 27997MIEXT_SYNC_LIB='$(top_builddir)/miext/sync/libsync.la' 27998CORE_INCS='-I$(top_srcdir)/include -I$(top_builddir)/include' 27999 28000# SHA1 hashing 28001 28002# Check whether --with-sha1 was given. 28003if test "${with_sha1+set}" = set; then : 28004 withval=$with_sha1; 28005fi 28006 28007ac_fn_c_check_func "$LINENO" "SHA1Init" "ac_cv_func_SHA1Init" 28008if test "x$ac_cv_func_SHA1Init" = xyes; then : 28009 HAVE_SHA1_IN_LIBC=yes 28010fi 28011 28012if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_LIBC" = xyes; then 28013 with_sha1=libc 28014fi 28015if test "x$with_sha1" = xlibc && test "x$HAVE_SHA1_IN_LIBC" != xyes; then 28016 as_fn_error $? "libc requested but not found" "$LINENO" 5 28017fi 28018if test "x$with_sha1" = xlibc; then 28019 28020$as_echo "#define HAVE_SHA1_IN_LIBC 1" >>confdefs.h 28021 28022 SHA1_LIBS="" 28023fi 28024ac_fn_c_check_func "$LINENO" "CC_SHA1_Init" "ac_cv_func_CC_SHA1_Init" 28025if test "x$ac_cv_func_CC_SHA1_Init" = xyes; then : 28026 HAVE_SHA1_IN_COMMONCRYPTO=yes 28027fi 28028 28029if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_COMMONCRYPTO" = xyes; then 28030 with_sha1=CommonCrypto 28031fi 28032if test "x$with_sha1" = xCommonCrypto && test "x$HAVE_SHA1_IN_COMMONCRYPTO" != xyes; then 28033 as_fn_error $? "CommonCrypto requested but not found" "$LINENO" 5 28034fi 28035if test "x$with_sha1" = xCommonCrypto; then 28036 28037$as_echo "#define HAVE_SHA1_IN_COMMONCRYPTO 1" >>confdefs.h 28038 28039 SHA1_LIBS="" 28040fi 28041ac_fn_c_check_header_compile "$LINENO" "wincrypt.h" "ac_cv_header_wincrypt_h" "#include <windows.h> 28042" 28043if test "x$ac_cv_header_wincrypt_h" = xyes; then : 28044 HAVE_SHA1_IN_CRYPTOAPI=yes 28045fi 28046 28047 28048if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_CRYPTOAPI" = xyes; then 28049 with_sha1=CryptoAPI 28050fi 28051if test "x$with_sha1" = xCryptoAPI && test "x$HAVE_SHA1_IN_CRYPTOAPI" != xyes; then 28052 as_fn_error $? "CryptoAPI requested but not found" "$LINENO" 5 28053fi 28054if test "x$with_sha1" = xCryptoAPI; then 28055 28056$as_echo "#define HAVE_SHA1_IN_CRYPTOAPI 1" >>confdefs.h 28057 28058 SHA1_LIBS="" 28059fi 28060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1Init in -lmd" >&5 28061$as_echo_n "checking for SHA1Init in -lmd... " >&6; } 28062if ${ac_cv_lib_md_SHA1Init+:} false; then : 28063 $as_echo_n "(cached) " >&6 28064else 28065 ac_check_lib_save_LIBS=$LIBS 28066LIBS="-lmd $LIBS" 28067cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28068/* end confdefs.h. */ 28069 28070/* Override any GCC internal prototype to avoid an error. 28071 Use char because int might match the return type of a GCC 28072 builtin and then its argument prototype would still apply. */ 28073#ifdef __cplusplus 28074extern "C" 28075#endif 28076char SHA1Init (); 28077int 28078main () 28079{ 28080return SHA1Init (); 28081 ; 28082 return 0; 28083} 28084_ACEOF 28085if ac_fn_c_try_link "$LINENO"; then : 28086 ac_cv_lib_md_SHA1Init=yes 28087else 28088 ac_cv_lib_md_SHA1Init=no 28089fi 28090rm -f core conftest.err conftest.$ac_objext \ 28091 conftest$ac_exeext conftest.$ac_ext 28092LIBS=$ac_check_lib_save_LIBS 28093fi 28094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_md_SHA1Init" >&5 28095$as_echo "$ac_cv_lib_md_SHA1Init" >&6; } 28096if test "x$ac_cv_lib_md_SHA1Init" = xyes; then : 28097 HAVE_LIBMD=yes 28098fi 28099 28100if test "x$with_sha1" = x && test "x$HAVE_LIBMD" = xyes; then 28101 with_sha1=libmd 28102fi 28103if test "x$with_sha1" = xlibmd && test "x$HAVE_LIBMD" != xyes; then 28104 as_fn_error $? "libmd requested but not found" "$LINENO" 5 28105fi 28106if test "x$with_sha1" = xlibmd; then 28107 28108$as_echo "#define HAVE_SHA1_IN_LIBMD 1" >>confdefs.h 28109 28110 SHA1_LIBS=-lmd 28111fi 28112 28113pkg_failed=no 28114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSHA1" >&5 28115$as_echo_n "checking for LIBSHA1... " >&6; } 28116 28117if test -n "$LIBSHA1_CFLAGS"; then 28118 pkg_cv_LIBSHA1_CFLAGS="$LIBSHA1_CFLAGS" 28119 elif test -n "$PKG_CONFIG"; then 28120 if test -n "$PKG_CONFIG" && \ 28121 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsha1\""; } >&5 28122 ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5 28123 ac_status=$? 28124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28125 test $ac_status = 0; }; then 28126 pkg_cv_LIBSHA1_CFLAGS=`$PKG_CONFIG --cflags "libsha1" 2>/dev/null` 28127 test "x$?" != "x0" && pkg_failed=yes 28128else 28129 pkg_failed=yes 28130fi 28131 else 28132 pkg_failed=untried 28133fi 28134if test -n "$LIBSHA1_LIBS"; then 28135 pkg_cv_LIBSHA1_LIBS="$LIBSHA1_LIBS" 28136 elif test -n "$PKG_CONFIG"; then 28137 if test -n "$PKG_CONFIG" && \ 28138 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsha1\""; } >&5 28139 ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5 28140 ac_status=$? 28141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28142 test $ac_status = 0; }; then 28143 pkg_cv_LIBSHA1_LIBS=`$PKG_CONFIG --libs "libsha1" 2>/dev/null` 28144 test "x$?" != "x0" && pkg_failed=yes 28145else 28146 pkg_failed=yes 28147fi 28148 else 28149 pkg_failed=untried 28150fi 28151 28152 28153 28154if test $pkg_failed = yes; then 28155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28156$as_echo "no" >&6; } 28157 28158if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28159 _pkg_short_errors_supported=yes 28160else 28161 _pkg_short_errors_supported=no 28162fi 28163 if test $_pkg_short_errors_supported = yes; then 28164 LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsha1" 2>&1` 28165 else 28166 LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsha1" 2>&1` 28167 fi 28168 # Put the nasty error message in config.log where it belongs 28169 echo "$LIBSHA1_PKG_ERRORS" >&5 28170 28171 HAVE_LIBSHA1=no 28172elif test $pkg_failed = untried; then 28173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28174$as_echo "no" >&6; } 28175 HAVE_LIBSHA1=no 28176else 28177 LIBSHA1_CFLAGS=$pkg_cv_LIBSHA1_CFLAGS 28178 LIBSHA1_LIBS=$pkg_cv_LIBSHA1_LIBS 28179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28180$as_echo "yes" >&6; } 28181 HAVE_LIBSHA1=yes 28182fi 28183if test "x$with_sha1" = x && test "x$HAVE_LIBSHA1" = xyes; then 28184 with_sha1=libsha1 28185fi 28186if test "x$with_sha1" = xlibsha1 && test "x$HAVE_LIBSHA1" != xyes; then 28187 as_fn_error $? "libsha1 requested but not found" "$LINENO" 5 28188fi 28189if test "x$with_sha1" = xlibsha1; then 28190 28191$as_echo "#define HAVE_SHA1_IN_LIBSHA1 1" >>confdefs.h 28192 28193 SHA1_LIBS=-lsha1 28194fi 28195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_sha1_init in -lnettle" >&5 28196$as_echo_n "checking for nettle_sha1_init in -lnettle... " >&6; } 28197if ${ac_cv_lib_nettle_nettle_sha1_init+:} false; then : 28198 $as_echo_n "(cached) " >&6 28199else 28200 ac_check_lib_save_LIBS=$LIBS 28201LIBS="-lnettle $LIBS" 28202cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28203/* end confdefs.h. */ 28204 28205/* Override any GCC internal prototype to avoid an error. 28206 Use char because int might match the return type of a GCC 28207 builtin and then its argument prototype would still apply. */ 28208#ifdef __cplusplus 28209extern "C" 28210#endif 28211char nettle_sha1_init (); 28212int 28213main () 28214{ 28215return nettle_sha1_init (); 28216 ; 28217 return 0; 28218} 28219_ACEOF 28220if ac_fn_c_try_link "$LINENO"; then : 28221 ac_cv_lib_nettle_nettle_sha1_init=yes 28222else 28223 ac_cv_lib_nettle_nettle_sha1_init=no 28224fi 28225rm -f core conftest.err conftest.$ac_objext \ 28226 conftest$ac_exeext conftest.$ac_ext 28227LIBS=$ac_check_lib_save_LIBS 28228fi 28229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_sha1_init" >&5 28230$as_echo "$ac_cv_lib_nettle_nettle_sha1_init" >&6; } 28231if test "x$ac_cv_lib_nettle_nettle_sha1_init" = xyes; then : 28232 HAVE_LIBNETTLE=yes 28233fi 28234 28235if test "x$with_sha1" = x && test "x$HAVE_LIBNETTLE" = xyes; then 28236 with_sha1=libnettle 28237fi 28238if test "x$with_sha1" = xlibnettle && test "x$HAVE_LIBNETTLE" != xyes; then 28239 as_fn_error $? "libnettle requested but not found" "$LINENO" 5 28240fi 28241if test "x$with_sha1" = xlibnettle; then 28242 28243$as_echo "#define HAVE_SHA1_IN_LIBNETTLE 1" >>confdefs.h 28244 28245 SHA1_LIBS=-lnettle 28246fi 28247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_md_open in -lgcrypt" >&5 28248$as_echo_n "checking for gcry_md_open in -lgcrypt... " >&6; } 28249if ${ac_cv_lib_gcrypt_gcry_md_open+:} false; then : 28250 $as_echo_n "(cached) " >&6 28251else 28252 ac_check_lib_save_LIBS=$LIBS 28253LIBS="-lgcrypt $LIBS" 28254cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28255/* end confdefs.h. */ 28256 28257/* Override any GCC internal prototype to avoid an error. 28258 Use char because int might match the return type of a GCC 28259 builtin and then its argument prototype would still apply. */ 28260#ifdef __cplusplus 28261extern "C" 28262#endif 28263char gcry_md_open (); 28264int 28265main () 28266{ 28267return gcry_md_open (); 28268 ; 28269 return 0; 28270} 28271_ACEOF 28272if ac_fn_c_try_link "$LINENO"; then : 28273 ac_cv_lib_gcrypt_gcry_md_open=yes 28274else 28275 ac_cv_lib_gcrypt_gcry_md_open=no 28276fi 28277rm -f core conftest.err conftest.$ac_objext \ 28278 conftest$ac_exeext conftest.$ac_ext 28279LIBS=$ac_check_lib_save_LIBS 28280fi 28281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_md_open" >&5 28282$as_echo "$ac_cv_lib_gcrypt_gcry_md_open" >&6; } 28283if test "x$ac_cv_lib_gcrypt_gcry_md_open" = xyes; then : 28284 HAVE_LIBGCRYPT=yes 28285fi 28286 28287if test "x$with_sha1" = x && test "x$HAVE_LIBGCRYPT" = xyes; then 28288 with_sha1=libgcrypt 28289fi 28290if test "x$with_sha1" = xlibgcrypt && test "x$HAVE_LIBGCRYPT" != xyes; then 28291 as_fn_error $? "libgcrypt requested but not found" "$LINENO" 5 28292fi 28293if test "x$with_sha1" = xlibgcrypt; then 28294 28295$as_echo "#define HAVE_SHA1_IN_LIBGCRYPT 1" >>confdefs.h 28296 28297 SHA1_LIBS=-lgcrypt 28298fi 28299# We don't need all of the OpenSSL libraries, just libcrypto 28300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1_Init in -lcrypto" >&5 28301$as_echo_n "checking for SHA1_Init in -lcrypto... " >&6; } 28302if ${ac_cv_lib_crypto_SHA1_Init+:} false; then : 28303 $as_echo_n "(cached) " >&6 28304else 28305 ac_check_lib_save_LIBS=$LIBS 28306LIBS="-lcrypto $LIBS" 28307cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28308/* end confdefs.h. */ 28309 28310/* Override any GCC internal prototype to avoid an error. 28311 Use char because int might match the return type of a GCC 28312 builtin and then its argument prototype would still apply. */ 28313#ifdef __cplusplus 28314extern "C" 28315#endif 28316char SHA1_Init (); 28317int 28318main () 28319{ 28320return SHA1_Init (); 28321 ; 28322 return 0; 28323} 28324_ACEOF 28325if ac_fn_c_try_link "$LINENO"; then : 28326 ac_cv_lib_crypto_SHA1_Init=yes 28327else 28328 ac_cv_lib_crypto_SHA1_Init=no 28329fi 28330rm -f core conftest.err conftest.$ac_objext \ 28331 conftest$ac_exeext conftest.$ac_ext 28332LIBS=$ac_check_lib_save_LIBS 28333fi 28334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1_Init" >&5 28335$as_echo "$ac_cv_lib_crypto_SHA1_Init" >&6; } 28336if test "x$ac_cv_lib_crypto_SHA1_Init" = xyes; then : 28337 HAVE_LIBCRYPTO=yes 28338fi 28339 28340 28341pkg_failed=no 28342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5 28343$as_echo_n "checking for OPENSSL... " >&6; } 28344 28345if test -n "$OPENSSL_CFLAGS"; then 28346 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS" 28347 elif test -n "$PKG_CONFIG"; then 28348 if test -n "$PKG_CONFIG" && \ 28349 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 28350 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 28351 ac_status=$? 28352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28353 test $ac_status = 0; }; then 28354 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null` 28355 test "x$?" != "x0" && pkg_failed=yes 28356else 28357 pkg_failed=yes 28358fi 28359 else 28360 pkg_failed=untried 28361fi 28362if test -n "$OPENSSL_LIBS"; then 28363 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS" 28364 elif test -n "$PKG_CONFIG"; then 28365 if test -n "$PKG_CONFIG" && \ 28366 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 28367 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 28368 ac_status=$? 28369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28370 test $ac_status = 0; }; then 28371 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null` 28372 test "x$?" != "x0" && pkg_failed=yes 28373else 28374 pkg_failed=yes 28375fi 28376 else 28377 pkg_failed=untried 28378fi 28379 28380 28381 28382if test $pkg_failed = yes; then 28383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28384$as_echo "no" >&6; } 28385 28386if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28387 _pkg_short_errors_supported=yes 28388else 28389 _pkg_short_errors_supported=no 28390fi 28391 if test $_pkg_short_errors_supported = yes; then 28392 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1` 28393 else 28394 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1` 28395 fi 28396 # Put the nasty error message in config.log where it belongs 28397 echo "$OPENSSL_PKG_ERRORS" >&5 28398 28399 HAVE_OPENSSL_PKC=no 28400elif test $pkg_failed = untried; then 28401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28402$as_echo "no" >&6; } 28403 HAVE_OPENSSL_PKC=no 28404else 28405 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS 28406 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS 28407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28408$as_echo "yes" >&6; } 28409 HAVE_OPENSSL_PKC=yes 28410fi 28411if test "x$HAVE_LIBCRYPTO" = xyes || test "x$HAVE_OPENSSL_PKC" = xyes; then 28412 if test "x$with_sha1" = x; then 28413 with_sha1=libcrypto 28414 fi 28415else 28416 if test "x$with_sha1" = xlibcrypto; then 28417 as_fn_error $? "OpenSSL libcrypto requested but not found" "$LINENO" 5 28418 fi 28419fi 28420if test "x$with_sha1" = xlibcrypto; then 28421 if test "x$HAVE_LIBCRYPTO" = xyes; then 28422 SHA1_LIBS=-lcrypto 28423 else 28424 SHA1_LIBS="$OPENSSL_LIBS" 28425 SHA1_CFLAGS="$OPENSSL_CFLAGS" 28426 fi 28427fi 28428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1 implementation" >&5 28429$as_echo_n "checking for SHA1 implementation... " >&6; } 28430if test "x$with_sha1" = x; then 28431 as_fn_error $? "No suitable SHA1 implementation found" "$LINENO" 5 28432fi 28433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sha1" >&5 28434$as_echo "$with_sha1" >&6; } 28435 28436 28437 28438 28439pkg_failed=no 28440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSERVERCFLAGS" >&5 28441$as_echo_n "checking for XSERVERCFLAGS... " >&6; } 28442 28443if test -n "$XSERVERCFLAGS_CFLAGS"; then 28444 pkg_cv_XSERVERCFLAGS_CFLAGS="$XSERVERCFLAGS_CFLAGS" 28445 elif test -n "$PKG_CONFIG"; then 28446 if test -n "$PKG_CONFIG" && \ 28447 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\""; } >&5 28448 ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5 28449 ac_status=$? 28450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28451 test $ac_status = 0; }; then 28452 pkg_cv_XSERVERCFLAGS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null` 28453 test "x$?" != "x0" && pkg_failed=yes 28454else 28455 pkg_failed=yes 28456fi 28457 else 28458 pkg_failed=untried 28459fi 28460if test -n "$XSERVERCFLAGS_LIBS"; then 28461 pkg_cv_XSERVERCFLAGS_LIBS="$XSERVERCFLAGS_LIBS" 28462 elif test -n "$PKG_CONFIG"; then 28463 if test -n "$PKG_CONFIG" && \ 28464 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\""; } >&5 28465 ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5 28466 ac_status=$? 28467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28468 test $ac_status = 0; }; then 28469 pkg_cv_XSERVERCFLAGS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null` 28470 test "x$?" != "x0" && pkg_failed=yes 28471else 28472 pkg_failed=yes 28473fi 28474 else 28475 pkg_failed=untried 28476fi 28477 28478 28479 28480if test $pkg_failed = yes; then 28481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28482$as_echo "no" >&6; } 28483 28484if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28485 _pkg_short_errors_supported=yes 28486else 28487 _pkg_short_errors_supported=no 28488fi 28489 if test $_pkg_short_errors_supported = yes; then 28490 XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>&1` 28491 else 28492 XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>&1` 28493 fi 28494 # Put the nasty error message in config.log where it belongs 28495 echo "$XSERVERCFLAGS_PKG_ERRORS" >&5 28496 28497 as_fn_error $? "Package requirements ($REQUIRED_MODULES $REQUIRED_LIBS) were not met: 28498 28499$XSERVERCFLAGS_PKG_ERRORS 28500 28501Consider adjusting the PKG_CONFIG_PATH environment variable if you 28502installed software in a non-standard prefix. 28503 28504Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS 28505and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config. 28506See the pkg-config man page for more details." "$LINENO" 5 28507elif test $pkg_failed = untried; then 28508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28509$as_echo "no" >&6; } 28510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28511$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28512as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 28513is in your PATH or set the PKG_CONFIG environment variable to the full 28514path to pkg-config. 28515 28516Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS 28517and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config. 28518See the pkg-config man page for more details. 28519 28520To get pkg-config, see <http://pkg-config.freedesktop.org/>. 28521See \`config.log' for more details" "$LINENO" 5; } 28522else 28523 XSERVERCFLAGS_CFLAGS=$pkg_cv_XSERVERCFLAGS_CFLAGS 28524 XSERVERCFLAGS_LIBS=$pkg_cv_XSERVERCFLAGS_LIBS 28525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28526$as_echo "yes" >&6; } 28527 28528fi 28529 28530pkg_failed=no 28531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSERVERLIBS" >&5 28532$as_echo_n "checking for XSERVERLIBS... " >&6; } 28533 28534if test -n "$XSERVERLIBS_CFLAGS"; then 28535 pkg_cv_XSERVERLIBS_CFLAGS="$XSERVERLIBS_CFLAGS" 28536 elif test -n "$PKG_CONFIG"; then 28537 if test -n "$PKG_CONFIG" && \ 28538 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\""; } >&5 28539 ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5 28540 ac_status=$? 28541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28542 test $ac_status = 0; }; then 28543 pkg_cv_XSERVERLIBS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_LIBS" 2>/dev/null` 28544 test "x$?" != "x0" && pkg_failed=yes 28545else 28546 pkg_failed=yes 28547fi 28548 else 28549 pkg_failed=untried 28550fi 28551if test -n "$XSERVERLIBS_LIBS"; then 28552 pkg_cv_XSERVERLIBS_LIBS="$XSERVERLIBS_LIBS" 28553 elif test -n "$PKG_CONFIG"; then 28554 if test -n "$PKG_CONFIG" && \ 28555 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\""; } >&5 28556 ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5 28557 ac_status=$? 28558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28559 test $ac_status = 0; }; then 28560 pkg_cv_XSERVERLIBS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_LIBS" 2>/dev/null` 28561 test "x$?" != "x0" && pkg_failed=yes 28562else 28563 pkg_failed=yes 28564fi 28565 else 28566 pkg_failed=untried 28567fi 28568 28569 28570 28571if test $pkg_failed = yes; then 28572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28573$as_echo "no" >&6; } 28574 28575if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28576 _pkg_short_errors_supported=yes 28577else 28578 _pkg_short_errors_supported=no 28579fi 28580 if test $_pkg_short_errors_supported = yes; then 28581 XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$REQUIRED_LIBS" 2>&1` 28582 else 28583 XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$REQUIRED_LIBS" 2>&1` 28584 fi 28585 # Put the nasty error message in config.log where it belongs 28586 echo "$XSERVERLIBS_PKG_ERRORS" >&5 28587 28588 as_fn_error $? "Package requirements ($REQUIRED_LIBS) were not met: 28589 28590$XSERVERLIBS_PKG_ERRORS 28591 28592Consider adjusting the PKG_CONFIG_PATH environment variable if you 28593installed software in a non-standard prefix. 28594 28595Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS 28596and XSERVERLIBS_LIBS to avoid the need to call pkg-config. 28597See the pkg-config man page for more details." "$LINENO" 5 28598elif test $pkg_failed = untried; then 28599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28600$as_echo "no" >&6; } 28601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28602$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28603as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 28604is in your PATH or set the PKG_CONFIG environment variable to the full 28605path to pkg-config. 28606 28607Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS 28608and XSERVERLIBS_LIBS to avoid the need to call pkg-config. 28609See the pkg-config man page for more details. 28610 28611To get pkg-config, see <http://pkg-config.freedesktop.org/>. 28612See \`config.log' for more details" "$LINENO" 5; } 28613else 28614 XSERVERLIBS_CFLAGS=$pkg_cv_XSERVERLIBS_CFLAGS 28615 XSERVERLIBS_LIBS=$pkg_cv_XSERVERLIBS_LIBS 28616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28617$as_echo "yes" >&6; } 28618 28619fi 28620 28621 28622pkg_failed=no 28623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUNWIND" >&5 28624$as_echo_n "checking for LIBUNWIND... " >&6; } 28625 28626if test -n "$LIBUNWIND_CFLAGS"; then 28627 pkg_cv_LIBUNWIND_CFLAGS="$LIBUNWIND_CFLAGS" 28628 elif test -n "$PKG_CONFIG"; then 28629 if test -n "$PKG_CONFIG" && \ 28630 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5 28631 ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5 28632 ac_status=$? 28633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28634 test $ac_status = 0; }; then 28635 pkg_cv_LIBUNWIND_CFLAGS=`$PKG_CONFIG --cflags "libunwind" 2>/dev/null` 28636 test "x$?" != "x0" && pkg_failed=yes 28637else 28638 pkg_failed=yes 28639fi 28640 else 28641 pkg_failed=untried 28642fi 28643if test -n "$LIBUNWIND_LIBS"; then 28644 pkg_cv_LIBUNWIND_LIBS="$LIBUNWIND_LIBS" 28645 elif test -n "$PKG_CONFIG"; then 28646 if test -n "$PKG_CONFIG" && \ 28647 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5 28648 ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5 28649 ac_status=$? 28650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28651 test $ac_status = 0; }; then 28652 pkg_cv_LIBUNWIND_LIBS=`$PKG_CONFIG --libs "libunwind" 2>/dev/null` 28653 test "x$?" != "x0" && pkg_failed=yes 28654else 28655 pkg_failed=yes 28656fi 28657 else 28658 pkg_failed=untried 28659fi 28660 28661 28662 28663if test $pkg_failed = yes; then 28664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28665$as_echo "no" >&6; } 28666 28667if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28668 _pkg_short_errors_supported=yes 28669else 28670 _pkg_short_errors_supported=no 28671fi 28672 if test $_pkg_short_errors_supported = yes; then 28673 LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libunwind" 2>&1` 28674 else 28675 LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libunwind" 2>&1` 28676 fi 28677 # Put the nasty error message in config.log where it belongs 28678 echo "$LIBUNWIND_PKG_ERRORS" >&5 28679 28680 HAVE_LIBUNWIND=no 28681elif test $pkg_failed = untried; then 28682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28683$as_echo "no" >&6; } 28684 HAVE_LIBUNWIND=no 28685else 28686 LIBUNWIND_CFLAGS=$pkg_cv_LIBUNWIND_CFLAGS 28687 LIBUNWIND_LIBS=$pkg_cv_LIBUNWIND_LIBS 28688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28689$as_echo "yes" >&6; } 28690 HAVE_LIBUNWIND=yes 28691fi 28692if test "x$LIBUNWIND" = "xauto"; then 28693 LIBUNWIND="$HAVE_LIBUNWIND" 28694fi 28695 28696if test "x$LIBUNWIND" = "xyes"; then 28697 if test "x$HAVE_LIBUNWIND" != "xyes"; then 28698 as_fn_error $? "libunwind requested but not installed." "$LINENO" 5 28699 fi 28700 28701$as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h 28702 28703fi 28704 28705 if test "x$LIBUNWIND" = xyes; then 28706 HAVE_LIBUNWIND_TRUE= 28707 HAVE_LIBUNWIND_FALSE='#' 28708else 28709 HAVE_LIBUNWIND_TRUE='#' 28710 HAVE_LIBUNWIND_FALSE= 28711fi 28712 28713 28714# Autotools has some unfortunate issues with library handling. In order to 28715# get a server to rebuild when a dependency in the tree is changed, it must 28716# be listed in SERVERNAME_DEPENDENCIES. However, no system libraries may be 28717# listed there, or some versions of autotools will break (especially if a -L 28718# is required to find the library). So, we keep two sets of libraries 28719# detected: NAMESPACE_LIBS for in-tree libraries to be linked against, which 28720# will go into the _DEPENDENCIES and _LDADD of the server, and 28721# NAMESPACE_SYS_LIBS which will go into only the _LDADD. The 28722# NAMESPACEMODULES_LIBS detected from pkgconfig should always go in 28723# NAMESPACE_SYS_LIBS. 28724# 28725# XSERVER_LIBS is the set of in-tree libraries which all servers require. 28726# XSERVER_SYS_LIBS is the set of out-of-tree libraries which all servers 28727# require. 28728# 28729XSERVER_CFLAGS="${XSERVER_CFLAGS} ${XSERVERCFLAGS_CFLAGS}" 28730XSERVER_LIBS="$DIX_LIB $MI_LIB $OS_LIB" 28731XSERVER_SYS_LIBS="${XSERVERLIBS_LIBS} ${SYS_LIBS} ${LIBS}" 28732 28733 28734 28735UTILS_SYS_LIBS="${SYS_LIBS}" 28736 28737 28738# The Xorg binary needs to export symbols so that they can be used from modules 28739# Some platforms require extra flags to do this. libtool should set the 28740# necessary flags for each platform when -export-dynamic is passed to it. 28741LD_EXPORT_SYMBOLS_FLAG="-export-dynamic" 28742LD_NO_UNDEFINED_FLAG= 28743XORG_DRIVER_LIBS= 28744case "$host_os" in 28745 cygwin*) 28746 LD_EXPORT_SYMBOLS_FLAG="-Wl,--export-all,--out-implib,lib\$@.a" 28747 LD_NO_UNDEFINED_FLAG="-no-undefined -Wl,\$(top_builddir)/hw/xfree86/libXorg.exe.a" 28748 XORG_DRIVER_LIBS="-lXorg.exe -L\${moduledir} -lshadow -lfb -no-undefined" 28749 CYGWIN=yes 28750 ;; 28751 solaris*) 28752 # We use AC_LINK_IFELSE to generate a temporary program conftest$EXEEXT 28753 # that we can link against for testing if the system linker is new 28754 # enough to support -z parent=<program> for verifying loadable modules 28755 # are only calling functions defined in either the loading program or 28756 # the libraries they're linked with. 28757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28758/* end confdefs.h. */ 28759int main(int argc, char **argv) { return 0; } 28760_ACEOF 28761if ac_fn_c_try_link "$LINENO"; then : 28762 mv conftest$EXEEXT conftest.parent 28763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,parent=conftest.parent -G" >&5 28764$as_echo_n "checking whether the linker accepts -Wl,-z,parent=conftest.parent -G... " >&6; } 28765if ${xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G+:} false; then : 28766 $as_echo_n "(cached) " >&6 28767else 28768 28769 ax_save_FLAGS=$LDFLAGS 28770 LDFLAGS="-Wl,-z,parent=conftest.parent -G" 28771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28772/* end confdefs.h. */ 28773extern int main(int argc, char **argv); 28774 int call_main(void) { return main(0, (void *)0); } 28775_ACEOF 28776if ac_fn_c_try_link "$LINENO"; then : 28777 xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G=yes 28778else 28779 xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G=no 28780fi 28781rm -f core conftest.err conftest.$ac_objext \ 28782 conftest$ac_exeext conftest.$ac_ext 28783 LDFLAGS=$ax_save_FLAGS 28784fi 28785 28786eval xorg_check_linker_flags=$xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G 28787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_check_linker_flags" >&5 28788$as_echo "$xorg_check_linker_flags" >&6; } 28789if test "x$xorg_check_linker_flags" = xyes; then 28790 LD_NO_UNDEFINED_FLAG="-Wl,-z,defs -Wl,-z,parent=\$(top_builddir)/hw/xfree86/Xorg" 28791# Not set yet, since this gets exported in xorg-server.pc to all the drivers, 28792# and they're not all fixed to build correctly with it yet. 28793# XORG_DRIVER_LIBS="-Wl,-z,defs -Wl,-z,parent=${bindir}/Xorg" 28794 28795else 28796 : 28797fi 28798 28799 rm -f conftest.parent 28800 28801fi 28802rm -f core conftest.err conftest.$ac_objext \ 28803 conftest$ac_exeext conftest.$ac_ext 28804 ;; 28805esac 28806 28807 28808 28809 if test x"$CYGWIN" = xyes; then 28810 CYGWIN_TRUE= 28811 CYGWIN_FALSE='#' 28812else 28813 CYGWIN_TRUE='#' 28814 CYGWIN_FALSE= 28815fi 28816 28817 if test x"$LD_NO_UNDEFINED_FLAG" != x; then 28818 NO_UNDEFINED_TRUE= 28819 NO_UNDEFINED_FALSE='#' 28820else 28821 NO_UNDEFINED_TRUE='#' 28822 NO_UNDEFINED_FALSE= 28823fi 28824 28825 28826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SVR4 needs to be defined" >&5 28827$as_echo_n "checking if SVR4 needs to be defined... " >&6; } 28828cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28829/* end confdefs.h. */ 28830 28831#if defined(SVR4) || defined(__svr4__) || defined(__SVR4) 28832 I_AM_SVR4 28833#endif 28834 28835_ACEOF 28836if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28837 $EGREP "I_AM_SVR4" >/dev/null 2>&1; then : 28838 28839 28840$as_echo "#define SVR4 1" >>confdefs.h 28841 28842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28843$as_echo "yes" >&6; } 28844else 28845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28846$as_echo "no" >&6; } 28847fi 28848rm -f conftest* 28849 28850 28851XSERVER_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" 28852 28853 28854 28855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xvfb DDX" >&5 28856$as_echo_n "checking whether to build Xvfb DDX... " >&6; } 28857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XVFB" >&5 28858$as_echo "$XVFB" >&6; } 28859 if test "x$XVFB" = xyes; then 28860 XVFB_TRUE= 28861 XVFB_FALSE='#' 28862else 28863 XVFB_TRUE='#' 28864 XVFB_FALSE= 28865fi 28866 28867 28868if test "x$XVFB" = xyes; then 28869 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" 28870 XVFB_SYS_LIBS="$XVFBMODULES_LIBS $GLX_SYS_LIBS" 28871 28872 28873fi 28874 28875 28876 28877 28878pkg_failed=no 28879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XNESTMODULES" >&5 28880$as_echo_n "checking for XNESTMODULES... " >&6; } 28881 28882if test -n "$XNESTMODULES_CFLAGS"; then 28883 pkg_cv_XNESTMODULES_CFLAGS="$XNESTMODULES_CFLAGS" 28884 elif test -n "$PKG_CONFIG"; then 28885 if test -n "$PKG_CONFIG" && \ 28886 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11 xau \$XDMCP_MODULES\""; } >&5 28887 ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES") 2>&5 28888 ac_status=$? 28889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28890 test $ac_status = 0; }; then 28891 pkg_cv_XNESTMODULES_CFLAGS=`$PKG_CONFIG --cflags "$LIBXEXT x11 xau $XDMCP_MODULES" 2>/dev/null` 28892 test "x$?" != "x0" && pkg_failed=yes 28893else 28894 pkg_failed=yes 28895fi 28896 else 28897 pkg_failed=untried 28898fi 28899if test -n "$XNESTMODULES_LIBS"; then 28900 pkg_cv_XNESTMODULES_LIBS="$XNESTMODULES_LIBS" 28901 elif test -n "$PKG_CONFIG"; then 28902 if test -n "$PKG_CONFIG" && \ 28903 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11 xau \$XDMCP_MODULES\""; } >&5 28904 ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES") 2>&5 28905 ac_status=$? 28906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28907 test $ac_status = 0; }; then 28908 pkg_cv_XNESTMODULES_LIBS=`$PKG_CONFIG --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>/dev/null` 28909 test "x$?" != "x0" && pkg_failed=yes 28910else 28911 pkg_failed=yes 28912fi 28913 else 28914 pkg_failed=untried 28915fi 28916 28917 28918 28919if test $pkg_failed = yes; then 28920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28921$as_echo "no" >&6; } 28922 28923if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28924 _pkg_short_errors_supported=yes 28925else 28926 _pkg_short_errors_supported=no 28927fi 28928 if test $_pkg_short_errors_supported = yes; then 28929 XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>&1` 28930 else 28931 XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>&1` 28932 fi 28933 # Put the nasty error message in config.log where it belongs 28934 echo "$XNESTMODULES_PKG_ERRORS" >&5 28935 28936 have_xnest=no 28937elif test $pkg_failed = untried; then 28938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28939$as_echo "no" >&6; } 28940 have_xnest=no 28941else 28942 XNESTMODULES_CFLAGS=$pkg_cv_XNESTMODULES_CFLAGS 28943 XNESTMODULES_LIBS=$pkg_cv_XNESTMODULES_LIBS 28944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28945$as_echo "yes" >&6; } 28946 have_xnest=yes 28947fi 28948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xnest DDX" >&5 28949$as_echo_n "checking whether to build Xnest DDX... " >&6; } 28950if test "x$XNEST" = xauto; then 28951 XNEST="$have_xnest" 28952fi 28953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XNEST" >&5 28954$as_echo "$XNEST" >&6; } 28955 if test "x$XNEST" = xyes; then 28956 XNEST_TRUE= 28957 XNEST_FALSE='#' 28958else 28959 XNEST_TRUE='#' 28960 XNEST_FALSE= 28961fi 28962 28963 28964if test "x$XNEST" = xyes; then 28965 if test "x$have_xnest" = xno; then 28966 as_fn_error $? "Xnest build explicitly requested, but required modules not found." "$LINENO" 5 28967 fi 28968 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" 28969 XNEST_SYS_LIBS="$XNESTMODULES_LIBS $GLX_SYS_LIBS" 28970 28971 28972fi 28973 28974 28975 28976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xorg DDX" >&5 28977$as_echo_n "checking whether to build Xorg DDX... " >&6; } 28978if test "x$XORG" = xauto; then 28979 XORG="yes" 28980 case $host_os in 28981 cygwin*) XORG="no" ;; 28982 mingw*) XORG="no" ;; 28983 darwin*) XORG="no" ;; 28984 esac 28985fi 28986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG" >&5 28987$as_echo "$XORG" >&6; } 28988 28989if test "x$XORG" = xyes; then 28990 XORG_DDXINCS='-I$(top_srcdir)/hw/xfree86 -I$(top_srcdir)/hw/xfree86/include -I$(top_srcdir)/hw/xfree86/common' 28991 XORG_OSINCS='-I$(top_srcdir)/hw/xfree86/os-support -I$(top_srcdir)/hw/xfree86/os-support/bus -I$(top_srcdir)/os' 28992 XORG_INCS="$XORG_DDXINCS $XORG_OSINCS" 28993 XORG_CFLAGS="$XORGSERVER_CFLAGS -DHAVE_XORG_CONFIG_H" 28994 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" 28995 28996 symbol_visibility= 28997 have_visibility=disabled 28998 if test x$SYMBOL_VISIBILITY != xno; then 28999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symbol visibility support" >&5 29000$as_echo_n "checking for symbol visibility support... " >&6; } 29001 if test x$GCC = xyes; then 29002 VISIBILITY_CFLAGS="-fvisibility=hidden" 29003 else 29004 if test x$SUNCC = xyes; then 29005 VISIBILITY_CFLAGS="-xldscope=hidden" 29006 else 29007 have_visibility=no 29008 fi 29009 fi 29010 if test x$have_visibility != xno; then 29011 save_CFLAGS="$CFLAGS" 29012 proto_inc=`$PKG_CONFIG --cflags xproto` 29013 CFLAGS="$CFLAGS $VISIBILITY_CFLAGS $proto_inc" 29014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29015/* end confdefs.h. */ 29016 29017 #include <X11/Xfuncproto.h> 29018 extern _X_HIDDEN int hidden_int; 29019 extern _X_EXPORT int public_int; 29020 extern _X_HIDDEN int hidden_int_func(void); 29021 extern _X_EXPORT int public_int_func(void); 29022int 29023main () 29024{ 29025 29026 ; 29027 return 0; 29028} 29029_ACEOF 29030if ac_fn_c_try_compile "$LINENO"; then : 29031 have_visibility=yes 29032else 29033 have_visibility=no 29034fi 29035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29036 CFLAGS=$save_CFLAGS 29037 fi 29038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_visibility" >&5 29039$as_echo "$have_visibility" >&6; } 29040 if test x$have_visibility != xno; then 29041 symbol_visibility=$VISIBILITY_CFLAGS 29042 XORG_CFLAGS="$XORG_CFLAGS $VISIBILITY_CFLAGS" 29043 XSERVER_CFLAGS="$XSERVER_CFLAGS $VISIBILITY_CFLAGS" 29044 fi 29045 fi 29046 29047 29048 xorg_bus_bsdpci=no 29049 xorg_bus_sparc=no 29050 29051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xorg PCI functions" >&5 29052$as_echo_n "checking whether to build Xorg PCI functions... " >&6; } 29053 if test "x$PCI" = xyes; then 29054 29055pkg_failed=no 29056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 29057$as_echo_n "checking for PCIACCESS... " >&6; } 29058 29059if test -n "$PCIACCESS_CFLAGS"; then 29060 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 29061 elif test -n "$PKG_CONFIG"; then 29062 if test -n "$PKG_CONFIG" && \ 29063 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPCIACCESS\""; } >&5 29064 ($PKG_CONFIG --exists --print-errors "$LIBPCIACCESS") 2>&5 29065 ac_status=$? 29066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29067 test $ac_status = 0; }; then 29068 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "$LIBPCIACCESS" 2>/dev/null` 29069 test "x$?" != "x0" && pkg_failed=yes 29070else 29071 pkg_failed=yes 29072fi 29073 else 29074 pkg_failed=untried 29075fi 29076if test -n "$PCIACCESS_LIBS"; then 29077 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 29078 elif test -n "$PKG_CONFIG"; then 29079 if test -n "$PKG_CONFIG" && \ 29080 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPCIACCESS\""; } >&5 29081 ($PKG_CONFIG --exists --print-errors "$LIBPCIACCESS") 2>&5 29082 ac_status=$? 29083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29084 test $ac_status = 0; }; then 29085 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "$LIBPCIACCESS" 2>/dev/null` 29086 test "x$?" != "x0" && pkg_failed=yes 29087else 29088 pkg_failed=yes 29089fi 29090 else 29091 pkg_failed=untried 29092fi 29093 29094 29095 29096if test $pkg_failed = yes; then 29097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29098$as_echo "no" >&6; } 29099 29100if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29101 _pkg_short_errors_supported=yes 29102else 29103 _pkg_short_errors_supported=no 29104fi 29105 if test $_pkg_short_errors_supported = yes; then 29106 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBPCIACCESS" 2>&1` 29107 else 29108 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBPCIACCESS" 2>&1` 29109 fi 29110 # Put the nasty error message in config.log where it belongs 29111 echo "$PCIACCESS_PKG_ERRORS" >&5 29112 29113 as_fn_error $? "Package requirements ($LIBPCIACCESS) were not met: 29114 29115$PCIACCESS_PKG_ERRORS 29116 29117Consider adjusting the PKG_CONFIG_PATH environment variable if you 29118installed software in a non-standard prefix. 29119 29120Alternatively, you may set the environment variables PCIACCESS_CFLAGS 29121and PCIACCESS_LIBS to avoid the need to call pkg-config. 29122See the pkg-config man page for more details." "$LINENO" 5 29123elif test $pkg_failed = untried; then 29124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29125$as_echo "no" >&6; } 29126 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29127$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29128as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 29129is in your PATH or set the PKG_CONFIG environment variable to the full 29130path to pkg-config. 29131 29132Alternatively, you may set the environment variables PCIACCESS_CFLAGS 29133and PCIACCESS_LIBS to avoid the need to call pkg-config. 29134See the pkg-config man page for more details. 29135 29136To get pkg-config, see <http://pkg-config.freedesktop.org/>. 29137See \`config.log' for more details" "$LINENO" 5; } 29138else 29139 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 29140 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 29141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29142$as_echo "yes" >&6; } 29143 29144fi 29145 SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $LIBPCIACCESS" 29146 XORG_SYS_LIBS="$XORG_SYS_LIBS $PCIACCESS_LIBS $LIBDRM_LIBS" 29147 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS $LIBDRM_CFLAGS" 29148 29149 29150$as_echo "#define XSERVER_LIBPCIACCESS 1" >>confdefs.h 29151 29152 29153 prefix_NONE= 29154 exec_prefix_NONE= 29155 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29156 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29157 eval ac_define_dir="\"$PCI_TXT_IDS_DIR\"" 29158 eval ac_define_dir="\"$ac_define_dir\"" 29159 PCI_TXT_IDS_PATH="$ac_define_dir" 29160 29161 29162cat >>confdefs.h <<_ACEOF 29163#define PCI_TXT_IDS_PATH "$ac_define_dir" 29164_ACEOF 29165 29166 test "$prefix_NONE" && prefix=NONE 29167 test "$exec_prefix_NONE" && exec_prefix=NONE 29168 29169 case $host_os in 29170 gnu* | freebsd* | kfreebsd*-gnu | netbsd* | openbsd* | solaris* | dragonfly*) 29171 xorg_bus_bsdpci="yes" 29172 ;; 29173 esac 29174 case $host_cpu in 29175 sparc*) 29176 xorg_bus_sparc="yes" 29177 ;; 29178 esac 29179 else 29180 if test "x$CONFIG_UDEV_KMS" = xyes; then 29181 as_fn_error $? "Platform device enumeration requires libpciaccess" "$LINENO" 5 29182 fi 29183 if test "x$INT10MODULE" = xyes && test "x$INT10" != xstub; then 29184 as_fn_error $? "Cannot build int10 without libpciaccess" "$LINENO" 5 29185 fi 29186 fi 29187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCI" >&5 29188$as_echo "$PCI" >&6; } 29189 29190 if test "x$CONFIG_UDEV_KMS" = xyes; then 29191 29192$as_echo "#define XSERVER_PLATFORM_BUS 1" >>confdefs.h 29193 29194 fi 29195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSERVER_PLATFORM_BUS" >&5 29196$as_echo "$XSERVER_PLATFORM_BUS" >&6; } 29197 29198 case $host_os in 29199 linux*) 29200 XORG_OS_SUBDIR="linux" 29201 linux_acpi="no" 29202 case $host_cpu in 29203 i*86|amd64*|x86_64*|ia64*) 29204 linux_acpi=$enable_linux_acpi 29205 ;; 29206 *) 29207 ;; 29208 esac 29209 for ac_header in linux/apm_bios.h 29210do : 29211 ac_fn_c_check_header_mongrel "$LINENO" "linux/apm_bios.h" "ac_cv_header_linux_apm_bios_h" "$ac_includes_default" 29212if test "x$ac_cv_header_linux_apm_bios_h" = xyes; then : 29213 cat >>confdefs.h <<_ACEOF 29214#define HAVE_LINUX_APM_BIOS_H 1 29215_ACEOF 29216 linux_apm=$enable_linux_apm 29217fi 29218 29219done 29220 29221 if test "x$linux_apm" = xyes -o "x$linux_acpi" = xyes; then 29222 29223$as_echo "#define XF86PM 1" >>confdefs.h 29224 29225 fi 29226 ;; 29227 freebsd* | kfreebsd*-gnu | dragonfly*) 29228 XORG_OS_SUBDIR="bsd" 29229 ;; 29230 netbsd*) 29231 XORG_OS_SUBDIR="bsd" 29232 ;; 29233 openbsd*) 29234 if test "x$ac_cv_BSD_APM" = xyes \ 29235 -o "x$ac_cv_BSD_KQUEUE_APM" = xyes; then 29236 XORG_CFLAGS="$XORG_CFLAGS -DXF86PM" 29237 fi 29238 XORG_OS_SUBDIR="bsd" 29239 ;; 29240 solaris*) 29241 XORG_OS_SUBDIR="solaris" 29242 XORG_CFLAGS="$XORG_CFLAGS -DXF86PM" 29243 for ac_header in sys/kd.h 29244do : 29245 ac_fn_c_check_header_mongrel "$LINENO" "sys/kd.h" "ac_cv_header_sys_kd_h" "$ac_includes_default" 29246if test "x$ac_cv_header_sys_kd_h" = xyes; then : 29247 cat >>confdefs.h <<_ACEOF 29248#define HAVE_SYS_KD_H 1 29249_ACEOF 29250 29251fi 29252 29253done 29254 29255 for ac_header in sys/vt.h 29256do : 29257 ac_fn_c_check_header_mongrel "$LINENO" "sys/vt.h" "ac_cv_header_sys_vt_h" "$ac_includes_default" 29258if test "x$ac_cv_header_sys_vt_h" = xyes; then : 29259 cat >>confdefs.h <<_ACEOF 29260#define HAVE_SYS_VT_H 1 29261_ACEOF 29262 solaris_vt=yes 29263else 29264 solaris_vt=no 29265fi 29266 29267done 29268 29269 # Check for minimum supported release 29270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris version" >&5 29271$as_echo_n "checking Solaris version... " >&6; } 29272 OS_MINOR=`echo ${host_os}|$SED -e 's/^.*solaris2\.//' -e s'/\..*$//'` 29273 if test "${OS_MINOR}" -ge 7 ; then 29274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris ${OS_MINOR}" >&5 29275$as_echo "Solaris ${OS_MINOR}" >&6; } 29276 else 29277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris \`echo ${host_os}|$SED -e 's/^.*solaris//\`" >&5 29278$as_echo "Solaris \`echo ${host_os}|$SED -e 's/^.*solaris//\`" >&6; } 29279 fi 29280 if test "${OS_MINOR}" -lt 8 ; then 29281 as_fn_error $? "This release no longer supports Solaris versions older than Solaris 8." "$LINENO" 5 29282 fi 29283 ac_fn_c_check_decl "$LINENO" "_LP64" "ac_cv_have_decl__LP64" "$ac_includes_default" 29284if test "x$ac_cv_have_decl__LP64" = xyes; then : 29285 SOLARIS_64="yes" 29286else 29287 SOLARIS_64="no" 29288fi 29289 29290 29291 case $host_cpu in 29292 sparc*) 29293 SOLARIS_INOUT_ARCH="sparcv8plus" 29294 ;; 29295 i*86|x86_64*) 29296 if test x$SOLARIS_64 = xyes ; then 29297 SOLARIS_INOUT_ARCH="amd64" 29298 else 29299 SOLARIS_INOUT_ARCH="ia32" 29300 fi 29301 ;; 29302 *) 29303 as_fn_error $? "Unsupported Solaris platform. Only SPARC & x86 \ 29304 are supported on Solaris in this release. If you are \ 29305 interested in porting Xorg to your platform, please email \ 29306 xorg@lists.freedesktop.org." "$LINENO" 5 ;; 29307 esac 29308 29309 ;; 29310 gnu*) 29311 XORG_OS_SUBDIR="hurd" 29312 ;; 29313 cygwin*) 29314 XORG_OS_SUBDIR="stub" 29315 ;; 29316 *) 29317 XORG_OS_SUBDIR="stub" 29318 { $as_echo "$as_me:${as_lineno-$LINENO}: Your OS is unknown. If you are interested in porting Xorg to your platform, 29319please email xorg@lists.freedesktop.org." >&5 29320$as_echo "$as_me: Your OS is unknown. If you are interested in porting Xorg to your platform, 29321please email xorg@lists.freedesktop.org." >&6;} 29322 ;; 29323 esac 29324 29325 if test "x$DGA" = xauto; then 29326 29327pkg_failed=no 29328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGA" >&5 29329$as_echo_n "checking for DGA... " >&6; } 29330 29331if test -n "$DGA_CFLAGS"; then 29332 pkg_cv_DGA_CFLAGS="$DGA_CFLAGS" 29333 elif test -n "$PKG_CONFIG"; then 29334 if test -n "$PKG_CONFIG" && \ 29335 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5 29336 ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5 29337 ac_status=$? 29338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29339 test $ac_status = 0; }; then 29340 pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "$DGAPROTO" 2>/dev/null` 29341 test "x$?" != "x0" && pkg_failed=yes 29342else 29343 pkg_failed=yes 29344fi 29345 else 29346 pkg_failed=untried 29347fi 29348if test -n "$DGA_LIBS"; then 29349 pkg_cv_DGA_LIBS="$DGA_LIBS" 29350 elif test -n "$PKG_CONFIG"; then 29351 if test -n "$PKG_CONFIG" && \ 29352 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5 29353 ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5 29354 ac_status=$? 29355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29356 test $ac_status = 0; }; then 29357 pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "$DGAPROTO" 2>/dev/null` 29358 test "x$?" != "x0" && pkg_failed=yes 29359else 29360 pkg_failed=yes 29361fi 29362 else 29363 pkg_failed=untried 29364fi 29365 29366 29367 29368if test $pkg_failed = yes; then 29369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29370$as_echo "no" >&6; } 29371 29372if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29373 _pkg_short_errors_supported=yes 29374else 29375 _pkg_short_errors_supported=no 29376fi 29377 if test $_pkg_short_errors_supported = yes; then 29378 DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DGAPROTO" 2>&1` 29379 else 29380 DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DGAPROTO" 2>&1` 29381 fi 29382 # Put the nasty error message in config.log where it belongs 29383 echo "$DGA_PKG_ERRORS" >&5 29384 29385 DGA=no 29386elif test $pkg_failed = untried; then 29387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29388$as_echo "no" >&6; } 29389 DGA=no 29390else 29391 DGA_CFLAGS=$pkg_cv_DGA_CFLAGS 29392 DGA_LIBS=$pkg_cv_DGA_LIBS 29393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29394$as_echo "yes" >&6; } 29395 DGA=yes 29396fi 29397 fi 29398 if test "x$DGA" = xyes; then 29399 XORG_MODULES="$XORG_MODULES $DGAPROTO" 29400 29401pkg_failed=no 29402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGA" >&5 29403$as_echo_n "checking for DGA... " >&6; } 29404 29405if test -n "$DGA_CFLAGS"; then 29406 pkg_cv_DGA_CFLAGS="$DGA_CFLAGS" 29407 elif test -n "$PKG_CONFIG"; then 29408 if test -n "$PKG_CONFIG" && \ 29409 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5 29410 ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5 29411 ac_status=$? 29412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29413 test $ac_status = 0; }; then 29414 pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "$DGAPROTO" 2>/dev/null` 29415 test "x$?" != "x0" && pkg_failed=yes 29416else 29417 pkg_failed=yes 29418fi 29419 else 29420 pkg_failed=untried 29421fi 29422if test -n "$DGA_LIBS"; then 29423 pkg_cv_DGA_LIBS="$DGA_LIBS" 29424 elif test -n "$PKG_CONFIG"; then 29425 if test -n "$PKG_CONFIG" && \ 29426 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5 29427 ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5 29428 ac_status=$? 29429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29430 test $ac_status = 0; }; then 29431 pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "$DGAPROTO" 2>/dev/null` 29432 test "x$?" != "x0" && pkg_failed=yes 29433else 29434 pkg_failed=yes 29435fi 29436 else 29437 pkg_failed=untried 29438fi 29439 29440 29441 29442if test $pkg_failed = yes; then 29443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29444$as_echo "no" >&6; } 29445 29446if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29447 _pkg_short_errors_supported=yes 29448else 29449 _pkg_short_errors_supported=no 29450fi 29451 if test $_pkg_short_errors_supported = yes; then 29452 DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DGAPROTO" 2>&1` 29453 else 29454 DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DGAPROTO" 2>&1` 29455 fi 29456 # Put the nasty error message in config.log where it belongs 29457 echo "$DGA_PKG_ERRORS" >&5 29458 29459 as_fn_error $? "Package requirements ($DGAPROTO) were not met: 29460 29461$DGA_PKG_ERRORS 29462 29463Consider adjusting the PKG_CONFIG_PATH environment variable if you 29464installed software in a non-standard prefix. 29465 29466Alternatively, you may set the environment variables DGA_CFLAGS 29467and DGA_LIBS to avoid the need to call pkg-config. 29468See the pkg-config man page for more details." "$LINENO" 5 29469elif test $pkg_failed = untried; then 29470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29471$as_echo "no" >&6; } 29472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29473$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29474as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 29475is in your PATH or set the PKG_CONFIG environment variable to the full 29476path to pkg-config. 29477 29478Alternatively, you may set the environment variables DGA_CFLAGS 29479and DGA_LIBS to avoid the need to call pkg-config. 29480See the pkg-config man page for more details. 29481 29482To get pkg-config, see <http://pkg-config.freedesktop.org/>. 29483See \`config.log' for more details" "$LINENO" 5; } 29484else 29485 DGA_CFLAGS=$pkg_cv_DGA_CFLAGS 29486 DGA_LIBS=$pkg_cv_DGA_LIBS 29487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29488$as_echo "yes" >&6; } 29489 29490fi 29491 29492$as_echo "#define DGA 1" >>confdefs.h 29493 29494 29495$as_echo "#define XFreeXDGA 1" >>confdefs.h 29496 29497 fi 29498 29499 if test "x$XF86VIDMODE" = xyes; then 29500 XORG_MODULES="$XORG_MODULES $VIDMODEPROTO" 29501 fi 29502 29503 if test -n "$XORG_MODULES"; then 29504 29505pkg_failed=no 29506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG_MODULES" >&5 29507$as_echo_n "checking for XORG_MODULES... " >&6; } 29508 29509if test -n "$XORG_MODULES_CFLAGS"; then 29510 pkg_cv_XORG_MODULES_CFLAGS="$XORG_MODULES_CFLAGS" 29511 elif test -n "$PKG_CONFIG"; then 29512 if test -n "$PKG_CONFIG" && \ 29513 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\""; } >&5 29514 ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5 29515 ac_status=$? 29516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29517 test $ac_status = 0; }; then 29518 pkg_cv_XORG_MODULES_CFLAGS=`$PKG_CONFIG --cflags "$XORG_MODULES" 2>/dev/null` 29519 test "x$?" != "x0" && pkg_failed=yes 29520else 29521 pkg_failed=yes 29522fi 29523 else 29524 pkg_failed=untried 29525fi 29526if test -n "$XORG_MODULES_LIBS"; then 29527 pkg_cv_XORG_MODULES_LIBS="$XORG_MODULES_LIBS" 29528 elif test -n "$PKG_CONFIG"; then 29529 if test -n "$PKG_CONFIG" && \ 29530 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\""; } >&5 29531 ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5 29532 ac_status=$? 29533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29534 test $ac_status = 0; }; then 29535 pkg_cv_XORG_MODULES_LIBS=`$PKG_CONFIG --libs "$XORG_MODULES" 2>/dev/null` 29536 test "x$?" != "x0" && pkg_failed=yes 29537else 29538 pkg_failed=yes 29539fi 29540 else 29541 pkg_failed=untried 29542fi 29543 29544 29545 29546if test $pkg_failed = yes; then 29547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29548$as_echo "no" >&6; } 29549 29550if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29551 _pkg_short_errors_supported=yes 29552else 29553 _pkg_short_errors_supported=no 29554fi 29555 if test $_pkg_short_errors_supported = yes; then 29556 XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XORG_MODULES" 2>&1` 29557 else 29558 XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XORG_MODULES" 2>&1` 29559 fi 29560 # Put the nasty error message in config.log where it belongs 29561 echo "$XORG_MODULES_PKG_ERRORS" >&5 29562 29563 as_fn_error $? "Package requirements ($XORG_MODULES) were not met: 29564 29565$XORG_MODULES_PKG_ERRORS 29566 29567Consider adjusting the PKG_CONFIG_PATH environment variable if you 29568installed software in a non-standard prefix. 29569 29570Alternatively, you may set the environment variables XORG_MODULES_CFLAGS 29571and XORG_MODULES_LIBS to avoid the need to call pkg-config. 29572See the pkg-config man page for more details." "$LINENO" 5 29573elif test $pkg_failed = untried; then 29574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29575$as_echo "no" >&6; } 29576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29577$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29578as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 29579is in your PATH or set the PKG_CONFIG environment variable to the full 29580path to pkg-config. 29581 29582Alternatively, you may set the environment variables XORG_MODULES_CFLAGS 29583and XORG_MODULES_LIBS to avoid the need to call pkg-config. 29584See the pkg-config man page for more details. 29585 29586To get pkg-config, see <http://pkg-config.freedesktop.org/>. 29587See \`config.log' for more details" "$LINENO" 5; } 29588else 29589 XORG_MODULES_CFLAGS=$pkg_cv_XORG_MODULES_CFLAGS 29590 XORG_MODULES_LIBS=$pkg_cv_XORG_MODULES_LIBS 29591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29592$as_echo "yes" >&6; } 29593 29594fi 29595 XORG_CFLAGS="$XORG_CFLAGS $XORG_MODULES_CFLAGS" 29596 XORG_SYS_LIBS="$XORG_SYS_LIBS $XORG_MODULES_LIBS" 29597 fi 29598 29599 if test "x$DRM" = xyes; then 29600 XORG_DRIVER_MODESETTING=yes 29601 fi 29602 29603 29604 29605 29606 29607 29608 29609 XF86CONFIGFILE="xorg.conf" 29610 XF86CONFIGDIR="xorg.conf.d" 29611 29612 CONFIGFILE="$sysconfdir/$XF86CONFIGFILE" 29613 LOGPREFIX="Xorg." 29614 XDG_DATA_HOME=".local/share" 29615 XDG_DATA_HOME_LOGDIR="xorg" 29616 29617$as_echo "#define XORG_SERVER 1" >>confdefs.h 29618 29619 29620$as_echo "#define XORGSERVER 1" >>confdefs.h 29621 29622 29623$as_echo "#define XFree86Server 1" >>confdefs.h 29624 29625 29626cat >>confdefs.h <<_ACEOF 29627#define XORG_VERSION_CURRENT $VENDOR_RELEASE 29628_ACEOF 29629 29630 29631$as_echo "#define NEED_XF86_TYPES 1" >>confdefs.h 29632 29633 29634$as_echo "#define NEED_XF86_PROTOTYPES 1" >>confdefs.h 29635 29636 29637$as_echo "#define __XSERVERNAME__ \"Xorg\"" >>confdefs.h 29638 29639 29640 prefix_NONE= 29641 exec_prefix_NONE= 29642 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29643 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29644 eval ac_define_dir="\"$XF86CONFIGFILE\"" 29645 eval ac_define_dir="\"$ac_define_dir\"" 29646 XCONFIGFILE="$ac_define_dir" 29647 29648 29649cat >>confdefs.h <<_ACEOF 29650#define XCONFIGFILE "$ac_define_dir" 29651_ACEOF 29652 29653 test "$prefix_NONE" && prefix=NONE 29654 test "$exec_prefix_NONE" && exec_prefix=NONE 29655 29656 29657 prefix_NONE= 29658 exec_prefix_NONE= 29659 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29660 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29661 eval ac_define_dir="\"$XF86CONFIGFILE\"" 29662 eval ac_define_dir="\"$ac_define_dir\"" 29663 XF86CONFIGFILE="$ac_define_dir" 29664 29665 29666cat >>confdefs.h <<_ACEOF 29667#define XF86CONFIGFILE "$ac_define_dir" 29668_ACEOF 29669 29670 test "$prefix_NONE" && prefix=NONE 29671 test "$exec_prefix_NONE" && exec_prefix=NONE 29672 29673 29674 prefix_NONE= 29675 exec_prefix_NONE= 29676 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29677 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29678 eval ac_define_dir="\"$XF86CONFIGDIR\"" 29679 eval ac_define_dir="\"$ac_define_dir\"" 29680 XCONFIGDIR="$ac_define_dir" 29681 29682 29683cat >>confdefs.h <<_ACEOF 29684#define XCONFIGDIR "$ac_define_dir" 29685_ACEOF 29686 29687 test "$prefix_NONE" && prefix=NONE 29688 test "$exec_prefix_NONE" && exec_prefix=NONE 29689 29690 29691 prefix_NONE= 29692 exec_prefix_NONE= 29693 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29694 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29695 eval ac_define_dir="\"$moduledir\"" 29696 eval ac_define_dir="\"$ac_define_dir\"" 29697 DEFAULT_MODULE_PATH="$ac_define_dir" 29698 29699 29700cat >>confdefs.h <<_ACEOF 29701#define DEFAULT_MODULE_PATH "$ac_define_dir" 29702_ACEOF 29703 29704 test "$prefix_NONE" && prefix=NONE 29705 test "$exec_prefix_NONE" && exec_prefix=NONE 29706 29707 29708 prefix_NONE= 29709 exec_prefix_NONE= 29710 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29711 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29712 eval ac_define_dir="\"$libdir\"" 29713 eval ac_define_dir="\"$ac_define_dir\"" 29714 DEFAULT_LIBRARY_PATH="$ac_define_dir" 29715 29716 29717cat >>confdefs.h <<_ACEOF 29718#define DEFAULT_LIBRARY_PATH "$ac_define_dir" 29719_ACEOF 29720 29721 test "$prefix_NONE" && prefix=NONE 29722 test "$exec_prefix_NONE" && exec_prefix=NONE 29723 29724 29725 prefix_NONE= 29726 exec_prefix_NONE= 29727 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29728 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29729 eval ac_define_dir="\"$logdir\"" 29730 eval ac_define_dir="\"$ac_define_dir\"" 29731 DEFAULT_LOGDIR="$ac_define_dir" 29732 29733 29734cat >>confdefs.h <<_ACEOF 29735#define DEFAULT_LOGDIR "$ac_define_dir" 29736_ACEOF 29737 29738 test "$prefix_NONE" && prefix=NONE 29739 test "$exec_prefix_NONE" && exec_prefix=NONE 29740 29741 29742 prefix_NONE= 29743 exec_prefix_NONE= 29744 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29745 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29746 eval ac_define_dir="\"$LOGPREFIX\"" 29747 eval ac_define_dir="\"$ac_define_dir\"" 29748 DEFAULT_LOGPREFIX="$ac_define_dir" 29749 29750 29751cat >>confdefs.h <<_ACEOF 29752#define DEFAULT_LOGPREFIX "$ac_define_dir" 29753_ACEOF 29754 29755 test "$prefix_NONE" && prefix=NONE 29756 test "$exec_prefix_NONE" && exec_prefix=NONE 29757 29758 29759 prefix_NONE= 29760 exec_prefix_NONE= 29761 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29762 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29763 eval ac_define_dir="\"$XDG_DATA_HOME\"" 29764 eval ac_define_dir="\"$ac_define_dir\"" 29765 DEFAULT_XDG_DATA_HOME="$ac_define_dir" 29766 29767 29768cat >>confdefs.h <<_ACEOF 29769#define DEFAULT_XDG_DATA_HOME "$ac_define_dir" 29770_ACEOF 29771 29772 test "$prefix_NONE" && prefix=NONE 29773 test "$exec_prefix_NONE" && exec_prefix=NONE 29774 29775 29776 prefix_NONE= 29777 exec_prefix_NONE= 29778 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 29779 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 29780 eval ac_define_dir="\"$XDG_DATA_HOME_LOGDIR\"" 29781 eval ac_define_dir="\"$ac_define_dir\"" 29782 DEFAULT_XDG_DATA_HOME_LOGDIR="$ac_define_dir" 29783 29784 29785cat >>confdefs.h <<_ACEOF 29786#define DEFAULT_XDG_DATA_HOME_LOGDIR "$ac_define_dir" 29787_ACEOF 29788 29789 test "$prefix_NONE" && prefix=NONE 29790 test "$exec_prefix_NONE" && exec_prefix=NONE 29791 29792 29793cat >>confdefs.h <<_ACEOF 29794#define __VENDORDWEBSUPPORT__ "$VENDOR_WEB" 29795_ACEOF 29796 29797 if test "x$VGAHW" = xyes; then 29798 29799$as_echo "#define WITH_VGAHW 1" >>confdefs.h 29800 29801 fi 29802 29803 driverdir="$moduledir/drivers" 29804 29805 29806 sdkdir="$includedir/xorg" 29807 extdir="$includedir/X11/extensions" 29808 sysconfigdir="$datadir/X11/$XF86CONFIGDIR" 29809 29810 29811 29812 29813 29814 # stuff the ABI versions into the pc file too 29815 extract_abi() { 29816 grep ^.define.*${1}_VERSION ${srcdir}/hw/xfree86/common/xf86Module.h | tr '(),' ' .' | awk '{ print $4$5 }' 29817 } 29818 abi_ansic=`extract_abi ANSIC` 29819 abi_videodrv=`extract_abi VIDEODRV` 29820 abi_xinput=`extract_abi XINPUT` 29821 abi_extension=`extract_abi EXTENSION` 29822 29823 29824 29825 29826fi 29827 if test "x$XORG" = xyes; then 29828 XORG_TRUE= 29829 XORG_FALSE='#' 29830else 29831 XORG_TRUE='#' 29832 XORG_FALSE= 29833fi 29834 29835 if test "x$PCI" = xyes; then 29836 XORG_BUS_PCI_TRUE= 29837 XORG_BUS_PCI_FALSE='#' 29838else 29839 XORG_BUS_PCI_TRUE='#' 29840 XORG_BUS_PCI_FALSE= 29841fi 29842 29843 if test "x$xorg_bus_bsdpci" = xyes; then 29844 XORG_BUS_BSDPCI_TRUE= 29845 XORG_BUS_BSDPCI_FALSE='#' 29846else 29847 XORG_BUS_BSDPCI_TRUE='#' 29848 XORG_BUS_BSDPCI_FALSE= 29849fi 29850 29851 if test "x$xorg_bus_sparc" = xyes; then 29852 XORG_BUS_SPARC_TRUE= 29853 XORG_BUS_SPARC_FALSE='#' 29854else 29855 XORG_BUS_SPARC_TRUE='#' 29856 XORG_BUS_SPARC_FALSE= 29857fi 29858 29859 if test "x$linux_acpi" = xyes; then 29860 LNXACPI_TRUE= 29861 LNXACPI_FALSE='#' 29862else 29863 LNXACPI_TRUE='#' 29864 LNXACPI_FALSE= 29865fi 29866 29867 if test "x$linux_apm" = xyes; then 29868 LNXAPM_TRUE= 29869 LNXAPM_FALSE='#' 29870else 29871 LNXAPM_TRUE='#' 29872 LNXAPM_FALSE= 29873fi 29874 29875 if test "x$solaris_vt" = xyes; then 29876 SOLARIS_VT_TRUE= 29877 SOLARIS_VT_FALSE='#' 29878else 29879 SOLARIS_VT_TRUE='#' 29880 SOLARIS_VT_FALSE= 29881fi 29882 29883 if test "x$DGA" = xyes; then 29884 DGA_TRUE= 29885 DGA_FALSE='#' 29886else 29887 DGA_TRUE='#' 29888 DGA_FALSE= 29889fi 29890 29891 if test "x$CONFIG_UDEV_KMS" = xyes; then 29892 XORG_BUS_PLATFORM_TRUE= 29893 XORG_BUS_PLATFORM_FALSE='#' 29894else 29895 XORG_BUS_PLATFORM_TRUE='#' 29896 XORG_BUS_PLATFORM_FALSE= 29897fi 29898 29899 if test "x$XORG_DRIVER_MODESETTING" = xyes; then 29900 XORG_DRIVER_MODESETTING_TRUE= 29901 XORG_DRIVER_MODESETTING_FALSE='#' 29902else 29903 XORG_DRIVER_MODESETTING_TRUE='#' 29904 XORG_DRIVER_MODESETTING_FALSE= 29905fi 29906 29907 29908if test "x$GLAMOR" = xauto; then 29909 if echo "$XORG" "$XEPHYR" "$XWAYLAND" | grep -q yes ; then 29910 GLAMOR=yes 29911 fi 29912fi 29913 29914 if test "x$GLAMOR" = xyes; then 29915 GLAMOR_TRUE= 29916 GLAMOR_FALSE='#' 29917else 29918 GLAMOR_TRUE='#' 29919 GLAMOR_FALSE= 29920fi 29921 29922 29923if test "x$GLAMOR" = xyes; then 29924 29925$as_echo "#define GLAMOR 1" >>confdefs.h 29926 29927 29928pkg_failed=no 29929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLAMOR" >&5 29930$as_echo_n "checking for GLAMOR... " >&6; } 29931 29932if test -n "$GLAMOR_CFLAGS"; then 29933 pkg_cv_GLAMOR_CFLAGS="$GLAMOR_CFLAGS" 29934 elif test -n "$PKG_CONFIG"; then 29935 if test -n "$PKG_CONFIG" && \ 29936 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy\""; } >&5 29937 ($PKG_CONFIG --exists --print-errors "epoxy") 2>&5 29938 ac_status=$? 29939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29940 test $ac_status = 0; }; then 29941 pkg_cv_GLAMOR_CFLAGS=`$PKG_CONFIG --cflags "epoxy" 2>/dev/null` 29942 test "x$?" != "x0" && pkg_failed=yes 29943else 29944 pkg_failed=yes 29945fi 29946 else 29947 pkg_failed=untried 29948fi 29949if test -n "$GLAMOR_LIBS"; then 29950 pkg_cv_GLAMOR_LIBS="$GLAMOR_LIBS" 29951 elif test -n "$PKG_CONFIG"; then 29952 if test -n "$PKG_CONFIG" && \ 29953 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy\""; } >&5 29954 ($PKG_CONFIG --exists --print-errors "epoxy") 2>&5 29955 ac_status=$? 29956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29957 test $ac_status = 0; }; then 29958 pkg_cv_GLAMOR_LIBS=`$PKG_CONFIG --libs "epoxy" 2>/dev/null` 29959 test "x$?" != "x0" && pkg_failed=yes 29960else 29961 pkg_failed=yes 29962fi 29963 else 29964 pkg_failed=untried 29965fi 29966 29967 29968 29969if test $pkg_failed = yes; then 29970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29971$as_echo "no" >&6; } 29972 29973if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29974 _pkg_short_errors_supported=yes 29975else 29976 _pkg_short_errors_supported=no 29977fi 29978 if test $_pkg_short_errors_supported = yes; then 29979 GLAMOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "epoxy" 2>&1` 29980 else 29981 GLAMOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "epoxy" 2>&1` 29982 fi 29983 # Put the nasty error message in config.log where it belongs 29984 echo "$GLAMOR_PKG_ERRORS" >&5 29985 29986 as_fn_error $? "Package requirements (epoxy) were not met: 29987 29988$GLAMOR_PKG_ERRORS 29989 29990Consider adjusting the PKG_CONFIG_PATH environment variable if you 29991installed software in a non-standard prefix. 29992 29993Alternatively, you may set the environment variables GLAMOR_CFLAGS 29994and GLAMOR_LIBS to avoid the need to call pkg-config. 29995See the pkg-config man page for more details." "$LINENO" 5 29996elif test $pkg_failed = untried; then 29997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29998$as_echo "no" >&6; } 29999 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30000$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30001as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 30002is in your PATH or set the PKG_CONFIG environment variable to the full 30003path to pkg-config. 30004 30005Alternatively, you may set the environment variables GLAMOR_CFLAGS 30006and GLAMOR_LIBS to avoid the need to call pkg-config. 30007See the pkg-config man page for more details. 30008 30009To get pkg-config, see <http://pkg-config.freedesktop.org/>. 30010See \`config.log' for more details" "$LINENO" 5; } 30011else 30012 GLAMOR_CFLAGS=$pkg_cv_GLAMOR_CFLAGS 30013 GLAMOR_LIBS=$pkg_cv_GLAMOR_LIBS 30014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30015$as_echo "yes" >&6; } 30016 30017fi 30018 30019 if test -n "$PKG_CONFIG" && \ 30020 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy >= 1.4.4\""; } >&5 30021 ($PKG_CONFIG --exists --print-errors "epoxy >= 1.4.4") 2>&5 30022 ac_status=$? 30023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30024 test $ac_status = 0; }; then 30025 30026$as_echo "#define GLAMOR_HAS_EGL_QUERY_DMABUF 1" >>confdefs.h 30027 30028fi 30029 30030 if test -n "$PKG_CONFIG" && \ 30031 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy >= 1.5.4\""; } >&5 30032 ($PKG_CONFIG --exists --print-errors "epoxy >= 1.5.4") 2>&5 30033 ac_status=$? 30034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30035 test $ac_status = 0; }; then 30036 30037$as_echo "#define GLAMOR_HAS_EGL_QUERY_DRIVER 1" >>confdefs.h 30038 30039fi 30040 30041 30042pkg_failed=no 30043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GBM" >&5 30044$as_echo_n "checking for GBM... " >&6; } 30045 30046if test -n "$GBM_CFLAGS"; then 30047 pkg_cv_GBM_CFLAGS="$GBM_CFLAGS" 30048 elif test -n "$PKG_CONFIG"; then 30049 if test -n "$PKG_CONFIG" && \ 30050 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"\$LIBGBM\"\""; } >&5 30051 ($PKG_CONFIG --exists --print-errors ""$LIBGBM"") 2>&5 30052 ac_status=$? 30053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30054 test $ac_status = 0; }; then 30055 pkg_cv_GBM_CFLAGS=`$PKG_CONFIG --cflags ""$LIBGBM"" 2>/dev/null` 30056 test "x$?" != "x0" && pkg_failed=yes 30057else 30058 pkg_failed=yes 30059fi 30060 else 30061 pkg_failed=untried 30062fi 30063if test -n "$GBM_LIBS"; then 30064 pkg_cv_GBM_LIBS="$GBM_LIBS" 30065 elif test -n "$PKG_CONFIG"; then 30066 if test -n "$PKG_CONFIG" && \ 30067 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"\$LIBGBM\"\""; } >&5 30068 ($PKG_CONFIG --exists --print-errors ""$LIBGBM"") 2>&5 30069 ac_status=$? 30070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30071 test $ac_status = 0; }; then 30072 pkg_cv_GBM_LIBS=`$PKG_CONFIG --libs ""$LIBGBM"" 2>/dev/null` 30073 test "x$?" != "x0" && pkg_failed=yes 30074else 30075 pkg_failed=yes 30076fi 30077 else 30078 pkg_failed=untried 30079fi 30080 30081 30082 30083if test $pkg_failed = yes; then 30084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30085$as_echo "no" >&6; } 30086 30087if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30088 _pkg_short_errors_supported=yes 30089else 30090 _pkg_short_errors_supported=no 30091fi 30092 if test $_pkg_short_errors_supported = yes; then 30093 GBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""$LIBGBM"" 2>&1` 30094 else 30095 GBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""$LIBGBM"" 2>&1` 30096 fi 30097 # Put the nasty error message in config.log where it belongs 30098 echo "$GBM_PKG_ERRORS" >&5 30099 30100 GBM=no 30101elif test $pkg_failed = untried; then 30102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30103$as_echo "no" >&6; } 30104 GBM=no 30105else 30106 GBM_CFLAGS=$pkg_cv_GBM_CFLAGS 30107 GBM_LIBS=$pkg_cv_GBM_LIBS 30108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30109$as_echo "yes" >&6; } 30110 GBM=yes 30111fi 30112 if test "x$GBM" = xyes; then 30113 30114$as_echo "#define GLAMOR_HAS_GBM 1" >>confdefs.h 30115 30116 ac_fn_c_check_decl "$LINENO" "GBM_BO_USE_LINEAR" "ac_cv_have_decl_GBM_BO_USE_LINEAR" "#include <stdlib.h> 30117 #include <gbm.h> 30118" 30119if test "x$ac_cv_have_decl_GBM_BO_USE_LINEAR" = xyes; then : 30120 30121$as_echo "#define GLAMOR_HAS_GBM_LINEAR 1" >>confdefs.h 30122 30123fi 30124 30125 if test -n "$PKG_CONFIG" && \ 30126 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 17.1.0\""; } >&5 30127 ($PKG_CONFIG --exists --print-errors "gbm >= 17.1.0") 2>&5 30128 ac_status=$? 30129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30130 test $ac_status = 0; }; then 30131 30132$as_echo "#define GBM_BO_WITH_MODIFIERS 1" >>confdefs.h 30133 30134fi 30135 else 30136 if test "x$XORG" = xyes; then 30137 as_fn_error $? "Glamor for Xorg requires $LIBGBM" "$LINENO" 5 30138 fi 30139 fi 30140fi 30141 if test "x$GBM" = xyes; then 30142 GLAMOR_EGL_TRUE= 30143 GLAMOR_EGL_FALSE='#' 30144else 30145 GLAMOR_EGL_TRUE='#' 30146 GLAMOR_EGL_FALSE= 30147fi 30148 30149 30150 30151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build XWin DDX" >&5 30152$as_echo_n "checking whether to build XWin DDX... " >&6; } 30153if test "x$XWIN" = xauto; then 30154 case $host_os in 30155 cygwin*) XWIN="yes" ;; 30156 mingw*) XWIN="yes" ;; 30157 *) XWIN="no" ;; 30158 esac 30159fi 30160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XWIN" >&5 30161$as_echo "$XWIN" >&6; } 30162 30163if test "x$XWIN" = xyes; then 30164 30165 prefix_NONE= 30166 exec_prefix_NONE= 30167 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 30168 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 30169 eval ac_define_dir="\"$logdir\"" 30170 eval ac_define_dir="\"$ac_define_dir\"" 30171 DEFAULT_LOGDIR="$ac_define_dir" 30172 30173 30174cat >>confdefs.h <<_ACEOF 30175#define DEFAULT_LOGDIR "$ac_define_dir" 30176_ACEOF 30177 30178 test "$prefix_NONE" && prefix=NONE 30179 test "$exec_prefix_NONE" && exec_prefix=NONE 30180 30181 30182cat >>confdefs.h <<_ACEOF 30183#define XORG_VERSION_CURRENT $VENDOR_RELEASE 30184_ACEOF 30185 30186 30187cat >>confdefs.h <<_ACEOF 30188#define __VENDORDWEBSUPPORT__ "$VENDOR_WEB" 30189_ACEOF 30190 30191 if test -n "$ac_tool_prefix"; then 30192 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 30193set dummy ${ac_tool_prefix}windres; ac_word=$2 30194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30195$as_echo_n "checking for $ac_word... " >&6; } 30196if ${ac_cv_prog_WINDRES+:} false; then : 30197 $as_echo_n "(cached) " >&6 30198else 30199 if test -n "$WINDRES"; then 30200 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 30201else 30202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30203for as_dir in $PATH 30204do 30205 IFS=$as_save_IFS 30206 test -z "$as_dir" && as_dir=. 30207 for ac_exec_ext in '' $ac_executable_extensions; do 30208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30209 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 30210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30211 break 2 30212 fi 30213done 30214 done 30215IFS=$as_save_IFS 30216 30217fi 30218fi 30219WINDRES=$ac_cv_prog_WINDRES 30220if test -n "$WINDRES"; then 30221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 30222$as_echo "$WINDRES" >&6; } 30223else 30224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30225$as_echo "no" >&6; } 30226fi 30227 30228 30229fi 30230if test -z "$ac_cv_prog_WINDRES"; then 30231 ac_ct_WINDRES=$WINDRES 30232 # Extract the first word of "windres", so it can be a program name with args. 30233set dummy windres; ac_word=$2 30234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30235$as_echo_n "checking for $ac_word... " >&6; } 30236if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : 30237 $as_echo_n "(cached) " >&6 30238else 30239 if test -n "$ac_ct_WINDRES"; then 30240 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 30241else 30242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30243for as_dir in $PATH 30244do 30245 IFS=$as_save_IFS 30246 test -z "$as_dir" && as_dir=. 30247 for ac_exec_ext in '' $ac_executable_extensions; do 30248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30249 ac_cv_prog_ac_ct_WINDRES="windres" 30250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30251 break 2 30252 fi 30253done 30254 done 30255IFS=$as_save_IFS 30256 30257fi 30258fi 30259ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 30260if test -n "$ac_ct_WINDRES"; then 30261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 30262$as_echo "$ac_ct_WINDRES" >&6; } 30263else 30264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30265$as_echo "no" >&6; } 30266fi 30267 30268 if test "x$ac_ct_WINDRES" = x; then 30269 WINDRES="" 30270 else 30271 case $cross_compiling:$ac_tool_warned in 30272yes:) 30273{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 30274$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 30275ac_tool_warned=yes ;; 30276esac 30277 WINDRES=$ac_ct_WINDRES 30278 fi 30279else 30280 WINDRES="$ac_cv_prog_WINDRES" 30281fi 30282 30283 30284 30285pkg_failed=no 30286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XWINMODULES" >&5 30287$as_echo_n "checking for XWINMODULES... " >&6; } 30288 30289if test -n "$XWINMODULES_CFLAGS"; then 30290 pkg_cv_XWINMODULES_CFLAGS="$XWINMODULES_CFLAGS" 30291 elif test -n "$PKG_CONFIG"; then 30292 if test -n "$PKG_CONFIG" && \ 30293 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm\""; } >&5 30294 ($PKG_CONFIG --exists --print-errors "x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm") 2>&5 30295 ac_status=$? 30296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30297 test $ac_status = 0; }; then 30298 pkg_cv_XWINMODULES_CFLAGS=`$PKG_CONFIG --cflags "x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm" 2>/dev/null` 30299 test "x$?" != "x0" && pkg_failed=yes 30300else 30301 pkg_failed=yes 30302fi 30303 else 30304 pkg_failed=untried 30305fi 30306if test -n "$XWINMODULES_LIBS"; then 30307 pkg_cv_XWINMODULES_LIBS="$XWINMODULES_LIBS" 30308 elif test -n "$PKG_CONFIG"; then 30309 if test -n "$PKG_CONFIG" && \ 30310 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm\""; } >&5 30311 ($PKG_CONFIG --exists --print-errors "x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm") 2>&5 30312 ac_status=$? 30313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30314 test $ac_status = 0; }; then 30315 pkg_cv_XWINMODULES_LIBS=`$PKG_CONFIG --libs "x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm" 2>/dev/null` 30316 test "x$?" != "x0" && pkg_failed=yes 30317else 30318 pkg_failed=yes 30319fi 30320 else 30321 pkg_failed=untried 30322fi 30323 30324 30325 30326if test $pkg_failed = yes; then 30327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30328$as_echo "no" >&6; } 30329 30330if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30331 _pkg_short_errors_supported=yes 30332else 30333 _pkg_short_errors_supported=no 30334fi 30335 if test $_pkg_short_errors_supported = yes; then 30336 XWINMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm" 2>&1` 30337 else 30338 XWINMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm" 2>&1` 30339 fi 30340 # Put the nasty error message in config.log where it belongs 30341 echo "$XWINMODULES_PKG_ERRORS" >&5 30342 30343 as_fn_error $? "Package requirements (x11 xdmcp xau xfixes x11-xcb xcb-aux xcb-image xcb-ewmh xcb-icccm) were not met: 30344 30345$XWINMODULES_PKG_ERRORS 30346 30347Consider adjusting the PKG_CONFIG_PATH environment variable if you 30348installed software in a non-standard prefix. 30349 30350Alternatively, you may set the environment variables XWINMODULES_CFLAGS 30351and XWINMODULES_LIBS to avoid the need to call pkg-config. 30352See the pkg-config man page for more details." "$LINENO" 5 30353elif test $pkg_failed = untried; then 30354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30355$as_echo "no" >&6; } 30356 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30357$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30358as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 30359is in your PATH or set the PKG_CONFIG environment variable to the full 30360path to pkg-config. 30361 30362Alternatively, you may set the environment variables XWINMODULES_CFLAGS 30363and XWINMODULES_LIBS to avoid the need to call pkg-config. 30364See the pkg-config man page for more details. 30365 30366To get pkg-config, see <http://pkg-config.freedesktop.org/>. 30367See \`config.log' for more details" "$LINENO" 5; } 30368else 30369 XWINMODULES_CFLAGS=$pkg_cv_XWINMODULES_CFLAGS 30370 XWINMODULES_LIBS=$pkg_cv_XWINMODULES_LIBS 30371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30372$as_echo "yes" >&6; } 30373 30374fi 30375 30376 if test "x$WINDOWSWM" = xauto; then 30377 if test -n "$PKG_CONFIG" && \ 30378 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WINDOWSWMPROTO\""; } >&5 30379 ($PKG_CONFIG --exists --print-errors "$WINDOWSWMPROTO") 2>&5 30380 ac_status=$? 30381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30382 test $ac_status = 0; }; then 30383 WINDOWSWM=yes 30384else 30385 WINDOWSWM=no 30386fi 30387 fi 30388 if test "x$WINDOWSWM" = xyes ; then 30389 30390pkg_failed=no 30391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WINDOWSWM" >&5 30392$as_echo_n "checking for WINDOWSWM... " >&6; } 30393 30394if test -n "$WINDOWSWM_CFLAGS"; then 30395 pkg_cv_WINDOWSWM_CFLAGS="$WINDOWSWM_CFLAGS" 30396 elif test -n "$PKG_CONFIG"; then 30397 if test -n "$PKG_CONFIG" && \ 30398 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WINDOWSWMPROTO\""; } >&5 30399 ($PKG_CONFIG --exists --print-errors "$WINDOWSWMPROTO") 2>&5 30400 ac_status=$? 30401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30402 test $ac_status = 0; }; then 30403 pkg_cv_WINDOWSWM_CFLAGS=`$PKG_CONFIG --cflags "$WINDOWSWMPROTO" 2>/dev/null` 30404 test "x$?" != "x0" && pkg_failed=yes 30405else 30406 pkg_failed=yes 30407fi 30408 else 30409 pkg_failed=untried 30410fi 30411if test -n "$WINDOWSWM_LIBS"; then 30412 pkg_cv_WINDOWSWM_LIBS="$WINDOWSWM_LIBS" 30413 elif test -n "$PKG_CONFIG"; then 30414 if test -n "$PKG_CONFIG" && \ 30415 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WINDOWSWMPROTO\""; } >&5 30416 ($PKG_CONFIG --exists --print-errors "$WINDOWSWMPROTO") 2>&5 30417 ac_status=$? 30418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30419 test $ac_status = 0; }; then 30420 pkg_cv_WINDOWSWM_LIBS=`$PKG_CONFIG --libs "$WINDOWSWMPROTO" 2>/dev/null` 30421 test "x$?" != "x0" && pkg_failed=yes 30422else 30423 pkg_failed=yes 30424fi 30425 else 30426 pkg_failed=untried 30427fi 30428 30429 30430 30431if test $pkg_failed = yes; then 30432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30433$as_echo "no" >&6; } 30434 30435if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30436 _pkg_short_errors_supported=yes 30437else 30438 _pkg_short_errors_supported=no 30439fi 30440 if test $_pkg_short_errors_supported = yes; then 30441 WINDOWSWM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$WINDOWSWMPROTO" 2>&1` 30442 else 30443 WINDOWSWM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$WINDOWSWMPROTO" 2>&1` 30444 fi 30445 # Put the nasty error message in config.log where it belongs 30446 echo "$WINDOWSWM_PKG_ERRORS" >&5 30447 30448 as_fn_error $? "Package requirements ($WINDOWSWMPROTO) were not met: 30449 30450$WINDOWSWM_PKG_ERRORS 30451 30452Consider adjusting the PKG_CONFIG_PATH environment variable if you 30453installed software in a non-standard prefix. 30454 30455Alternatively, you may set the environment variables WINDOWSWM_CFLAGS 30456and WINDOWSWM_LIBS to avoid the need to call pkg-config. 30457See the pkg-config man page for more details." "$LINENO" 5 30458elif test $pkg_failed = untried; then 30459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30460$as_echo "no" >&6; } 30461 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30463as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 30464is in your PATH or set the PKG_CONFIG environment variable to the full 30465path to pkg-config. 30466 30467Alternatively, you may set the environment variables WINDOWSWM_CFLAGS 30468and WINDOWSWM_LIBS to avoid the need to call pkg-config. 30469See the pkg-config man page for more details. 30470 30471To get pkg-config, see <http://pkg-config.freedesktop.org/>. 30472See \`config.log' for more details" "$LINENO" 5; } 30473else 30474 WINDOWSWM_CFLAGS=$pkg_cv_WINDOWSWM_CFLAGS 30475 WINDOWSWM_LIBS=$pkg_cv_WINDOWSWM_LIBS 30476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30477$as_echo "yes" >&6; } 30478 30479fi 30480 XWINMODULES_CFLAGS="$XWINMODULES_CFLAGS $WINDOWSWM_CFLAGS" 30481 30482$as_echo "#define ROOTLESS 1" >>confdefs.h 30483 30484 fi 30485 30486 if test "x$WINDOWSDRI" = xauto; then 30487 if test -n "$PKG_CONFIG" && \ 30488 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"windowsdriproto\""; } >&5 30489 ($PKG_CONFIG --exists --print-errors "windowsdriproto") 2>&5 30490 ac_status=$? 30491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30492 test $ac_status = 0; }; then 30493 WINDOWSDRI=yes 30494else 30495 WINDOWSDRI=no 30496fi 30497 fi 30498 if test "x$WINDOWSDRI" = xyes ; then 30499 30500pkg_failed=no 30501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WINDOWSDRI" >&5 30502$as_echo_n "checking for WINDOWSDRI... " >&6; } 30503 30504if test -n "$WINDOWSDRI_CFLAGS"; then 30505 pkg_cv_WINDOWSDRI_CFLAGS="$WINDOWSDRI_CFLAGS" 30506 elif test -n "$PKG_CONFIG"; then 30507 if test -n "$PKG_CONFIG" && \ 30508 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"windowsdriproto\""; } >&5 30509 ($PKG_CONFIG --exists --print-errors "windowsdriproto") 2>&5 30510 ac_status=$? 30511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30512 test $ac_status = 0; }; then 30513 pkg_cv_WINDOWSDRI_CFLAGS=`$PKG_CONFIG --cflags "windowsdriproto" 2>/dev/null` 30514 test "x$?" != "x0" && pkg_failed=yes 30515else 30516 pkg_failed=yes 30517fi 30518 else 30519 pkg_failed=untried 30520fi 30521if test -n "$WINDOWSDRI_LIBS"; then 30522 pkg_cv_WINDOWSDRI_LIBS="$WINDOWSDRI_LIBS" 30523 elif test -n "$PKG_CONFIG"; then 30524 if test -n "$PKG_CONFIG" && \ 30525 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"windowsdriproto\""; } >&5 30526 ($PKG_CONFIG --exists --print-errors "windowsdriproto") 2>&5 30527 ac_status=$? 30528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30529 test $ac_status = 0; }; then 30530 pkg_cv_WINDOWSDRI_LIBS=`$PKG_CONFIG --libs "windowsdriproto" 2>/dev/null` 30531 test "x$?" != "x0" && pkg_failed=yes 30532else 30533 pkg_failed=yes 30534fi 30535 else 30536 pkg_failed=untried 30537fi 30538 30539 30540 30541if test $pkg_failed = yes; then 30542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30543$as_echo "no" >&6; } 30544 30545if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30546 _pkg_short_errors_supported=yes 30547else 30548 _pkg_short_errors_supported=no 30549fi 30550 if test $_pkg_short_errors_supported = yes; then 30551 WINDOWSDRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "windowsdriproto" 2>&1` 30552 else 30553 WINDOWSDRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "windowsdriproto" 2>&1` 30554 fi 30555 # Put the nasty error message in config.log where it belongs 30556 echo "$WINDOWSDRI_PKG_ERRORS" >&5 30557 30558 as_fn_error $? "Package requirements (windowsdriproto) were not met: 30559 30560$WINDOWSDRI_PKG_ERRORS 30561 30562Consider adjusting the PKG_CONFIG_PATH environment variable if you 30563installed software in a non-standard prefix. 30564 30565Alternatively, you may set the environment variables WINDOWSDRI_CFLAGS 30566and WINDOWSDRI_LIBS to avoid the need to call pkg-config. 30567See the pkg-config man page for more details." "$LINENO" 5 30568elif test $pkg_failed = untried; then 30569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30570$as_echo "no" >&6; } 30571 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30572$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30573as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 30574is in your PATH or set the PKG_CONFIG environment variable to the full 30575path to pkg-config. 30576 30577Alternatively, you may set the environment variables WINDOWSDRI_CFLAGS 30578and WINDOWSDRI_LIBS to avoid the need to call pkg-config. 30579See the pkg-config man page for more details. 30580 30581To get pkg-config, see <http://pkg-config.freedesktop.org/>. 30582See \`config.log' for more details" "$LINENO" 5; } 30583else 30584 WINDOWSDRI_CFLAGS=$pkg_cv_WINDOWSDRI_CFLAGS 30585 WINDOWSDRI_LIBS=$pkg_cv_WINDOWSDRI_LIBS 30586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30587$as_echo "yes" >&6; } 30588 30589fi 30590 fi 30591 30592 case $host_os in 30593 cygwin*) 30594 XWIN_SERVER_NAME=XWin 30595 30596$as_echo "#define HAS_DEVWINDOWS 1" >>confdefs.h 30597 30598 ;; 30599 mingw*) 30600 XWIN_SERVER_NAME=Xming 30601 30602$as_echo "#define RELOCATE_PROJECTROOT 1" >>confdefs.h 30603 30604 30605$as_echo "#define HAS_WINSOCK 1" >>confdefs.h 30606 30607 XWIN_SYS_LIBS="-lpthread -lws2_32" 30608 ;; 30609 esac 30610 30611 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" 30612 XWIN_SYS_LIBS="$XWIN_SYS_LIBS $XWINMODULES_LIBS" 30613 30614 30615 30616 30617 if test "x$DEBUGGING" = xyes; then 30618 30619$as_echo "#define CYGDEBUG 1" >>confdefs.h 30620 30621 30622$as_echo "#define CYGWINDOWING_DEBUG 1" >>confdefs.h 30623 30624 30625$as_echo "#define CYGMULTIWINDOW_DEBUG 1" >>confdefs.h 30626 30627 fi 30628 30629 30630$as_echo "#define DDXOSVERRORF 1" >>confdefs.h 30631 30632 30633$as_echo "#define DDXBEFORERESET 1" >>confdefs.h 30634 30635 30636 if test "x$XWIN" = xyes && test "x$GLX" = xyes ; then 30637 # Extract the first word of "python3", so it can be a program name with args. 30638set dummy python3; ac_word=$2 30639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30640$as_echo_n "checking for $ac_word... " >&6; } 30641if ${ac_cv_prog_PYTHON3+:} false; then : 30642 $as_echo_n "(cached) " >&6 30643else 30644 if test -n "$PYTHON3"; then 30645 ac_cv_prog_PYTHON3="$PYTHON3" # Let the user override the test. 30646else 30647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30648for as_dir in $PATH 30649do 30650 IFS=$as_save_IFS 30651 test -z "$as_dir" && as_dir=. 30652 for ac_exec_ext in '' $ac_executable_extensions; do 30653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30654 ac_cv_prog_PYTHON3="python3" 30655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30656 break 2 30657 fi 30658done 30659 done 30660IFS=$as_save_IFS 30661 30662fi 30663fi 30664PYTHON3=$ac_cv_prog_PYTHON3 30665if test -n "$PYTHON3"; then 30666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5 30667$as_echo "$PYTHON3" >&6; } 30668else 30669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30670$as_echo "no" >&6; } 30671fi 30672 30673 30674 if test -z "$PYTHON3"; then 30675 as_fn_error $? "python3 not found" "$LINENO" 5 30676 fi 30677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module lxml" >&5 30678$as_echo_n "checking for python module lxml... " >&6; } 30679 $PYTHON3 -c "import lxml;" 30680 if test $? -ne 0 ; then 30681 as_fn_error $? "not found" "$LINENO" 5 30682 fi 30683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30684$as_echo "yes" >&6; } 30685 if test "x$KHRONOS_SPEC_DIR" = "xauto" ; then 30686 30687pkg_failed=no 30688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for KHRONOS_OPENGL_REGISTRY" >&5 30689$as_echo_n "checking for KHRONOS_OPENGL_REGISTRY... " >&6; } 30690 30691if test -n "$KHRONOS_OPENGL_REGISTRY_CFLAGS"; then 30692 pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS="$KHRONOS_OPENGL_REGISTRY_CFLAGS" 30693 elif test -n "$PKG_CONFIG"; then 30694 if test -n "$PKG_CONFIG" && \ 30695 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"khronos-opengl-registry\""; } >&5 30696 ($PKG_CONFIG --exists --print-errors "khronos-opengl-registry") 2>&5 30697 ac_status=$? 30698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30699 test $ac_status = 0; }; then 30700 pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS=`$PKG_CONFIG --cflags "khronos-opengl-registry" 2>/dev/null` 30701 test "x$?" != "x0" && pkg_failed=yes 30702else 30703 pkg_failed=yes 30704fi 30705 else 30706 pkg_failed=untried 30707fi 30708if test -n "$KHRONOS_OPENGL_REGISTRY_LIBS"; then 30709 pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS="$KHRONOS_OPENGL_REGISTRY_LIBS" 30710 elif test -n "$PKG_CONFIG"; then 30711 if test -n "$PKG_CONFIG" && \ 30712 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"khronos-opengl-registry\""; } >&5 30713 ($PKG_CONFIG --exists --print-errors "khronos-opengl-registry") 2>&5 30714 ac_status=$? 30715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30716 test $ac_status = 0; }; then 30717 pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS=`$PKG_CONFIG --libs "khronos-opengl-registry" 2>/dev/null` 30718 test "x$?" != "x0" && pkg_failed=yes 30719else 30720 pkg_failed=yes 30721fi 30722 else 30723 pkg_failed=untried 30724fi 30725 30726 30727 30728if test $pkg_failed = yes; then 30729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30730$as_echo "no" >&6; } 30731 30732if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30733 _pkg_short_errors_supported=yes 30734else 30735 _pkg_short_errors_supported=no 30736fi 30737 if test $_pkg_short_errors_supported = yes; then 30738 KHRONOS_OPENGL_REGISTRY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "khronos-opengl-registry" 2>&1` 30739 else 30740 KHRONOS_OPENGL_REGISTRY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "khronos-opengl-registry" 2>&1` 30741 fi 30742 # Put the nasty error message in config.log where it belongs 30743 echo "$KHRONOS_OPENGL_REGISTRY_PKG_ERRORS" >&5 30744 30745 as_fn_error $? "Package requirements (khronos-opengl-registry) were not met: 30746 30747$KHRONOS_OPENGL_REGISTRY_PKG_ERRORS 30748 30749Consider adjusting the PKG_CONFIG_PATH environment variable if you 30750installed software in a non-standard prefix. 30751 30752Alternatively, you may set the environment variables KHRONOS_OPENGL_REGISTRY_CFLAGS 30753and KHRONOS_OPENGL_REGISTRY_LIBS to avoid the need to call pkg-config. 30754See the pkg-config man page for more details." "$LINENO" 5 30755elif test $pkg_failed = untried; then 30756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30757$as_echo "no" >&6; } 30758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30759$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30760as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 30761is in your PATH or set the PKG_CONFIG environment variable to the full 30762path to pkg-config. 30763 30764Alternatively, you may set the environment variables KHRONOS_OPENGL_REGISTRY_CFLAGS 30765and KHRONOS_OPENGL_REGISTRY_LIBS to avoid the need to call pkg-config. 30766See the pkg-config man page for more details. 30767 30768To get pkg-config, see <http://pkg-config.freedesktop.org/>. 30769See \`config.log' for more details" "$LINENO" 5; } 30770else 30771 KHRONOS_OPENGL_REGISTRY_CFLAGS=$pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS 30772 KHRONOS_OPENGL_REGISTRY_LIBS=$pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS 30773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30774$as_echo "yes" >&6; } 30775 30776fi 30777 KHRONOS_SPEC_DIR=`pkg-config khronos-opengl-registry --variable=specdir` 30778 fi 30779 30780 fi 30781 30782fi 30783 if test "x$XWIN" = xyes; then 30784 XWIN_TRUE= 30785 XWIN_FALSE='#' 30786else 30787 XWIN_TRUE='#' 30788 XWIN_FALSE= 30789fi 30790 30791 if test "x$XWIN" = xyes && test "x$WINDOWSWM" = xyes; then 30792 XWIN_MULTIWINDOWEXTWM_TRUE= 30793 XWIN_MULTIWINDOWEXTWM_FALSE='#' 30794else 30795 XWIN_MULTIWINDOWEXTWM_TRUE='#' 30796 XWIN_MULTIWINDOWEXTWM_FALSE= 30797fi 30798 30799 if test "x$XWIN" = xyes && test "x$GLX" = xyes; then 30800 XWIN_GLX_WINDOWS_TRUE= 30801 XWIN_GLX_WINDOWS_FALSE='#' 30802else 30803 XWIN_GLX_WINDOWS_TRUE='#' 30804 XWIN_GLX_WINDOWS_FALSE= 30805fi 30806 30807 if test "x$XWIN" = xyes && test "x$WINDOWSDRI" = xyes; then 30808 XWIN_WINDOWS_DRI_TRUE= 30809 XWIN_WINDOWS_DRI_FALSE='#' 30810else 30811 XWIN_WINDOWS_DRI_TRUE='#' 30812 XWIN_WINDOWS_DRI_FALSE= 30813fi 30814 30815 30816if test "x$XQUARTZ" = xyes; then 30817 30818$as_echo "#define XQUARTZ 1" >>confdefs.h 30819 30820 30821$as_echo "#define ROOTLESS 1" >>confdefs.h 30822 30823 30824 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" 30825 30826 30827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xp_init in -lXplugin" >&5 30828$as_echo_n "checking for xp_init in -lXplugin... " >&6; } 30829if ${ac_cv_lib_Xplugin_xp_init+:} false; then : 30830 $as_echo_n "(cached) " >&6 30831else 30832 ac_check_lib_save_LIBS=$LIBS 30833LIBS="-lXplugin $LIBS" 30834cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30835/* end confdefs.h. */ 30836 30837/* Override any GCC internal prototype to avoid an error. 30838 Use char because int might match the return type of a GCC 30839 builtin and then its argument prototype would still apply. */ 30840#ifdef __cplusplus 30841extern "C" 30842#endif 30843char xp_init (); 30844int 30845main () 30846{ 30847return xp_init (); 30848 ; 30849 return 0; 30850} 30851_ACEOF 30852if ac_fn_c_try_link "$LINENO"; then : 30853 ac_cv_lib_Xplugin_xp_init=yes 30854else 30855 ac_cv_lib_Xplugin_xp_init=no 30856fi 30857rm -f core conftest.err conftest.$ac_objext \ 30858 conftest$ac_exeext conftest.$ac_ext 30859LIBS=$ac_check_lib_save_LIBS 30860fi 30861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xplugin_xp_init" >&5 30862$as_echo "$ac_cv_lib_Xplugin_xp_init" >&6; } 30863if test "x$ac_cv_lib_Xplugin_xp_init" = xyes; then : 30864 : 30865fi 30866 30867 30868 CFLAGS="${CFLAGS} -DROOTLESS_WORKAROUND -DROOTLESS_SAFEALPHA -DNO_ALLOCA" 30869 30870 30871pkg_failed=no 30872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPBPROXY" >&5 30873$as_echo_n "checking for XPBPROXY... " >&6; } 30874 30875if test -n "$XPBPROXY_CFLAGS"; then 30876 pkg_cv_XPBPROXY_CFLAGS="$XPBPROXY_CFLAGS" 30877 elif test -n "$PKG_CONFIG"; then 30878 if test -n "$PKG_CONFIG" && \ 30879 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$APPLEWMPROTO \$LIBAPPLEWM xfixes x11\""; } >&5 30880 ($PKG_CONFIG --exists --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11") 2>&5 30881 ac_status=$? 30882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30883 test $ac_status = 0; }; then 30884 pkg_cv_XPBPROXY_CFLAGS=`$PKG_CONFIG --cflags "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>/dev/null` 30885 test "x$?" != "x0" && pkg_failed=yes 30886else 30887 pkg_failed=yes 30888fi 30889 else 30890 pkg_failed=untried 30891fi 30892if test -n "$XPBPROXY_LIBS"; then 30893 pkg_cv_XPBPROXY_LIBS="$XPBPROXY_LIBS" 30894 elif test -n "$PKG_CONFIG"; then 30895 if test -n "$PKG_CONFIG" && \ 30896 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$APPLEWMPROTO \$LIBAPPLEWM xfixes x11\""; } >&5 30897 ($PKG_CONFIG --exists --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11") 2>&5 30898 ac_status=$? 30899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30900 test $ac_status = 0; }; then 30901 pkg_cv_XPBPROXY_LIBS=`$PKG_CONFIG --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>/dev/null` 30902 test "x$?" != "x0" && pkg_failed=yes 30903else 30904 pkg_failed=yes 30905fi 30906 else 30907 pkg_failed=untried 30908fi 30909 30910 30911 30912if test $pkg_failed = yes; then 30913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30914$as_echo "no" >&6; } 30915 30916if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30917 _pkg_short_errors_supported=yes 30918else 30919 _pkg_short_errors_supported=no 30920fi 30921 if test $_pkg_short_errors_supported = yes; then 30922 XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>&1` 30923 else 30924 XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>&1` 30925 fi 30926 # Put the nasty error message in config.log where it belongs 30927 echo "$XPBPROXY_PKG_ERRORS" >&5 30928 30929 as_fn_error $? "Package requirements ($APPLEWMPROTO $LIBAPPLEWM xfixes x11) were not met: 30930 30931$XPBPROXY_PKG_ERRORS 30932 30933Consider adjusting the PKG_CONFIG_PATH environment variable if you 30934installed software in a non-standard prefix. 30935 30936Alternatively, you may set the environment variables XPBPROXY_CFLAGS 30937and XPBPROXY_LIBS to avoid the need to call pkg-config. 30938See the pkg-config man page for more details." "$LINENO" 5 30939elif test $pkg_failed = untried; then 30940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30941$as_echo "no" >&6; } 30942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30943$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30944as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 30945is in your PATH or set the PKG_CONFIG environment variable to the full 30946path to pkg-config. 30947 30948Alternatively, you may set the environment variables XPBPROXY_CFLAGS 30949and XPBPROXY_LIBS to avoid the need to call pkg-config. 30950See the pkg-config man page for more details. 30951 30952To get pkg-config, see <http://pkg-config.freedesktop.org/>. 30953See \`config.log' for more details" "$LINENO" 5; } 30954else 30955 XPBPROXY_CFLAGS=$pkg_cv_XPBPROXY_CFLAGS 30956 XPBPROXY_LIBS=$pkg_cv_XPBPROXY_LIBS 30957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30958$as_echo "yes" >&6; } 30959 30960fi 30961 30962 if test "x$XQUARTZ_SPARKLE" = xyes ; then 30963 30964$as_echo "#define XQUARTZ_SPARKLE 1" >>confdefs.h 30965 30966 fi 30967 30968 if test "x$STANDALONE_XPBPROXY" = xyes ; then 30969 30970$as_echo "#define STANDALONE_XPBPROXY 1" >>confdefs.h 30971 30972 fi 30973fi 30974 30975 if test "x$XQUARTZ" = xyes -o "x$XWIN" = xyes ; then 30976 PSEUDORAMIX_TRUE= 30977 PSEUDORAMIX_FALSE='#' 30978else 30979 PSEUDORAMIX_TRUE='#' 30980 PSEUDORAMIX_FALSE= 30981fi 30982 30983 30984# Support for objc in autotools is minimal and not documented. 30985OBJC='$(CC)' 30986OBJCLD='$(CCLD)' 30987OBJCLINK='$(LINK)' 30988OBJCFLAGS='$(CFLAGS)' 30989 30990 30991 30992 30993# internal, undocumented automake func follows :( 30994 30995depcc="$OBJC" am_compiler_list='gcc3 gcc' 30996 30997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 30998$as_echo_n "checking dependency style of $depcc... " >&6; } 30999if ${am_cv_OBJC_dependencies_compiler_type+:} false; then : 31000 $as_echo_n "(cached) " >&6 31001else 31002 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 31003 # We make a subdir and do the tests there. Otherwise we can end up 31004 # making bogus files that we don't know about and never remove. For 31005 # instance it was reported that on HP-UX the gcc test will end up 31006 # making a dummy file named 'D' -- because '-MD' means "put the output 31007 # in D". 31008 rm -rf conftest.dir 31009 mkdir conftest.dir 31010 # Copy depcomp to subdir because otherwise we won't find it if we're 31011 # using a relative directory. 31012 cp "$am_depcomp" conftest.dir 31013 cd conftest.dir 31014 # We will build objects and dependencies in a subdirectory because 31015 # it helps to detect inapplicable dependency modes. For instance 31016 # both Tru64's cc and ICC support -MD to output dependencies as a 31017 # side effect of compilation, but ICC will put the dependencies in 31018 # the current directory while Tru64 will put them in the object 31019 # directory. 31020 mkdir sub 31021 31022 am_cv_OBJC_dependencies_compiler_type=none 31023 if test "$am_compiler_list" = ""; then 31024 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 31025 fi 31026 am__universal=false 31027 31028 31029 for depmode in $am_compiler_list; do 31030 # Setup a source with many dependencies, because some compilers 31031 # like to wrap large dependency lists on column 80 (with \), and 31032 # we should not choose a depcomp mode which is confused by this. 31033 # 31034 # We need to recreate these files for each test, as the compiler may 31035 # overwrite some of them when testing with obscure command lines. 31036 # This happens at least with the AIX C compiler. 31037 : > sub/conftest.c 31038 for i in 1 2 3 4 5 6; do 31039 echo '#include "conftst'$i'.h"' >> sub/conftest.c 31040 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 31041 # Solaris 10 /bin/sh. 31042 echo '/* dummy */' > sub/conftst$i.h 31043 done 31044 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 31045 31046 # We check with '-c' and '-o' for the sake of the "dashmstdout" 31047 # mode. It turns out that the SunPro C++ compiler does not properly 31048 # handle '-M -o', and we need to detect this. Also, some Intel 31049 # versions had trouble with output in subdirs. 31050 am__obj=sub/conftest.${OBJEXT-o} 31051 am__minus_obj="-o $am__obj" 31052 case $depmode in 31053 gcc) 31054 # This depmode causes a compiler race in universal mode. 31055 test "$am__universal" = false || continue 31056 ;; 31057 nosideeffect) 31058 # After this tag, mechanisms are not by side-effect, so they'll 31059 # only be used when explicitly requested. 31060 if test "x$enable_dependency_tracking" = xyes; then 31061 continue 31062 else 31063 break 31064 fi 31065 ;; 31066 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 31067 # This compiler won't grok '-c -o', but also, the minuso test has 31068 # not run yet. These depmodes are late enough in the game, and 31069 # so weak that their functioning should not be impacted. 31070 am__obj=conftest.${OBJEXT-o} 31071 am__minus_obj= 31072 ;; 31073 none) break ;; 31074 esac 31075 if depmode=$depmode \ 31076 source=sub/conftest.c object=$am__obj \ 31077 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 31078 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 31079 >/dev/null 2>conftest.err && 31080 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 31081 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 31082 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 31083 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 31084 # icc doesn't choke on unknown options, it will just issue warnings 31085 # or remarks (even with -Werror). So we grep stderr for any message 31086 # that says an option was ignored or not supported. 31087 # When given -MP, icc 7.0 and 7.1 complain thusly: 31088 # icc: Command line warning: ignoring option '-M'; no argument required 31089 # The diagnosis changed in icc 8.0: 31090 # icc: Command line remark: option '-MP' not supported 31091 if (grep 'ignoring option' conftest.err || 31092 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 31093 am_cv_OBJC_dependencies_compiler_type=$depmode 31094 break 31095 fi 31096 fi 31097 done 31098 31099 cd .. 31100 rm -rf conftest.dir 31101else 31102 am_cv_OBJC_dependencies_compiler_type=none 31103fi 31104 31105fi 31106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5 31107$as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; } 31108OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type 31109 31110 if 31111 test "x$enable_dependency_tracking" != xno \ 31112 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then 31113 am__fastdepOBJC_TRUE= 31114 am__fastdepOBJC_FALSE='#' 31115else 31116 am__fastdepOBJC_TRUE='#' 31117 am__fastdepOBJC_FALSE= 31118fi 31119 31120 31121 if test "x$XQUARTZ" = xyes; then 31122 XQUARTZ_TRUE= 31123 XQUARTZ_FALSE='#' 31124else 31125 XQUARTZ_TRUE='#' 31126 XQUARTZ_FALSE= 31127fi 31128 31129 if test "x$XQUARTZ_SPARKLE" != "xno"; then 31130 XQUARTZ_SPARKLE_TRUE= 31131 XQUARTZ_SPARKLE_FALSE='#' 31132else 31133 XQUARTZ_SPARKLE_TRUE='#' 31134 XQUARTZ_SPARKLE_FALSE= 31135fi 31136 31137 if test "x$STANDALONE_XPBPROXY" = xyes; then 31138 STANDALONE_XPBPROXY_TRUE= 31139 STANDALONE_XPBPROXY_FALSE='#' 31140else 31141 STANDALONE_XPBPROXY_TRUE='#' 31142 STANDALONE_XPBPROXY_FALSE= 31143fi 31144 31145 31146 31147pkg_failed=no 31148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXMODULES" >&5 31149$as_echo_n "checking for DMXMODULES... " >&6; } 31150 31151if test -n "$DMXMODULES_CFLAGS"; then 31152 pkg_cv_DMXMODULES_CFLAGS="$DMXMODULES_CFLAGS" 31153 elif test -n "$PKG_CONFIG"; then 31154 if test -n "$PKG_CONFIG" && \ 31155 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmuu \$LIBXEXT x11 >= 1.6 xrender xfixes \$LIBXI \$DMXPROTO xau \$XDMCP_MODULES\""; } >&5 31156 ($PKG_CONFIG --exists --print-errors "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES") 2>&5 31157 ac_status=$? 31158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31159 test $ac_status = 0; }; then 31160 pkg_cv_DMXMODULES_CFLAGS=`$PKG_CONFIG --cflags "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>/dev/null` 31161 test "x$?" != "x0" && pkg_failed=yes 31162else 31163 pkg_failed=yes 31164fi 31165 else 31166 pkg_failed=untried 31167fi 31168if test -n "$DMXMODULES_LIBS"; then 31169 pkg_cv_DMXMODULES_LIBS="$DMXMODULES_LIBS" 31170 elif test -n "$PKG_CONFIG"; then 31171 if test -n "$PKG_CONFIG" && \ 31172 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmuu \$LIBXEXT x11 >= 1.6 xrender xfixes \$LIBXI \$DMXPROTO xau \$XDMCP_MODULES\""; } >&5 31173 ($PKG_CONFIG --exists --print-errors "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES") 2>&5 31174 ac_status=$? 31175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31176 test $ac_status = 0; }; then 31177 pkg_cv_DMXMODULES_LIBS=`$PKG_CONFIG --libs "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>/dev/null` 31178 test "x$?" != "x0" && pkg_failed=yes 31179else 31180 pkg_failed=yes 31181fi 31182 else 31183 pkg_failed=untried 31184fi 31185 31186 31187 31188if test $pkg_failed = yes; then 31189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31190$as_echo "no" >&6; } 31191 31192if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31193 _pkg_short_errors_supported=yes 31194else 31195 _pkg_short_errors_supported=no 31196fi 31197 if test $_pkg_short_errors_supported = yes; then 31198 DMXMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>&1` 31199 else 31200 DMXMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xmuu $LIBXEXT x11 >= 1.6 xrender xfixes $LIBXI $DMXPROTO xau $XDMCP_MODULES" 2>&1` 31201 fi 31202 # Put the nasty error message in config.log where it belongs 31203 echo "$DMXMODULES_PKG_ERRORS" >&5 31204 31205 have_dmx=no 31206elif test $pkg_failed = untried; then 31207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31208$as_echo "no" >&6; } 31209 have_dmx=no 31210else 31211 DMXMODULES_CFLAGS=$pkg_cv_DMXMODULES_CFLAGS 31212 DMXMODULES_LIBS=$pkg_cv_DMXMODULES_LIBS 31213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31214$as_echo "yes" >&6; } 31215 31216pkg_failed=no 31217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMXCONFIG_DEP" >&5 31218$as_echo_n "checking for XDMXCONFIG_DEP... " >&6; } 31219 31220if test -n "$XDMXCONFIG_DEP_CFLAGS"; then 31221 pkg_cv_XDMXCONFIG_DEP_CFLAGS="$XDMXCONFIG_DEP_CFLAGS" 31222 elif test -n "$PKG_CONFIG"; then 31223 if test -n "$PKG_CONFIG" && \ 31224 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt xpm x11\""; } >&5 31225 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt xpm x11") 2>&5 31226 ac_status=$? 31227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31228 test $ac_status = 0; }; then 31229 pkg_cv_XDMXCONFIG_DEP_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt xpm x11" 2>/dev/null` 31230 test "x$?" != "x0" && pkg_failed=yes 31231else 31232 pkg_failed=yes 31233fi 31234 else 31235 pkg_failed=untried 31236fi 31237if test -n "$XDMXCONFIG_DEP_LIBS"; then 31238 pkg_cv_XDMXCONFIG_DEP_LIBS="$XDMXCONFIG_DEP_LIBS" 31239 elif test -n "$PKG_CONFIG"; then 31240 if test -n "$PKG_CONFIG" && \ 31241 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt xpm x11\""; } >&5 31242 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt xpm x11") 2>&5 31243 ac_status=$? 31244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31245 test $ac_status = 0; }; then 31246 pkg_cv_XDMXCONFIG_DEP_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt xpm x11" 2>/dev/null` 31247 test "x$?" != "x0" && pkg_failed=yes 31248else 31249 pkg_failed=yes 31250fi 31251 else 31252 pkg_failed=untried 31253fi 31254 31255 31256 31257if test $pkg_failed = yes; then 31258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31259$as_echo "no" >&6; } 31260 31261if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31262 _pkg_short_errors_supported=yes 31263else 31264 _pkg_short_errors_supported=no 31265fi 31266 if test $_pkg_short_errors_supported = yes; then 31267 XDMXCONFIG_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt xpm x11" 2>&1` 31268 else 31269 XDMXCONFIG_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt xpm x11" 2>&1` 31270 fi 31271 # Put the nasty error message in config.log where it belongs 31272 echo "$XDMXCONFIG_DEP_PKG_ERRORS" >&5 31273 31274 have_dmx=no 31275elif test $pkg_failed = untried; then 31276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31277$as_echo "no" >&6; } 31278 have_dmx=no 31279else 31280 XDMXCONFIG_DEP_CFLAGS=$pkg_cv_XDMXCONFIG_DEP_CFLAGS 31281 XDMXCONFIG_DEP_LIBS=$pkg_cv_XDMXCONFIG_DEP_LIBS 31282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31283$as_echo "yes" >&6; } 31284 have_dmx=yes 31285fi 31286fi 31287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xdmx DDX" >&5 31288$as_echo_n "checking whether to build Xdmx DDX... " >&6; } 31289if test "x$DMX" = xauto; then 31290 DMX="$have_dmx" 31291 case $host_os in 31292 cygwin*) DMX="no" ;; 31293 mingw*) DMX="no" ;; 31294 darwin*) DMX="no" ;; 31295 esac 31296fi 31297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMX" >&5 31298$as_echo "$DMX" >&6; } 31299 if test "x$DMX" = xyes; then 31300 DMX_TRUE= 31301 DMX_FALSE='#' 31302else 31303 DMX_TRUE='#' 31304 DMX_FALSE= 31305fi 31306 31307 31308if test "x$DMX" = xyes; then 31309 if test "x$have_dmx" = xno; then 31310 as_fn_error $? "Xdmx build explicitly requested, but required 31311 modules not found." "$LINENO" 5 31312 fi 31313 DMX_INCLUDES="$XEXT_INC $RENDER_INC $RECORD_INC" 31314 XDMX_CFLAGS="$DMXMODULES_CFLAGS" 31315 XDMX_LIBS="$FB_LIB $MI_LIB $XEXT_LIB $RENDER_LIB $RECORD_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $DRI3_LIB $PRESENT_LIB $MIEXT_SYNC_LIB $MIEXT_SHADOW_LIB $MIEXT_DAMAGE_LIB $COMPOSITE_LIB $DAMAGE_LIB $MAIN_LIB $DIX_LIB $RANDR_LIB $CONFIG_LIB $OS_LIB $FIXES_LIB" 31316 XDMX_SYS_LIBS="$DMXMODULES_LIBS" 31317 31318 31319 31320 31321 ac_fn_c_check_header_mongrel "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default" 31322if test "x$ac_cv_header_linux_input_h" = xyes; then : 31323 DMX_BUILD_USB="yes" 31324else 31325 DMX_BUILD_USB="no" 31326fi 31327 31328 31329 31330 31331 31332pkg_failed=no 31333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXEXAMPLES_DEP" >&5 31334$as_echo_n "checking for DMXEXAMPLES_DEP... " >&6; } 31335 31336if test -n "$DMXEXAMPLES_DEP_CFLAGS"; then 31337 pkg_cv_DMXEXAMPLES_DEP_CFLAGS="$DMXEXAMPLES_DEP_CFLAGS" 31338 elif test -n "$PKG_CONFIG"; then 31339 if test -n "$PKG_CONFIG" && \ 31340 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXEXT x11\""; } >&5 31341 ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXEXT x11") 2>&5 31342 ac_status=$? 31343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31344 test $ac_status = 0; }; then 31345 pkg_cv_DMXEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBDMX $LIBXEXT x11" 2>/dev/null` 31346 test "x$?" != "x0" && pkg_failed=yes 31347else 31348 pkg_failed=yes 31349fi 31350 else 31351 pkg_failed=untried 31352fi 31353if test -n "$DMXEXAMPLES_DEP_LIBS"; then 31354 pkg_cv_DMXEXAMPLES_DEP_LIBS="$DMXEXAMPLES_DEP_LIBS" 31355 elif test -n "$PKG_CONFIG"; then 31356 if test -n "$PKG_CONFIG" && \ 31357 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXEXT x11\""; } >&5 31358 ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXEXT x11") 2>&5 31359 ac_status=$? 31360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31361 test $ac_status = 0; }; then 31362 pkg_cv_DMXEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBDMX $LIBXEXT x11" 2>/dev/null` 31363 test "x$?" != "x0" && pkg_failed=yes 31364else 31365 pkg_failed=yes 31366fi 31367 else 31368 pkg_failed=untried 31369fi 31370 31371 31372 31373if test $pkg_failed = yes; then 31374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31375$as_echo "no" >&6; } 31376 31377if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31378 _pkg_short_errors_supported=yes 31379else 31380 _pkg_short_errors_supported=no 31381fi 31382 if test $_pkg_short_errors_supported = yes; then 31383 DMXEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDMX $LIBXEXT x11" 2>&1` 31384 else 31385 DMXEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDMX $LIBXEXT x11" 2>&1` 31386 fi 31387 # Put the nasty error message in config.log where it belongs 31388 echo "$DMXEXAMPLES_DEP_PKG_ERRORS" >&5 31389 31390 as_fn_error $? "Package requirements ($LIBDMX $LIBXEXT x11) were not met: 31391 31392$DMXEXAMPLES_DEP_PKG_ERRORS 31393 31394Consider adjusting the PKG_CONFIG_PATH environment variable if you 31395installed software in a non-standard prefix. 31396 31397Alternatively, you may set the environment variables DMXEXAMPLES_DEP_CFLAGS 31398and DMXEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31399See the pkg-config man page for more details." "$LINENO" 5 31400elif test $pkg_failed = untried; then 31401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31402$as_echo "no" >&6; } 31403 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31404$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31405as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 31406is in your PATH or set the PKG_CONFIG environment variable to the full 31407path to pkg-config. 31408 31409Alternatively, you may set the environment variables DMXEXAMPLES_DEP_CFLAGS 31410and DMXEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31411See the pkg-config man page for more details. 31412 31413To get pkg-config, see <http://pkg-config.freedesktop.org/>. 31414See \`config.log' for more details" "$LINENO" 5; } 31415else 31416 DMXEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXEXAMPLES_DEP_CFLAGS 31417 DMXEXAMPLES_DEP_LIBS=$pkg_cv_DMXEXAMPLES_DEP_LIBS 31418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31419$as_echo "yes" >&6; } 31420 31421fi 31422 31423 31424pkg_failed=no 31425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXXMUEXAMPLES_DEP" >&5 31426$as_echo_n "checking for DMXXMUEXAMPLES_DEP... " >&6; } 31427 31428if test -n "$DMXXMUEXAMPLES_DEP_CFLAGS"; then 31429 pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS="$DMXXMUEXAMPLES_DEP_CFLAGS" 31430 elif test -n "$PKG_CONFIG"; then 31431 if test -n "$PKG_CONFIG" && \ 31432 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX xmu \$LIBXEXT x11\""; } >&5 31433 ($PKG_CONFIG --exists --print-errors "$LIBDMX xmu $LIBXEXT x11") 2>&5 31434 ac_status=$? 31435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31436 test $ac_status = 0; }; then 31437 pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBDMX xmu $LIBXEXT x11" 2>/dev/null` 31438 test "x$?" != "x0" && pkg_failed=yes 31439else 31440 pkg_failed=yes 31441fi 31442 else 31443 pkg_failed=untried 31444fi 31445if test -n "$DMXXMUEXAMPLES_DEP_LIBS"; then 31446 pkg_cv_DMXXMUEXAMPLES_DEP_LIBS="$DMXXMUEXAMPLES_DEP_LIBS" 31447 elif test -n "$PKG_CONFIG"; then 31448 if test -n "$PKG_CONFIG" && \ 31449 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX xmu \$LIBXEXT x11\""; } >&5 31450 ($PKG_CONFIG --exists --print-errors "$LIBDMX xmu $LIBXEXT x11") 2>&5 31451 ac_status=$? 31452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31453 test $ac_status = 0; }; then 31454 pkg_cv_DMXXMUEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBDMX xmu $LIBXEXT x11" 2>/dev/null` 31455 test "x$?" != "x0" && pkg_failed=yes 31456else 31457 pkg_failed=yes 31458fi 31459 else 31460 pkg_failed=untried 31461fi 31462 31463 31464 31465if test $pkg_failed = yes; then 31466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31467$as_echo "no" >&6; } 31468 31469if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31470 _pkg_short_errors_supported=yes 31471else 31472 _pkg_short_errors_supported=no 31473fi 31474 if test $_pkg_short_errors_supported = yes; then 31475 DMXXMUEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDMX xmu $LIBXEXT x11" 2>&1` 31476 else 31477 DMXXMUEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDMX xmu $LIBXEXT x11" 2>&1` 31478 fi 31479 # Put the nasty error message in config.log where it belongs 31480 echo "$DMXXMUEXAMPLES_DEP_PKG_ERRORS" >&5 31481 31482 as_fn_error $? "Package requirements ($LIBDMX xmu $LIBXEXT x11) were not met: 31483 31484$DMXXMUEXAMPLES_DEP_PKG_ERRORS 31485 31486Consider adjusting the PKG_CONFIG_PATH environment variable if you 31487installed software in a non-standard prefix. 31488 31489Alternatively, you may set the environment variables DMXXMUEXAMPLES_DEP_CFLAGS 31490and DMXXMUEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31491See the pkg-config man page for more details." "$LINENO" 5 31492elif test $pkg_failed = untried; then 31493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31494$as_echo "no" >&6; } 31495 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31496$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31497as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 31498is in your PATH or set the PKG_CONFIG environment variable to the full 31499path to pkg-config. 31500 31501Alternatively, you may set the environment variables DMXXMUEXAMPLES_DEP_CFLAGS 31502and DMXXMUEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31503See the pkg-config man page for more details. 31504 31505To get pkg-config, see <http://pkg-config.freedesktop.org/>. 31506See \`config.log' for more details" "$LINENO" 5; } 31507else 31508 DMXXMUEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXXMUEXAMPLES_DEP_CFLAGS 31509 DMXXMUEXAMPLES_DEP_LIBS=$pkg_cv_DMXXMUEXAMPLES_DEP_LIBS 31510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31511$as_echo "yes" >&6; } 31512 31513fi 31514 31515 31516pkg_failed=no 31517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DMXXIEXAMPLES_DEP" >&5 31518$as_echo_n "checking for DMXXIEXAMPLES_DEP... " >&6; } 31519 31520if test -n "$DMXXIEXAMPLES_DEP_CFLAGS"; then 31521 pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS="$DMXXIEXAMPLES_DEP_CFLAGS" 31522 elif test -n "$PKG_CONFIG"; then 31523 if test -n "$PKG_CONFIG" && \ 31524 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXI \$LIBXEXT x11\""; } >&5 31525 ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXI $LIBXEXT x11") 2>&5 31526 ac_status=$? 31527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31528 test $ac_status = 0; }; then 31529 pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBDMX $LIBXI $LIBXEXT x11" 2>/dev/null` 31530 test "x$?" != "x0" && pkg_failed=yes 31531else 31532 pkg_failed=yes 31533fi 31534 else 31535 pkg_failed=untried 31536fi 31537if test -n "$DMXXIEXAMPLES_DEP_LIBS"; then 31538 pkg_cv_DMXXIEXAMPLES_DEP_LIBS="$DMXXIEXAMPLES_DEP_LIBS" 31539 elif test -n "$PKG_CONFIG"; then 31540 if test -n "$PKG_CONFIG" && \ 31541 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDMX \$LIBXI \$LIBXEXT x11\""; } >&5 31542 ($PKG_CONFIG --exists --print-errors "$LIBDMX $LIBXI $LIBXEXT x11") 2>&5 31543 ac_status=$? 31544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31545 test $ac_status = 0; }; then 31546 pkg_cv_DMXXIEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBDMX $LIBXI $LIBXEXT x11" 2>/dev/null` 31547 test "x$?" != "x0" && pkg_failed=yes 31548else 31549 pkg_failed=yes 31550fi 31551 else 31552 pkg_failed=untried 31553fi 31554 31555 31556 31557if test $pkg_failed = yes; then 31558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31559$as_echo "no" >&6; } 31560 31561if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31562 _pkg_short_errors_supported=yes 31563else 31564 _pkg_short_errors_supported=no 31565fi 31566 if test $_pkg_short_errors_supported = yes; then 31567 DMXXIEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDMX $LIBXI $LIBXEXT x11" 2>&1` 31568 else 31569 DMXXIEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDMX $LIBXI $LIBXEXT x11" 2>&1` 31570 fi 31571 # Put the nasty error message in config.log where it belongs 31572 echo "$DMXXIEXAMPLES_DEP_PKG_ERRORS" >&5 31573 31574 as_fn_error $? "Package requirements ($LIBDMX $LIBXI $LIBXEXT x11) were not met: 31575 31576$DMXXIEXAMPLES_DEP_PKG_ERRORS 31577 31578Consider adjusting the PKG_CONFIG_PATH environment variable if you 31579installed software in a non-standard prefix. 31580 31581Alternatively, you may set the environment variables DMXXIEXAMPLES_DEP_CFLAGS 31582and DMXXIEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31583See the pkg-config man page for more details." "$LINENO" 5 31584elif test $pkg_failed = untried; then 31585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31586$as_echo "no" >&6; } 31587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31588$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31589as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 31590is in your PATH or set the PKG_CONFIG environment variable to the full 31591path to pkg-config. 31592 31593Alternatively, you may set the environment variables DMXXIEXAMPLES_DEP_CFLAGS 31594and DMXXIEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31595See the pkg-config man page for more details. 31596 31597To get pkg-config, see <http://pkg-config.freedesktop.org/>. 31598See \`config.log' for more details" "$LINENO" 5; } 31599else 31600 DMXXIEXAMPLES_DEP_CFLAGS=$pkg_cv_DMXXIEXAMPLES_DEP_CFLAGS 31601 DMXXIEXAMPLES_DEP_LIBS=$pkg_cv_DMXXIEXAMPLES_DEP_LIBS 31602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31603$as_echo "yes" >&6; } 31604 31605fi 31606 31607 31608pkg_failed=no 31609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTSTEXAMPLES_DEP" >&5 31610$as_echo_n "checking for XTSTEXAMPLES_DEP... " >&6; } 31611 31612if test -n "$XTSTEXAMPLES_DEP_CFLAGS"; then 31613 pkg_cv_XTSTEXAMPLES_DEP_CFLAGS="$XTSTEXAMPLES_DEP_CFLAGS" 31614 elif test -n "$PKG_CONFIG"; then 31615 if test -n "$PKG_CONFIG" && \ 31616 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXTST \$LIBXEXT x11\""; } >&5 31617 ($PKG_CONFIG --exists --print-errors "$LIBXTST $LIBXEXT x11") 2>&5 31618 ac_status=$? 31619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31620 test $ac_status = 0; }; then 31621 pkg_cv_XTSTEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBXTST $LIBXEXT x11" 2>/dev/null` 31622 test "x$?" != "x0" && pkg_failed=yes 31623else 31624 pkg_failed=yes 31625fi 31626 else 31627 pkg_failed=untried 31628fi 31629if test -n "$XTSTEXAMPLES_DEP_LIBS"; then 31630 pkg_cv_XTSTEXAMPLES_DEP_LIBS="$XTSTEXAMPLES_DEP_LIBS" 31631 elif test -n "$PKG_CONFIG"; then 31632 if test -n "$PKG_CONFIG" && \ 31633 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXTST \$LIBXEXT x11\""; } >&5 31634 ($PKG_CONFIG --exists --print-errors "$LIBXTST $LIBXEXT x11") 2>&5 31635 ac_status=$? 31636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31637 test $ac_status = 0; }; then 31638 pkg_cv_XTSTEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBXTST $LIBXEXT x11" 2>/dev/null` 31639 test "x$?" != "x0" && pkg_failed=yes 31640else 31641 pkg_failed=yes 31642fi 31643 else 31644 pkg_failed=untried 31645fi 31646 31647 31648 31649if test $pkg_failed = yes; then 31650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31651$as_echo "no" >&6; } 31652 31653if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31654 _pkg_short_errors_supported=yes 31655else 31656 _pkg_short_errors_supported=no 31657fi 31658 if test $_pkg_short_errors_supported = yes; then 31659 XTSTEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXTST $LIBXEXT x11" 2>&1` 31660 else 31661 XTSTEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXTST $LIBXEXT x11" 2>&1` 31662 fi 31663 # Put the nasty error message in config.log where it belongs 31664 echo "$XTSTEXAMPLES_DEP_PKG_ERRORS" >&5 31665 31666 as_fn_error $? "Package requirements ($LIBXTST $LIBXEXT x11) were not met: 31667 31668$XTSTEXAMPLES_DEP_PKG_ERRORS 31669 31670Consider adjusting the PKG_CONFIG_PATH environment variable if you 31671installed software in a non-standard prefix. 31672 31673Alternatively, you may set the environment variables XTSTEXAMPLES_DEP_CFLAGS 31674and XTSTEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31675See the pkg-config man page for more details." "$LINENO" 5 31676elif test $pkg_failed = untried; then 31677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31678$as_echo "no" >&6; } 31679 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31680$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31681as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 31682is in your PATH or set the PKG_CONFIG environment variable to the full 31683path to pkg-config. 31684 31685Alternatively, you may set the environment variables XTSTEXAMPLES_DEP_CFLAGS 31686and XTSTEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31687See the pkg-config man page for more details. 31688 31689To get pkg-config, see <http://pkg-config.freedesktop.org/>. 31690See \`config.log' for more details" "$LINENO" 5; } 31691else 31692 XTSTEXAMPLES_DEP_CFLAGS=$pkg_cv_XTSTEXAMPLES_DEP_CFLAGS 31693 XTSTEXAMPLES_DEP_LIBS=$pkg_cv_XTSTEXAMPLES_DEP_LIBS 31694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31695$as_echo "yes" >&6; } 31696 31697fi 31698 31699 31700pkg_failed=no 31701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRESEXAMPLES_DEP" >&5 31702$as_echo_n "checking for XRESEXAMPLES_DEP... " >&6; } 31703 31704if test -n "$XRESEXAMPLES_DEP_CFLAGS"; then 31705 pkg_cv_XRESEXAMPLES_DEP_CFLAGS="$XRESEXAMPLES_DEP_CFLAGS" 31706 elif test -n "$PKG_CONFIG"; then 31707 if test -n "$PKG_CONFIG" && \ 31708 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xres \$LIBXEXT x11\""; } >&5 31709 ($PKG_CONFIG --exists --print-errors "xres $LIBXEXT x11") 2>&5 31710 ac_status=$? 31711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31712 test $ac_status = 0; }; then 31713 pkg_cv_XRESEXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "xres $LIBXEXT x11" 2>/dev/null` 31714 test "x$?" != "x0" && pkg_failed=yes 31715else 31716 pkg_failed=yes 31717fi 31718 else 31719 pkg_failed=untried 31720fi 31721if test -n "$XRESEXAMPLES_DEP_LIBS"; then 31722 pkg_cv_XRESEXAMPLES_DEP_LIBS="$XRESEXAMPLES_DEP_LIBS" 31723 elif test -n "$PKG_CONFIG"; then 31724 if test -n "$PKG_CONFIG" && \ 31725 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xres \$LIBXEXT x11\""; } >&5 31726 ($PKG_CONFIG --exists --print-errors "xres $LIBXEXT x11") 2>&5 31727 ac_status=$? 31728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31729 test $ac_status = 0; }; then 31730 pkg_cv_XRESEXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "xres $LIBXEXT x11" 2>/dev/null` 31731 test "x$?" != "x0" && pkg_failed=yes 31732else 31733 pkg_failed=yes 31734fi 31735 else 31736 pkg_failed=untried 31737fi 31738 31739 31740 31741if test $pkg_failed = yes; then 31742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31743$as_echo "no" >&6; } 31744 31745if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31746 _pkg_short_errors_supported=yes 31747else 31748 _pkg_short_errors_supported=no 31749fi 31750 if test $_pkg_short_errors_supported = yes; then 31751 XRESEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xres $LIBXEXT x11" 2>&1` 31752 else 31753 XRESEXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xres $LIBXEXT x11" 2>&1` 31754 fi 31755 # Put the nasty error message in config.log where it belongs 31756 echo "$XRESEXAMPLES_DEP_PKG_ERRORS" >&5 31757 31758 as_fn_error $? "Package requirements (xres $LIBXEXT x11) were not met: 31759 31760$XRESEXAMPLES_DEP_PKG_ERRORS 31761 31762Consider adjusting the PKG_CONFIG_PATH environment variable if you 31763installed software in a non-standard prefix. 31764 31765Alternatively, you may set the environment variables XRESEXAMPLES_DEP_CFLAGS 31766and XRESEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31767See the pkg-config man page for more details." "$LINENO" 5 31768elif test $pkg_failed = untried; then 31769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31770$as_echo "no" >&6; } 31771 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31772$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31773as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 31774is in your PATH or set the PKG_CONFIG environment variable to the full 31775path to pkg-config. 31776 31777Alternatively, you may set the environment variables XRESEXAMPLES_DEP_CFLAGS 31778and XRESEXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31779See the pkg-config man page for more details. 31780 31781To get pkg-config, see <http://pkg-config.freedesktop.org/>. 31782See \`config.log' for more details" "$LINENO" 5; } 31783else 31784 XRESEXAMPLES_DEP_CFLAGS=$pkg_cv_XRESEXAMPLES_DEP_CFLAGS 31785 XRESEXAMPLES_DEP_LIBS=$pkg_cv_XRESEXAMPLES_DEP_LIBS 31786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31787$as_echo "yes" >&6; } 31788 31789fi 31790 31791 31792pkg_failed=no 31793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11EXAMPLES_DEP" >&5 31794$as_echo_n "checking for X11EXAMPLES_DEP... " >&6; } 31795 31796if test -n "$X11EXAMPLES_DEP_CFLAGS"; then 31797 pkg_cv_X11EXAMPLES_DEP_CFLAGS="$X11EXAMPLES_DEP_CFLAGS" 31798 elif test -n "$PKG_CONFIG"; then 31799 if test -n "$PKG_CONFIG" && \ 31800 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11\""; } >&5 31801 ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11") 2>&5 31802 ac_status=$? 31803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31804 test $ac_status = 0; }; then 31805 pkg_cv_X11EXAMPLES_DEP_CFLAGS=`$PKG_CONFIG --cflags "$LIBXEXT x11" 2>/dev/null` 31806 test "x$?" != "x0" && pkg_failed=yes 31807else 31808 pkg_failed=yes 31809fi 31810 else 31811 pkg_failed=untried 31812fi 31813if test -n "$X11EXAMPLES_DEP_LIBS"; then 31814 pkg_cv_X11EXAMPLES_DEP_LIBS="$X11EXAMPLES_DEP_LIBS" 31815 elif test -n "$PKG_CONFIG"; then 31816 if test -n "$PKG_CONFIG" && \ 31817 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11\""; } >&5 31818 ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11") 2>&5 31819 ac_status=$? 31820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31821 test $ac_status = 0; }; then 31822 pkg_cv_X11EXAMPLES_DEP_LIBS=`$PKG_CONFIG --libs "$LIBXEXT x11" 2>/dev/null` 31823 test "x$?" != "x0" && pkg_failed=yes 31824else 31825 pkg_failed=yes 31826fi 31827 else 31828 pkg_failed=untried 31829fi 31830 31831 31832 31833if test $pkg_failed = yes; then 31834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31835$as_echo "no" >&6; } 31836 31837if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31838 _pkg_short_errors_supported=yes 31839else 31840 _pkg_short_errors_supported=no 31841fi 31842 if test $_pkg_short_errors_supported = yes; then 31843 X11EXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXEXT x11" 2>&1` 31844 else 31845 X11EXAMPLES_DEP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXEXT x11" 2>&1` 31846 fi 31847 # Put the nasty error message in config.log where it belongs 31848 echo "$X11EXAMPLES_DEP_PKG_ERRORS" >&5 31849 31850 as_fn_error $? "Package requirements ($LIBXEXT x11) were not met: 31851 31852$X11EXAMPLES_DEP_PKG_ERRORS 31853 31854Consider adjusting the PKG_CONFIG_PATH environment variable if you 31855installed software in a non-standard prefix. 31856 31857Alternatively, you may set the environment variables X11EXAMPLES_DEP_CFLAGS 31858and X11EXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31859See the pkg-config man page for more details." "$LINENO" 5 31860elif test $pkg_failed = untried; then 31861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31862$as_echo "no" >&6; } 31863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31864$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31865as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 31866is in your PATH or set the PKG_CONFIG environment variable to the full 31867path to pkg-config. 31868 31869Alternatively, you may set the environment variables X11EXAMPLES_DEP_CFLAGS 31870and X11EXAMPLES_DEP_LIBS to avoid the need to call pkg-config. 31871See the pkg-config man page for more details. 31872 31873To get pkg-config, see <http://pkg-config.freedesktop.org/>. 31874See \`config.log' for more details" "$LINENO" 5; } 31875else 31876 X11EXAMPLES_DEP_CFLAGS=$pkg_cv_X11EXAMPLES_DEP_CFLAGS 31877 X11EXAMPLES_DEP_LIBS=$pkg_cv_X11EXAMPLES_DEP_LIBS 31878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31879$as_echo "yes" >&6; } 31880 31881fi 31882 31883 31884fi 31885 if test "x$DMX_BUILD_USB" = xyes; then 31886 DMX_BUILD_USB_TRUE= 31887 DMX_BUILD_USB_FALSE='#' 31888else 31889 DMX_BUILD_USB_TRUE='#' 31890 DMX_BUILD_USB_FALSE= 31891fi 31892 31893 31894 31895XEPHYR_LIBS= 31896XEPHYR_INCS= 31897 31898 if test x$KDRIVE = xyes; then 31899 KDRIVE_TRUE= 31900 KDRIVE_FALSE='#' 31901else 31902 KDRIVE_TRUE='#' 31903 KDRIVE_FALSE= 31904fi 31905 31906 31907if test "$KDRIVE" = yes; then 31908 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" 31909 if test "x$XV" = xyes; then 31910 XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS xcb-xv" 31911 fi 31912 if test "x$DRI" = xyes && test "x$GLX" = xyes; then 31913 XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS $LIBDRM xcb-glx xcb-xf86dri > 1.6" 31914 fi 31915 if test "x$GLAMOR" = xyes; then 31916 XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS x11-xcb" 31917 fi 31918 31919 if test "x$XEPHYR" = xauto; then 31920 31921pkg_failed=no 31922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEPHYR" >&5 31923$as_echo_n "checking for XEPHYR... " >&6; } 31924 31925if test -n "$XEPHYR_CFLAGS"; then 31926 pkg_cv_XEPHYR_CFLAGS="$XEPHYR_CFLAGS" 31927 elif test -n "$PKG_CONFIG"; then 31928 if test -n "$PKG_CONFIG" && \ 31929 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5 31930 ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5 31931 ac_status=$? 31932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31933 test $ac_status = 0; }; then 31934 pkg_cv_XEPHYR_CFLAGS=`$PKG_CONFIG --cflags "$XEPHYR_REQUIRED_LIBS" 2>/dev/null` 31935 test "x$?" != "x0" && pkg_failed=yes 31936else 31937 pkg_failed=yes 31938fi 31939 else 31940 pkg_failed=untried 31941fi 31942if test -n "$XEPHYR_LIBS"; then 31943 pkg_cv_XEPHYR_LIBS="$XEPHYR_LIBS" 31944 elif test -n "$PKG_CONFIG"; then 31945 if test -n "$PKG_CONFIG" && \ 31946 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5 31947 ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5 31948 ac_status=$? 31949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31950 test $ac_status = 0; }; then 31951 pkg_cv_XEPHYR_LIBS=`$PKG_CONFIG --libs "$XEPHYR_REQUIRED_LIBS" 2>/dev/null` 31952 test "x$?" != "x0" && pkg_failed=yes 31953else 31954 pkg_failed=yes 31955fi 31956 else 31957 pkg_failed=untried 31958fi 31959 31960 31961 31962if test $pkg_failed = yes; then 31963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31964$as_echo "no" >&6; } 31965 31966if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31967 _pkg_short_errors_supported=yes 31968else 31969 _pkg_short_errors_supported=no 31970fi 31971 if test $_pkg_short_errors_supported = yes; then 31972 XEPHYR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1` 31973 else 31974 XEPHYR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1` 31975 fi 31976 # Put the nasty error message in config.log where it belongs 31977 echo "$XEPHYR_PKG_ERRORS" >&5 31978 31979 XEPHYR="no" 31980elif test $pkg_failed = untried; then 31981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31982$as_echo "no" >&6; } 31983 XEPHYR="no" 31984else 31985 XEPHYR_CFLAGS=$pkg_cv_XEPHYR_CFLAGS 31986 XEPHYR_LIBS=$pkg_cv_XEPHYR_LIBS 31987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31988$as_echo "yes" >&6; } 31989 XEPHYR="yes" 31990fi 31991 elif test "x$XEPHYR" = xyes ; then 31992 31993pkg_failed=no 31994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEPHYR" >&5 31995$as_echo_n "checking for XEPHYR... " >&6; } 31996 31997if test -n "$XEPHYR_CFLAGS"; then 31998 pkg_cv_XEPHYR_CFLAGS="$XEPHYR_CFLAGS" 31999 elif test -n "$PKG_CONFIG"; then 32000 if test -n "$PKG_CONFIG" && \ 32001 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5 32002 ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5 32003 ac_status=$? 32004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32005 test $ac_status = 0; }; then 32006 pkg_cv_XEPHYR_CFLAGS=`$PKG_CONFIG --cflags "$XEPHYR_REQUIRED_LIBS" 2>/dev/null` 32007 test "x$?" != "x0" && pkg_failed=yes 32008else 32009 pkg_failed=yes 32010fi 32011 else 32012 pkg_failed=untried 32013fi 32014if test -n "$XEPHYR_LIBS"; then 32015 pkg_cv_XEPHYR_LIBS="$XEPHYR_LIBS" 32016 elif test -n "$PKG_CONFIG"; then 32017 if test -n "$PKG_CONFIG" && \ 32018 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5 32019 ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5 32020 ac_status=$? 32021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32022 test $ac_status = 0; }; then 32023 pkg_cv_XEPHYR_LIBS=`$PKG_CONFIG --libs "$XEPHYR_REQUIRED_LIBS" 2>/dev/null` 32024 test "x$?" != "x0" && pkg_failed=yes 32025else 32026 pkg_failed=yes 32027fi 32028 else 32029 pkg_failed=untried 32030fi 32031 32032 32033 32034if test $pkg_failed = yes; then 32035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32036$as_echo "no" >&6; } 32037 32038if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32039 _pkg_short_errors_supported=yes 32040else 32041 _pkg_short_errors_supported=no 32042fi 32043 if test $_pkg_short_errors_supported = yes; then 32044 XEPHYR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1` 32045 else 32046 XEPHYR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1` 32047 fi 32048 # Put the nasty error message in config.log where it belongs 32049 echo "$XEPHYR_PKG_ERRORS" >&5 32050 32051 as_fn_error $? "Package requirements ($XEPHYR_REQUIRED_LIBS) were not met: 32052 32053$XEPHYR_PKG_ERRORS 32054 32055Consider adjusting the PKG_CONFIG_PATH environment variable if you 32056installed software in a non-standard prefix. 32057 32058Alternatively, you may set the environment variables XEPHYR_CFLAGS 32059and XEPHYR_LIBS to avoid the need to call pkg-config. 32060See the pkg-config man page for more details." "$LINENO" 5 32061elif test $pkg_failed = untried; then 32062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32063$as_echo "no" >&6; } 32064 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32065$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 32066as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 32067is in your PATH or set the PKG_CONFIG environment variable to the full 32068path to pkg-config. 32069 32070Alternatively, you may set the environment variables XEPHYR_CFLAGS 32071and XEPHYR_LIBS to avoid the need to call pkg-config. 32072See the pkg-config man page for more details. 32073 32074To get pkg-config, see <http://pkg-config.freedesktop.org/>. 32075See \`config.log' for more details" "$LINENO" 5; } 32076else 32077 XEPHYR_CFLAGS=$pkg_cv_XEPHYR_CFLAGS 32078 XEPHYR_LIBS=$pkg_cv_XEPHYR_LIBS 32079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32080$as_echo "yes" >&6; } 32081 32082fi 32083 fi 32084 32085 # Xephyr needs nanosleep() which is in librt on Solaris 32086 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" 32087if test "x$ac_cv_func_nanosleep" = xyes; then : 32088 32089else 32090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 32091$as_echo_n "checking for nanosleep in -lrt... " >&6; } 32092if ${ac_cv_lib_rt_nanosleep+:} false; then : 32093 $as_echo_n "(cached) " >&6 32094else 32095 ac_check_lib_save_LIBS=$LIBS 32096LIBS="-lrt $LIBS" 32097cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32098/* end confdefs.h. */ 32099 32100/* Override any GCC internal prototype to avoid an error. 32101 Use char because int might match the return type of a GCC 32102 builtin and then its argument prototype would still apply. */ 32103#ifdef __cplusplus 32104extern "C" 32105#endif 32106char nanosleep (); 32107int 32108main () 32109{ 32110return nanosleep (); 32111 ; 32112 return 0; 32113} 32114_ACEOF 32115if ac_fn_c_try_link "$LINENO"; then : 32116 ac_cv_lib_rt_nanosleep=yes 32117else 32118 ac_cv_lib_rt_nanosleep=no 32119fi 32120rm -f core conftest.err conftest.$ac_objext \ 32121 conftest$ac_exeext conftest.$ac_ext 32122LIBS=$ac_check_lib_save_LIBS 32123fi 32124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 32125$as_echo "$ac_cv_lib_rt_nanosleep" >&6; } 32126if test "x$ac_cv_lib_rt_nanosleep" = xyes; then : 32127 XEPHYR_LIBS="$XEPHYR_LIBS -lrt" 32128fi 32129 32130fi 32131 32132 32133 # damage shadow extension glx (NOTYET) fb mi 32134 KDRIVE_INC='-I$(top_srcdir)/hw/kdrive/src' 32135 KDRIVE_PURE_INCS="$KDRIVE_INC $MIEXT_SYNC_INC $MIEXT_DAMAGE_INC $MIEXT_SHADOW_INC $XEXT_INC $FB_INC $MI_INC" 32136 KDRIVE_OS_INC='-I$(top_srcdir)/hw/kdrive/linux' 32137 KDRIVE_INCS="$KDRIVE_PURE_INCS $KDRIVE_OS_INC" 32138 32139 KDRIVE_CFLAGS="$XSERVER_CFLAGS" 32140 32141 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" 32142 KDRIVE_LIB='$(top_builddir)/hw/kdrive/src/libkdrive.la' 32143 KDRIVE_MAIN_LIB="$MAIN_LIB" 32144 KDRIVE_LOCAL_LIBS="$DIX_LIB $KDRIVE_LIB" 32145 KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $FB_LIB $MI_LIB $KDRIVE_PURE_LIBS" 32146 KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $KDRIVE_OS_LIB" 32147 KDRIVE_LIBS="$KDRIVE_LOCAL_LIBS $XSERVER_SYS_LIBS $GLX_SYS_LIBS $DLOPEN_LIBS" 32148 32149 32150 32151fi 32152 32153 32154 32155 32156 32157 32158 32159 if test "x$KDRIVE" = xyes && test "x$XEPHYR" = xyes; then 32160 XEPHYR_TRUE= 32161 XEPHYR_FALSE='#' 32162else 32163 XEPHYR_TRUE='#' 32164 XEPHYR_FALSE= 32165fi 32166 32167 32168 32169XWAYLANDMODULES="wayland-client >= 1.3.0 wayland-protocols >= 1.10 $LIBDRM epoxy" 32170if test "x$XF86VIDMODE" = xyes; then 32171 XWAYLANDMODULES="$XWAYLANDMODULES $VIDMODEPROTO" 32172fi 32173 32174pkg_failed=no 32175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XWAYLANDMODULES" >&5 32176$as_echo_n "checking for XWAYLANDMODULES... " >&6; } 32177 32178if test -n "$XWAYLANDMODULES_CFLAGS"; then 32179 pkg_cv_XWAYLANDMODULES_CFLAGS="$XWAYLANDMODULES_CFLAGS" 32180 elif test -n "$PKG_CONFIG"; then 32181 if test -n "$PKG_CONFIG" && \ 32182 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XWAYLANDMODULES\""; } >&5 32183 ($PKG_CONFIG --exists --print-errors "$XWAYLANDMODULES") 2>&5 32184 ac_status=$? 32185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32186 test $ac_status = 0; }; then 32187 pkg_cv_XWAYLANDMODULES_CFLAGS=`$PKG_CONFIG --cflags "$XWAYLANDMODULES" 2>/dev/null` 32188 test "x$?" != "x0" && pkg_failed=yes 32189else 32190 pkg_failed=yes 32191fi 32192 else 32193 pkg_failed=untried 32194fi 32195if test -n "$XWAYLANDMODULES_LIBS"; then 32196 pkg_cv_XWAYLANDMODULES_LIBS="$XWAYLANDMODULES_LIBS" 32197 elif test -n "$PKG_CONFIG"; then 32198 if test -n "$PKG_CONFIG" && \ 32199 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XWAYLANDMODULES\""; } >&5 32200 ($PKG_CONFIG --exists --print-errors "$XWAYLANDMODULES") 2>&5 32201 ac_status=$? 32202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32203 test $ac_status = 0; }; then 32204 pkg_cv_XWAYLANDMODULES_LIBS=`$PKG_CONFIG --libs "$XWAYLANDMODULES" 2>/dev/null` 32205 test "x$?" != "x0" && pkg_failed=yes 32206else 32207 pkg_failed=yes 32208fi 32209 else 32210 pkg_failed=untried 32211fi 32212 32213 32214 32215if test $pkg_failed = yes; then 32216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32217$as_echo "no" >&6; } 32218 32219if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32220 _pkg_short_errors_supported=yes 32221else 32222 _pkg_short_errors_supported=no 32223fi 32224 if test $_pkg_short_errors_supported = yes; then 32225 XWAYLANDMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XWAYLANDMODULES" 2>&1` 32226 else 32227 XWAYLANDMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XWAYLANDMODULES" 2>&1` 32228 fi 32229 # Put the nasty error message in config.log where it belongs 32230 echo "$XWAYLANDMODULES_PKG_ERRORS" >&5 32231 32232 have_xwayland=no 32233elif test $pkg_failed = untried; then 32234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32235$as_echo "no" >&6; } 32236 have_xwayland=no 32237else 32238 XWAYLANDMODULES_CFLAGS=$pkg_cv_XWAYLANDMODULES_CFLAGS 32239 XWAYLANDMODULES_LIBS=$pkg_cv_XWAYLANDMODULES_LIBS 32240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32241$as_echo "yes" >&6; } 32242 have_xwayland=yes 32243fi 32244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xwayland DDX" >&5 32245$as_echo_n "checking whether to build Xwayland DDX... " >&6; } 32246if test "x$XWAYLAND" = xauto; then 32247 XWAYLAND="$have_xwayland" 32248fi 32249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XWAYLAND" >&5 32250$as_echo "$XWAYLAND" >&6; } 32251 if test "x$XWAYLAND" = xyes; then 32252 XWAYLAND_TRUE= 32253 XWAYLAND_FALSE='#' 32254else 32255 XWAYLAND_TRUE='#' 32256 XWAYLAND_FALSE= 32257fi 32258 32259 32260if test "x$XWAYLAND" = xyes; then 32261 if test "x$have_xwayland" = xno; then 32262 as_fn_error $? "Xwayland build explicitly requested, but required modules not found." "$LINENO" 5 32263 fi 32264 32265 if test "x$GLAMOR" = xyes && test "x$GBM" = xyes; then 32266 32267$as_echo "#define XWL_HAS_GLAMOR 1" >>confdefs.h 32268 32269 fi 32270 32271 32272pkg_failed=no 32273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAYLAND_EGLSTREAM" >&5 32274$as_echo_n "checking for WAYLAND_EGLSTREAM... " >&6; } 32275 32276if test -n "$WAYLAND_EGLSTREAM_CFLAGS"; then 32277 pkg_cv_WAYLAND_EGLSTREAM_CFLAGS="$WAYLAND_EGLSTREAM_CFLAGS" 32278 elif test -n "$PKG_CONFIG"; then 32279 if test -n "$PKG_CONFIG" && \ 32280 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-eglstream-protocols >= 1.0.2\""; } >&5 32281 ($PKG_CONFIG --exists --print-errors "wayland-eglstream-protocols >= 1.0.2") 2>&5 32282 ac_status=$? 32283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32284 test $ac_status = 0; }; then 32285 pkg_cv_WAYLAND_EGLSTREAM_CFLAGS=`$PKG_CONFIG --cflags "wayland-eglstream-protocols >= 1.0.2" 2>/dev/null` 32286 test "x$?" != "x0" && pkg_failed=yes 32287else 32288 pkg_failed=yes 32289fi 32290 else 32291 pkg_failed=untried 32292fi 32293if test -n "$WAYLAND_EGLSTREAM_LIBS"; then 32294 pkg_cv_WAYLAND_EGLSTREAM_LIBS="$WAYLAND_EGLSTREAM_LIBS" 32295 elif test -n "$PKG_CONFIG"; then 32296 if test -n "$PKG_CONFIG" && \ 32297 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-eglstream-protocols >= 1.0.2\""; } >&5 32298 ($PKG_CONFIG --exists --print-errors "wayland-eglstream-protocols >= 1.0.2") 2>&5 32299 ac_status=$? 32300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32301 test $ac_status = 0; }; then 32302 pkg_cv_WAYLAND_EGLSTREAM_LIBS=`$PKG_CONFIG --libs "wayland-eglstream-protocols >= 1.0.2" 2>/dev/null` 32303 test "x$?" != "x0" && pkg_failed=yes 32304else 32305 pkg_failed=yes 32306fi 32307 else 32308 pkg_failed=untried 32309fi 32310 32311 32312 32313if test $pkg_failed = yes; then 32314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32315$as_echo "no" >&6; } 32316 32317if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32318 _pkg_short_errors_supported=yes 32319else 32320 _pkg_short_errors_supported=no 32321fi 32322 if test $_pkg_short_errors_supported = yes; then 32323 WAYLAND_EGLSTREAM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "wayland-eglstream-protocols >= 1.0.2" 2>&1` 32324 else 32325 WAYLAND_EGLSTREAM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "wayland-eglstream-protocols >= 1.0.2" 2>&1` 32326 fi 32327 # Put the nasty error message in config.log where it belongs 32328 echo "$WAYLAND_EGLSTREAM_PKG_ERRORS" >&5 32329 32330 have_wl_eglstream=no 32331elif test $pkg_failed = untried; then 32332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32333$as_echo "no" >&6; } 32334 have_wl_eglstream=no 32335else 32336 WAYLAND_EGLSTREAM_CFLAGS=$pkg_cv_WAYLAND_EGLSTREAM_CFLAGS 32337 WAYLAND_EGLSTREAM_LIBS=$pkg_cv_WAYLAND_EGLSTREAM_LIBS 32338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32339$as_echo "yes" >&6; } 32340 have_wl_eglstream=yes 32341fi 32342 32343 if test "x$XWAYLAND_EGLSTREAM" = xauto; then 32344 if test "x$have_wl_eglstream" = xyes && test "x$GLAMOR" = xyes; then 32345 XWAYLAND_EGLSTREAM=yes 32346 fi 32347 fi 32348 32349 if test "x$XWAYLAND_EGLSTREAM" = xyes; then 32350 if test "x$GLAMOR" != xyes; then 32351 as_fn_error $? "Xwayland eglstream support explicitly requested, but required modules not found." "$LINENO" 5 32352 fi 32353 32354 if test "x$have_wl_eglstream" = xno; then 32355 as_fn_error $? "Xwayland eglstream support requires wayland-eglstream-protocols >= 1.0.2" "$LINENO" 5 32356 fi 32357 32358 WAYLAND_EGLSTREAM_DATADIR=`$PKG_CONFIG --variable=pkgdatadir wayland-eglstream-protocols` 32359 32360 32361$as_echo "#define XWL_HAS_EGLSTREAM 1" >>confdefs.h 32362 32363 fi 32364 32365 XWAYLAND_LIBS="$FB_LIB $FIXES_LIB $MI_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 $MAIN_LIB $DIX_LIB $OS_LIB" 32366 XWAYLAND_SYS_LIBS="$XWAYLANDMODULES_LIBS $GLX_SYS_LIBS" 32367 32368 32369 32370 if test "x$MONOTONIC_CLOCK" != xyes; then 32371 as_fn_error $? "Xwayland requires CLOCK_MONOTONIC support." "$LINENO" 5 32372 fi 32373 32374 # Extract the first word of "wayland-scanner", so it can be a program name with args. 32375set dummy wayland-scanner; ac_word=$2 32376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32377$as_echo_n "checking for $ac_word... " >&6; } 32378if ${ac_cv_path_WAYLAND_SCANNER+:} false; then : 32379 $as_echo_n "(cached) " >&6 32380else 32381 case $WAYLAND_SCANNER in 32382 [\\/]* | ?:[\\/]*) 32383 ac_cv_path_WAYLAND_SCANNER="$WAYLAND_SCANNER" # Let the user override the test with a path. 32384 ;; 32385 *) 32386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32387for as_dir in $PATH 32388do 32389 IFS=$as_save_IFS 32390 test -z "$as_dir" && as_dir=. 32391 for ac_exec_ext in '' $ac_executable_extensions; do 32392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32393 ac_cv_path_WAYLAND_SCANNER="$as_dir/$ac_word$ac_exec_ext" 32394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32395 break 2 32396 fi 32397done 32398 done 32399IFS=$as_save_IFS 32400 32401 ;; 32402esac 32403fi 32404WAYLAND_SCANNER=$ac_cv_path_WAYLAND_SCANNER 32405if test -n "$WAYLAND_SCANNER"; then 32406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WAYLAND_SCANNER" >&5 32407$as_echo "$WAYLAND_SCANNER" >&6; } 32408else 32409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32410$as_echo "no" >&6; } 32411fi 32412 32413 32414 if test "x$WAYLAND_SCANNER" = x; then 32415 32416pkg_failed=no 32417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAYLAND_SCANNER" >&5 32418$as_echo_n "checking for WAYLAND_SCANNER... " >&6; } 32419 32420if test -n "$WAYLAND_SCANNER_CFLAGS"; then 32421 pkg_cv_WAYLAND_SCANNER_CFLAGS="$WAYLAND_SCANNER_CFLAGS" 32422 elif test -n "$PKG_CONFIG"; then 32423 if test -n "$PKG_CONFIG" && \ 32424 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-scanner\""; } >&5 32425 ($PKG_CONFIG --exists --print-errors "wayland-scanner") 2>&5 32426 ac_status=$? 32427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32428 test $ac_status = 0; }; then 32429 pkg_cv_WAYLAND_SCANNER_CFLAGS=`$PKG_CONFIG --cflags "wayland-scanner" 2>/dev/null` 32430 test "x$?" != "x0" && pkg_failed=yes 32431else 32432 pkg_failed=yes 32433fi 32434 else 32435 pkg_failed=untried 32436fi 32437if test -n "$WAYLAND_SCANNER_LIBS"; then 32438 pkg_cv_WAYLAND_SCANNER_LIBS="$WAYLAND_SCANNER_LIBS" 32439 elif test -n "$PKG_CONFIG"; then 32440 if test -n "$PKG_CONFIG" && \ 32441 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-scanner\""; } >&5 32442 ($PKG_CONFIG --exists --print-errors "wayland-scanner") 2>&5 32443 ac_status=$? 32444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32445 test $ac_status = 0; }; then 32446 pkg_cv_WAYLAND_SCANNER_LIBS=`$PKG_CONFIG --libs "wayland-scanner" 2>/dev/null` 32447 test "x$?" != "x0" && pkg_failed=yes 32448else 32449 pkg_failed=yes 32450fi 32451 else 32452 pkg_failed=untried 32453fi 32454 32455 32456 32457if test $pkg_failed = yes; then 32458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32459$as_echo "no" >&6; } 32460 32461if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32462 _pkg_short_errors_supported=yes 32463else 32464 _pkg_short_errors_supported=no 32465fi 32466 if test $_pkg_short_errors_supported = yes; then 32467 WAYLAND_SCANNER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "wayland-scanner" 2>&1` 32468 else 32469 WAYLAND_SCANNER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "wayland-scanner" 2>&1` 32470 fi 32471 # Put the nasty error message in config.log where it belongs 32472 echo "$WAYLAND_SCANNER_PKG_ERRORS" >&5 32473 32474 as_fn_error $? "Package requirements (wayland-scanner) were not met: 32475 32476$WAYLAND_SCANNER_PKG_ERRORS 32477 32478Consider adjusting the PKG_CONFIG_PATH environment variable if you 32479installed software in a non-standard prefix. 32480 32481Alternatively, you may set the environment variables WAYLAND_SCANNER_CFLAGS 32482and WAYLAND_SCANNER_LIBS to avoid the need to call pkg-config. 32483See the pkg-config man page for more details." "$LINENO" 5 32484elif test $pkg_failed = untried; then 32485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32486$as_echo "no" >&6; } 32487 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32488$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 32489as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 32490is in your PATH or set the PKG_CONFIG environment variable to the full 32491path to pkg-config. 32492 32493Alternatively, you may set the environment variables WAYLAND_SCANNER_CFLAGS 32494and WAYLAND_SCANNER_LIBS to avoid the need to call pkg-config. 32495See the pkg-config man page for more details. 32496 32497To get pkg-config, see <http://pkg-config.freedesktop.org/>. 32498See \`config.log' for more details" "$LINENO" 5; } 32499else 32500 WAYLAND_SCANNER_CFLAGS=$pkg_cv_WAYLAND_SCANNER_CFLAGS 32501 WAYLAND_SCANNER_LIBS=$pkg_cv_WAYLAND_SCANNER_LIBS 32502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32503$as_echo "yes" >&6; } 32504 32505fi 32506 WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner` 32507 32508 fi 32509 32510 32511pkg_failed=no 32512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAYLAND_SCANNER" >&5 32513$as_echo_n "checking for WAYLAND_SCANNER... " >&6; } 32514 32515if test -n "$WAYLAND_SCANNER_CFLAGS"; then 32516 pkg_cv_WAYLAND_SCANNER_CFLAGS="$WAYLAND_SCANNER_CFLAGS" 32517 elif test -n "$PKG_CONFIG"; then 32518 if test -n "$PKG_CONFIG" && \ 32519 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-scanner >= 1.14.91\""; } >&5 32520 ($PKG_CONFIG --exists --print-errors "wayland-scanner >= 1.14.91") 2>&5 32521 ac_status=$? 32522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32523 test $ac_status = 0; }; then 32524 pkg_cv_WAYLAND_SCANNER_CFLAGS=`$PKG_CONFIG --cflags "wayland-scanner >= 1.14.91" 2>/dev/null` 32525 test "x$?" != "x0" && pkg_failed=yes 32526else 32527 pkg_failed=yes 32528fi 32529 else 32530 pkg_failed=untried 32531fi 32532if test -n "$WAYLAND_SCANNER_LIBS"; then 32533 pkg_cv_WAYLAND_SCANNER_LIBS="$WAYLAND_SCANNER_LIBS" 32534 elif test -n "$PKG_CONFIG"; then 32535 if test -n "$PKG_CONFIG" && \ 32536 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-scanner >= 1.14.91\""; } >&5 32537 ($PKG_CONFIG --exists --print-errors "wayland-scanner >= 1.14.91") 2>&5 32538 ac_status=$? 32539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32540 test $ac_status = 0; }; then 32541 pkg_cv_WAYLAND_SCANNER_LIBS=`$PKG_CONFIG --libs "wayland-scanner >= 1.14.91" 2>/dev/null` 32542 test "x$?" != "x0" && pkg_failed=yes 32543else 32544 pkg_failed=yes 32545fi 32546 else 32547 pkg_failed=untried 32548fi 32549 32550 32551 32552if test $pkg_failed = yes; then 32553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32554$as_echo "no" >&6; } 32555 32556if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32557 _pkg_short_errors_supported=yes 32558else 32559 _pkg_short_errors_supported=no 32560fi 32561 if test $_pkg_short_errors_supported = yes; then 32562 WAYLAND_SCANNER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "wayland-scanner >= 1.14.91" 2>&1` 32563 else 32564 WAYLAND_SCANNER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "wayland-scanner >= 1.14.91" 2>&1` 32565 fi 32566 # Put the nasty error message in config.log where it belongs 32567 echo "$WAYLAND_SCANNER_PKG_ERRORS" >&5 32568 32569 SCANNER_ARG='code' 32570 32571elif test $pkg_failed = untried; then 32572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32573$as_echo "no" >&6; } 32574 SCANNER_ARG='code' 32575 32576else 32577 WAYLAND_SCANNER_CFLAGS=$pkg_cv_WAYLAND_SCANNER_CFLAGS 32578 WAYLAND_SCANNER_LIBS=$pkg_cv_WAYLAND_SCANNER_LIBS 32579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32580$as_echo "yes" >&6; } 32581 SCANNER_ARG='private-code' 32582 32583fi 32584 32585 WAYLAND_PROTOCOLS_DATADIR=`$PKG_CONFIG --variable=pkgdatadir wayland-protocols` 32586 32587fi 32588 if test "x$XWAYLAND_EGLSTREAM" = "xyes"; then 32589 XWAYLAND_EGLSTREAM_TRUE= 32590 XWAYLAND_EGLSTREAM_FALSE='#' 32591else 32592 XWAYLAND_EGLSTREAM_TRUE='#' 32593 XWAYLAND_EGLSTREAM_FALSE= 32594fi 32595 32596 32597 32598 32599cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32600/* end confdefs.h. */ 32601 32602#include <features.h> 32603#ifndef __GLIBC__ 32604#error not glibc 32605#endif 32606 32607int 32608main () 32609{ 32610 32611 ; 32612 return 0; 32613} 32614_ACEOF 32615if ac_fn_c_try_compile "$LINENO"; then : 32616 32617$as_echo "#define _GNU_SOURCE 1" >>confdefs.h 32618 32619fi 32620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32621 32622 32623 prefix_NONE= 32624 exec_prefix_NONE= 32625 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 32626 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 32627 eval ac_define_dir="\"$prefix\"" 32628 eval ac_define_dir="\"$ac_define_dir\"" 32629 PROJECTROOT="$ac_define_dir" 32630 32631 32632cat >>confdefs.h <<_ACEOF 32633#define PROJECTROOT "$ac_define_dir" 32634_ACEOF 32635 32636 test "$prefix_NONE" && prefix=NONE 32637 test "$exec_prefix_NONE" && exec_prefix=NONE 32638 32639 32640 prefix_NONE= 32641 exec_prefix_NONE= 32642 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 32643 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 32644 eval ac_define_dir="\"$sysconfdir\"" 32645 eval ac_define_dir="\"$ac_define_dir\"" 32646 SYSCONFDIR="$ac_define_dir" 32647 32648 32649cat >>confdefs.h <<_ACEOF 32650#define SYSCONFDIR "$ac_define_dir" 32651_ACEOF 32652 32653 test "$prefix_NONE" && prefix=NONE 32654 test "$exec_prefix_NONE" && exec_prefix=NONE 32655 32656 32657 32658DATE_FMT="%Y%m%d" 32659TIME_FMT="1%H%M%S" 32660BUILD_DATE="`date "+$DATE_FMT"`" 32661BUILD_TIME="`date "+$TIME_FMT"`" 32662if test "x$SOURCE_DATE_EPOCH" != "x"; then 32663 BUILD_DATE="`date -u -d "@$SOURCE_DATE_EPOCH" "+$DATE_FMT" 2>/dev/null || date -u -r "$SOURCE_DATE_EPOCH" "+$DATE_FMT" 2>/dev/null || date -u "+$DATE_FMT"`" 32664 BUILD_TIME="`date -u -d "@$SOURCE_DATE_EPOCH" "+$TIME_FMT" 2>/dev/null || date -u -r "$SOURCE_DATE_EPOCH" "+$TIME_FMT" 2>/dev/null || date -u "+$TIME_FMT"`" 32665fi 32666 32667 32668 32669DIX_CFLAGS="-DHAVE_DIX_CONFIG_H $XSERVER_CFLAGS" 32670 32671 32672 32673 32674 32675 32676 32677ac_config_commands="$ac_config_commands sdksyms" 32678 32679 32680if test "x$CONFIG_HAL" = xno && test "x$CONFIG_UDEV" = xno; then 32681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 32682 *********************************************** 32683 Neither HAL nor udev backend will be enabled. 32684 Input device hotplugging will not be available! 32685 ***********************************************" >&5 32686$as_echo "$as_me: WARNING: 32687 *********************************************** 32688 Neither HAL nor udev backend will be enabled. 32689 Input device hotplugging will not be available! 32690 ***********************************************" >&2;} 32691fi 32692 32693ac_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/common/xf86Build.h 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/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/vbe/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/cvt/Makefile hw/xfree86/utils/gtf/Makefile hw/dmx/config/Makefile hw/dmx/config/man/Makefile hw/dmx/doc/Makefile hw/dmx/doxygen/doxygen.conf hw/dmx/doxygen/Makefile hw/dmx/examples/Makefile hw/dmx/input/Makefile hw/dmx/glxProxy/Makefile hw/dmx/Makefile hw/dmx/man/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 hw/xwayland/Makefile test/Makefile xserver.ent xorg-server.pc" 32694 32695cat >confcache <<\_ACEOF 32696# This file is a shell script that caches the results of configure 32697# tests run on this system so they can be shared between configure 32698# scripts and configure runs, see configure's option --config-cache. 32699# It is not useful on other systems. If it contains results you don't 32700# want to keep, you may remove or edit it. 32701# 32702# config.status only pays attention to the cache file if you give it 32703# the --recheck option to rerun configure. 32704# 32705# `ac_cv_env_foo' variables (set or unset) will be overridden when 32706# loading this file, other *unset* `ac_cv_foo' will be assigned the 32707# following values. 32708 32709_ACEOF 32710 32711# The following way of writing the cache mishandles newlines in values, 32712# but we know of no workaround that is simple, portable, and efficient. 32713# So, we kill variables containing newlines. 32714# Ultrix sh set writes to stderr and can't be redirected directly, 32715# and sets the high bit in the cache file unless we assign to the vars. 32716( 32717 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 32718 eval ac_val=\$$ac_var 32719 case $ac_val in #( 32720 *${as_nl}*) 32721 case $ac_var in #( 32722 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 32723$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 32724 esac 32725 case $ac_var in #( 32726 _ | IFS | as_nl) ;; #( 32727 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 32728 *) { eval $ac_var=; unset $ac_var;} ;; 32729 esac ;; 32730 esac 32731 done 32732 32733 (set) 2>&1 | 32734 case $as_nl`(ac_space=' '; set) 2>&1` in #( 32735 *${as_nl}ac_space=\ *) 32736 # `set' does not quote correctly, so add quotes: double-quote 32737 # substitution turns \\\\ into \\, and sed turns \\ into \. 32738 sed -n \ 32739 "s/'/'\\\\''/g; 32740 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 32741 ;; #( 32742 *) 32743 # `set' quotes correctly as required by POSIX, so do not add quotes. 32744 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 32745 ;; 32746 esac | 32747 sort 32748) | 32749 sed ' 32750 /^ac_cv_env_/b end 32751 t clear 32752 :clear 32753 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 32754 t end 32755 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 32756 :end' >>confcache 32757if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 32758 if test -w "$cache_file"; then 32759 if test "x$cache_file" != "x/dev/null"; then 32760 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 32761$as_echo "$as_me: updating cache $cache_file" >&6;} 32762 if test ! -f "$cache_file" || test -h "$cache_file"; then 32763 cat confcache >"$cache_file" 32764 else 32765 case $cache_file in #( 32766 */* | ?:*) 32767 mv -f confcache "$cache_file"$$ && 32768 mv -f "$cache_file"$$ "$cache_file" ;; #( 32769 *) 32770 mv -f confcache "$cache_file" ;; 32771 esac 32772 fi 32773 fi 32774 else 32775 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 32776$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 32777 fi 32778fi 32779rm -f confcache 32780 32781test "x$prefix" = xNONE && prefix=$ac_default_prefix 32782# Let make expand exec_prefix. 32783test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 32784 32785DEFS=-DHAVE_CONFIG_H 32786 32787ac_libobjs= 32788ac_ltlibobjs= 32789U= 32790for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 32791 # 1. Remove the extension, and $U if already installed. 32792 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 32793 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 32794 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 32795 # will be set to the directory where LIBOBJS objects are built. 32796 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 32797 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 32798done 32799LIBOBJS=$ac_libobjs 32800 32801LTLIBOBJS=$ac_ltlibobjs 32802 32803 32804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 32805$as_echo_n "checking that generated files are newer than configure... " >&6; } 32806 if test -n "$am_sleep_pid"; then 32807 # Hide warnings about reused PIDs. 32808 wait $am_sleep_pid 2>/dev/null 32809 fi 32810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 32811$as_echo "done" >&6; } 32812 if test -n "$EXEEXT"; then 32813 am__EXEEXT_TRUE= 32814 am__EXEEXT_FALSE='#' 32815else 32816 am__EXEEXT_TRUE='#' 32817 am__EXEEXT_FALSE= 32818fi 32819 32820if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 32821 as_fn_error $? "conditional \"AMDEP\" was never defined. 32822Usually this means the macro was only invoked conditionally." "$LINENO" 5 32823fi 32824if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 32825 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 32826Usually this means the macro was only invoked conditionally." "$LINENO" 5 32827fi 32828if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then 32829 as_fn_error $? "conditional \"HAVE_DOT\" was never defined. 32830Usually this means the macro was only invoked conditionally." "$LINENO" 5 32831fi 32832if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then 32833 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined. 32834Usually this means the macro was only invoked conditionally." "$LINENO" 5 32835fi 32836if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 32837 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 32838Usually this means the macro was only invoked conditionally." "$LINENO" 5 32839fi 32840if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then 32841 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined. 32842Usually this means the macro was only invoked conditionally." "$LINENO" 5 32843fi 32844if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then 32845 as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined. 32846Usually this means the macro was only invoked conditionally." "$LINENO" 5 32847fi 32848if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 32849 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 32850Usually this means the macro was only invoked conditionally." "$LINENO" 5 32851fi 32852if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 32853 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 32854Usually this means the macro was only invoked conditionally." "$LINENO" 5 32855fi 32856if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 32857 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 32858Usually this means the macro was only invoked conditionally." "$LINENO" 5 32859fi 32860if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 32861 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 32862Usually this means the macro was only invoked conditionally." "$LINENO" 5 32863fi 32864if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then 32865 as_fn_error $? "conditional \"ENABLE_UNIT_TESTS\" was never defined. 32866Usually this means the macro was only invoked conditionally." "$LINENO" 5 32867fi 32868if test -z "${HAVE_LD_WRAP_TRUE}" && test -z "${HAVE_LD_WRAP_FALSE}"; then 32869 as_fn_error $? "conditional \"HAVE_LD_WRAP\" was never defined. 32870Usually this means the macro was only invoked conditionally." "$LINENO" 5 32871fi 32872if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then 32873 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. 32874Usually this means the macro was only invoked conditionally." "$LINENO" 5 32875fi 32876if test -z "${XSERVER_DTRACE_TRUE}" && test -z "${XSERVER_DTRACE_FALSE}"; then 32877 as_fn_error $? "conditional \"XSERVER_DTRACE\" was never defined. 32878Usually this means the macro was only invoked conditionally." "$LINENO" 5 32879fi 32880if test -z "${SPECIAL_DTRACE_OBJECTS_TRUE}" && test -z "${SPECIAL_DTRACE_OBJECTS_FALSE}"; then 32881 as_fn_error $? "conditional \"SPECIAL_DTRACE_OBJECTS\" was never defined. 32882Usually this means the macro was only invoked conditionally." "$LINENO" 5 32883fi 32884 32885if test -z "${POLL_TRUE}" && test -z "${POLL_FALSE}"; then 32886 as_fn_error $? "conditional \"POLL\" was never defined. 32887Usually this means the macro was only invoked conditionally." "$LINENO" 5 32888fi 32889if test -z "${AGP_TRUE}" && test -z "${AGP_FALSE}"; then 32890 as_fn_error $? "conditional \"AGP\" was never defined. 32891Usually this means the macro was only invoked conditionally." "$LINENO" 5 32892fi 32893if test -z "${FBDEVHW_TRUE}" && test -z "${FBDEVHW_FALSE}"; then 32894 as_fn_error $? "conditional \"FBDEVHW\" was never defined. 32895Usually this means the macro was only invoked conditionally." "$LINENO" 5 32896fi 32897if test -z "${FREEBSD_KLDLOAD_TRUE}" && test -z "${FREEBSD_KLDLOAD_FALSE}"; then 32898 as_fn_error $? "conditional \"FREEBSD_KLDLOAD\" was never defined. 32899Usually this means the macro was only invoked conditionally." "$LINENO" 5 32900fi 32901if test -z "${BSD_APM_TRUE}" && test -z "${BSD_APM_FALSE}"; then 32902 as_fn_error $? "conditional \"BSD_APM\" was never defined. 32903Usually this means the macro was only invoked conditionally." "$LINENO" 5 32904fi 32905if test -z "${BSD_KQUEUE_APM_TRUE}" && test -z "${BSD_KQUEUE_APM_FALSE}"; then 32906 as_fn_error $? "conditional \"BSD_KQUEUE_APM\" was never defined. 32907Usually this means the macro was only invoked conditionally." "$LINENO" 5 32908fi 32909if test -z "${ALPHA_VIDEO_TRUE}" && test -z "${ALPHA_VIDEO_FALSE}"; then 32910 as_fn_error $? "conditional \"ALPHA_VIDEO\" was never defined. 32911Usually this means the macro was only invoked conditionally." "$LINENO" 5 32912fi 32913if test -z "${ARM_VIDEO_TRUE}" && test -z "${ARM_VIDEO_FALSE}"; then 32914 as_fn_error $? "conditional \"ARM_VIDEO\" was never defined. 32915Usually this means the macro was only invoked conditionally." "$LINENO" 5 32916fi 32917if test -z "${I386_VIDEO_TRUE}" && test -z "${I386_VIDEO_FALSE}"; then 32918 as_fn_error $? "conditional \"I386_VIDEO\" was never defined. 32919Usually this means the macro was only invoked conditionally." "$LINENO" 5 32920fi 32921if test -z "${PPC_VIDEO_TRUE}" && test -z "${PPC_VIDEO_FALSE}"; then 32922 as_fn_error $? "conditional \"PPC_VIDEO\" was never defined. 32923Usually this means the macro was only invoked conditionally." "$LINENO" 5 32924fi 32925if test -z "${SPARC64_VIDEO_TRUE}" && test -z "${SPARC64_VIDEO_FALSE}"; then 32926 as_fn_error $? "conditional \"SPARC64_VIDEO\" was never defined. 32927Usually this means the macro was only invoked conditionally." "$LINENO" 5 32928fi 32929if test -z "${INSTALL_SETUID_TRUE}" && test -z "${INSTALL_SETUID_FALSE}"; then 32930 as_fn_error $? "conditional \"INSTALL_SETUID\" was never defined. 32931Usually this means the macro was only invoked conditionally." "$LINENO" 5 32932fi 32933if test -z "${SECURE_RPC_TRUE}" && test -z "${SECURE_RPC_FALSE}"; then 32934 as_fn_error $? "conditional \"SECURE_RPC\" was never defined. 32935Usually this means the macro was only invoked conditionally." "$LINENO" 5 32936fi 32937if test -z "${INT10_VM86_TRUE}" && test -z "${INT10_VM86_FALSE}"; then 32938 as_fn_error $? "conditional \"INT10_VM86\" was never defined. 32939Usually this means the macro was only invoked conditionally." "$LINENO" 5 32940fi 32941if test -z "${INT10_X86EMU_TRUE}" && test -z "${INT10_X86EMU_FALSE}"; then 32942 as_fn_error $? "conditional \"INT10_X86EMU\" was never defined. 32943Usually this means the macro was only invoked conditionally." "$LINENO" 5 32944fi 32945if test -z "${INT10_STUB_TRUE}" && test -z "${INT10_STUB_FALSE}"; then 32946 as_fn_error $? "conditional \"INT10_STUB\" was never defined. 32947Usually this means the macro was only invoked conditionally." "$LINENO" 5 32948fi 32949if test -z "${HAVE_SYSTEMD_DAEMON_TRUE}" && test -z "${HAVE_SYSTEMD_DAEMON_FALSE}"; then 32950 as_fn_error $? "conditional \"HAVE_SYSTEMD_DAEMON\" was never defined. 32951Usually this means the macro was only invoked conditionally." "$LINENO" 5 32952fi 32953if test -z "${CONFIG_UDEV_TRUE}" && test -z "${CONFIG_UDEV_FALSE}"; then 32954 as_fn_error $? "conditional \"CONFIG_UDEV\" was never defined. 32955Usually this means the macro was only invoked conditionally." "$LINENO" 5 32956fi 32957if test -z "${CONFIG_UDEV_KMS_TRUE}" && test -z "${CONFIG_UDEV_KMS_FALSE}"; then 32958 as_fn_error $? "conditional \"CONFIG_UDEV_KMS\" was never defined. 32959Usually this means the macro was only invoked conditionally." "$LINENO" 5 32960fi 32961if test -z "${HAVE_DBUS_TRUE}" && test -z "${HAVE_DBUS_FALSE}"; then 32962 as_fn_error $? "conditional \"HAVE_DBUS\" was never defined. 32963Usually this means the macro was only invoked conditionally." "$LINENO" 5 32964fi 32965if test -z "${CONFIG_HAL_TRUE}" && test -z "${CONFIG_HAL_FALSE}"; then 32966 as_fn_error $? "conditional \"CONFIG_HAL\" was never defined. 32967Usually this means the macro was only invoked conditionally." "$LINENO" 5 32968fi 32969if test -z "${SYSTEMD_LOGIND_TRUE}" && test -z "${SYSTEMD_LOGIND_FALSE}"; then 32970 as_fn_error $? "conditional \"SYSTEMD_LOGIND\" was never defined. 32971Usually this means the macro was only invoked conditionally." "$LINENO" 5 32972fi 32973if test -z "${SUID_WRAPPER_TRUE}" && test -z "${SUID_WRAPPER_FALSE}"; then 32974 as_fn_error $? "conditional \"SUID_WRAPPER\" was never defined. 32975Usually this means the macro was only invoked conditionally." "$LINENO" 5 32976fi 32977if test -z "${NEED_DBUS_TRUE}" && test -z "${NEED_DBUS_FALSE}"; then 32978 as_fn_error $? "conditional \"NEED_DBUS\" was never defined. 32979Usually this means the macro was only invoked conditionally." "$LINENO" 5 32980fi 32981if test -z "${CONFIG_WSCONS_TRUE}" && test -z "${CONFIG_WSCONS_FALSE}"; then 32982 as_fn_error $? "conditional \"CONFIG_WSCONS\" was never defined. 32983Usually this means the macro was only invoked conditionally." "$LINENO" 5 32984fi 32985if test -z "${XV_TRUE}" && test -z "${XV_FALSE}"; then 32986 as_fn_error $? "conditional \"XV\" was never defined. 32987Usually this means the macro was only invoked conditionally." "$LINENO" 5 32988fi 32989if test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then 32990 as_fn_error $? "conditional \"XVMC\" was never defined. 32991Usually this means the macro was only invoked conditionally." "$LINENO" 5 32992fi 32993if test -z "${COMPOSITE_TRUE}" && test -z "${COMPOSITE_FALSE}"; then 32994 as_fn_error $? "conditional \"COMPOSITE\" was never defined. 32995Usually this means the macro was only invoked conditionally." "$LINENO" 5 32996fi 32997if test -z "${MITSHM_TRUE}" && test -z "${MITSHM_FALSE}"; then 32998 as_fn_error $? "conditional \"MITSHM\" was never defined. 32999Usually this means the macro was only invoked conditionally." "$LINENO" 5 33000fi 33001if test -z "${RECORD_TRUE}" && test -z "${RECORD_FALSE}"; then 33002 as_fn_error $? "conditional \"RECORD\" was never defined. 33003Usually this means the macro was only invoked conditionally." "$LINENO" 5 33004fi 33005if test -z "${SCREENSAVER_TRUE}" && test -z "${SCREENSAVER_FALSE}"; then 33006 as_fn_error $? "conditional \"SCREENSAVER\" was never defined. 33007Usually this means the macro was only invoked conditionally." "$LINENO" 5 33008fi 33009if test -z "${RES_TRUE}" && test -z "${RES_FALSE}"; then 33010 as_fn_error $? "conditional \"RES\" was never defined. 33011Usually this means the macro was only invoked conditionally." "$LINENO" 5 33012fi 33013if test -z "${CLIENTIDS_TRUE}" && test -z "${CLIENTIDS_FALSE}"; then 33014 as_fn_error $? "conditional \"CLIENTIDS\" was never defined. 33015Usually this means the macro was only invoked conditionally." "$LINENO" 5 33016fi 33017if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then 33018 as_fn_error $? "conditional \"DRI\" was never defined. 33019Usually this means the macro was only invoked conditionally." "$LINENO" 5 33020fi 33021if test -z "${DRI2_TRUE}" && test -z "${DRI2_FALSE}"; then 33022 as_fn_error $? "conditional \"DRI2\" was never defined. 33023Usually this means the macro was only invoked conditionally." "$LINENO" 5 33024fi 33025if test -z "${BUSFAULT_TRUE}" && test -z "${BUSFAULT_FALSE}"; then 33026 as_fn_error $? "conditional \"BUSFAULT\" was never defined. 33027Usually this means the macro was only invoked conditionally." "$LINENO" 5 33028fi 33029if test -z "${XSHMFENCE_TRUE}" && test -z "${XSHMFENCE_FALSE}"; then 33030 as_fn_error $? "conditional \"XSHMFENCE\" was never defined. 33031Usually this means the macro was only invoked conditionally." "$LINENO" 5 33032fi 33033if test -z "${DRI3_TRUE}" && test -z "${DRI3_FALSE}"; then 33034 as_fn_error $? "conditional \"DRI3\" was never defined. 33035Usually this means the macro was only invoked conditionally." "$LINENO" 5 33036fi 33037if test -z "${GLX_TRUE}" && test -z "${GLX_FALSE}"; then 33038 as_fn_error $? "conditional \"GLX\" was never defined. 33039Usually this means the macro was only invoked conditionally." "$LINENO" 5 33040fi 33041if test -z "${HASHTABLE_TRUE}" && test -z "${HASHTABLE_FALSE}"; then 33042 as_fn_error $? "conditional \"HASHTABLE\" was never defined. 33043Usually this means the macro was only invoked conditionally." "$LINENO" 5 33044fi 33045if test -z "${PRESENT_TRUE}" && test -z "${PRESENT_FALSE}"; then 33046 as_fn_error $? "conditional \"PRESENT\" was never defined. 33047Usually this means the macro was only invoked conditionally." "$LINENO" 5 33048fi 33049if test -z "${XINERAMA_TRUE}" && test -z "${XINERAMA_FALSE}"; then 33050 as_fn_error $? "conditional \"XINERAMA\" was never defined. 33051Usually this means the macro was only invoked conditionally." "$LINENO" 5 33052fi 33053if test -z "${XACE_TRUE}" && test -z "${XACE_FALSE}"; then 33054 as_fn_error $? "conditional \"XACE\" was never defined. 33055Usually this means the macro was only invoked conditionally." "$LINENO" 5 33056fi 33057if test -z "${XSELINUX_TRUE}" && test -z "${XSELINUX_FALSE}"; then 33058 as_fn_error $? "conditional \"XSELINUX\" was never defined. 33059Usually this means the macro was only invoked conditionally." "$LINENO" 5 33060fi 33061if test -z "${XCSECURITY_TRUE}" && test -z "${XCSECURITY_FALSE}"; then 33062 as_fn_error $? "conditional \"XCSECURITY\" was never defined. 33063Usually this means the macro was only invoked conditionally." "$LINENO" 5 33064fi 33065if test -z "${DBE_TRUE}" && test -z "${DBE_FALSE}"; then 33066 as_fn_error $? "conditional \"DBE\" was never defined. 33067Usually this means the macro was only invoked conditionally." "$LINENO" 5 33068fi 33069if test -z "${XF86BIGFONT_TRUE}" && test -z "${XF86BIGFONT_FALSE}"; then 33070 as_fn_error $? "conditional \"XF86BIGFONT\" was never defined. 33071Usually this means the macro was only invoked conditionally." "$LINENO" 5 33072fi 33073if test -z "${DPMSExtension_TRUE}" && test -z "${DPMSExtension_FALSE}"; then 33074 as_fn_error $? "conditional \"DPMSExtension\" was never defined. 33075Usually this means the macro was only invoked conditionally." "$LINENO" 5 33076fi 33077if test -z "${XF86UTILS_TRUE}" && test -z "${XF86UTILS_FALSE}"; then 33078 as_fn_error $? "conditional \"XF86UTILS\" was never defined. 33079Usually this means the macro was only invoked conditionally." "$LINENO" 5 33080fi 33081if test -z "${VGAHW_TRUE}" && test -z "${VGAHW_FALSE}"; then 33082 as_fn_error $? "conditional \"VGAHW\" was never defined. 33083Usually this means the macro was only invoked conditionally." "$LINENO" 5 33084fi 33085if test -z "${VBE_TRUE}" && test -z "${VBE_FALSE}"; then 33086 as_fn_error $? "conditional \"VBE\" was never defined. 33087Usually this means the macro was only invoked conditionally." "$LINENO" 5 33088fi 33089if test -z "${INT10MODULE_TRUE}" && test -z "${INT10MODULE_FALSE}"; then 33090 as_fn_error $? "conditional \"INT10MODULE\" was never defined. 33091Usually this means the macro was only invoked conditionally." "$LINENO" 5 33092fi 33093if test -z "${XDMCP_TRUE}" && test -z "${XDMCP_FALSE}"; then 33094 as_fn_error $? "conditional \"XDMCP\" was never defined. 33095Usually this means the macro was only invoked conditionally." "$LINENO" 5 33096fi 33097if test -z "${XDMAUTH_TRUE}" && test -z "${XDMAUTH_FALSE}"; then 33098 as_fn_error $? "conditional \"XDMAUTH\" was never defined. 33099Usually this means the macro was only invoked conditionally." "$LINENO" 5 33100fi 33101if test -z "${XF86VIDMODE_TRUE}" && test -z "${XF86VIDMODE_FALSE}"; then 33102 as_fn_error $? "conditional \"XF86VIDMODE\" was never defined. 33103Usually this means the macro was only invoked conditionally." "$LINENO" 5 33104fi 33105if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then 33106 as_fn_error $? "conditional \"DEBUG\" was never defined. 33107Usually this means the macro was only invoked conditionally." "$LINENO" 5 33108fi 33109if test -z "${HAVE_LIBUNWIND_TRUE}" && test -z "${HAVE_LIBUNWIND_FALSE}"; then 33110 as_fn_error $? "conditional \"HAVE_LIBUNWIND\" was never defined. 33111Usually this means the macro was only invoked conditionally." "$LINENO" 5 33112fi 33113if test -z "${CYGWIN_TRUE}" && test -z "${CYGWIN_FALSE}"; then 33114 as_fn_error $? "conditional \"CYGWIN\" was never defined. 33115Usually this means the macro was only invoked conditionally." "$LINENO" 5 33116fi 33117if test -z "${NO_UNDEFINED_TRUE}" && test -z "${NO_UNDEFINED_FALSE}"; then 33118 as_fn_error $? "conditional \"NO_UNDEFINED\" was never defined. 33119Usually this means the macro was only invoked conditionally." "$LINENO" 5 33120fi 33121if test -z "${XVFB_TRUE}" && test -z "${XVFB_FALSE}"; then 33122 as_fn_error $? "conditional \"XVFB\" was never defined. 33123Usually this means the macro was only invoked conditionally." "$LINENO" 5 33124fi 33125if test -z "${XNEST_TRUE}" && test -z "${XNEST_FALSE}"; then 33126 as_fn_error $? "conditional \"XNEST\" was never defined. 33127Usually this means the macro was only invoked conditionally." "$LINENO" 5 33128fi 33129if test -z "${XORG_TRUE}" && test -z "${XORG_FALSE}"; then 33130 as_fn_error $? "conditional \"XORG\" was never defined. 33131Usually this means the macro was only invoked conditionally." "$LINENO" 5 33132fi 33133if test -z "${XORG_BUS_PCI_TRUE}" && test -z "${XORG_BUS_PCI_FALSE}"; then 33134 as_fn_error $? "conditional \"XORG_BUS_PCI\" was never defined. 33135Usually this means the macro was only invoked conditionally." "$LINENO" 5 33136fi 33137if test -z "${XORG_BUS_BSDPCI_TRUE}" && test -z "${XORG_BUS_BSDPCI_FALSE}"; then 33138 as_fn_error $? "conditional \"XORG_BUS_BSDPCI\" was never defined. 33139Usually this means the macro was only invoked conditionally." "$LINENO" 5 33140fi 33141if test -z "${XORG_BUS_SPARC_TRUE}" && test -z "${XORG_BUS_SPARC_FALSE}"; then 33142 as_fn_error $? "conditional \"XORG_BUS_SPARC\" was never defined. 33143Usually this means the macro was only invoked conditionally." "$LINENO" 5 33144fi 33145if test -z "${LNXACPI_TRUE}" && test -z "${LNXACPI_FALSE}"; then 33146 as_fn_error $? "conditional \"LNXACPI\" was never defined. 33147Usually this means the macro was only invoked conditionally." "$LINENO" 5 33148fi 33149if test -z "${LNXAPM_TRUE}" && test -z "${LNXAPM_FALSE}"; then 33150 as_fn_error $? "conditional \"LNXAPM\" was never defined. 33151Usually this means the macro was only invoked conditionally." "$LINENO" 5 33152fi 33153if test -z "${SOLARIS_VT_TRUE}" && test -z "${SOLARIS_VT_FALSE}"; then 33154 as_fn_error $? "conditional \"SOLARIS_VT\" was never defined. 33155Usually this means the macro was only invoked conditionally." "$LINENO" 5 33156fi 33157if test -z "${DGA_TRUE}" && test -z "${DGA_FALSE}"; then 33158 as_fn_error $? "conditional \"DGA\" was never defined. 33159Usually this means the macro was only invoked conditionally." "$LINENO" 5 33160fi 33161if test -z "${XORG_BUS_PLATFORM_TRUE}" && test -z "${XORG_BUS_PLATFORM_FALSE}"; then 33162 as_fn_error $? "conditional \"XORG_BUS_PLATFORM\" was never defined. 33163Usually this means the macro was only invoked conditionally." "$LINENO" 5 33164fi 33165if test -z "${XORG_DRIVER_MODESETTING_TRUE}" && test -z "${XORG_DRIVER_MODESETTING_FALSE}"; then 33166 as_fn_error $? "conditional \"XORG_DRIVER_MODESETTING\" was never defined. 33167Usually this means the macro was only invoked conditionally." "$LINENO" 5 33168fi 33169if test -z "${GLAMOR_TRUE}" && test -z "${GLAMOR_FALSE}"; then 33170 as_fn_error $? "conditional \"GLAMOR\" was never defined. 33171Usually this means the macro was only invoked conditionally." "$LINENO" 5 33172fi 33173if test -z "${GLAMOR_EGL_TRUE}" && test -z "${GLAMOR_EGL_FALSE}"; then 33174 as_fn_error $? "conditional \"GLAMOR_EGL\" was never defined. 33175Usually this means the macro was only invoked conditionally." "$LINENO" 5 33176fi 33177if test -z "${XWIN_TRUE}" && test -z "${XWIN_FALSE}"; then 33178 as_fn_error $? "conditional \"XWIN\" was never defined. 33179Usually this means the macro was only invoked conditionally." "$LINENO" 5 33180fi 33181if test -z "${XWIN_MULTIWINDOWEXTWM_TRUE}" && test -z "${XWIN_MULTIWINDOWEXTWM_FALSE}"; then 33182 as_fn_error $? "conditional \"XWIN_MULTIWINDOWEXTWM\" was never defined. 33183Usually this means the macro was only invoked conditionally." "$LINENO" 5 33184fi 33185if test -z "${XWIN_GLX_WINDOWS_TRUE}" && test -z "${XWIN_GLX_WINDOWS_FALSE}"; then 33186 as_fn_error $? "conditional \"XWIN_GLX_WINDOWS\" was never defined. 33187Usually this means the macro was only invoked conditionally." "$LINENO" 5 33188fi 33189if test -z "${XWIN_WINDOWS_DRI_TRUE}" && test -z "${XWIN_WINDOWS_DRI_FALSE}"; then 33190 as_fn_error $? "conditional \"XWIN_WINDOWS_DRI\" was never defined. 33191Usually this means the macro was only invoked conditionally." "$LINENO" 5 33192fi 33193if test -z "${PSEUDORAMIX_TRUE}" && test -z "${PSEUDORAMIX_FALSE}"; then 33194 as_fn_error $? "conditional \"PSEUDORAMIX\" was never defined. 33195Usually this means the macro was only invoked conditionally." "$LINENO" 5 33196fi 33197if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then 33198 as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined. 33199Usually this means the macro was only invoked conditionally." "$LINENO" 5 33200fi 33201if test -z "${XQUARTZ_TRUE}" && test -z "${XQUARTZ_FALSE}"; then 33202 as_fn_error $? "conditional \"XQUARTZ\" was never defined. 33203Usually this means the macro was only invoked conditionally." "$LINENO" 5 33204fi 33205if test -z "${XQUARTZ_SPARKLE_TRUE}" && test -z "${XQUARTZ_SPARKLE_FALSE}"; then 33206 as_fn_error $? "conditional \"XQUARTZ_SPARKLE\" was never defined. 33207Usually this means the macro was only invoked conditionally." "$LINENO" 5 33208fi 33209if test -z "${STANDALONE_XPBPROXY_TRUE}" && test -z "${STANDALONE_XPBPROXY_FALSE}"; then 33210 as_fn_error $? "conditional \"STANDALONE_XPBPROXY\" was never defined. 33211Usually this means the macro was only invoked conditionally." "$LINENO" 5 33212fi 33213if test -z "${DMX_TRUE}" && test -z "${DMX_FALSE}"; then 33214 as_fn_error $? "conditional \"DMX\" was never defined. 33215Usually this means the macro was only invoked conditionally." "$LINENO" 5 33216fi 33217if test -z "${DMX_BUILD_USB_TRUE}" && test -z "${DMX_BUILD_USB_FALSE}"; then 33218 as_fn_error $? "conditional \"DMX_BUILD_USB\" was never defined. 33219Usually this means the macro was only invoked conditionally." "$LINENO" 5 33220fi 33221if test -z "${KDRIVE_TRUE}" && test -z "${KDRIVE_FALSE}"; then 33222 as_fn_error $? "conditional \"KDRIVE\" was never defined. 33223Usually this means the macro was only invoked conditionally." "$LINENO" 5 33224fi 33225if test -z "${XEPHYR_TRUE}" && test -z "${XEPHYR_FALSE}"; then 33226 as_fn_error $? "conditional \"XEPHYR\" was never defined. 33227Usually this means the macro was only invoked conditionally." "$LINENO" 5 33228fi 33229if test -z "${XWAYLAND_TRUE}" && test -z "${XWAYLAND_FALSE}"; then 33230 as_fn_error $? "conditional \"XWAYLAND\" was never defined. 33231Usually this means the macro was only invoked conditionally." "$LINENO" 5 33232fi 33233if test -z "${XWAYLAND_EGLSTREAM_TRUE}" && test -z "${XWAYLAND_EGLSTREAM_FALSE}"; then 33234 as_fn_error $? "conditional \"XWAYLAND_EGLSTREAM\" was never defined. 33235Usually this means the macro was only invoked conditionally." "$LINENO" 5 33236fi 33237 33238: "${CONFIG_STATUS=./config.status}" 33239ac_write_fail=0 33240ac_clean_files_save=$ac_clean_files 33241ac_clean_files="$ac_clean_files $CONFIG_STATUS" 33242{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 33243$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 33244as_write_fail=0 33245cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 33246#! $SHELL 33247# Generated by $as_me. 33248# Run this file to recreate the current configuration. 33249# Compiler output produced by configure, useful for debugging 33250# configure, is in config.log if it exists. 33251 33252debug=false 33253ac_cs_recheck=false 33254ac_cs_silent=false 33255 33256SHELL=\${CONFIG_SHELL-$SHELL} 33257export SHELL 33258_ASEOF 33259cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 33260## -------------------- ## 33261## M4sh Initialization. ## 33262## -------------------- ## 33263 33264# Be more Bourne compatible 33265DUALCASE=1; export DUALCASE # for MKS sh 33266if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 33267 emulate sh 33268 NULLCMD=: 33269 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 33270 # is contrary to our usage. Disable this feature. 33271 alias -g '${1+"$@"}'='"$@"' 33272 setopt NO_GLOB_SUBST 33273else 33274 case `(set -o) 2>/dev/null` in #( 33275 *posix*) : 33276 set -o posix ;; #( 33277 *) : 33278 ;; 33279esac 33280fi 33281 33282 33283as_nl=' 33284' 33285export as_nl 33286# Printing a long string crashes Solaris 7 /usr/bin/printf. 33287as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 33288as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 33289as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 33290# Prefer a ksh shell builtin over an external printf program on Solaris, 33291# but without wasting forks for bash or zsh. 33292if test -z "$BASH_VERSION$ZSH_VERSION" \ 33293 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 33294 as_echo='print -r --' 33295 as_echo_n='print -rn --' 33296elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 33297 as_echo='printf %s\n' 33298 as_echo_n='printf %s' 33299else 33300 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 33301 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 33302 as_echo_n='/usr/ucb/echo -n' 33303 else 33304 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 33305 as_echo_n_body='eval 33306 arg=$1; 33307 case $arg in #( 33308 *"$as_nl"*) 33309 expr "X$arg" : "X\\(.*\\)$as_nl"; 33310 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 33311 esac; 33312 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 33313 ' 33314 export as_echo_n_body 33315 as_echo_n='sh -c $as_echo_n_body as_echo' 33316 fi 33317 export as_echo_body 33318 as_echo='sh -c $as_echo_body as_echo' 33319fi 33320 33321# The user is always right. 33322if test "${PATH_SEPARATOR+set}" != set; then 33323 PATH_SEPARATOR=: 33324 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 33325 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 33326 PATH_SEPARATOR=';' 33327 } 33328fi 33329 33330 33331# IFS 33332# We need space, tab and new line, in precisely that order. Quoting is 33333# there to prevent editors from complaining about space-tab. 33334# (If _AS_PATH_WALK were called with IFS unset, it would disable word 33335# splitting by setting IFS to empty value.) 33336IFS=" "" $as_nl" 33337 33338# Find who we are. Look in the path if we contain no directory separator. 33339as_myself= 33340case $0 in #(( 33341 *[\\/]* ) as_myself=$0 ;; 33342 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33343for as_dir in $PATH 33344do 33345 IFS=$as_save_IFS 33346 test -z "$as_dir" && as_dir=. 33347 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 33348 done 33349IFS=$as_save_IFS 33350 33351 ;; 33352esac 33353# We did not find ourselves, most probably we were run as `sh COMMAND' 33354# in which case we are not to be found in the path. 33355if test "x$as_myself" = x; then 33356 as_myself=$0 33357fi 33358if test ! -f "$as_myself"; then 33359 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 33360 exit 1 33361fi 33362 33363# Unset variables that we do not need and which cause bugs (e.g. in 33364# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 33365# suppresses any "Segmentation fault" message there. '((' could 33366# trigger a bug in pdksh 5.2.14. 33367for as_var in BASH_ENV ENV MAIL MAILPATH 33368do eval test x\${$as_var+set} = xset \ 33369 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 33370done 33371PS1='$ ' 33372PS2='> ' 33373PS4='+ ' 33374 33375# NLS nuisances. 33376LC_ALL=C 33377export LC_ALL 33378LANGUAGE=C 33379export LANGUAGE 33380 33381# CDPATH. 33382(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 33383 33384 33385# as_fn_error STATUS ERROR [LINENO LOG_FD] 33386# ---------------------------------------- 33387# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 33388# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 33389# script with STATUS, using 1 if that was 0. 33390as_fn_error () 33391{ 33392 as_status=$1; test $as_status -eq 0 && as_status=1 33393 if test "$4"; then 33394 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 33395 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 33396 fi 33397 $as_echo "$as_me: error: $2" >&2 33398 as_fn_exit $as_status 33399} # as_fn_error 33400 33401 33402# as_fn_set_status STATUS 33403# ----------------------- 33404# Set $? to STATUS, without forking. 33405as_fn_set_status () 33406{ 33407 return $1 33408} # as_fn_set_status 33409 33410# as_fn_exit STATUS 33411# ----------------- 33412# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 33413as_fn_exit () 33414{ 33415 set +e 33416 as_fn_set_status $1 33417 exit $1 33418} # as_fn_exit 33419 33420# as_fn_unset VAR 33421# --------------- 33422# Portably unset VAR. 33423as_fn_unset () 33424{ 33425 { eval $1=; unset $1;} 33426} 33427as_unset=as_fn_unset 33428# as_fn_append VAR VALUE 33429# ---------------------- 33430# Append the text in VALUE to the end of the definition contained in VAR. Take 33431# advantage of any shell optimizations that allow amortized linear growth over 33432# repeated appends, instead of the typical quadratic growth present in naive 33433# implementations. 33434if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 33435 eval 'as_fn_append () 33436 { 33437 eval $1+=\$2 33438 }' 33439else 33440 as_fn_append () 33441 { 33442 eval $1=\$$1\$2 33443 } 33444fi # as_fn_append 33445 33446# as_fn_arith ARG... 33447# ------------------ 33448# Perform arithmetic evaluation on the ARGs, and store the result in the 33449# global $as_val. Take advantage of shells that can avoid forks. The arguments 33450# must be portable across $(()) and expr. 33451if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 33452 eval 'as_fn_arith () 33453 { 33454 as_val=$(( $* )) 33455 }' 33456else 33457 as_fn_arith () 33458 { 33459 as_val=`expr "$@" || test $? -eq 1` 33460 } 33461fi # as_fn_arith 33462 33463 33464if expr a : '\(a\)' >/dev/null 2>&1 && 33465 test "X`expr 00001 : '.*\(...\)'`" = X001; then 33466 as_expr=expr 33467else 33468 as_expr=false 33469fi 33470 33471if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 33472 as_basename=basename 33473else 33474 as_basename=false 33475fi 33476 33477if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 33478 as_dirname=dirname 33479else 33480 as_dirname=false 33481fi 33482 33483as_me=`$as_basename -- "$0" || 33484$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 33485 X"$0" : 'X\(//\)$' \| \ 33486 X"$0" : 'X\(/\)' \| . 2>/dev/null || 33487$as_echo X/"$0" | 33488 sed '/^.*\/\([^/][^/]*\)\/*$/{ 33489 s//\1/ 33490 q 33491 } 33492 /^X\/\(\/\/\)$/{ 33493 s//\1/ 33494 q 33495 } 33496 /^X\/\(\/\).*/{ 33497 s//\1/ 33498 q 33499 } 33500 s/.*/./; q'` 33501 33502# Avoid depending upon Character Ranges. 33503as_cr_letters='abcdefghijklmnopqrstuvwxyz' 33504as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 33505as_cr_Letters=$as_cr_letters$as_cr_LETTERS 33506as_cr_digits='0123456789' 33507as_cr_alnum=$as_cr_Letters$as_cr_digits 33508 33509ECHO_C= ECHO_N= ECHO_T= 33510case `echo -n x` in #((((( 33511-n*) 33512 case `echo 'xy\c'` in 33513 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 33514 xy) ECHO_C='\c';; 33515 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 33516 ECHO_T=' ';; 33517 esac;; 33518*) 33519 ECHO_N='-n';; 33520esac 33521 33522rm -f conf$$ conf$$.exe conf$$.file 33523if test -d conf$$.dir; then 33524 rm -f conf$$.dir/conf$$.file 33525else 33526 rm -f conf$$.dir 33527 mkdir conf$$.dir 2>/dev/null 33528fi 33529if (echo >conf$$.file) 2>/dev/null; then 33530 if ln -s conf$$.file conf$$ 2>/dev/null; then 33531 as_ln_s='ln -s' 33532 # ... but there are two gotchas: 33533 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 33534 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 33535 # In both cases, we have to default to `cp -pR'. 33536 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 33537 as_ln_s='cp -pR' 33538 elif ln conf$$.file conf$$ 2>/dev/null; then 33539 as_ln_s=ln 33540 else 33541 as_ln_s='cp -pR' 33542 fi 33543else 33544 as_ln_s='cp -pR' 33545fi 33546rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 33547rmdir conf$$.dir 2>/dev/null 33548 33549 33550# as_fn_mkdir_p 33551# ------------- 33552# Create "$as_dir" as a directory, including parents if necessary. 33553as_fn_mkdir_p () 33554{ 33555 33556 case $as_dir in #( 33557 -*) as_dir=./$as_dir;; 33558 esac 33559 test -d "$as_dir" || eval $as_mkdir_p || { 33560 as_dirs= 33561 while :; do 33562 case $as_dir in #( 33563 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 33564 *) as_qdir=$as_dir;; 33565 esac 33566 as_dirs="'$as_qdir' $as_dirs" 33567 as_dir=`$as_dirname -- "$as_dir" || 33568$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 33569 X"$as_dir" : 'X\(//\)[^/]' \| \ 33570 X"$as_dir" : 'X\(//\)$' \| \ 33571 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 33572$as_echo X"$as_dir" | 33573 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 33574 s//\1/ 33575 q 33576 } 33577 /^X\(\/\/\)[^/].*/{ 33578 s//\1/ 33579 q 33580 } 33581 /^X\(\/\/\)$/{ 33582 s//\1/ 33583 q 33584 } 33585 /^X\(\/\).*/{ 33586 s//\1/ 33587 q 33588 } 33589 s/.*/./; q'` 33590 test -d "$as_dir" && break 33591 done 33592 test -z "$as_dirs" || eval "mkdir $as_dirs" 33593 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 33594 33595 33596} # as_fn_mkdir_p 33597if mkdir -p . 2>/dev/null; then 33598 as_mkdir_p='mkdir -p "$as_dir"' 33599else 33600 test -d ./-p && rmdir ./-p 33601 as_mkdir_p=false 33602fi 33603 33604 33605# as_fn_executable_p FILE 33606# ----------------------- 33607# Test if FILE is an executable regular file. 33608as_fn_executable_p () 33609{ 33610 test -f "$1" && test -x "$1" 33611} # as_fn_executable_p 33612as_test_x='test -x' 33613as_executable_p=as_fn_executable_p 33614 33615# Sed expression to map a string onto a valid CPP name. 33616as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 33617 33618# Sed expression to map a string onto a valid variable name. 33619as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 33620 33621 33622exec 6>&1 33623## ----------------------------------- ## 33624## Main body of $CONFIG_STATUS script. ## 33625## ----------------------------------- ## 33626_ASEOF 33627test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 33628 33629cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33630# Save the log message, to keep $0 and so on meaningful, and to 33631# report actual input values of CONFIG_FILES etc. instead of their 33632# values after options handling. 33633ac_log=" 33634This file was extended by xorg-server $as_me 1.20.10, which was 33635generated by GNU Autoconf 2.69. Invocation command line was 33636 33637 CONFIG_FILES = $CONFIG_FILES 33638 CONFIG_HEADERS = $CONFIG_HEADERS 33639 CONFIG_LINKS = $CONFIG_LINKS 33640 CONFIG_COMMANDS = $CONFIG_COMMANDS 33641 $ $0 $@ 33642 33643on `(hostname || uname -n) 2>/dev/null | sed 1q` 33644" 33645 33646_ACEOF 33647 33648case $ac_config_files in *" 33649"*) set x $ac_config_files; shift; ac_config_files=$*;; 33650esac 33651 33652case $ac_config_headers in *" 33653"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 33654esac 33655 33656 33657cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33658# Files that config.status was made for. 33659config_files="$ac_config_files" 33660config_headers="$ac_config_headers" 33661config_commands="$ac_config_commands" 33662 33663_ACEOF 33664 33665cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33666ac_cs_usage="\ 33667\`$as_me' instantiates files and other configuration actions 33668from templates according to the current configuration. Unless the files 33669and actions are specified as TAGs, all are instantiated by default. 33670 33671Usage: $0 [OPTION]... [TAG]... 33672 33673 -h, --help print this help, then exit 33674 -V, --version print version number and configuration settings, then exit 33675 --config print configuration, then exit 33676 -q, --quiet, --silent 33677 do not print progress messages 33678 -d, --debug don't remove temporary files 33679 --recheck update $as_me by reconfiguring in the same conditions 33680 --file=FILE[:TEMPLATE] 33681 instantiate the configuration file FILE 33682 --header=FILE[:TEMPLATE] 33683 instantiate the configuration header FILE 33684 33685Configuration files: 33686$config_files 33687 33688Configuration headers: 33689$config_headers 33690 33691Configuration commands: 33692$config_commands 33693 33694Report bugs to <https://gitlab.freedesktop.org/xorg/xserver/issues>." 33695 33696_ACEOF 33697cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33698ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 33699ac_cs_version="\\ 33700xorg-server config.status 1.20.10 33701configured by $0, generated by GNU Autoconf 2.69, 33702 with options \\"\$ac_cs_config\\" 33703 33704Copyright (C) 2012 Free Software Foundation, Inc. 33705This config.status script is free software; the Free Software Foundation 33706gives unlimited permission to copy, distribute and modify it." 33707 33708ac_pwd='$ac_pwd' 33709srcdir='$srcdir' 33710INSTALL='$INSTALL' 33711MKDIR_P='$MKDIR_P' 33712AWK='$AWK' 33713test -n "\$AWK" || AWK=awk 33714_ACEOF 33715 33716cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33717# The default lists apply if the user does not specify any file. 33718ac_need_defaults=: 33719while test $# != 0 33720do 33721 case $1 in 33722 --*=?*) 33723 ac_option=`expr "X$1" : 'X\([^=]*\)='` 33724 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 33725 ac_shift=: 33726 ;; 33727 --*=) 33728 ac_option=`expr "X$1" : 'X\([^=]*\)='` 33729 ac_optarg= 33730 ac_shift=: 33731 ;; 33732 *) 33733 ac_option=$1 33734 ac_optarg=$2 33735 ac_shift=shift 33736 ;; 33737 esac 33738 33739 case $ac_option in 33740 # Handling of the options. 33741 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 33742 ac_cs_recheck=: ;; 33743 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 33744 $as_echo "$ac_cs_version"; exit ;; 33745 --config | --confi | --conf | --con | --co | --c ) 33746 $as_echo "$ac_cs_config"; exit ;; 33747 --debug | --debu | --deb | --de | --d | -d ) 33748 debug=: ;; 33749 --file | --fil | --fi | --f ) 33750 $ac_shift 33751 case $ac_optarg in 33752 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 33753 '') as_fn_error $? "missing file argument" ;; 33754 esac 33755 as_fn_append CONFIG_FILES " '$ac_optarg'" 33756 ac_need_defaults=false;; 33757 --header | --heade | --head | --hea ) 33758 $ac_shift 33759 case $ac_optarg in 33760 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 33761 esac 33762 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 33763 ac_need_defaults=false;; 33764 --he | --h) 33765 # Conflict between --help and --header 33766 as_fn_error $? "ambiguous option: \`$1' 33767Try \`$0 --help' for more information.";; 33768 --help | --hel | -h ) 33769 $as_echo "$ac_cs_usage"; exit ;; 33770 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 33771 | -silent | --silent | --silen | --sile | --sil | --si | --s) 33772 ac_cs_silent=: ;; 33773 33774 # This is an error. 33775 -*) as_fn_error $? "unrecognized option: \`$1' 33776Try \`$0 --help' for more information." ;; 33777 33778 *) as_fn_append ac_config_targets " $1" 33779 ac_need_defaults=false ;; 33780 33781 esac 33782 shift 33783done 33784 33785ac_configure_extra_args= 33786 33787if $ac_cs_silent; then 33788 exec 6>/dev/null 33789 ac_configure_extra_args="$ac_configure_extra_args --silent" 33790fi 33791 33792_ACEOF 33793cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33794if \$ac_cs_recheck; then 33795 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 33796 shift 33797 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 33798 CONFIG_SHELL='$SHELL' 33799 export CONFIG_SHELL 33800 exec "\$@" 33801fi 33802 33803_ACEOF 33804cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 33805exec 5>>config.log 33806{ 33807 echo 33808 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 33809## Running $as_me. ## 33810_ASBOX 33811 $as_echo "$ac_log" 33812} >&5 33813 33814_ACEOF 33815cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 33816# 33817# INIT-COMMANDS 33818# 33819AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 33820 33821 33822# The HP-UX ksh and POSIX shell print the target directory to stdout 33823# if CDPATH is set. 33824(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 33825 33826sed_quote_subst='$sed_quote_subst' 33827double_quote_subst='$double_quote_subst' 33828delay_variable_subst='$delay_variable_subst' 33829macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 33830macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 33831enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 33832AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 33833DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 33834OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 33835enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 33836pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 33837enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 33838shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 33839SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 33840ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 33841PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 33842host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 33843host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 33844host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 33845build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 33846build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 33847build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 33848SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 33849Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 33850GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 33851EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 33852FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 33853LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 33854NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 33855LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 33856max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 33857ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 33858exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 33859lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 33860lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 33861lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 33862lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 33863lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 33864reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 33865reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 33866deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 33867file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 33868file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 33869want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 33870sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 33871AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 33872AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 33873archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 33874STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 33875RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 33876old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 33877old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 33878old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 33879lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 33880CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 33881CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 33882compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 33883GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 33884lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 33885lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 33886lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 33887lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 33888lt_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"`' 33889lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 33890nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 33891lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 33892lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 33893objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 33894MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 33895lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 33896lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 33897lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 33898lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 33899lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 33900need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 33901MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 33902DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 33903NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 33904LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 33905OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 33906OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 33907libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 33908shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 33909extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 33910archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 33911enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 33912export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 33913whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 33914compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 33915old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 33916old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 33917archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 33918archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 33919module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 33920module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 33921with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 33922allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 33923no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 33924hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 33925hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 33926hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 33927hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 33928hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 33929hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 33930hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 33931inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 33932link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 33933always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 33934export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 33935exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 33936include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 33937prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 33938postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 33939file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 33940variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 33941need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 33942need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 33943version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 33944runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 33945shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 33946shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 33947libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 33948library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 33949soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 33950install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 33951postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 33952postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 33953finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 33954finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 33955hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 33956sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 33957configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 33958configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 33959hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 33960enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 33961enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 33962enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 33963old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 33964striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 33965 33966LTCC='$LTCC' 33967LTCFLAGS='$LTCFLAGS' 33968compiler='$compiler_DEFAULT' 33969 33970# A function that is used when there is no print builtin or printf. 33971func_fallback_echo () 33972{ 33973 eval 'cat <<_LTECHO_EOF 33974\$1 33975_LTECHO_EOF' 33976} 33977 33978# Quote evaled strings. 33979for var in AS \ 33980DLLTOOL \ 33981OBJDUMP \ 33982SHELL \ 33983ECHO \ 33984PATH_SEPARATOR \ 33985SED \ 33986GREP \ 33987EGREP \ 33988FGREP \ 33989LD \ 33990NM \ 33991LN_S \ 33992lt_SP2NL \ 33993lt_NL2SP \ 33994reload_flag \ 33995deplibs_check_method \ 33996file_magic_cmd \ 33997file_magic_glob \ 33998want_nocaseglob \ 33999sharedlib_from_linklib_cmd \ 34000AR \ 34001AR_FLAGS \ 34002archiver_list_spec \ 34003STRIP \ 34004RANLIB \ 34005CC \ 34006CFLAGS \ 34007compiler \ 34008lt_cv_sys_global_symbol_pipe \ 34009lt_cv_sys_global_symbol_to_cdecl \ 34010lt_cv_sys_global_symbol_to_import \ 34011lt_cv_sys_global_symbol_to_c_name_address \ 34012lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 34013lt_cv_nm_interface \ 34014nm_file_list_spec \ 34015lt_cv_truncate_bin \ 34016lt_prog_compiler_no_builtin_flag \ 34017lt_prog_compiler_pic \ 34018lt_prog_compiler_wl \ 34019lt_prog_compiler_static \ 34020lt_cv_prog_compiler_c_o \ 34021need_locks \ 34022MANIFEST_TOOL \ 34023DSYMUTIL \ 34024NMEDIT \ 34025LIPO \ 34026OTOOL \ 34027OTOOL64 \ 34028shrext_cmds \ 34029export_dynamic_flag_spec \ 34030whole_archive_flag_spec \ 34031compiler_needs_object \ 34032with_gnu_ld \ 34033allow_undefined_flag \ 34034no_undefined_flag \ 34035hardcode_libdir_flag_spec \ 34036hardcode_libdir_separator \ 34037exclude_expsyms \ 34038include_expsyms \ 34039file_list_spec \ 34040variables_saved_for_relink \ 34041libname_spec \ 34042library_names_spec \ 34043soname_spec \ 34044install_override_mode \ 34045finish_eval \ 34046old_striplib \ 34047striplib; do 34048 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 34049 *[\\\\\\\`\\"\\\$]*) 34050 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 34051 ;; 34052 *) 34053 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 34054 ;; 34055 esac 34056done 34057 34058# Double-quote double-evaled strings. 34059for var in reload_cmds \ 34060old_postinstall_cmds \ 34061old_postuninstall_cmds \ 34062old_archive_cmds \ 34063extract_expsyms_cmds \ 34064old_archive_from_new_cmds \ 34065old_archive_from_expsyms_cmds \ 34066archive_cmds \ 34067archive_expsym_cmds \ 34068module_cmds \ 34069module_expsym_cmds \ 34070export_symbols_cmds \ 34071prelink_cmds \ 34072postlink_cmds \ 34073postinstall_cmds \ 34074postuninstall_cmds \ 34075finish_cmds \ 34076sys_lib_search_path_spec \ 34077configure_time_dlsearch_path \ 34078configure_time_lt_sys_library_path; do 34079 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 34080 *[\\\\\\\`\\"\\\$]*) 34081 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 34082 ;; 34083 *) 34084 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 34085 ;; 34086 esac 34087done 34088 34089ac_aux_dir='$ac_aux_dir' 34090 34091# See if we are running on zsh, and set the options that allow our 34092# commands through without removal of \ escapes INIT. 34093if test -n "\${ZSH_VERSION+set}"; then 34094 setopt NO_GLOB_SUBST 34095fi 34096 34097 34098 PACKAGE='$PACKAGE' 34099 VERSION='$VERSION' 34100 RM='$RM' 34101 ofile='$ofile' 34102 34103 34104 34105 34106_ACEOF 34107 34108cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34109 34110# Handling of arguments. 34111for ac_config_target in $ac_config_targets 34112do 34113 case $ac_config_target in 34114 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 34115 "include/do-not-use-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/do-not-use-config.h" ;; 34116 "include/xorg-server.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-server.h" ;; 34117 "include/dix-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/dix-config.h" ;; 34118 "include/xorg-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-config.h" ;; 34119 "include/xkb-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xkb-config.h" ;; 34120 "include/xwin-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xwin-config.h" ;; 34121 "include/xwayland-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xwayland-config.h" ;; 34122 "include/version-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/version-config.h" ;; 34123 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 34124 "sdksyms") CONFIG_COMMANDS="$CONFIG_COMMANDS sdksyms" ;; 34125 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 34126 "glx/Makefile") CONFIG_FILES="$CONFIG_FILES glx/Makefile" ;; 34127 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 34128 "composite/Makefile") CONFIG_FILES="$CONFIG_FILES composite/Makefile" ;; 34129 "damageext/Makefile") CONFIG_FILES="$CONFIG_FILES damageext/Makefile" ;; 34130 "dbe/Makefile") CONFIG_FILES="$CONFIG_FILES dbe/Makefile" ;; 34131 "dix/Makefile") CONFIG_FILES="$CONFIG_FILES dix/Makefile" ;; 34132 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 34133 "doc/dtrace/Makefile") CONFIG_FILES="$CONFIG_FILES doc/dtrace/Makefile" ;; 34134 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 34135 "fb/Makefile") CONFIG_FILES="$CONFIG_FILES fb/Makefile" ;; 34136 "glamor/Makefile") CONFIG_FILES="$CONFIG_FILES glamor/Makefile" ;; 34137 "record/Makefile") CONFIG_FILES="$CONFIG_FILES record/Makefile" ;; 34138 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;; 34139 "mi/Makefile") CONFIG_FILES="$CONFIG_FILES mi/Makefile" ;; 34140 "miext/Makefile") CONFIG_FILES="$CONFIG_FILES miext/Makefile" ;; 34141 "miext/sync/Makefile") CONFIG_FILES="$CONFIG_FILES miext/sync/Makefile" ;; 34142 "miext/damage/Makefile") CONFIG_FILES="$CONFIG_FILES miext/damage/Makefile" ;; 34143 "miext/shadow/Makefile") CONFIG_FILES="$CONFIG_FILES miext/shadow/Makefile" ;; 34144 "miext/rootless/Makefile") CONFIG_FILES="$CONFIG_FILES miext/rootless/Makefile" ;; 34145 "os/Makefile") CONFIG_FILES="$CONFIG_FILES os/Makefile" ;; 34146 "pseudoramiX/Makefile") CONFIG_FILES="$CONFIG_FILES pseudoramiX/Makefile" ;; 34147 "randr/Makefile") CONFIG_FILES="$CONFIG_FILES randr/Makefile" ;; 34148 "render/Makefile") CONFIG_FILES="$CONFIG_FILES render/Makefile" ;; 34149 "xkb/Makefile") CONFIG_FILES="$CONFIG_FILES xkb/Makefile" ;; 34150 "Xext/Makefile") CONFIG_FILES="$CONFIG_FILES Xext/Makefile" ;; 34151 "Xi/Makefile") CONFIG_FILES="$CONFIG_FILES Xi/Makefile" ;; 34152 "xfixes/Makefile") CONFIG_FILES="$CONFIG_FILES xfixes/Makefile" ;; 34153 "exa/Makefile") CONFIG_FILES="$CONFIG_FILES exa/Makefile" ;; 34154 "dri3/Makefile") CONFIG_FILES="$CONFIG_FILES dri3/Makefile" ;; 34155 "present/Makefile") CONFIG_FILES="$CONFIG_FILES present/Makefile" ;; 34156 "hw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/Makefile" ;; 34157 "hw/xfree86/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/Makefile" ;; 34158 "hw/xfree86/Xorg.sh") CONFIG_FILES="$CONFIG_FILES hw/xfree86/Xorg.sh" ;; 34159 "hw/xfree86/common/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/common/Makefile" ;; 34160 "hw/xfree86/common/xf86Build.h") CONFIG_FILES="$CONFIG_FILES hw/xfree86/common/xf86Build.h" ;; 34161 "hw/xfree86/ddc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ddc/Makefile" ;; 34162 "hw/xfree86/dixmods/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dixmods/Makefile" ;; 34163 "hw/xfree86/doc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/doc/Makefile" ;; 34164 "hw/xfree86/dri/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri/Makefile" ;; 34165 "hw/xfree86/dri2/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri2/Makefile" ;; 34166 "hw/xfree86/dri2/pci_ids/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri2/pci_ids/Makefile" ;; 34167 "hw/xfree86/drivers/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/drivers/Makefile" ;; 34168 "hw/xfree86/drivers/modesetting/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/drivers/modesetting/Makefile" ;; 34169 "hw/xfree86/exa/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/exa/Makefile" ;; 34170 "hw/xfree86/exa/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/exa/man/Makefile" ;; 34171 "hw/xfree86/fbdevhw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/fbdevhw/Makefile" ;; 34172 "hw/xfree86/fbdevhw/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/fbdevhw/man/Makefile" ;; 34173 "hw/xfree86/glamor_egl/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/glamor_egl/Makefile" ;; 34174 "hw/xfree86/i2c/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/i2c/Makefile" ;; 34175 "hw/xfree86/int10/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/int10/Makefile" ;; 34176 "hw/xfree86/loader/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/loader/Makefile" ;; 34177 "hw/xfree86/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/man/Makefile" ;; 34178 "hw/xfree86/modes/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/modes/Makefile" ;; 34179 "hw/xfree86/os-support/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/Makefile" ;; 34180 "hw/xfree86/os-support/bsd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bsd/Makefile" ;; 34181 "hw/xfree86/os-support/bus/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bus/Makefile" ;; 34182 "hw/xfree86/os-support/hurd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/hurd/Makefile" ;; 34183 "hw/xfree86/os-support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/misc/Makefile" ;; 34184 "hw/xfree86/os-support/linux/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/linux/Makefile" ;; 34185 "hw/xfree86/os-support/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/solaris/Makefile" ;; 34186 "hw/xfree86/os-support/stub/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/stub/Makefile" ;; 34187 "hw/xfree86/parser/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/parser/Makefile" ;; 34188 "hw/xfree86/ramdac/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ramdac/Makefile" ;; 34189 "hw/xfree86/shadowfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/shadowfb/Makefile" ;; 34190 "hw/xfree86/vbe/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/vbe/Makefile" ;; 34191 "hw/xfree86/vgahw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/vgahw/Makefile" ;; 34192 "hw/xfree86/x86emu/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/x86emu/Makefile" ;; 34193 "hw/xfree86/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/xkb/Makefile" ;; 34194 "hw/xfree86/utils/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/Makefile" ;; 34195 "hw/xfree86/utils/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/man/Makefile" ;; 34196 "hw/xfree86/utils/cvt/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/cvt/Makefile" ;; 34197 "hw/xfree86/utils/gtf/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/gtf/Makefile" ;; 34198 "hw/dmx/config/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/config/Makefile" ;; 34199 "hw/dmx/config/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/config/man/Makefile" ;; 34200 "hw/dmx/doc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/doc/Makefile" ;; 34201 "hw/dmx/doxygen/doxygen.conf") CONFIG_FILES="$CONFIG_FILES hw/dmx/doxygen/doxygen.conf" ;; 34202 "hw/dmx/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/doxygen/Makefile" ;; 34203 "hw/dmx/examples/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/examples/Makefile" ;; 34204 "hw/dmx/input/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/input/Makefile" ;; 34205 "hw/dmx/glxProxy/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/glxProxy/Makefile" ;; 34206 "hw/dmx/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/Makefile" ;; 34207 "hw/dmx/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/dmx/man/Makefile" ;; 34208 "hw/vfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/vfb/Makefile" ;; 34209 "hw/vfb/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/vfb/man/Makefile" ;; 34210 "hw/xnest/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xnest/Makefile" ;; 34211 "hw/xnest/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xnest/man/Makefile" ;; 34212 "hw/xwin/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/Makefile" ;; 34213 "hw/xwin/dri/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/dri/Makefile" ;; 34214 "hw/xwin/glx/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/glx/Makefile" ;; 34215 "hw/xwin/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/man/Makefile" ;; 34216 "hw/xwin/winclipboard/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/winclipboard/Makefile" ;; 34217 "hw/xquartz/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/Makefile" ;; 34218 "hw/xquartz/GL/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/GL/Makefile" ;; 34219 "hw/xquartz/bundle/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/bundle/Makefile" ;; 34220 "hw/xquartz/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/man/Makefile" ;; 34221 "hw/xquartz/mach-startup/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/mach-startup/Makefile" ;; 34222 "hw/xquartz/pbproxy/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/pbproxy/Makefile" ;; 34223 "hw/xquartz/xpr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/xpr/Makefile" ;; 34224 "hw/kdrive/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/Makefile" ;; 34225 "hw/kdrive/ephyr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/ephyr/Makefile" ;; 34226 "hw/kdrive/ephyr/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/ephyr/man/Makefile" ;; 34227 "hw/kdrive/src/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/src/Makefile" ;; 34228 "hw/xwayland/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwayland/Makefile" ;; 34229 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 34230 "xserver.ent") CONFIG_FILES="$CONFIG_FILES xserver.ent" ;; 34231 "xorg-server.pc") CONFIG_FILES="$CONFIG_FILES xorg-server.pc" ;; 34232 34233 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 34234 esac 34235done 34236 34237 34238# If the user did not use the arguments to specify the items to instantiate, 34239# then the envvar interface is used. Set only those that are not. 34240# We use the long form for the default assignment because of an extremely 34241# bizarre bug on SunOS 4.1.3. 34242if $ac_need_defaults; then 34243 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 34244 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 34245 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 34246fi 34247 34248# Have a temporary directory for convenience. Make it in the build tree 34249# simply because there is no reason against having it here, and in addition, 34250# creating and moving files from /tmp can sometimes cause problems. 34251# Hook for its removal unless debugging. 34252# Note that there is a small window in which the directory will not be cleaned: 34253# after its creation but before its name has been assigned to `$tmp'. 34254$debug || 34255{ 34256 tmp= ac_tmp= 34257 trap 'exit_status=$? 34258 : "${ac_tmp:=$tmp}" 34259 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 34260' 0 34261 trap 'as_fn_exit 1' 1 2 13 15 34262} 34263# Create a (secure) tmp directory for tmp files. 34264 34265{ 34266 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 34267 test -d "$tmp" 34268} || 34269{ 34270 tmp=./conf$$-$RANDOM 34271 (umask 077 && mkdir "$tmp") 34272} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 34273ac_tmp=$tmp 34274 34275# Set up the scripts for CONFIG_FILES section. 34276# No need to generate them if there are no CONFIG_FILES. 34277# This happens for instance with `./config.status config.h'. 34278if test -n "$CONFIG_FILES"; then 34279 34280 34281ac_cr=`echo X | tr X '\015'` 34282# On cygwin, bash can eat \r inside `` if the user requested igncr. 34283# But we know of no other shell where ac_cr would be empty at this 34284# point, so we can use a bashism as a fallback. 34285if test "x$ac_cr" = x; then 34286 eval ac_cr=\$\'\\r\' 34287fi 34288ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 34289if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 34290 ac_cs_awk_cr='\\r' 34291else 34292 ac_cs_awk_cr=$ac_cr 34293fi 34294 34295echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 34296_ACEOF 34297 34298 34299{ 34300 echo "cat >conf$$subs.awk <<_ACEOF" && 34301 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 34302 echo "_ACEOF" 34303} >conf$$subs.sh || 34304 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 34305ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 34306ac_delim='%!_!# ' 34307for ac_last_try in false false false false false :; do 34308 . ./conf$$subs.sh || 34309 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 34310 34311 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 34312 if test $ac_delim_n = $ac_delim_num; then 34313 break 34314 elif $ac_last_try; then 34315 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 34316 else 34317 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 34318 fi 34319done 34320rm -f conf$$subs.sh 34321 34322cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34323cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 34324_ACEOF 34325sed -n ' 34326h 34327s/^/S["/; s/!.*/"]=/ 34328p 34329g 34330s/^[^!]*!// 34331:repl 34332t repl 34333s/'"$ac_delim"'$// 34334t delim 34335:nl 34336h 34337s/\(.\{148\}\)..*/\1/ 34338t more1 34339s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 34340p 34341n 34342b repl 34343:more1 34344s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 34345p 34346g 34347s/.\{148\}// 34348t nl 34349:delim 34350h 34351s/\(.\{148\}\)..*/\1/ 34352t more2 34353s/["\\]/\\&/g; s/^/"/; s/$/"/ 34354p 34355b 34356:more2 34357s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 34358p 34359g 34360s/.\{148\}// 34361t delim 34362' <conf$$subs.awk | sed ' 34363/^[^""]/{ 34364 N 34365 s/\n// 34366} 34367' >>$CONFIG_STATUS || ac_write_fail=1 34368rm -f conf$$subs.awk 34369cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34370_ACAWK 34371cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 34372 for (key in S) S_is_set[key] = 1 34373 FS = "" 34374 34375} 34376{ 34377 line = $ 0 34378 nfields = split(line, field, "@") 34379 substed = 0 34380 len = length(field[1]) 34381 for (i = 2; i < nfields; i++) { 34382 key = field[i] 34383 keylen = length(key) 34384 if (S_is_set[key]) { 34385 value = S[key] 34386 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 34387 len += length(value) + length(field[++i]) 34388 substed = 1 34389 } else 34390 len += 1 + keylen 34391 } 34392 34393 print line 34394} 34395 34396_ACAWK 34397_ACEOF 34398cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34399if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 34400 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 34401else 34402 cat 34403fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 34404 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 34405_ACEOF 34406 34407# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 34408# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 34409# trailing colons and then remove the whole line if VPATH becomes empty 34410# (actually we leave an empty line to preserve line numbers). 34411if test "x$srcdir" = x.; then 34412 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 34413h 34414s/// 34415s/^/:/ 34416s/[ ]*$/:/ 34417s/:\$(srcdir):/:/g 34418s/:\${srcdir}:/:/g 34419s/:@srcdir@:/:/g 34420s/^:*// 34421s/:*$// 34422x 34423s/\(=[ ]*\).*/\1/ 34424G 34425s/\n// 34426s/^[^=]*=[ ]*$// 34427}' 34428fi 34429 34430cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34431fi # test -n "$CONFIG_FILES" 34432 34433# Set up the scripts for CONFIG_HEADERS section. 34434# No need to generate them if there are no CONFIG_HEADERS. 34435# This happens for instance with `./config.status Makefile'. 34436if test -n "$CONFIG_HEADERS"; then 34437cat >"$ac_tmp/defines.awk" <<\_ACAWK || 34438BEGIN { 34439_ACEOF 34440 34441# Transform confdefs.h into an awk script `defines.awk', embedded as 34442# here-document in config.status, that substitutes the proper values into 34443# config.h.in to produce config.h. 34444 34445# Create a delimiter string that does not exist in confdefs.h, to ease 34446# handling of long lines. 34447ac_delim='%!_!# ' 34448for ac_last_try in false false :; do 34449 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 34450 if test -z "$ac_tt"; then 34451 break 34452 elif $ac_last_try; then 34453 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 34454 else 34455 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 34456 fi 34457done 34458 34459# For the awk script, D is an array of macro values keyed by name, 34460# likewise P contains macro parameters if any. Preserve backslash 34461# newline sequences. 34462 34463ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 34464sed -n ' 34465s/.\{148\}/&'"$ac_delim"'/g 34466t rset 34467:rset 34468s/^[ ]*#[ ]*define[ ][ ]*/ / 34469t def 34470d 34471:def 34472s/\\$// 34473t bsnl 34474s/["\\]/\\&/g 34475s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 34476D["\1"]=" \3"/p 34477s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 34478d 34479:bsnl 34480s/["\\]/\\&/g 34481s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 34482D["\1"]=" \3\\\\\\n"\\/p 34483t cont 34484s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 34485t cont 34486d 34487:cont 34488n 34489s/.\{148\}/&'"$ac_delim"'/g 34490t clear 34491:clear 34492s/\\$// 34493t bsnlc 34494s/["\\]/\\&/g; s/^/"/; s/$/"/p 34495d 34496:bsnlc 34497s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 34498b cont 34499' <confdefs.h | sed ' 34500s/'"$ac_delim"'/"\\\ 34501"/g' >>$CONFIG_STATUS || ac_write_fail=1 34502 34503cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34504 for (key in D) D_is_set[key] = 1 34505 FS = "" 34506} 34507/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 34508 line = \$ 0 34509 split(line, arg, " ") 34510 if (arg[1] == "#") { 34511 defundef = arg[2] 34512 mac1 = arg[3] 34513 } else { 34514 defundef = substr(arg[1], 2) 34515 mac1 = arg[2] 34516 } 34517 split(mac1, mac2, "(") #) 34518 macro = mac2[1] 34519 prefix = substr(line, 1, index(line, defundef) - 1) 34520 if (D_is_set[macro]) { 34521 # Preserve the white space surrounding the "#". 34522 print prefix "define", macro P[macro] D[macro] 34523 next 34524 } else { 34525 # Replace #undef with comments. This is necessary, for example, 34526 # in the case of _POSIX_SOURCE, which is predefined and required 34527 # on some systems where configure will not decide to define it. 34528 if (defundef == "undef") { 34529 print "/*", prefix defundef, macro, "*/" 34530 next 34531 } 34532 } 34533} 34534{ print } 34535_ACAWK 34536_ACEOF 34537cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34538 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 34539fi # test -n "$CONFIG_HEADERS" 34540 34541 34542eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 34543shift 34544for ac_tag 34545do 34546 case $ac_tag in 34547 :[FHLC]) ac_mode=$ac_tag; continue;; 34548 esac 34549 case $ac_mode$ac_tag in 34550 :[FHL]*:*);; 34551 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 34552 :[FH]-) ac_tag=-:-;; 34553 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 34554 esac 34555 ac_save_IFS=$IFS 34556 IFS=: 34557 set x $ac_tag 34558 IFS=$ac_save_IFS 34559 shift 34560 ac_file=$1 34561 shift 34562 34563 case $ac_mode in 34564 :L) ac_source=$1;; 34565 :[FH]) 34566 ac_file_inputs= 34567 for ac_f 34568 do 34569 case $ac_f in 34570 -) ac_f="$ac_tmp/stdin";; 34571 *) # Look for the file first in the build tree, then in the source tree 34572 # (if the path is not absolute). The absolute path cannot be DOS-style, 34573 # because $ac_f cannot contain `:'. 34574 test -f "$ac_f" || 34575 case $ac_f in 34576 [\\/$]*) false;; 34577 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 34578 esac || 34579 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 34580 esac 34581 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 34582 as_fn_append ac_file_inputs " '$ac_f'" 34583 done 34584 34585 # Let's still pretend it is `configure' which instantiates (i.e., don't 34586 # use $as_me), people would be surprised to read: 34587 # /* config.h. Generated by config.status. */ 34588 configure_input='Generated from '` 34589 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 34590 `' by configure.' 34591 if test x"$ac_file" != x-; then 34592 configure_input="$ac_file. $configure_input" 34593 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 34594$as_echo "$as_me: creating $ac_file" >&6;} 34595 fi 34596 # Neutralize special characters interpreted by sed in replacement strings. 34597 case $configure_input in #( 34598 *\&* | *\|* | *\\* ) 34599 ac_sed_conf_input=`$as_echo "$configure_input" | 34600 sed 's/[\\\\&|]/\\\\&/g'`;; #( 34601 *) ac_sed_conf_input=$configure_input;; 34602 esac 34603 34604 case $ac_tag in 34605 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 34606 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 34607 esac 34608 ;; 34609 esac 34610 34611 ac_dir=`$as_dirname -- "$ac_file" || 34612$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 34613 X"$ac_file" : 'X\(//\)[^/]' \| \ 34614 X"$ac_file" : 'X\(//\)$' \| \ 34615 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 34616$as_echo X"$ac_file" | 34617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 34618 s//\1/ 34619 q 34620 } 34621 /^X\(\/\/\)[^/].*/{ 34622 s//\1/ 34623 q 34624 } 34625 /^X\(\/\/\)$/{ 34626 s//\1/ 34627 q 34628 } 34629 /^X\(\/\).*/{ 34630 s//\1/ 34631 q 34632 } 34633 s/.*/./; q'` 34634 as_dir="$ac_dir"; as_fn_mkdir_p 34635 ac_builddir=. 34636 34637case "$ac_dir" in 34638.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 34639*) 34640 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 34641 # A ".." for each directory in $ac_dir_suffix. 34642 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 34643 case $ac_top_builddir_sub in 34644 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 34645 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 34646 esac ;; 34647esac 34648ac_abs_top_builddir=$ac_pwd 34649ac_abs_builddir=$ac_pwd$ac_dir_suffix 34650# for backward compatibility: 34651ac_top_builddir=$ac_top_build_prefix 34652 34653case $srcdir in 34654 .) # We are building in place. 34655 ac_srcdir=. 34656 ac_top_srcdir=$ac_top_builddir_sub 34657 ac_abs_top_srcdir=$ac_pwd ;; 34658 [\\/]* | ?:[\\/]* ) # Absolute name. 34659 ac_srcdir=$srcdir$ac_dir_suffix; 34660 ac_top_srcdir=$srcdir 34661 ac_abs_top_srcdir=$srcdir ;; 34662 *) # Relative name. 34663 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 34664 ac_top_srcdir=$ac_top_build_prefix$srcdir 34665 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 34666esac 34667ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 34668 34669 34670 case $ac_mode in 34671 :F) 34672 # 34673 # CONFIG_FILE 34674 # 34675 34676 case $INSTALL in 34677 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 34678 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 34679 esac 34680 ac_MKDIR_P=$MKDIR_P 34681 case $MKDIR_P in 34682 [\\/$]* | ?:[\\/]* ) ;; 34683 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 34684 esac 34685_ACEOF 34686 34687cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34688# If the template does not know about datarootdir, expand it. 34689# FIXME: This hack should be removed a few years after 2.60. 34690ac_datarootdir_hack=; ac_datarootdir_seen= 34691ac_sed_dataroot=' 34692/datarootdir/ { 34693 p 34694 q 34695} 34696/@datadir@/p 34697/@docdir@/p 34698/@infodir@/p 34699/@localedir@/p 34700/@mandir@/p' 34701case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 34702*datarootdir*) ac_datarootdir_seen=yes;; 34703*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 34704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 34705$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 34706_ACEOF 34707cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34708 ac_datarootdir_hack=' 34709 s&@datadir@&$datadir&g 34710 s&@docdir@&$docdir&g 34711 s&@infodir@&$infodir&g 34712 s&@localedir@&$localedir&g 34713 s&@mandir@&$mandir&g 34714 s&\\\${datarootdir}&$datarootdir&g' ;; 34715esac 34716_ACEOF 34717 34718# Neutralize VPATH when `$srcdir' = `.'. 34719# Shell code in configure.ac might set extrasub. 34720# FIXME: do we really want to maintain this feature? 34721cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 34722ac_sed_extra="$ac_vpsub 34723$extrasub 34724_ACEOF 34725cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 34726:t 34727/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 34728s|@configure_input@|$ac_sed_conf_input|;t t 34729s&@top_builddir@&$ac_top_builddir_sub&;t t 34730s&@top_build_prefix@&$ac_top_build_prefix&;t t 34731s&@srcdir@&$ac_srcdir&;t t 34732s&@abs_srcdir@&$ac_abs_srcdir&;t t 34733s&@top_srcdir@&$ac_top_srcdir&;t t 34734s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 34735s&@builddir@&$ac_builddir&;t t 34736s&@abs_builddir@&$ac_abs_builddir&;t t 34737s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 34738s&@INSTALL@&$ac_INSTALL&;t t 34739s&@MKDIR_P@&$ac_MKDIR_P&;t t 34740$ac_datarootdir_hack 34741" 34742eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 34743 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 34744 34745test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 34746 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 34747 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 34748 "$ac_tmp/out"`; test -z "$ac_out"; } && 34749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 34750which seems to be undefined. Please make sure it is defined" >&5 34751$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 34752which seems to be undefined. Please make sure it is defined" >&2;} 34753 34754 rm -f "$ac_tmp/stdin" 34755 case $ac_file in 34756 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 34757 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 34758 esac \ 34759 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 34760 ;; 34761 :H) 34762 # 34763 # CONFIG_HEADER 34764 # 34765 if test x"$ac_file" != x-; then 34766 { 34767 $as_echo "/* $configure_input */" \ 34768 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 34769 } >"$ac_tmp/config.h" \ 34770 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 34771 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 34772 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 34773$as_echo "$as_me: $ac_file is unchanged" >&6;} 34774 else 34775 rm -f "$ac_file" 34776 mv "$ac_tmp/config.h" "$ac_file" \ 34777 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 34778 fi 34779 else 34780 $as_echo "/* $configure_input */" \ 34781 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 34782 || as_fn_error $? "could not create -" "$LINENO" 5 34783 fi 34784# Compute "$ac_file"'s index in $config_headers. 34785_am_arg="$ac_file" 34786_am_stamp_count=1 34787for _am_header in $config_headers :; do 34788 case $_am_header in 34789 $_am_arg | $_am_arg:* ) 34790 break ;; 34791 * ) 34792 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 34793 esac 34794done 34795echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 34796$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 34797 X"$_am_arg" : 'X\(//\)[^/]' \| \ 34798 X"$_am_arg" : 'X\(//\)$' \| \ 34799 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 34800$as_echo X"$_am_arg" | 34801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 34802 s//\1/ 34803 q 34804 } 34805 /^X\(\/\/\)[^/].*/{ 34806 s//\1/ 34807 q 34808 } 34809 /^X\(\/\/\)$/{ 34810 s//\1/ 34811 q 34812 } 34813 /^X\(\/\).*/{ 34814 s//\1/ 34815 q 34816 } 34817 s/.*/./; q'`/stamp-h$_am_stamp_count 34818 ;; 34819 34820 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 34821$as_echo "$as_me: executing $ac_file commands" >&6;} 34822 ;; 34823 esac 34824 34825 34826 case $ac_file$ac_mode in 34827 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 34828 # Older Autoconf quotes --file arguments for eval, but not when files 34829 # are listed without --file. Let's play safe and only enable the eval 34830 # if we detect the quoting. 34831 # TODO: see whether this extra hack can be removed once we start 34832 # requiring Autoconf 2.70 or later. 34833 case $CONFIG_FILES in #( 34834 *\'*) : 34835 eval set x "$CONFIG_FILES" ;; #( 34836 *) : 34837 set x $CONFIG_FILES ;; #( 34838 *) : 34839 ;; 34840esac 34841 shift 34842 # Used to flag and report bootstrapping failures. 34843 am_rc=0 34844 for am_mf 34845 do 34846 # Strip MF so we end up with the name of the file. 34847 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 34848 # Check whether this is an Automake generated Makefile which includes 34849 # dependency-tracking related rules and includes. 34850 # Grep'ing the whole file directly is not great: AIX grep has a line 34851 # limit of 2048, but all sed's we know have understand at least 4000. 34852 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 34853 || continue 34854 am_dirpart=`$as_dirname -- "$am_mf" || 34855$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 34856 X"$am_mf" : 'X\(//\)[^/]' \| \ 34857 X"$am_mf" : 'X\(//\)$' \| \ 34858 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 34859$as_echo X"$am_mf" | 34860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 34861 s//\1/ 34862 q 34863 } 34864 /^X\(\/\/\)[^/].*/{ 34865 s//\1/ 34866 q 34867 } 34868 /^X\(\/\/\)$/{ 34869 s//\1/ 34870 q 34871 } 34872 /^X\(\/\).*/{ 34873 s//\1/ 34874 q 34875 } 34876 s/.*/./; q'` 34877 am_filepart=`$as_basename -- "$am_mf" || 34878$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 34879 X"$am_mf" : 'X\(//\)$' \| \ 34880 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 34881$as_echo X/"$am_mf" | 34882 sed '/^.*\/\([^/][^/]*\)\/*$/{ 34883 s//\1/ 34884 q 34885 } 34886 /^X\/\(\/\/\)$/{ 34887 s//\1/ 34888 q 34889 } 34890 /^X\/\(\/\).*/{ 34891 s//\1/ 34892 q 34893 } 34894 s/.*/./; q'` 34895 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 34896 && sed -e '/# am--include-marker/d' "$am_filepart" \ 34897 | $MAKE -f - am--depfiles" >&5 34898 (cd "$am_dirpart" \ 34899 && sed -e '/# am--include-marker/d' "$am_filepart" \ 34900 | $MAKE -f - am--depfiles) >&5 2>&5 34901 ac_status=$? 34902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34903 (exit $ac_status); } || am_rc=$? 34904 done 34905 if test $am_rc -ne 0; then 34906 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34907$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34908as_fn_error $? "Something went wrong bootstrapping makefile fragments 34909 for automatic dependency tracking. Try re-running configure with the 34910 '--disable-dependency-tracking' option to at least be able to build 34911 the package (albeit without support for automatic dependency tracking). 34912See \`config.log' for more details" "$LINENO" 5; } 34913 fi 34914 { am_dirpart=; unset am_dirpart;} 34915 { am_filepart=; unset am_filepart;} 34916 { am_mf=; unset am_mf;} 34917 { am_rc=; unset am_rc;} 34918 rm -f conftest-deps.mk 34919} 34920 ;; 34921 "libtool":C) 34922 34923 # See if we are running on zsh, and set the options that allow our 34924 # commands through without removal of \ escapes. 34925 if test -n "${ZSH_VERSION+set}"; then 34926 setopt NO_GLOB_SUBST 34927 fi 34928 34929 cfgfile=${ofile}T 34930 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 34931 $RM "$cfgfile" 34932 34933 cat <<_LT_EOF >> "$cfgfile" 34934#! $SHELL 34935# Generated automatically by $as_me ($PACKAGE) $VERSION 34936# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 34937# NOTE: Changes made to this file will be lost: look at ltmain.sh. 34938 34939# Provide generalized library-building support services. 34940# Written by Gordon Matzigkeit, 1996 34941 34942# Copyright (C) 2014 Free Software Foundation, Inc. 34943# This is free software; see the source for copying conditions. There is NO 34944# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 34945 34946# GNU Libtool is free software; you can redistribute it and/or modify 34947# it under the terms of the GNU General Public License as published by 34948# the Free Software Foundation; either version 2 of of the License, or 34949# (at your option) any later version. 34950# 34951# As a special exception to the GNU General Public License, if you 34952# distribute this file as part of a program or library that is built 34953# using GNU Libtool, you may include this file under the same 34954# distribution terms that you use for the rest of that program. 34955# 34956# GNU Libtool is distributed in the hope that it will be useful, but 34957# WITHOUT ANY WARRANTY; without even the implied warranty of 34958# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 34959# GNU General Public License for more details. 34960# 34961# You should have received a copy of the GNU General Public License 34962# along with this program. If not, see <http://www.gnu.org/licenses/>. 34963 34964 34965# The names of the tagged configurations supported by this script. 34966available_tags='' 34967 34968# Configured defaults for sys_lib_dlsearch_path munging. 34969: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 34970 34971# ### BEGIN LIBTOOL CONFIG 34972 34973# Which release of libtool.m4 was used? 34974macro_version=$macro_version 34975macro_revision=$macro_revision 34976 34977# Whether or not to build static libraries. 34978build_old_libs=$enable_static 34979 34980# Assembler program. 34981AS=$lt_AS 34982 34983# DLL creation program. 34984DLLTOOL=$lt_DLLTOOL 34985 34986# Object dumper program. 34987OBJDUMP=$lt_OBJDUMP 34988 34989# Whether or not to build shared libraries. 34990build_libtool_libs=$enable_shared 34991 34992# What type of objects to build. 34993pic_mode=$pic_mode 34994 34995# Whether or not to optimize for fast installation. 34996fast_install=$enable_fast_install 34997 34998# Shared archive member basename,for filename based shared library versioning on AIX. 34999shared_archive_member_spec=$shared_archive_member_spec 35000 35001# Shell to use when invoking shell scripts. 35002SHELL=$lt_SHELL 35003 35004# An echo program that protects backslashes. 35005ECHO=$lt_ECHO 35006 35007# The PATH separator for the build system. 35008PATH_SEPARATOR=$lt_PATH_SEPARATOR 35009 35010# The host system. 35011host_alias=$host_alias 35012host=$host 35013host_os=$host_os 35014 35015# The build system. 35016build_alias=$build_alias 35017build=$build 35018build_os=$build_os 35019 35020# A sed program that does not truncate output. 35021SED=$lt_SED 35022 35023# Sed that helps us avoid accidentally triggering echo(1) options like -n. 35024Xsed="\$SED -e 1s/^X//" 35025 35026# A grep program that handles long lines. 35027GREP=$lt_GREP 35028 35029# An ERE matcher. 35030EGREP=$lt_EGREP 35031 35032# A literal string matcher. 35033FGREP=$lt_FGREP 35034 35035# A BSD- or MS-compatible name lister. 35036NM=$lt_NM 35037 35038# Whether we need soft or hard links. 35039LN_S=$lt_LN_S 35040 35041# What is the maximum length of a command? 35042max_cmd_len=$max_cmd_len 35043 35044# Object file suffix (normally "o"). 35045objext=$ac_objext 35046 35047# Executable file suffix (normally ""). 35048exeext=$exeext 35049 35050# whether the shell understands "unset". 35051lt_unset=$lt_unset 35052 35053# turn spaces into newlines. 35054SP2NL=$lt_lt_SP2NL 35055 35056# turn newlines into spaces. 35057NL2SP=$lt_lt_NL2SP 35058 35059# convert \$build file names to \$host format. 35060to_host_file_cmd=$lt_cv_to_host_file_cmd 35061 35062# convert \$build files to toolchain format. 35063to_tool_file_cmd=$lt_cv_to_tool_file_cmd 35064 35065# Method to check whether dependent libraries are shared objects. 35066deplibs_check_method=$lt_deplibs_check_method 35067 35068# Command to use when deplibs_check_method = "file_magic". 35069file_magic_cmd=$lt_file_magic_cmd 35070 35071# How to find potential files when deplibs_check_method = "file_magic". 35072file_magic_glob=$lt_file_magic_glob 35073 35074# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 35075want_nocaseglob=$lt_want_nocaseglob 35076 35077# Command to associate shared and link libraries. 35078sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 35079 35080# The archiver. 35081AR=$lt_AR 35082 35083# Flags to create an archive. 35084AR_FLAGS=$lt_AR_FLAGS 35085 35086# How to feed a file listing to the archiver. 35087archiver_list_spec=$lt_archiver_list_spec 35088 35089# A symbol stripping program. 35090STRIP=$lt_STRIP 35091 35092# Commands used to install an old-style archive. 35093RANLIB=$lt_RANLIB 35094old_postinstall_cmds=$lt_old_postinstall_cmds 35095old_postuninstall_cmds=$lt_old_postuninstall_cmds 35096 35097# Whether to use a lock for old archive extraction. 35098lock_old_archive_extraction=$lock_old_archive_extraction 35099 35100# A C compiler. 35101LTCC=$lt_CC 35102 35103# LTCC compiler flags. 35104LTCFLAGS=$lt_CFLAGS 35105 35106# Take the output of nm and produce a listing of raw symbols and C names. 35107global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 35108 35109# Transform the output of nm in a proper C declaration. 35110global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 35111 35112# Transform the output of nm into a list of symbols to manually relocate. 35113global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 35114 35115# Transform the output of nm in a C name address pair. 35116global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 35117 35118# Transform the output of nm in a C name address pair when lib prefix is needed. 35119global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 35120 35121# The name lister interface. 35122nm_interface=$lt_lt_cv_nm_interface 35123 35124# Specify filename containing input files for \$NM. 35125nm_file_list_spec=$lt_nm_file_list_spec 35126 35127# The root where to search for dependent libraries,and where our libraries should be installed. 35128lt_sysroot=$lt_sysroot 35129 35130# Command to truncate a binary pipe. 35131lt_truncate_bin=$lt_lt_cv_truncate_bin 35132 35133# The name of the directory that contains temporary libtool files. 35134objdir=$objdir 35135 35136# Used to examine libraries when file_magic_cmd begins with "file". 35137MAGIC_CMD=$MAGIC_CMD 35138 35139# Must we lock files when doing compilation? 35140need_locks=$lt_need_locks 35141 35142# Manifest tool. 35143MANIFEST_TOOL=$lt_MANIFEST_TOOL 35144 35145# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 35146DSYMUTIL=$lt_DSYMUTIL 35147 35148# Tool to change global to local symbols on Mac OS X. 35149NMEDIT=$lt_NMEDIT 35150 35151# Tool to manipulate fat objects and archives on Mac OS X. 35152LIPO=$lt_LIPO 35153 35154# ldd/readelf like tool for Mach-O binaries on Mac OS X. 35155OTOOL=$lt_OTOOL 35156 35157# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 35158OTOOL64=$lt_OTOOL64 35159 35160# Old archive suffix (normally "a"). 35161libext=$libext 35162 35163# Shared library suffix (normally ".so"). 35164shrext_cmds=$lt_shrext_cmds 35165 35166# The commands to extract the exported symbol list from a shared archive. 35167extract_expsyms_cmds=$lt_extract_expsyms_cmds 35168 35169# Variables whose values should be saved in libtool wrapper scripts and 35170# restored at link time. 35171variables_saved_for_relink=$lt_variables_saved_for_relink 35172 35173# Do we need the "lib" prefix for modules? 35174need_lib_prefix=$need_lib_prefix 35175 35176# Do we need a version for libraries? 35177need_version=$need_version 35178 35179# Library versioning type. 35180version_type=$version_type 35181 35182# Shared library runtime path variable. 35183runpath_var=$runpath_var 35184 35185# Shared library path variable. 35186shlibpath_var=$shlibpath_var 35187 35188# Is shlibpath searched before the hard-coded library search path? 35189shlibpath_overrides_runpath=$shlibpath_overrides_runpath 35190 35191# Format of library name prefix. 35192libname_spec=$lt_libname_spec 35193 35194# List of archive names. First name is the real one, the rest are links. 35195# The last name is the one that the linker finds with -lNAME 35196library_names_spec=$lt_library_names_spec 35197 35198# The coded name of the library, if different from the real name. 35199soname_spec=$lt_soname_spec 35200 35201# Permission mode override for installation of shared libraries. 35202install_override_mode=$lt_install_override_mode 35203 35204# Command to use after installation of a shared archive. 35205postinstall_cmds=$lt_postinstall_cmds 35206 35207# Command to use after uninstallation of a shared archive. 35208postuninstall_cmds=$lt_postuninstall_cmds 35209 35210# Commands used to finish a libtool library installation in a directory. 35211finish_cmds=$lt_finish_cmds 35212 35213# As "finish_cmds", except a single script fragment to be evaled but 35214# not shown. 35215finish_eval=$lt_finish_eval 35216 35217# Whether we should hardcode library paths into libraries. 35218hardcode_into_libs=$hardcode_into_libs 35219 35220# Compile-time system search path for libraries. 35221sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 35222 35223# Detected run-time system search path for libraries. 35224sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 35225 35226# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 35227configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 35228 35229# Whether dlopen is supported. 35230dlopen_support=$enable_dlopen 35231 35232# Whether dlopen of programs is supported. 35233dlopen_self=$enable_dlopen_self 35234 35235# Whether dlopen of statically linked programs is supported. 35236dlopen_self_static=$enable_dlopen_self_static 35237 35238# Commands to strip libraries. 35239old_striplib=$lt_old_striplib 35240striplib=$lt_striplib 35241 35242 35243# The linker used to build libraries. 35244LD=$lt_LD 35245 35246# How to create reloadable object files. 35247reload_flag=$lt_reload_flag 35248reload_cmds=$lt_reload_cmds 35249 35250# Commands used to build an old-style archive. 35251old_archive_cmds=$lt_old_archive_cmds 35252 35253# A language specific compiler. 35254CC=$lt_compiler 35255 35256# Is the compiler the GNU compiler? 35257with_gcc=$GCC 35258 35259# Compiler flag to turn off builtin functions. 35260no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 35261 35262# Additional compiler flags for building library objects. 35263pic_flag=$lt_lt_prog_compiler_pic 35264 35265# How to pass a linker flag through the compiler. 35266wl=$lt_lt_prog_compiler_wl 35267 35268# Compiler flag to prevent dynamic linking. 35269link_static_flag=$lt_lt_prog_compiler_static 35270 35271# Does compiler simultaneously support -c and -o options? 35272compiler_c_o=$lt_lt_cv_prog_compiler_c_o 35273 35274# Whether or not to add -lc for building shared libraries. 35275build_libtool_need_lc=$archive_cmds_need_lc 35276 35277# Whether or not to disallow shared libs when runtime libs are static. 35278allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 35279 35280# Compiler flag to allow reflexive dlopens. 35281export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 35282 35283# Compiler flag to generate shared objects directly from archives. 35284whole_archive_flag_spec=$lt_whole_archive_flag_spec 35285 35286# Whether the compiler copes with passing no objects directly. 35287compiler_needs_object=$lt_compiler_needs_object 35288 35289# Create an old-style archive from a shared archive. 35290old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 35291 35292# Create a temporary old-style archive to link instead of a shared archive. 35293old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 35294 35295# Commands used to build a shared archive. 35296archive_cmds=$lt_archive_cmds 35297archive_expsym_cmds=$lt_archive_expsym_cmds 35298 35299# Commands used to build a loadable module if different from building 35300# a shared archive. 35301module_cmds=$lt_module_cmds 35302module_expsym_cmds=$lt_module_expsym_cmds 35303 35304# Whether we are building with GNU ld or not. 35305with_gnu_ld=$lt_with_gnu_ld 35306 35307# Flag that allows shared libraries with undefined symbols to be built. 35308allow_undefined_flag=$lt_allow_undefined_flag 35309 35310# Flag that enforces no undefined symbols. 35311no_undefined_flag=$lt_no_undefined_flag 35312 35313# Flag to hardcode \$libdir into a binary during linking. 35314# This must work even if \$libdir does not exist 35315hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 35316 35317# Whether we need a single "-rpath" flag with a separated argument. 35318hardcode_libdir_separator=$lt_hardcode_libdir_separator 35319 35320# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 35321# DIR into the resulting binary. 35322hardcode_direct=$hardcode_direct 35323 35324# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 35325# DIR into the resulting binary and the resulting library dependency is 35326# "absolute",i.e impossible to change by setting \$shlibpath_var if the 35327# library is relocated. 35328hardcode_direct_absolute=$hardcode_direct_absolute 35329 35330# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 35331# into the resulting binary. 35332hardcode_minus_L=$hardcode_minus_L 35333 35334# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 35335# into the resulting binary. 35336hardcode_shlibpath_var=$hardcode_shlibpath_var 35337 35338# Set to "yes" if building a shared library automatically hardcodes DIR 35339# into the library and all subsequent libraries and executables linked 35340# against it. 35341hardcode_automatic=$hardcode_automatic 35342 35343# Set to yes if linker adds runtime paths of dependent libraries 35344# to runtime path list. 35345inherit_rpath=$inherit_rpath 35346 35347# Whether libtool must link a program against all its dependency libraries. 35348link_all_deplibs=$link_all_deplibs 35349 35350# Set to "yes" if exported symbols are required. 35351always_export_symbols=$always_export_symbols 35352 35353# The commands to list exported symbols. 35354export_symbols_cmds=$lt_export_symbols_cmds 35355 35356# Symbols that should not be listed in the preloaded symbols. 35357exclude_expsyms=$lt_exclude_expsyms 35358 35359# Symbols that must always be exported. 35360include_expsyms=$lt_include_expsyms 35361 35362# Commands necessary for linking programs (against libraries) with templates. 35363prelink_cmds=$lt_prelink_cmds 35364 35365# Commands necessary for finishing linking programs. 35366postlink_cmds=$lt_postlink_cmds 35367 35368# Specify filename containing input files. 35369file_list_spec=$lt_file_list_spec 35370 35371# How to hardcode a shared library path into an executable. 35372hardcode_action=$hardcode_action 35373 35374# ### END LIBTOOL CONFIG 35375 35376_LT_EOF 35377 35378 cat <<'_LT_EOF' >> "$cfgfile" 35379 35380# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 35381 35382# func_munge_path_list VARIABLE PATH 35383# ----------------------------------- 35384# VARIABLE is name of variable containing _space_ separated list of 35385# directories to be munged by the contents of PATH, which is string 35386# having a format: 35387# "DIR[:DIR]:" 35388# string "DIR[ DIR]" will be prepended to VARIABLE 35389# ":DIR[:DIR]" 35390# string "DIR[ DIR]" will be appended to VARIABLE 35391# "DIRP[:DIRP]::[DIRA:]DIRA" 35392# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 35393# "DIRA[ DIRA]" will be appended to VARIABLE 35394# "DIR[:DIR]" 35395# VARIABLE will be replaced by "DIR[ DIR]" 35396func_munge_path_list () 35397{ 35398 case x$2 in 35399 x) 35400 ;; 35401 *:) 35402 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 35403 ;; 35404 x:*) 35405 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 35406 ;; 35407 *::*) 35408 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 35409 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 35410 ;; 35411 *) 35412 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 35413 ;; 35414 esac 35415} 35416 35417 35418# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 35419func_cc_basename () 35420{ 35421 for cc_temp in $*""; do 35422 case $cc_temp in 35423 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 35424 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 35425 \-*) ;; 35426 *) break;; 35427 esac 35428 done 35429 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 35430} 35431 35432 35433# ### END FUNCTIONS SHARED WITH CONFIGURE 35434 35435_LT_EOF 35436 35437 case $host_os in 35438 aix3*) 35439 cat <<\_LT_EOF >> "$cfgfile" 35440# AIX sometimes has problems with the GCC collect2 program. For some 35441# reason, if we set the COLLECT_NAMES environment variable, the problems 35442# vanish in a puff of smoke. 35443if test set != "${COLLECT_NAMES+set}"; then 35444 COLLECT_NAMES= 35445 export COLLECT_NAMES 35446fi 35447_LT_EOF 35448 ;; 35449 esac 35450 35451 35452ltmain=$ac_aux_dir/ltmain.sh 35453 35454 35455 # We use sed instead of cat because bash on DJGPP gets confused if 35456 # if finds mixed CR/LF and LF-only lines. Since sed operates in 35457 # text mode, it properly converts lines to CR/LF. This bash problem 35458 # is reportedly fixed, but why not run on old versions too? 35459 sed '$q' "$ltmain" >> "$cfgfile" \ 35460 || (rm -f "$cfgfile"; exit 1) 35461 35462 mv -f "$cfgfile" "$ofile" || 35463 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 35464 chmod +x "$ofile" 35465 35466 ;; 35467 "sdksyms":C) touch hw/xfree86/sdksyms.dep ;; 35468 35469 esac 35470done # for ac_tag 35471 35472 35473as_fn_exit 0 35474_ACEOF 35475ac_clean_files=$ac_clean_files_save 35476 35477test $ac_write_fail = 0 || 35478 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 35479 35480 35481# configure is writing to config.log, and then calls config.status. 35482# config.status does its own redirection, appending to config.log. 35483# Unfortunately, on DOS this fails, as config.log is still kept open 35484# by configure, so config.status won't be able to write to it; its 35485# output is simply discarded. So we exec the FD to /dev/null, 35486# effectively closing config.log, so it can be properly (re)opened and 35487# appended to by config.status. When coming back to configure, we 35488# need to make the FD available again. 35489if test "$no_create" != yes; then 35490 ac_cs_success=: 35491 ac_config_status_args= 35492 test "$silent" = yes && 35493 ac_config_status_args="$ac_config_status_args --quiet" 35494 exec 5>/dev/null 35495 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 35496 exec 5>>config.log 35497 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 35498 # would make configure fail if this is the last instruction. 35499 $ac_cs_success || as_fn_exit 1 35500fi 35501if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 35502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 35503$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 35504fi 35505 35506