configure revision 9c019ec5
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libX11 1.6.10. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libx11/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/lib/libx11/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 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570as_awk_strverscmp=' 571 # Use only awk features that work with 7th edition Unix awk (1978). 572 # My, what an old awk you have, Mr. Solaris! 573 END { 574 while (length(v1) && length(v2)) { 575 # Set d1 to be the next thing to compare from v1, and likewise for d2. 576 # Normally this is a single character, but if v1 and v2 contain digits, 577 # compare them as integers and fractions as strverscmp does. 578 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 579 # Split v1 and v2 into their leading digit string components d1 and d2, 580 # and advance v1 and v2 past the leading digit strings. 581 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 582 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 583 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 584 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 585 if (d1 ~ /^0/) { 586 if (d2 ~ /^0/) { 587 # Compare two fractions. 588 while (d1 ~ /^0/ && d2 ~ /^0/) { 589 d1 = substr(d1, 2); len1-- 590 d2 = substr(d2, 2); len2-- 591 } 592 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 593 # The two components differ in length, and the common prefix 594 # contains only leading zeros. Consider the longer to be less. 595 d1 = -len1 596 d2 = -len2 597 } else { 598 # Otherwise, compare as strings. 599 d1 = "x" d1 600 d2 = "x" d2 601 } 602 } else { 603 # A fraction is less than an integer. 604 exit 1 605 } 606 } else { 607 if (d2 ~ /^0/) { 608 # An integer is greater than a fraction. 609 exit 2 610 } else { 611 # Compare two integers. 612 d1 += 0 613 d2 += 0 614 } 615 } 616 } else { 617 # The normal case, without worrying about digits. 618 d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 619 d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 620 } 621 if (d1 < d2) exit 1 622 if (d1 > d2) exit 2 623 } 624 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 625 # which mishandles some comparisons of empty strings to integers. 626 if (length(v2)) exit 1 627 if (length(v1)) exit 2 628 } 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='libX11' 653PACKAGE_TARNAME='libX11' 654PACKAGE_VERSION='1.6.10' 655PACKAGE_STRING='libX11 1.6.10' 656PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libx11/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_header_list= 697ac_subst_vars='am__EXEEXT_FALSE 698am__EXEEXT_TRUE 699LTLIBOBJS 700XTMALLOC_ZERO_CFLAGS 701XMALLOC_ZERO_CFLAGS 702MALLOC_ZERO_CFLAGS 703XERRORDB 704XKEYSYMDB 705locales 706X11_LOCALEDIR 707XLOCALEDIR 708X11_LOCALELIBDIR 709XLOCALELIBDIR 710X11_LOCALEDATADIR 711XLOCALEDATADIR 712X11_LIBS 713X11_CFLAGS 714X11_LIBDIR 715X11_DATADIR 716MAKE_LINT_LIB_FALSE 717MAKE_LINT_LIB_TRUE 718LINTLIB 719LINT_FALSE 720LINT_TRUE 721LINT_FLAGS 722LINT 723XKBPROTO_REQUIRES 724XKB_FALSE 725XKB_TRUE 726BIGFONT_LIBS 727BIGFONT_CFLAGS 728XLOCALE_FALSE 729XLOCALE_TRUE 730XCMS_FALSE 731XCMS_TRUE 732KEYSYMDEFS 733XTHREAD_CFLAGS 734XTHREADLIB 735THRSTUBS_FALSE 736THRSTUBS_TRUE 737LAUNCHD 738OS2_FALSE 739OS2_TRUE 740WCHAR32 741LIBOBJS 742XLIB_LOADABLE_I18N_FALSE 743XLIB_LOADABLE_I18N_TRUE 744I18N_MODULE_LIBS 745X11_EXTRA_DEPS 746EXEEXT_FOR_BUILD 747LDFLAGS_FOR_BUILD 748CFLAGS_FOR_BUILD 749CPPFLAGS_FOR_BUILD 750CC_FOR_BUILD 751HAVE_PERL_FALSE 752HAVE_PERL_TRUE 753PERL 754TRADITIONALCPPFLAGS 755RAWCPPFLAGS 756RAWCPP 757HAVE_STYLESHEETS_FALSE 758HAVE_STYLESHEETS_TRUE 759XSL_STYLESHEET 760STYLESHEET_SRCDIR 761XORG_SGML_PATH 762HAVE_XSLTPROC_FALSE 763HAVE_XSLTPROC_TRUE 764XSLTPROC 765HAVE_FOP_FALSE 766HAVE_FOP_TRUE 767FOP 768HAVE_XMLTO_FALSE 769HAVE_XMLTO_TRUE 770HAVE_XMLTO_TEXT_FALSE 771HAVE_XMLTO_TEXT_TRUE 772XMLTO 773ENABLE_SPECS_FALSE 774ENABLE_SPECS_TRUE 775MAN_SUBSTS 776XORG_MAN_PAGE 777ADMIN_MAN_DIR 778DRIVER_MAN_DIR 779MISC_MAN_DIR 780FILE_MAN_DIR 781LIB_MAN_DIR 782APP_MAN_DIR 783ADMIN_MAN_SUFFIX 784DRIVER_MAN_SUFFIX 785MISC_MAN_SUFFIX 786FILE_MAN_SUFFIX 787LIB_MAN_SUFFIX 788APP_MAN_SUFFIX 789INSTALL_CMD 790PKG_CONFIG_LIBDIR 791PKG_CONFIG_PATH 792PKG_CONFIG 793CHANGELOG_CMD 794STRICT_CFLAGS 795CWARNFLAGS 796BASE_CFLAGS 797LT_SYS_LIBRARY_PATH 798OTOOL64 799OTOOL 800LIPO 801NMEDIT 802DSYMUTIL 803MANIFEST_TOOL 804RANLIB 805ac_ct_AR 806AR 807DLLTOOL 808OBJDUMP 809LN_S 810NM 811ac_ct_DUMPBIN 812DUMPBIN 813LD 814FGREP 815SED 816LIBTOOL 817AM_BACKSLASH 818AM_DEFAULT_VERBOSITY 819AM_DEFAULT_V 820AM_V 821am__fastdepCC_FALSE 822am__fastdepCC_TRUE 823CCDEPMODE 824am__nodep 825AMDEPBACKSLASH 826AMDEP_FALSE 827AMDEP_TRUE 828am__quote 829am__include 830DEPDIR 831am__untar 832am__tar 833AMTAR 834am__leading_dot 835SET_MAKE 836AWK 837mkdir_p 838MKDIR_P 839INSTALL_STRIP_PROGRAM 840STRIP 841install_sh 842MAKEINFO 843AUTOHEADER 844AUTOMAKE 845AUTOCONF 846ACLOCAL 847VERSION 848PACKAGE 849CYGPATH_W 850am__isrc 851INSTALL_DATA 852INSTALL_SCRIPT 853INSTALL_PROGRAM 854EGREP 855GREP 856CPP 857OBJEXT 858EXEEXT 859ac_ct_CC 860CPPFLAGS 861LDFLAGS 862CFLAGS 863CC 864host_os 865host_vendor 866host_cpu 867host 868build_os 869build_vendor 870build_cpu 871build 872target_alias 873host_alias 874build_alias 875LIBS 876ECHO_T 877ECHO_N 878ECHO_C 879DEFS 880mandir 881localedir 882libdir 883psdir 884pdfdir 885dvidir 886htmldir 887infodir 888docdir 889oldincludedir 890includedir 891runstatedir 892localstatedir 893sharedstatedir 894sysconfdir 895datadir 896datarootdir 897libexecdir 898sbindir 899bindir 900program_transform_name 901prefix 902exec_prefix 903PACKAGE_URL 904PACKAGE_BUGREPORT 905PACKAGE_STRING 906PACKAGE_VERSION 907PACKAGE_TARNAME 908PACKAGE_NAME 909PATH_SEPARATOR 910SHELL' 911ac_subst_files='' 912ac_user_opts=' 913enable_option_checking 914enable_dependency_tracking 915enable_silent_rules 916enable_shared 917enable_static 918with_pic 919enable_fast_install 920with_aix_soname 921with_gnu_ld 922with_sysroot 923enable_libtool_lock 924enable_largefile 925enable_selective_werror 926enable_strict_compilation 927enable_specs 928with_xmlto 929with_fop 930with_xsltproc 931with_perl 932enable_unix_transport 933enable_tcp_transport 934enable_ipv6 935enable_local_transport 936enable_loadable_i18n 937enable_loadable_xcursor 938with_launchd 939enable_xthreads 940with_keysymdefdir 941enable_xcms 942enable_xlocale 943enable_xlocaledir 944enable_xf86bigfont 945enable_xkb 946enable_composecache 947with_lint 948enable_lint_library 949with_locale_lib_dir 950enable_malloc0returnsnull 951' 952 ac_precious_vars='build_alias 953host_alias 954target_alias 955CC 956CFLAGS 957LDFLAGS 958LIBS 959CPPFLAGS 960CPP 961LT_SYS_LIBRARY_PATH 962PKG_CONFIG 963PKG_CONFIG_PATH 964PKG_CONFIG_LIBDIR 965XMLTO 966FOP 967XSLTPROC 968PERL 969BIGFONT_CFLAGS 970BIGFONT_LIBS 971LINT 972LINT_FLAGS 973X11_CFLAGS 974X11_LIBS' 975 976 977# Initialize some variables set by options. 978ac_init_help= 979ac_init_version=false 980ac_unrecognized_opts= 981ac_unrecognized_sep= 982# The variables have the same names as the options, with 983# dashes changed to underlines. 984cache_file=/dev/null 985exec_prefix=NONE 986no_create= 987no_recursion= 988prefix=NONE 989program_prefix=NONE 990program_suffix=NONE 991program_transform_name=s,x,x, 992silent= 993site= 994srcdir= 995verbose= 996x_includes=NONE 997x_libraries=NONE 998 999# Installation directory options. 1000# These are left unexpanded so users can "make install exec_prefix=/foo" 1001# and all the variables that are supposed to be based on exec_prefix 1002# by default will actually change. 1003# Use braces instead of parens because sh, perl, etc. also accept them. 1004# (The list follows the same order as the GNU Coding Standards.) 1005bindir='${exec_prefix}/bin' 1006sbindir='${exec_prefix}/sbin' 1007libexecdir='${exec_prefix}/libexec' 1008datarootdir='${prefix}/share' 1009datadir='${datarootdir}' 1010sysconfdir='${prefix}/etc' 1011sharedstatedir='${prefix}/com' 1012localstatedir='${prefix}/var' 1013runstatedir='${localstatedir}/run' 1014includedir='${prefix}/include' 1015oldincludedir='/usr/include' 1016docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1017infodir='${datarootdir}/info' 1018htmldir='${docdir}' 1019dvidir='${docdir}' 1020pdfdir='${docdir}' 1021psdir='${docdir}' 1022libdir='${exec_prefix}/lib' 1023localedir='${datarootdir}/locale' 1024mandir='${datarootdir}/man' 1025 1026ac_prev= 1027ac_dashdash= 1028for ac_option 1029do 1030 # If the previous option needs an argument, assign it. 1031 if test -n "$ac_prev"; then 1032 eval $ac_prev=\$ac_option 1033 ac_prev= 1034 continue 1035 fi 1036 1037 case $ac_option in 1038 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1039 *=) ac_optarg= ;; 1040 *) ac_optarg=yes ;; 1041 esac 1042 1043 # Accept the important Cygnus configure options, so we can diagnose typos. 1044 1045 case $ac_dashdash$ac_option in 1046 --) 1047 ac_dashdash=yes ;; 1048 1049 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1050 ac_prev=bindir ;; 1051 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1052 bindir=$ac_optarg ;; 1053 1054 -build | --build | --buil | --bui | --bu) 1055 ac_prev=build_alias ;; 1056 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1057 build_alias=$ac_optarg ;; 1058 1059 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1060 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1061 ac_prev=cache_file ;; 1062 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1063 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1064 cache_file=$ac_optarg ;; 1065 1066 --config-cache | -C) 1067 cache_file=config.cache ;; 1068 1069 -datadir | --datadir | --datadi | --datad) 1070 ac_prev=datadir ;; 1071 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1072 datadir=$ac_optarg ;; 1073 1074 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1075 | --dataroo | --dataro | --datar) 1076 ac_prev=datarootdir ;; 1077 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1078 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1079 datarootdir=$ac_optarg ;; 1080 1081 -disable-* | --disable-*) 1082 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1083 # Reject names that are not valid shell variable names. 1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1085 as_fn_error $? "invalid feature name: $ac_useropt" 1086 ac_useropt_orig=$ac_useropt 1087 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1088 case $ac_user_opts in 1089 *" 1090"enable_$ac_useropt" 1091"*) ;; 1092 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1093 ac_unrecognized_sep=', ';; 1094 esac 1095 eval enable_$ac_useropt=no ;; 1096 1097 -docdir | --docdir | --docdi | --doc | --do) 1098 ac_prev=docdir ;; 1099 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1100 docdir=$ac_optarg ;; 1101 1102 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1103 ac_prev=dvidir ;; 1104 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1105 dvidir=$ac_optarg ;; 1106 1107 -enable-* | --enable-*) 1108 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1109 # Reject names that are not valid shell variable names. 1110 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1111 as_fn_error $? "invalid feature name: $ac_useropt" 1112 ac_useropt_orig=$ac_useropt 1113 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1114 case $ac_user_opts in 1115 *" 1116"enable_$ac_useropt" 1117"*) ;; 1118 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1119 ac_unrecognized_sep=', ';; 1120 esac 1121 eval enable_$ac_useropt=\$ac_optarg ;; 1122 1123 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1124 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1125 | --exec | --exe | --ex) 1126 ac_prev=exec_prefix ;; 1127 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1128 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1129 | --exec=* | --exe=* | --ex=*) 1130 exec_prefix=$ac_optarg ;; 1131 1132 -gas | --gas | --ga | --g) 1133 # Obsolete; use --with-gas. 1134 with_gas=yes ;; 1135 1136 -help | --help | --hel | --he | -h) 1137 ac_init_help=long ;; 1138 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1139 ac_init_help=recursive ;; 1140 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1141 ac_init_help=short ;; 1142 1143 -host | --host | --hos | --ho) 1144 ac_prev=host_alias ;; 1145 -host=* | --host=* | --hos=* | --ho=*) 1146 host_alias=$ac_optarg ;; 1147 1148 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1149 ac_prev=htmldir ;; 1150 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1151 | --ht=*) 1152 htmldir=$ac_optarg ;; 1153 1154 -includedir | --includedir | --includedi | --included | --include \ 1155 | --includ | --inclu | --incl | --inc) 1156 ac_prev=includedir ;; 1157 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1158 | --includ=* | --inclu=* | --incl=* | --inc=*) 1159 includedir=$ac_optarg ;; 1160 1161 -infodir | --infodir | --infodi | --infod | --info | --inf) 1162 ac_prev=infodir ;; 1163 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1164 infodir=$ac_optarg ;; 1165 1166 -libdir | --libdir | --libdi | --libd) 1167 ac_prev=libdir ;; 1168 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1169 libdir=$ac_optarg ;; 1170 1171 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1172 | --libexe | --libex | --libe) 1173 ac_prev=libexecdir ;; 1174 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1175 | --libexe=* | --libex=* | --libe=*) 1176 libexecdir=$ac_optarg ;; 1177 1178 -localedir | --localedir | --localedi | --localed | --locale) 1179 ac_prev=localedir ;; 1180 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1181 localedir=$ac_optarg ;; 1182 1183 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1184 | --localstate | --localstat | --localsta | --localst | --locals) 1185 ac_prev=localstatedir ;; 1186 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1187 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1188 localstatedir=$ac_optarg ;; 1189 1190 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1191 ac_prev=mandir ;; 1192 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1193 mandir=$ac_optarg ;; 1194 1195 -nfp | --nfp | --nf) 1196 # Obsolete; use --without-fp. 1197 with_fp=no ;; 1198 1199 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1200 | --no-cr | --no-c | -n) 1201 no_create=yes ;; 1202 1203 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1204 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1205 no_recursion=yes ;; 1206 1207 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1208 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1209 | --oldin | --oldi | --old | --ol | --o) 1210 ac_prev=oldincludedir ;; 1211 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1212 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1213 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1214 oldincludedir=$ac_optarg ;; 1215 1216 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1217 ac_prev=prefix ;; 1218 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1219 prefix=$ac_optarg ;; 1220 1221 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1222 | --program-pre | --program-pr | --program-p) 1223 ac_prev=program_prefix ;; 1224 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1225 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1226 program_prefix=$ac_optarg ;; 1227 1228 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1229 | --program-suf | --program-su | --program-s) 1230 ac_prev=program_suffix ;; 1231 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1232 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1233 program_suffix=$ac_optarg ;; 1234 1235 -program-transform-name | --program-transform-name \ 1236 | --program-transform-nam | --program-transform-na \ 1237 | --program-transform-n | --program-transform- \ 1238 | --program-transform | --program-transfor \ 1239 | --program-transfo | --program-transf \ 1240 | --program-trans | --program-tran \ 1241 | --progr-tra | --program-tr | --program-t) 1242 ac_prev=program_transform_name ;; 1243 -program-transform-name=* | --program-transform-name=* \ 1244 | --program-transform-nam=* | --program-transform-na=* \ 1245 | --program-transform-n=* | --program-transform-=* \ 1246 | --program-transform=* | --program-transfor=* \ 1247 | --program-transfo=* | --program-transf=* \ 1248 | --program-trans=* | --program-tran=* \ 1249 | --progr-tra=* | --program-tr=* | --program-t=*) 1250 program_transform_name=$ac_optarg ;; 1251 1252 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1253 ac_prev=pdfdir ;; 1254 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1255 pdfdir=$ac_optarg ;; 1256 1257 -psdir | --psdir | --psdi | --psd | --ps) 1258 ac_prev=psdir ;; 1259 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1260 psdir=$ac_optarg ;; 1261 1262 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1263 | -silent | --silent | --silen | --sile | --sil) 1264 silent=yes ;; 1265 1266 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1267 | --runstate | --runstat | --runsta | --runst | --runs \ 1268 | --run | --ru | --r) 1269 ac_prev=runstatedir ;; 1270 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1271 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1272 | --run=* | --ru=* | --r=*) 1273 runstatedir=$ac_optarg ;; 1274 1275 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1276 ac_prev=sbindir ;; 1277 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1278 | --sbi=* | --sb=*) 1279 sbindir=$ac_optarg ;; 1280 1281 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1282 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1283 | --sharedst | --shareds | --shared | --share | --shar \ 1284 | --sha | --sh) 1285 ac_prev=sharedstatedir ;; 1286 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1287 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1288 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1289 | --sha=* | --sh=*) 1290 sharedstatedir=$ac_optarg ;; 1291 1292 -site | --site | --sit) 1293 ac_prev=site ;; 1294 -site=* | --site=* | --sit=*) 1295 site=$ac_optarg ;; 1296 1297 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1298 ac_prev=srcdir ;; 1299 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1300 srcdir=$ac_optarg ;; 1301 1302 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1303 | --syscon | --sysco | --sysc | --sys | --sy) 1304 ac_prev=sysconfdir ;; 1305 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1306 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1307 sysconfdir=$ac_optarg ;; 1308 1309 -target | --target | --targe | --targ | --tar | --ta | --t) 1310 ac_prev=target_alias ;; 1311 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1312 target_alias=$ac_optarg ;; 1313 1314 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1315 verbose=yes ;; 1316 1317 -version | --version | --versio | --versi | --vers | -V) 1318 ac_init_version=: ;; 1319 1320 -with-* | --with-*) 1321 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1322 # Reject names that are not valid shell variable names. 1323 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1324 as_fn_error $? "invalid package name: $ac_useropt" 1325 ac_useropt_orig=$ac_useropt 1326 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1327 case $ac_user_opts in 1328 *" 1329"with_$ac_useropt" 1330"*) ;; 1331 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1332 ac_unrecognized_sep=', ';; 1333 esac 1334 eval with_$ac_useropt=\$ac_optarg ;; 1335 1336 -without-* | --without-*) 1337 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1338 # Reject names that are not valid shell variable names. 1339 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1340 as_fn_error $? "invalid package name: $ac_useropt" 1341 ac_useropt_orig=$ac_useropt 1342 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1343 case $ac_user_opts in 1344 *" 1345"with_$ac_useropt" 1346"*) ;; 1347 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1348 ac_unrecognized_sep=', ';; 1349 esac 1350 eval with_$ac_useropt=no ;; 1351 1352 --x) 1353 # Obsolete; use --with-x. 1354 with_x=yes ;; 1355 1356 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1357 | --x-incl | --x-inc | --x-in | --x-i) 1358 ac_prev=x_includes ;; 1359 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1360 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1361 x_includes=$ac_optarg ;; 1362 1363 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1364 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1365 ac_prev=x_libraries ;; 1366 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1367 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1368 x_libraries=$ac_optarg ;; 1369 1370 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1371Try \`$0 --help' for more information" 1372 ;; 1373 1374 *=*) 1375 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1376 # Reject names that are not valid shell variable names. 1377 case $ac_envvar in #( 1378 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1379 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1380 esac 1381 eval $ac_envvar=\$ac_optarg 1382 export $ac_envvar ;; 1383 1384 *) 1385 # FIXME: should be removed in autoconf 3.0. 1386 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1387 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1388 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1389 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1390 ;; 1391 1392 esac 1393done 1394 1395if test -n "$ac_prev"; then 1396 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1397 as_fn_error $? "missing argument to $ac_option" 1398fi 1399 1400if test -n "$ac_unrecognized_opts"; then 1401 case $enable_option_checking in 1402 no) ;; 1403 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1404 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1405 esac 1406fi 1407 1408# Check all directory arguments for consistency. 1409for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1410 datadir sysconfdir sharedstatedir localstatedir includedir \ 1411 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1412 libdir localedir mandir runstatedir 1413do 1414 eval ac_val=\$$ac_var 1415 # Remove trailing slashes. 1416 case $ac_val in 1417 */ ) 1418 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1419 eval $ac_var=\$ac_val;; 1420 esac 1421 # Be sure to have absolute directory names. 1422 case $ac_val in 1423 [\\/$]* | ?:[\\/]* ) continue;; 1424 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1425 esac 1426 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1427done 1428 1429# There might be people who depend on the old broken behavior: `$host' 1430# used to hold the argument of --host etc. 1431# FIXME: To remove some day. 1432build=$build_alias 1433host=$host_alias 1434target=$target_alias 1435 1436# FIXME: To remove some day. 1437if test "x$host_alias" != x; then 1438 if test "x$build_alias" = x; then 1439 cross_compiling=maybe 1440 elif test "x$build_alias" != "x$host_alias"; then 1441 cross_compiling=yes 1442 fi 1443fi 1444 1445ac_tool_prefix= 1446test -n "$host_alias" && ac_tool_prefix=$host_alias- 1447 1448test "$silent" = yes && exec 6>/dev/null 1449 1450 1451ac_pwd=`pwd` && test -n "$ac_pwd" && 1452ac_ls_di=`ls -di .` && 1453ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1454 as_fn_error $? "working directory cannot be determined" 1455test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1456 as_fn_error $? "pwd does not report name of working directory" 1457 1458 1459# Find the source files, if location was not specified. 1460if test -z "$srcdir"; then 1461 ac_srcdir_defaulted=yes 1462 # Try the directory containing this script, then the parent directory. 1463 ac_confdir=`$as_dirname -- "$as_myself" || 1464$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1465 X"$as_myself" : 'X\(//\)[^/]' \| \ 1466 X"$as_myself" : 'X\(//\)$' \| \ 1467 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1468$as_echo X"$as_myself" | 1469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1470 s//\1/ 1471 q 1472 } 1473 /^X\(\/\/\)[^/].*/{ 1474 s//\1/ 1475 q 1476 } 1477 /^X\(\/\/\)$/{ 1478 s//\1/ 1479 q 1480 } 1481 /^X\(\/\).*/{ 1482 s//\1/ 1483 q 1484 } 1485 s/.*/./; q'` 1486 srcdir=$ac_confdir 1487 if test ! -r "$srcdir/$ac_unique_file"; then 1488 srcdir=.. 1489 fi 1490else 1491 ac_srcdir_defaulted=no 1492fi 1493if test ! -r "$srcdir/$ac_unique_file"; then 1494 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1495 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1496fi 1497ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1498ac_abs_confdir=`( 1499 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1500 pwd)` 1501# When building in place, set srcdir=. 1502if test "$ac_abs_confdir" = "$ac_pwd"; then 1503 srcdir=. 1504fi 1505# Remove unnecessary trailing slashes from srcdir. 1506# Double slashes in file names in object file debugging info 1507# mess up M-x gdb in Emacs. 1508case $srcdir in 1509*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1510esac 1511for ac_var in $ac_precious_vars; do 1512 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1513 eval ac_env_${ac_var}_value=\$${ac_var} 1514 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1515 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1516done 1517 1518# 1519# Report the --help message. 1520# 1521if test "$ac_init_help" = "long"; then 1522 # Omit some internal or obsolete options to make the list less imposing. 1523 # This message is too long to be a string in the A/UX 3.1 sh. 1524 cat <<_ACEOF 1525\`configure' configures libX11 1.6.10 to adapt to many kinds of systems. 1526 1527Usage: $0 [OPTION]... [VAR=VALUE]... 1528 1529To assign environment variables (e.g., CC, CFLAGS...), specify them as 1530VAR=VALUE. See below for descriptions of some of the useful variables. 1531 1532Defaults for the options are specified in brackets. 1533 1534Configuration: 1535 -h, --help display this help and exit 1536 --help=short display options specific to this package 1537 --help=recursive display the short help of all the included packages 1538 -V, --version display version information and exit 1539 -q, --quiet, --silent do not print \`checking ...' messages 1540 --cache-file=FILE cache test results in FILE [disabled] 1541 -C, --config-cache alias for \`--cache-file=config.cache' 1542 -n, --no-create do not create output files 1543 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1544 1545Installation directories: 1546 --prefix=PREFIX install architecture-independent files in PREFIX 1547 [$ac_default_prefix] 1548 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1549 [PREFIX] 1550 1551By default, \`make install' will install all the files in 1552\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1553an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1554for instance \`--prefix=\$HOME'. 1555 1556For better control, use the options below. 1557 1558Fine tuning of the installation directories: 1559 --bindir=DIR user executables [EPREFIX/bin] 1560 --sbindir=DIR system admin executables [EPREFIX/sbin] 1561 --libexecdir=DIR program executables [EPREFIX/libexec] 1562 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1563 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1564 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1565 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1566 --libdir=DIR object code libraries [EPREFIX/lib] 1567 --includedir=DIR C header files [PREFIX/include] 1568 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1569 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1570 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1571 --infodir=DIR info documentation [DATAROOTDIR/info] 1572 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1573 --mandir=DIR man documentation [DATAROOTDIR/man] 1574 --docdir=DIR documentation root [DATAROOTDIR/doc/libX11] 1575 --htmldir=DIR html documentation [DOCDIR] 1576 --dvidir=DIR dvi documentation [DOCDIR] 1577 --pdfdir=DIR pdf documentation [DOCDIR] 1578 --psdir=DIR ps documentation [DOCDIR] 1579_ACEOF 1580 1581 cat <<\_ACEOF 1582 1583Program names: 1584 --program-prefix=PREFIX prepend PREFIX to installed program names 1585 --program-suffix=SUFFIX append SUFFIX to installed program names 1586 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1587 1588System types: 1589 --build=BUILD configure for building on BUILD [guessed] 1590 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1591_ACEOF 1592fi 1593 1594if test -n "$ac_init_help"; then 1595 case $ac_init_help in 1596 short | recursive ) echo "Configuration of libX11 1.6.10:";; 1597 esac 1598 cat <<\_ACEOF 1599 1600Optional Features: 1601 --disable-option-checking ignore unrecognized --enable/--with options 1602 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1603 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1604 --enable-dependency-tracking 1605 do not reject slow dependency extractors 1606 --disable-dependency-tracking 1607 speeds up one-time build 1608 --enable-silent-rules less verbose build output (undo: "make V=1") 1609 --disable-silent-rules verbose build output (undo: "make V=0") 1610 --enable-shared[=PKGS] build shared libraries [default=yes] 1611 --enable-static[=PKGS] build static libraries [default=yes] 1612 --enable-fast-install[=PKGS] 1613 optimize for fast installation [default=yes] 1614 --disable-libtool-lock avoid locking (might break parallel builds) 1615 --disable-largefile omit support for large files 1616 --disable-selective-werror 1617 Turn off selective compiler errors. (default: 1618 enabled) 1619 --enable-strict-compilation 1620 Enable all warnings from compiler and make them 1621 errors (default: disabled) 1622 --enable-specs Enable building the specs (default: yes) 1623 --enable-unix-transport Enable UNIX domain socket transport 1624 --enable-tcp-transport Enable TCP socket transport 1625 --enable-ipv6 Enable IPv6 support 1626 --enable-local-transport 1627 Enable os-specific local transport 1628 --enable-loadable-i18n Controls loadable i18n module support 1629 --disable-loadable-xcursor 1630 Controls loadable xcursor library support 1631 --disable-xthreads Disable Xlib support for Multithreading 1632 --disable-xcms Disable Xlib support for CMS *EXPERIMENTAL* 1633 --disable-xlocale Disable Xlib locale implementation *EXPERIMENTAL* 1634 --enable-xlocaledir Enable XLOCALEDIR environment variable support 1635 --disable-xf86bigfont Disable XF86BigFont extension support 1636 --disable-xkb Disable XKB support *EXPERIMENTAL* 1637 --disable-composecache Disable compose table cache support 1638 --enable-lint-library Create lint library (default: disabled) 1639 --enable-malloc0returnsnull 1640 malloc(0) returns NULL (default: auto) 1641 1642Optional Packages: 1643 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1644 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1645 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1646 both] 1647 --with-aix-soname=aix|svr4|both 1648 shared library versioning (aka "SONAME") variant to 1649 provide on AIX, [default=aix]. 1650 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1651 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1652 compiler's sysroot if not specified). 1653 --with-xmlto Use xmlto to regenerate documentation (default: 1654 auto) 1655 --with-fop Use fop to regenerate documentation (default: no) 1656 --with-xsltproc Use xsltproc for the transformation of XML documents 1657 (default: auto) 1658 --with-perl Use perl for extracting information from files 1659 (default: auto) 1660 --with-launchd Build with support for Apple's launchd (default: 1661 auto) 1662 --with-keysymdefdir=DIR The location of keysymdef.h (defaults to xproto 1663 include dir) 1664 --with-lint Use a lint-style source code checker (default: 1665 disabled) 1666 --with-locale-lib-dir=DIR 1667 Directory where locale libraries files are installed 1668 (default: $libdir/X11/locale) 1669 1670Some influential environment variables: 1671 CC C compiler command 1672 CFLAGS C compiler flags 1673 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1674 nonstandard directory <lib dir> 1675 LIBS libraries to pass to the linker, e.g. -l<library> 1676 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1677 you have headers in a nonstandard directory <include dir> 1678 CPP C preprocessor 1679 LT_SYS_LIBRARY_PATH 1680 User-defined run-time library search path. 1681 PKG_CONFIG path to pkg-config utility 1682 PKG_CONFIG_PATH 1683 directories to add to pkg-config's search path 1684 PKG_CONFIG_LIBDIR 1685 path overriding pkg-config's built-in search path 1686 XMLTO Path to xmlto command 1687 FOP Path to fop command 1688 XSLTPROC Path to xsltproc command 1689 PERL Path to perl command 1690 BIGFONT_CFLAGS 1691 C compiler flags for BIGFONT, overriding pkg-config 1692 BIGFONT_LIBS 1693 linker flags for BIGFONT, overriding pkg-config 1694 LINT Path to a lint-style command 1695 LINT_FLAGS Flags for the lint-style command 1696 X11_CFLAGS C compiler flags for X11, overriding pkg-config 1697 X11_LIBS linker flags for X11, overriding pkg-config 1698 1699Use these variables to override the choices made by `configure' or to help 1700it to find libraries and programs with nonstandard names/locations. 1701 1702Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libx11/issues>. 1703_ACEOF 1704ac_status=$? 1705fi 1706 1707if test "$ac_init_help" = "recursive"; then 1708 # If there are subdirs, report their specific --help. 1709 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1710 test -d "$ac_dir" || 1711 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1712 continue 1713 ac_builddir=. 1714 1715case "$ac_dir" in 1716.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1717*) 1718 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1719 # A ".." for each directory in $ac_dir_suffix. 1720 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1721 case $ac_top_builddir_sub in 1722 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1723 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1724 esac ;; 1725esac 1726ac_abs_top_builddir=$ac_pwd 1727ac_abs_builddir=$ac_pwd$ac_dir_suffix 1728# for backward compatibility: 1729ac_top_builddir=$ac_top_build_prefix 1730 1731case $srcdir in 1732 .) # We are building in place. 1733 ac_srcdir=. 1734 ac_top_srcdir=$ac_top_builddir_sub 1735 ac_abs_top_srcdir=$ac_pwd ;; 1736 [\\/]* | ?:[\\/]* ) # Absolute name. 1737 ac_srcdir=$srcdir$ac_dir_suffix; 1738 ac_top_srcdir=$srcdir 1739 ac_abs_top_srcdir=$srcdir ;; 1740 *) # Relative name. 1741 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1742 ac_top_srcdir=$ac_top_build_prefix$srcdir 1743 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1744esac 1745ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1746 1747 cd "$ac_dir" || { ac_status=$?; continue; } 1748 # Check for guested configure. 1749 if test -f "$ac_srcdir/configure.gnu"; then 1750 echo && 1751 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1752 elif test -f "$ac_srcdir/configure"; then 1753 echo && 1754 $SHELL "$ac_srcdir/configure" --help=recursive 1755 else 1756 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1757 fi || ac_status=$? 1758 cd "$ac_pwd" || { ac_status=$?; break; } 1759 done 1760fi 1761 1762test -n "$ac_init_help" && exit $ac_status 1763if $ac_init_version; then 1764 cat <<\_ACEOF 1765libX11 configure 1.6.10 1766generated by GNU Autoconf 2.69 1767 1768Copyright (C) 2012 Free Software Foundation, Inc. 1769This configure script is free software; the Free Software Foundation 1770gives unlimited permission to copy, distribute and modify it. 1771_ACEOF 1772 exit 1773fi 1774 1775## ------------------------ ## 1776## Autoconf initialization. ## 1777## ------------------------ ## 1778 1779# ac_fn_c_try_compile LINENO 1780# -------------------------- 1781# Try to compile conftest.$ac_ext, and return whether this succeeded. 1782ac_fn_c_try_compile () 1783{ 1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1785 rm -f conftest.$ac_objext 1786 if { { ac_try="$ac_compile" 1787case "(($ac_try" in 1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1789 *) ac_try_echo=$ac_try;; 1790esac 1791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1792$as_echo "$ac_try_echo"; } >&5 1793 (eval "$ac_compile") 2>conftest.err 1794 ac_status=$? 1795 if test -s conftest.err; then 1796 grep -v '^ *+' conftest.err >conftest.er1 1797 cat conftest.er1 >&5 1798 mv -f conftest.er1 conftest.err 1799 fi 1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1801 test $ac_status = 0; } && { 1802 test -z "$ac_c_werror_flag" || 1803 test ! -s conftest.err 1804 } && test -s conftest.$ac_objext; then : 1805 ac_retval=0 1806else 1807 $as_echo "$as_me: failed program was:" >&5 1808sed 's/^/| /' conftest.$ac_ext >&5 1809 1810 ac_retval=1 1811fi 1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1813 as_fn_set_status $ac_retval 1814 1815} # ac_fn_c_try_compile 1816 1817# ac_fn_c_try_cpp LINENO 1818# ---------------------- 1819# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1820ac_fn_c_try_cpp () 1821{ 1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1823 if { { ac_try="$ac_cpp conftest.$ac_ext" 1824case "(($ac_try" in 1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1826 *) ac_try_echo=$ac_try;; 1827esac 1828eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1829$as_echo "$ac_try_echo"; } >&5 1830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1831 ac_status=$? 1832 if test -s conftest.err; then 1833 grep -v '^ *+' conftest.err >conftest.er1 1834 cat conftest.er1 >&5 1835 mv -f conftest.er1 conftest.err 1836 fi 1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1838 test $ac_status = 0; } > conftest.i && { 1839 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1840 test ! -s conftest.err 1841 }; then : 1842 ac_retval=0 1843else 1844 $as_echo "$as_me: failed program was:" >&5 1845sed 's/^/| /' conftest.$ac_ext >&5 1846 1847 ac_retval=1 1848fi 1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1850 as_fn_set_status $ac_retval 1851 1852} # ac_fn_c_try_cpp 1853 1854# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1855# ------------------------------------------------------- 1856# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1857# the include files in INCLUDES and setting the cache variable VAR 1858# accordingly. 1859ac_fn_c_check_header_mongrel () 1860{ 1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1862 if eval \${$3+:} false; then : 1863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1864$as_echo_n "checking for $2... " >&6; } 1865if eval \${$3+:} false; then : 1866 $as_echo_n "(cached) " >&6 1867fi 1868eval ac_res=\$$3 1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1870$as_echo "$ac_res" >&6; } 1871else 1872 # Is the header compilable? 1873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1874$as_echo_n "checking $2 usability... " >&6; } 1875cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1876/* end confdefs.h. */ 1877$4 1878#include <$2> 1879_ACEOF 1880if ac_fn_c_try_compile "$LINENO"; then : 1881 ac_header_compiler=yes 1882else 1883 ac_header_compiler=no 1884fi 1885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1887$as_echo "$ac_header_compiler" >&6; } 1888 1889# Is the header present? 1890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1891$as_echo_n "checking $2 presence... " >&6; } 1892cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1893/* end confdefs.h. */ 1894#include <$2> 1895_ACEOF 1896if ac_fn_c_try_cpp "$LINENO"; then : 1897 ac_header_preproc=yes 1898else 1899 ac_header_preproc=no 1900fi 1901rm -f conftest.err conftest.i conftest.$ac_ext 1902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1903$as_echo "$ac_header_preproc" >&6; } 1904 1905# So? What about this header? 1906case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1907 yes:no: ) 1908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1909$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1911$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1912 ;; 1913 no:yes:* ) 1914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1915$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1917$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1919$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1921$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1923$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1924( $as_echo "## -------------------------------------------------------------------- ## 1925## Report this to https://gitlab.freedesktop.org/xorg/lib/libx11/issues ## 1926## -------------------------------------------------------------------- ##" 1927 ) | sed "s/^/$as_me: WARNING: /" >&2 1928 ;; 1929esac 1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1931$as_echo_n "checking for $2... " >&6; } 1932if eval \${$3+:} false; then : 1933 $as_echo_n "(cached) " >&6 1934else 1935 eval "$3=\$ac_header_compiler" 1936fi 1937eval ac_res=\$$3 1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1939$as_echo "$ac_res" >&6; } 1940fi 1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1942 1943} # ac_fn_c_check_header_mongrel 1944 1945# ac_fn_c_try_run LINENO 1946# ---------------------- 1947# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1948# that executables *can* be run. 1949ac_fn_c_try_run () 1950{ 1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1952 if { { ac_try="$ac_link" 1953case "(($ac_try" in 1954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1955 *) ac_try_echo=$ac_try;; 1956esac 1957eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1958$as_echo "$ac_try_echo"; } >&5 1959 (eval "$ac_link") 2>&5 1960 ac_status=$? 1961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1962 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1963 { { case "(($ac_try" in 1964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1965 *) ac_try_echo=$ac_try;; 1966esac 1967eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1968$as_echo "$ac_try_echo"; } >&5 1969 (eval "$ac_try") 2>&5 1970 ac_status=$? 1971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1972 test $ac_status = 0; }; }; then : 1973 ac_retval=0 1974else 1975 $as_echo "$as_me: program exited with status $ac_status" >&5 1976 $as_echo "$as_me: failed program was:" >&5 1977sed 's/^/| /' conftest.$ac_ext >&5 1978 1979 ac_retval=$ac_status 1980fi 1981 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1983 as_fn_set_status $ac_retval 1984 1985} # ac_fn_c_try_run 1986 1987# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1988# ------------------------------------------------------- 1989# Tests whether HEADER exists and can be compiled using the include files in 1990# INCLUDES, setting the cache variable VAR accordingly. 1991ac_fn_c_check_header_compile () 1992{ 1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1995$as_echo_n "checking for $2... " >&6; } 1996if eval \${$3+:} false; then : 1997 $as_echo_n "(cached) " >&6 1998else 1999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2000/* end confdefs.h. */ 2001$4 2002#include <$2> 2003_ACEOF 2004if ac_fn_c_try_compile "$LINENO"; then : 2005 eval "$3=yes" 2006else 2007 eval "$3=no" 2008fi 2009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2010fi 2011eval ac_res=\$$3 2012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2013$as_echo "$ac_res" >&6; } 2014 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2015 2016} # ac_fn_c_check_header_compile 2017 2018# ac_fn_c_try_link LINENO 2019# ----------------------- 2020# Try to link conftest.$ac_ext, and return whether this succeeded. 2021ac_fn_c_try_link () 2022{ 2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2024 rm -f conftest.$ac_objext conftest$ac_exeext 2025 if { { ac_try="$ac_link" 2026case "(($ac_try" in 2027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2028 *) ac_try_echo=$ac_try;; 2029esac 2030eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2031$as_echo "$ac_try_echo"; } >&5 2032 (eval "$ac_link") 2>conftest.err 2033 ac_status=$? 2034 if test -s conftest.err; then 2035 grep -v '^ *+' conftest.err >conftest.er1 2036 cat conftest.er1 >&5 2037 mv -f conftest.er1 conftest.err 2038 fi 2039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2040 test $ac_status = 0; } && { 2041 test -z "$ac_c_werror_flag" || 2042 test ! -s conftest.err 2043 } && test -s conftest$ac_exeext && { 2044 test "$cross_compiling" = yes || 2045 test -x conftest$ac_exeext 2046 }; then : 2047 ac_retval=0 2048else 2049 $as_echo "$as_me: failed program was:" >&5 2050sed 's/^/| /' conftest.$ac_ext >&5 2051 2052 ac_retval=1 2053fi 2054 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2055 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2056 # interfere with the next link command; also delete a directory that is 2057 # left behind by Apple's compiler. We do this before executing the actions. 2058 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2059 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2060 as_fn_set_status $ac_retval 2061 2062} # ac_fn_c_try_link 2063 2064# ac_fn_c_check_func LINENO FUNC VAR 2065# ---------------------------------- 2066# Tests whether FUNC exists, setting the cache variable VAR accordingly 2067ac_fn_c_check_func () 2068{ 2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2071$as_echo_n "checking for $2... " >&6; } 2072if eval \${$3+:} false; then : 2073 $as_echo_n "(cached) " >&6 2074else 2075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2076/* end confdefs.h. */ 2077/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2078 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2079#define $2 innocuous_$2 2080 2081/* System header to define __stub macros and hopefully few prototypes, 2082 which can conflict with char $2 (); below. 2083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2084 <limits.h> exists even on freestanding compilers. */ 2085 2086#ifdef __STDC__ 2087# include <limits.h> 2088#else 2089# include <assert.h> 2090#endif 2091 2092#undef $2 2093 2094/* Override any GCC internal prototype to avoid an error. 2095 Use char because int might match the return type of a GCC 2096 builtin and then its argument prototype would still apply. */ 2097#ifdef __cplusplus 2098extern "C" 2099#endif 2100char $2 (); 2101/* The GNU C library defines this for functions which it implements 2102 to always fail with ENOSYS. Some functions are actually named 2103 something starting with __ and the normal name is an alias. */ 2104#if defined __stub_$2 || defined __stub___$2 2105choke me 2106#endif 2107 2108int 2109main () 2110{ 2111return $2 (); 2112 ; 2113 return 0; 2114} 2115_ACEOF 2116if ac_fn_c_try_link "$LINENO"; then : 2117 eval "$3=yes" 2118else 2119 eval "$3=no" 2120fi 2121rm -f core conftest.err conftest.$ac_objext \ 2122 conftest$ac_exeext conftest.$ac_ext 2123fi 2124eval ac_res=\$$3 2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2126$as_echo "$ac_res" >&6; } 2127 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2128 2129} # ac_fn_c_check_func 2130 2131# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2132# --------------------------------------------- 2133# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2134# accordingly. 2135ac_fn_c_check_decl () 2136{ 2137 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2138 as_decl_name=`echo $2|sed 's/ *(.*//'` 2139 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2141$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2142if eval \${$3+:} false; then : 2143 $as_echo_n "(cached) " >&6 2144else 2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2146/* end confdefs.h. */ 2147$4 2148int 2149main () 2150{ 2151#ifndef $as_decl_name 2152#ifdef __cplusplus 2153 (void) $as_decl_use; 2154#else 2155 (void) $as_decl_name; 2156#endif 2157#endif 2158 2159 ; 2160 return 0; 2161} 2162_ACEOF 2163if ac_fn_c_try_compile "$LINENO"; then : 2164 eval "$3=yes" 2165else 2166 eval "$3=no" 2167fi 2168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2169fi 2170eval ac_res=\$$3 2171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2172$as_echo "$ac_res" >&6; } 2173 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2174 2175} # ac_fn_c_check_decl 2176 2177# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2178# ---------------------------------------------------- 2179# Tries to find if the field MEMBER exists in type AGGR, after including 2180# INCLUDES, setting cache variable VAR accordingly. 2181ac_fn_c_check_member () 2182{ 2183 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2185$as_echo_n "checking for $2.$3... " >&6; } 2186if eval \${$4+:} false; then : 2187 $as_echo_n "(cached) " >&6 2188else 2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2190/* end confdefs.h. */ 2191$5 2192int 2193main () 2194{ 2195static $2 ac_aggr; 2196if (ac_aggr.$3) 2197return 0; 2198 ; 2199 return 0; 2200} 2201_ACEOF 2202if ac_fn_c_try_compile "$LINENO"; then : 2203 eval "$4=yes" 2204else 2205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2206/* end confdefs.h. */ 2207$5 2208int 2209main () 2210{ 2211static $2 ac_aggr; 2212if (sizeof ac_aggr.$3) 2213return 0; 2214 ; 2215 return 0; 2216} 2217_ACEOF 2218if ac_fn_c_try_compile "$LINENO"; then : 2219 eval "$4=yes" 2220else 2221 eval "$4=no" 2222fi 2223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2224fi 2225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2226fi 2227eval ac_res=\$$4 2228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2229$as_echo "$ac_res" >&6; } 2230 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2231 2232} # ac_fn_c_check_member 2233 2234# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2235# ------------------------------------------- 2236# Tests whether TYPE exists after having included INCLUDES, setting cache 2237# variable VAR accordingly. 2238ac_fn_c_check_type () 2239{ 2240 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2242$as_echo_n "checking for $2... " >&6; } 2243if eval \${$3+:} false; then : 2244 $as_echo_n "(cached) " >&6 2245else 2246 eval "$3=no" 2247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2248/* end confdefs.h. */ 2249$4 2250int 2251main () 2252{ 2253if (sizeof ($2)) 2254 return 0; 2255 ; 2256 return 0; 2257} 2258_ACEOF 2259if ac_fn_c_try_compile "$LINENO"; then : 2260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2261/* end confdefs.h. */ 2262$4 2263int 2264main () 2265{ 2266if (sizeof (($2))) 2267 return 0; 2268 ; 2269 return 0; 2270} 2271_ACEOF 2272if ac_fn_c_try_compile "$LINENO"; then : 2273 2274else 2275 eval "$3=yes" 2276fi 2277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2278fi 2279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2280fi 2281eval ac_res=\$$3 2282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2283$as_echo "$ac_res" >&6; } 2284 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2285 2286} # ac_fn_c_check_type 2287cat >config.log <<_ACEOF 2288This file contains any messages produced by compilers while 2289running configure, to aid debugging if configure makes a mistake. 2290 2291It was created by libX11 $as_me 1.6.10, which was 2292generated by GNU Autoconf 2.69. Invocation command line was 2293 2294 $ $0 $@ 2295 2296_ACEOF 2297exec 5>>config.log 2298{ 2299cat <<_ASUNAME 2300## --------- ## 2301## Platform. ## 2302## --------- ## 2303 2304hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2305uname -m = `(uname -m) 2>/dev/null || echo unknown` 2306uname -r = `(uname -r) 2>/dev/null || echo unknown` 2307uname -s = `(uname -s) 2>/dev/null || echo unknown` 2308uname -v = `(uname -v) 2>/dev/null || echo unknown` 2309 2310/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2311/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2312 2313/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2314/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2315/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2316/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2317/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2318/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2319/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2320 2321_ASUNAME 2322 2323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2324for as_dir in $PATH 2325do 2326 IFS=$as_save_IFS 2327 test -z "$as_dir" && as_dir=. 2328 $as_echo "PATH: $as_dir" 2329 done 2330IFS=$as_save_IFS 2331 2332} >&5 2333 2334cat >&5 <<_ACEOF 2335 2336 2337## ----------- ## 2338## Core tests. ## 2339## ----------- ## 2340 2341_ACEOF 2342 2343 2344# Keep a trace of the command line. 2345# Strip out --no-create and --no-recursion so they do not pile up. 2346# Strip out --silent because we don't want to record it for future runs. 2347# Also quote any args containing shell meta-characters. 2348# Make two passes to allow for proper duplicate-argument suppression. 2349ac_configure_args= 2350ac_configure_args0= 2351ac_configure_args1= 2352ac_must_keep_next=false 2353for ac_pass in 1 2 2354do 2355 for ac_arg 2356 do 2357 case $ac_arg in 2358 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2359 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2360 | -silent | --silent | --silen | --sile | --sil) 2361 continue ;; 2362 *\'*) 2363 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2364 esac 2365 case $ac_pass in 2366 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2367 2) 2368 as_fn_append ac_configure_args1 " '$ac_arg'" 2369 if test $ac_must_keep_next = true; then 2370 ac_must_keep_next=false # Got value, back to normal. 2371 else 2372 case $ac_arg in 2373 *=* | --config-cache | -C | -disable-* | --disable-* \ 2374 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2375 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2376 | -with-* | --with-* | -without-* | --without-* | --x) 2377 case "$ac_configure_args0 " in 2378 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2379 esac 2380 ;; 2381 -* ) ac_must_keep_next=true ;; 2382 esac 2383 fi 2384 as_fn_append ac_configure_args " '$ac_arg'" 2385 ;; 2386 esac 2387 done 2388done 2389{ ac_configure_args0=; unset ac_configure_args0;} 2390{ ac_configure_args1=; unset ac_configure_args1;} 2391 2392# When interrupted or exit'd, cleanup temporary files, and complete 2393# config.log. We remove comments because anyway the quotes in there 2394# would cause problems or look ugly. 2395# WARNING: Use '\'' to represent an apostrophe within the trap. 2396# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2397trap 'exit_status=$? 2398 # Save into config.log some information that might help in debugging. 2399 { 2400 echo 2401 2402 $as_echo "## ---------------- ## 2403## Cache variables. ## 2404## ---------------- ##" 2405 echo 2406 # The following way of writing the cache mishandles newlines in values, 2407( 2408 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2409 eval ac_val=\$$ac_var 2410 case $ac_val in #( 2411 *${as_nl}*) 2412 case $ac_var in #( 2413 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2414$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2415 esac 2416 case $ac_var in #( 2417 _ | IFS | as_nl) ;; #( 2418 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2419 *) { eval $ac_var=; unset $ac_var;} ;; 2420 esac ;; 2421 esac 2422 done 2423 (set) 2>&1 | 2424 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2425 *${as_nl}ac_space=\ *) 2426 sed -n \ 2427 "s/'\''/'\''\\\\'\'''\''/g; 2428 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2429 ;; #( 2430 *) 2431 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2432 ;; 2433 esac | 2434 sort 2435) 2436 echo 2437 2438 $as_echo "## ----------------- ## 2439## Output variables. ## 2440## ----------------- ##" 2441 echo 2442 for ac_var in $ac_subst_vars 2443 do 2444 eval ac_val=\$$ac_var 2445 case $ac_val in 2446 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2447 esac 2448 $as_echo "$ac_var='\''$ac_val'\''" 2449 done | sort 2450 echo 2451 2452 if test -n "$ac_subst_files"; then 2453 $as_echo "## ------------------- ## 2454## File substitutions. ## 2455## ------------------- ##" 2456 echo 2457 for ac_var in $ac_subst_files 2458 do 2459 eval ac_val=\$$ac_var 2460 case $ac_val in 2461 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2462 esac 2463 $as_echo "$ac_var='\''$ac_val'\''" 2464 done | sort 2465 echo 2466 fi 2467 2468 if test -s confdefs.h; then 2469 $as_echo "## ----------- ## 2470## confdefs.h. ## 2471## ----------- ##" 2472 echo 2473 cat confdefs.h 2474 echo 2475 fi 2476 test "$ac_signal" != 0 && 2477 $as_echo "$as_me: caught signal $ac_signal" 2478 $as_echo "$as_me: exit $exit_status" 2479 } >&5 2480 rm -f core *.core core.conftest.* && 2481 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2482 exit $exit_status 2483' 0 2484for ac_signal in 1 2 13 15; do 2485 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2486done 2487ac_signal=0 2488 2489# confdefs.h avoids OS command line length limits that DEFS can exceed. 2490rm -f -r conftest* confdefs.h 2491 2492$as_echo "/* confdefs.h */" > confdefs.h 2493 2494# Predefined preprocessor variables. 2495 2496cat >>confdefs.h <<_ACEOF 2497#define PACKAGE_NAME "$PACKAGE_NAME" 2498_ACEOF 2499 2500cat >>confdefs.h <<_ACEOF 2501#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2502_ACEOF 2503 2504cat >>confdefs.h <<_ACEOF 2505#define PACKAGE_VERSION "$PACKAGE_VERSION" 2506_ACEOF 2507 2508cat >>confdefs.h <<_ACEOF 2509#define PACKAGE_STRING "$PACKAGE_STRING" 2510_ACEOF 2511 2512cat >>confdefs.h <<_ACEOF 2513#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2514_ACEOF 2515 2516cat >>confdefs.h <<_ACEOF 2517#define PACKAGE_URL "$PACKAGE_URL" 2518_ACEOF 2519 2520 2521# Let the site file select an alternate cache file if it wants to. 2522# Prefer an explicitly selected file to automatically selected ones. 2523ac_site_file1=NONE 2524ac_site_file2=NONE 2525if test -n "$CONFIG_SITE"; then 2526 # We do not want a PATH search for config.site. 2527 case $CONFIG_SITE in #(( 2528 -*) ac_site_file1=./$CONFIG_SITE;; 2529 */*) ac_site_file1=$CONFIG_SITE;; 2530 *) ac_site_file1=./$CONFIG_SITE;; 2531 esac 2532elif test "x$prefix" != xNONE; then 2533 ac_site_file1=$prefix/share/config.site 2534 ac_site_file2=$prefix/etc/config.site 2535else 2536 ac_site_file1=$ac_default_prefix/share/config.site 2537 ac_site_file2=$ac_default_prefix/etc/config.site 2538fi 2539for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2540do 2541 test "x$ac_site_file" = xNONE && continue 2542 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2543 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2544$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2545 sed 's/^/| /' "$ac_site_file" >&5 2546 . "$ac_site_file" \ 2547 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2548$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2549as_fn_error $? "failed to load site script $ac_site_file 2550See \`config.log' for more details" "$LINENO" 5; } 2551 fi 2552done 2553 2554if test -r "$cache_file"; then 2555 # Some versions of bash will fail to source /dev/null (special files 2556 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2557 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2558 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2559$as_echo "$as_me: loading cache $cache_file" >&6;} 2560 case $cache_file in 2561 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2562 *) . "./$cache_file";; 2563 esac 2564 fi 2565else 2566 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2567$as_echo "$as_me: creating cache $cache_file" >&6;} 2568 >$cache_file 2569fi 2570 2571as_fn_append ac_header_list " stdlib.h" 2572as_fn_append ac_header_list " unistd.h" 2573as_fn_append ac_header_list " sys/param.h" 2574# Check that the precious variables saved in the cache have kept the same 2575# value. 2576ac_cache_corrupted=false 2577for ac_var in $ac_precious_vars; do 2578 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2579 eval ac_new_set=\$ac_env_${ac_var}_set 2580 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2581 eval ac_new_val=\$ac_env_${ac_var}_value 2582 case $ac_old_set,$ac_new_set in 2583 set,) 2584 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2585$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2586 ac_cache_corrupted=: ;; 2587 ,set) 2588 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2589$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2590 ac_cache_corrupted=: ;; 2591 ,);; 2592 *) 2593 if test "x$ac_old_val" != "x$ac_new_val"; then 2594 # differences in whitespace do not lead to failure. 2595 ac_old_val_w=`echo x $ac_old_val` 2596 ac_new_val_w=`echo x $ac_new_val` 2597 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2598 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2599$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2600 ac_cache_corrupted=: 2601 else 2602 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2603$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2604 eval $ac_var=\$ac_old_val 2605 fi 2606 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2607$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2608 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2609$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2610 fi;; 2611 esac 2612 # Pass precious variables to config.status. 2613 if test "$ac_new_set" = set; then 2614 case $ac_new_val in 2615 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2616 *) ac_arg=$ac_var=$ac_new_val ;; 2617 esac 2618 case " $ac_configure_args " in 2619 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2620 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2621 esac 2622 fi 2623done 2624if $ac_cache_corrupted; then 2625 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2626$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2627 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2628$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2629 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2630fi 2631## -------------------- ## 2632## Main body of script. ## 2633## -------------------- ## 2634 2635ac_ext=c 2636ac_cpp='$CPP $CPPFLAGS' 2637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2639ac_compiler_gnu=$ac_cv_c_compiler_gnu 2640 2641 2642 2643ac_config_headers="$ac_config_headers src/config.h include/X11/XlibConf.h" 2644 2645 2646ac_aux_dir= 2647for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2648 if test -f "$ac_dir/install-sh"; then 2649 ac_aux_dir=$ac_dir 2650 ac_install_sh="$ac_aux_dir/install-sh -c" 2651 break 2652 elif test -f "$ac_dir/install.sh"; then 2653 ac_aux_dir=$ac_dir 2654 ac_install_sh="$ac_aux_dir/install.sh -c" 2655 break 2656 elif test -f "$ac_dir/shtool"; then 2657 ac_aux_dir=$ac_dir 2658 ac_install_sh="$ac_aux_dir/shtool install -c" 2659 break 2660 fi 2661done 2662if test -z "$ac_aux_dir"; then 2663 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2664fi 2665 2666# These three variables are undocumented and unsupported, 2667# and are intended to be withdrawn in a future Autoconf release. 2668# They can cause serious problems if a builder's source tree is in a directory 2669# whose full name contains unusual characters. 2670ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2671ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2672ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2673 2674 2675# Make sure we can run config.sub. 2676$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2677 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2678 2679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2680$as_echo_n "checking build system type... " >&6; } 2681if ${ac_cv_build+:} false; then : 2682 $as_echo_n "(cached) " >&6 2683else 2684 ac_build_alias=$build_alias 2685test "x$ac_build_alias" = x && 2686 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2687test "x$ac_build_alias" = x && 2688 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2689ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2690 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2691 2692fi 2693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2694$as_echo "$ac_cv_build" >&6; } 2695case $ac_cv_build in 2696*-*-*) ;; 2697*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2698esac 2699build=$ac_cv_build 2700ac_save_IFS=$IFS; IFS='-' 2701set x $ac_cv_build 2702shift 2703build_cpu=$1 2704build_vendor=$2 2705shift; shift 2706# Remember, the first character of IFS is used to create $*, 2707# except with old shells: 2708build_os=$* 2709IFS=$ac_save_IFS 2710case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2711 2712 2713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2714$as_echo_n "checking host system type... " >&6; } 2715if ${ac_cv_host+:} false; then : 2716 $as_echo_n "(cached) " >&6 2717else 2718 if test "x$host_alias" = x; then 2719 ac_cv_host=$ac_cv_build 2720else 2721 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2722 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2723fi 2724 2725fi 2726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2727$as_echo "$ac_cv_host" >&6; } 2728case $ac_cv_host in 2729*-*-*) ;; 2730*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2731esac 2732host=$ac_cv_host 2733ac_save_IFS=$IFS; IFS='-' 2734set x $ac_cv_host 2735shift 2736host_cpu=$1 2737host_vendor=$2 2738shift; shift 2739# Remember, the first character of IFS is used to create $*, 2740# except with old shells: 2741host_os=$* 2742IFS=$ac_save_IFS 2743case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2744 2745 2746# Set common system defines for POSIX extensions, such as _GNU_SOURCE 2747# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL) 2748# to avoid autoconf errors. 2749# Expand $ac_aux_dir to an absolute path. 2750am_aux_dir=`cd "$ac_aux_dir" && pwd` 2751 2752ac_ext=c 2753ac_cpp='$CPP $CPPFLAGS' 2754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2756ac_compiler_gnu=$ac_cv_c_compiler_gnu 2757if test -n "$ac_tool_prefix"; then 2758 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2759set dummy ${ac_tool_prefix}gcc; ac_word=$2 2760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2761$as_echo_n "checking for $ac_word... " >&6; } 2762if ${ac_cv_prog_CC+:} false; then : 2763 $as_echo_n "(cached) " >&6 2764else 2765 if test -n "$CC"; then 2766 ac_cv_prog_CC="$CC" # Let the user override the test. 2767else 2768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2769for as_dir in $PATH 2770do 2771 IFS=$as_save_IFS 2772 test -z "$as_dir" && as_dir=. 2773 for ac_exec_ext in '' $ac_executable_extensions; do 2774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2775 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2777 break 2 2778 fi 2779done 2780 done 2781IFS=$as_save_IFS 2782 2783fi 2784fi 2785CC=$ac_cv_prog_CC 2786if test -n "$CC"; then 2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2788$as_echo "$CC" >&6; } 2789else 2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2791$as_echo "no" >&6; } 2792fi 2793 2794 2795fi 2796if test -z "$ac_cv_prog_CC"; then 2797 ac_ct_CC=$CC 2798 # Extract the first word of "gcc", so it can be a program name with args. 2799set dummy gcc; ac_word=$2 2800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2801$as_echo_n "checking for $ac_word... " >&6; } 2802if ${ac_cv_prog_ac_ct_CC+:} false; then : 2803 $as_echo_n "(cached) " >&6 2804else 2805 if test -n "$ac_ct_CC"; then 2806 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2807else 2808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2809for as_dir in $PATH 2810do 2811 IFS=$as_save_IFS 2812 test -z "$as_dir" && as_dir=. 2813 for ac_exec_ext in '' $ac_executable_extensions; do 2814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2815 ac_cv_prog_ac_ct_CC="gcc" 2816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2817 break 2 2818 fi 2819done 2820 done 2821IFS=$as_save_IFS 2822 2823fi 2824fi 2825ac_ct_CC=$ac_cv_prog_ac_ct_CC 2826if test -n "$ac_ct_CC"; then 2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2828$as_echo "$ac_ct_CC" >&6; } 2829else 2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2831$as_echo "no" >&6; } 2832fi 2833 2834 if test "x$ac_ct_CC" = x; then 2835 CC="" 2836 else 2837 case $cross_compiling:$ac_tool_warned in 2838yes:) 2839{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2840$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2841ac_tool_warned=yes ;; 2842esac 2843 CC=$ac_ct_CC 2844 fi 2845else 2846 CC="$ac_cv_prog_CC" 2847fi 2848 2849if test -z "$CC"; then 2850 if test -n "$ac_tool_prefix"; then 2851 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2852set dummy ${ac_tool_prefix}cc; ac_word=$2 2853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2854$as_echo_n "checking for $ac_word... " >&6; } 2855if ${ac_cv_prog_CC+:} false; then : 2856 $as_echo_n "(cached) " >&6 2857else 2858 if test -n "$CC"; then 2859 ac_cv_prog_CC="$CC" # Let the user override the test. 2860else 2861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2862for as_dir in $PATH 2863do 2864 IFS=$as_save_IFS 2865 test -z "$as_dir" && as_dir=. 2866 for ac_exec_ext in '' $ac_executable_extensions; do 2867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2868 ac_cv_prog_CC="${ac_tool_prefix}cc" 2869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2870 break 2 2871 fi 2872done 2873 done 2874IFS=$as_save_IFS 2875 2876fi 2877fi 2878CC=$ac_cv_prog_CC 2879if test -n "$CC"; then 2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2881$as_echo "$CC" >&6; } 2882else 2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2884$as_echo "no" >&6; } 2885fi 2886 2887 2888 fi 2889fi 2890if test -z "$CC"; then 2891 # Extract the first word of "cc", so it can be a program name with args. 2892set dummy cc; ac_word=$2 2893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2894$as_echo_n "checking for $ac_word... " >&6; } 2895if ${ac_cv_prog_CC+:} false; then : 2896 $as_echo_n "(cached) " >&6 2897else 2898 if test -n "$CC"; then 2899 ac_cv_prog_CC="$CC" # Let the user override the test. 2900else 2901 ac_prog_rejected=no 2902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2903for as_dir in $PATH 2904do 2905 IFS=$as_save_IFS 2906 test -z "$as_dir" && as_dir=. 2907 for ac_exec_ext in '' $ac_executable_extensions; do 2908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2909 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2910 ac_prog_rejected=yes 2911 continue 2912 fi 2913 ac_cv_prog_CC="cc" 2914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2915 break 2 2916 fi 2917done 2918 done 2919IFS=$as_save_IFS 2920 2921if test $ac_prog_rejected = yes; then 2922 # We found a bogon in the path, so make sure we never use it. 2923 set dummy $ac_cv_prog_CC 2924 shift 2925 if test $# != 0; then 2926 # We chose a different compiler from the bogus one. 2927 # However, it has the same basename, so the bogon will be chosen 2928 # first if we set CC to just the basename; use the full file name. 2929 shift 2930 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2931 fi 2932fi 2933fi 2934fi 2935CC=$ac_cv_prog_CC 2936if test -n "$CC"; then 2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2938$as_echo "$CC" >&6; } 2939else 2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2941$as_echo "no" >&6; } 2942fi 2943 2944 2945fi 2946if test -z "$CC"; then 2947 if test -n "$ac_tool_prefix"; then 2948 for ac_prog in cl.exe 2949 do 2950 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2951set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2953$as_echo_n "checking for $ac_word... " >&6; } 2954if ${ac_cv_prog_CC+:} false; then : 2955 $as_echo_n "(cached) " >&6 2956else 2957 if test -n "$CC"; then 2958 ac_cv_prog_CC="$CC" # Let the user override the test. 2959else 2960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2961for as_dir in $PATH 2962do 2963 IFS=$as_save_IFS 2964 test -z "$as_dir" && as_dir=. 2965 for ac_exec_ext in '' $ac_executable_extensions; do 2966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2967 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2969 break 2 2970 fi 2971done 2972 done 2973IFS=$as_save_IFS 2974 2975fi 2976fi 2977CC=$ac_cv_prog_CC 2978if test -n "$CC"; then 2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2980$as_echo "$CC" >&6; } 2981else 2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2983$as_echo "no" >&6; } 2984fi 2985 2986 2987 test -n "$CC" && break 2988 done 2989fi 2990if test -z "$CC"; then 2991 ac_ct_CC=$CC 2992 for ac_prog in cl.exe 2993do 2994 # Extract the first word of "$ac_prog", so it can be a program name with args. 2995set dummy $ac_prog; ac_word=$2 2996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2997$as_echo_n "checking for $ac_word... " >&6; } 2998if ${ac_cv_prog_ac_ct_CC+:} false; then : 2999 $as_echo_n "(cached) " >&6 3000else 3001 if test -n "$ac_ct_CC"; then 3002 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3003else 3004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3005for as_dir in $PATH 3006do 3007 IFS=$as_save_IFS 3008 test -z "$as_dir" && as_dir=. 3009 for ac_exec_ext in '' $ac_executable_extensions; do 3010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3011 ac_cv_prog_ac_ct_CC="$ac_prog" 3012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3013 break 2 3014 fi 3015done 3016 done 3017IFS=$as_save_IFS 3018 3019fi 3020fi 3021ac_ct_CC=$ac_cv_prog_ac_ct_CC 3022if test -n "$ac_ct_CC"; then 3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3024$as_echo "$ac_ct_CC" >&6; } 3025else 3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3027$as_echo "no" >&6; } 3028fi 3029 3030 3031 test -n "$ac_ct_CC" && break 3032done 3033 3034 if test "x$ac_ct_CC" = x; then 3035 CC="" 3036 else 3037 case $cross_compiling:$ac_tool_warned in 3038yes:) 3039{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3040$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3041ac_tool_warned=yes ;; 3042esac 3043 CC=$ac_ct_CC 3044 fi 3045fi 3046 3047fi 3048 3049 3050test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3051$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3052as_fn_error $? "no acceptable C compiler found in \$PATH 3053See \`config.log' for more details" "$LINENO" 5; } 3054 3055# Provide some information about the compiler. 3056$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3057set X $ac_compile 3058ac_compiler=$2 3059for ac_option in --version -v -V -qversion; do 3060 { { ac_try="$ac_compiler $ac_option >&5" 3061case "(($ac_try" in 3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3063 *) ac_try_echo=$ac_try;; 3064esac 3065eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3066$as_echo "$ac_try_echo"; } >&5 3067 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3068 ac_status=$? 3069 if test -s conftest.err; then 3070 sed '10a\ 3071... rest of stderr output deleted ... 3072 10q' conftest.err >conftest.er1 3073 cat conftest.er1 >&5 3074 fi 3075 rm -f conftest.er1 conftest.err 3076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3077 test $ac_status = 0; } 3078done 3079 3080cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3081/* end confdefs.h. */ 3082 3083int 3084main () 3085{ 3086 3087 ; 3088 return 0; 3089} 3090_ACEOF 3091ac_clean_files_save=$ac_clean_files 3092ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3093# Try to create an executable without -o first, disregard a.out. 3094# It will help us diagnose broken compilers, and finding out an intuition 3095# of exeext. 3096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3097$as_echo_n "checking whether the C compiler works... " >&6; } 3098ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3099 3100# The possible output files: 3101ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3102 3103ac_rmfiles= 3104for ac_file in $ac_files 3105do 3106 case $ac_file in 3107 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3108 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3109 esac 3110done 3111rm -f $ac_rmfiles 3112 3113if { { ac_try="$ac_link_default" 3114case "(($ac_try" in 3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3116 *) ac_try_echo=$ac_try;; 3117esac 3118eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3119$as_echo "$ac_try_echo"; } >&5 3120 (eval "$ac_link_default") 2>&5 3121 ac_status=$? 3122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3123 test $ac_status = 0; }; then : 3124 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3125# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3126# in a Makefile. We should not override ac_cv_exeext if it was cached, 3127# so that the user can short-circuit this test for compilers unknown to 3128# Autoconf. 3129for ac_file in $ac_files '' 3130do 3131 test -f "$ac_file" || continue 3132 case $ac_file in 3133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3134 ;; 3135 [ab].out ) 3136 # We found the default executable, but exeext='' is most 3137 # certainly right. 3138 break;; 3139 *.* ) 3140 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3141 then :; else 3142 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3143 fi 3144 # We set ac_cv_exeext here because the later test for it is not 3145 # safe: cross compilers may not add the suffix if given an `-o' 3146 # argument, so we may need to know it at that point already. 3147 # Even if this section looks crufty: it has the advantage of 3148 # actually working. 3149 break;; 3150 * ) 3151 break;; 3152 esac 3153done 3154test "$ac_cv_exeext" = no && ac_cv_exeext= 3155 3156else 3157 ac_file='' 3158fi 3159if test -z "$ac_file"; then : 3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3161$as_echo "no" >&6; } 3162$as_echo "$as_me: failed program was:" >&5 3163sed 's/^/| /' conftest.$ac_ext >&5 3164 3165{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3166$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3167as_fn_error 77 "C compiler cannot create executables 3168See \`config.log' for more details" "$LINENO" 5; } 3169else 3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3171$as_echo "yes" >&6; } 3172fi 3173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3174$as_echo_n "checking for C compiler default output file name... " >&6; } 3175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3176$as_echo "$ac_file" >&6; } 3177ac_exeext=$ac_cv_exeext 3178 3179rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3180ac_clean_files=$ac_clean_files_save 3181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3182$as_echo_n "checking for suffix of executables... " >&6; } 3183if { { ac_try="$ac_link" 3184case "(($ac_try" in 3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3186 *) ac_try_echo=$ac_try;; 3187esac 3188eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3189$as_echo "$ac_try_echo"; } >&5 3190 (eval "$ac_link") 2>&5 3191 ac_status=$? 3192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3193 test $ac_status = 0; }; then : 3194 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3195# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3196# work properly (i.e., refer to `conftest.exe'), while it won't with 3197# `rm'. 3198for ac_file in conftest.exe conftest conftest.*; do 3199 test -f "$ac_file" || continue 3200 case $ac_file in 3201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3202 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3203 break;; 3204 * ) break;; 3205 esac 3206done 3207else 3208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3210as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3211See \`config.log' for more details" "$LINENO" 5; } 3212fi 3213rm -f conftest conftest$ac_cv_exeext 3214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3215$as_echo "$ac_cv_exeext" >&6; } 3216 3217rm -f conftest.$ac_ext 3218EXEEXT=$ac_cv_exeext 3219ac_exeext=$EXEEXT 3220cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3221/* end confdefs.h. */ 3222#include <stdio.h> 3223int 3224main () 3225{ 3226FILE *f = fopen ("conftest.out", "w"); 3227 return ferror (f) || fclose (f) != 0; 3228 3229 ; 3230 return 0; 3231} 3232_ACEOF 3233ac_clean_files="$ac_clean_files conftest.out" 3234# Check that the compiler produces executables we can run. If not, either 3235# the compiler is broken, or we cross compile. 3236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3237$as_echo_n "checking whether we are cross compiling... " >&6; } 3238if test "$cross_compiling" != yes; then 3239 { { ac_try="$ac_link" 3240case "(($ac_try" in 3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3242 *) ac_try_echo=$ac_try;; 3243esac 3244eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3245$as_echo "$ac_try_echo"; } >&5 3246 (eval "$ac_link") 2>&5 3247 ac_status=$? 3248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3249 test $ac_status = 0; } 3250 if { ac_try='./conftest$ac_cv_exeext' 3251 { { case "(($ac_try" in 3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3253 *) ac_try_echo=$ac_try;; 3254esac 3255eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3256$as_echo "$ac_try_echo"; } >&5 3257 (eval "$ac_try") 2>&5 3258 ac_status=$? 3259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3260 test $ac_status = 0; }; }; then 3261 cross_compiling=no 3262 else 3263 if test "$cross_compiling" = maybe; then 3264 cross_compiling=yes 3265 else 3266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3267$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3268as_fn_error $? "cannot run C compiled programs. 3269If you meant to cross compile, use \`--host'. 3270See \`config.log' for more details" "$LINENO" 5; } 3271 fi 3272 fi 3273fi 3274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3275$as_echo "$cross_compiling" >&6; } 3276 3277rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3278ac_clean_files=$ac_clean_files_save 3279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3280$as_echo_n "checking for suffix of object files... " >&6; } 3281if ${ac_cv_objext+:} false; then : 3282 $as_echo_n "(cached) " >&6 3283else 3284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3285/* end confdefs.h. */ 3286 3287int 3288main () 3289{ 3290 3291 ; 3292 return 0; 3293} 3294_ACEOF 3295rm -f conftest.o conftest.obj 3296if { { ac_try="$ac_compile" 3297case "(($ac_try" in 3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3299 *) ac_try_echo=$ac_try;; 3300esac 3301eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3302$as_echo "$ac_try_echo"; } >&5 3303 (eval "$ac_compile") 2>&5 3304 ac_status=$? 3305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3306 test $ac_status = 0; }; then : 3307 for ac_file in conftest.o conftest.obj conftest.*; do 3308 test -f "$ac_file" || continue; 3309 case $ac_file in 3310 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3311 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3312 break;; 3313 esac 3314done 3315else 3316 $as_echo "$as_me: failed program was:" >&5 3317sed 's/^/| /' conftest.$ac_ext >&5 3318 3319{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3320$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3321as_fn_error $? "cannot compute suffix of object files: cannot compile 3322See \`config.log' for more details" "$LINENO" 5; } 3323fi 3324rm -f conftest.$ac_cv_objext conftest.$ac_ext 3325fi 3326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3327$as_echo "$ac_cv_objext" >&6; } 3328OBJEXT=$ac_cv_objext 3329ac_objext=$OBJEXT 3330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3331$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3332if ${ac_cv_c_compiler_gnu+:} false; then : 3333 $as_echo_n "(cached) " >&6 3334else 3335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3336/* end confdefs.h. */ 3337 3338int 3339main () 3340{ 3341#ifndef __GNUC__ 3342 choke me 3343#endif 3344 3345 ; 3346 return 0; 3347} 3348_ACEOF 3349if ac_fn_c_try_compile "$LINENO"; then : 3350 ac_compiler_gnu=yes 3351else 3352 ac_compiler_gnu=no 3353fi 3354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3355ac_cv_c_compiler_gnu=$ac_compiler_gnu 3356 3357fi 3358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3359$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3360if test $ac_compiler_gnu = yes; then 3361 GCC=yes 3362else 3363 GCC= 3364fi 3365ac_test_CFLAGS=${CFLAGS+set} 3366ac_save_CFLAGS=$CFLAGS 3367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3368$as_echo_n "checking whether $CC accepts -g... " >&6; } 3369if ${ac_cv_prog_cc_g+:} false; then : 3370 $as_echo_n "(cached) " >&6 3371else 3372 ac_save_c_werror_flag=$ac_c_werror_flag 3373 ac_c_werror_flag=yes 3374 ac_cv_prog_cc_g=no 3375 CFLAGS="-g" 3376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3377/* end confdefs.h. */ 3378 3379int 3380main () 3381{ 3382 3383 ; 3384 return 0; 3385} 3386_ACEOF 3387if ac_fn_c_try_compile "$LINENO"; then : 3388 ac_cv_prog_cc_g=yes 3389else 3390 CFLAGS="" 3391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3392/* end confdefs.h. */ 3393 3394int 3395main () 3396{ 3397 3398 ; 3399 return 0; 3400} 3401_ACEOF 3402if ac_fn_c_try_compile "$LINENO"; then : 3403 3404else 3405 ac_c_werror_flag=$ac_save_c_werror_flag 3406 CFLAGS="-g" 3407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3408/* end confdefs.h. */ 3409 3410int 3411main () 3412{ 3413 3414 ; 3415 return 0; 3416} 3417_ACEOF 3418if ac_fn_c_try_compile "$LINENO"; then : 3419 ac_cv_prog_cc_g=yes 3420fi 3421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3422fi 3423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3424fi 3425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3426 ac_c_werror_flag=$ac_save_c_werror_flag 3427fi 3428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3429$as_echo "$ac_cv_prog_cc_g" >&6; } 3430if test "$ac_test_CFLAGS" = set; then 3431 CFLAGS=$ac_save_CFLAGS 3432elif test $ac_cv_prog_cc_g = yes; then 3433 if test "$GCC" = yes; then 3434 CFLAGS="-g -O2" 3435 else 3436 CFLAGS="-g" 3437 fi 3438else 3439 if test "$GCC" = yes; then 3440 CFLAGS="-O2" 3441 else 3442 CFLAGS= 3443 fi 3444fi 3445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3446$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3447if ${ac_cv_prog_cc_c89+:} false; then : 3448 $as_echo_n "(cached) " >&6 3449else 3450 ac_cv_prog_cc_c89=no 3451ac_save_CC=$CC 3452cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3453/* end confdefs.h. */ 3454#include <stdarg.h> 3455#include <stdio.h> 3456struct stat; 3457/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3458struct buf { int x; }; 3459FILE * (*rcsopen) (struct buf *, struct stat *, int); 3460static char *e (p, i) 3461 char **p; 3462 int i; 3463{ 3464 return p[i]; 3465} 3466static char *f (char * (*g) (char **, int), char **p, ...) 3467{ 3468 char *s; 3469 va_list v; 3470 va_start (v,p); 3471 s = g (p, va_arg (v,int)); 3472 va_end (v); 3473 return s; 3474} 3475 3476/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3477 function prototypes and stuff, but not '\xHH' hex character constants. 3478 These don't provoke an error unfortunately, instead are silently treated 3479 as 'x'. The following induces an error, until -std is added to get 3480 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3481 array size at least. It's necessary to write '\x00'==0 to get something 3482 that's true only with -std. */ 3483int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3484 3485/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3486 inside strings and character constants. */ 3487#define FOO(x) 'x' 3488int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3489 3490int test (int i, double x); 3491struct s1 {int (*f) (int a);}; 3492struct s2 {int (*f) (double a);}; 3493int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3494int argc; 3495char **argv; 3496int 3497main () 3498{ 3499return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3500 ; 3501 return 0; 3502} 3503_ACEOF 3504for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3505 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3506do 3507 CC="$ac_save_CC $ac_arg" 3508 if ac_fn_c_try_compile "$LINENO"; then : 3509 ac_cv_prog_cc_c89=$ac_arg 3510fi 3511rm -f core conftest.err conftest.$ac_objext 3512 test "x$ac_cv_prog_cc_c89" != "xno" && break 3513done 3514rm -f conftest.$ac_ext 3515CC=$ac_save_CC 3516 3517fi 3518# AC_CACHE_VAL 3519case "x$ac_cv_prog_cc_c89" in 3520 x) 3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3522$as_echo "none needed" >&6; } ;; 3523 xno) 3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3525$as_echo "unsupported" >&6; } ;; 3526 *) 3527 CC="$CC $ac_cv_prog_cc_c89" 3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3529$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3530esac 3531if test "x$ac_cv_prog_cc_c89" != xno; then : 3532 3533fi 3534 3535ac_ext=c 3536ac_cpp='$CPP $CPPFLAGS' 3537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3539ac_compiler_gnu=$ac_cv_c_compiler_gnu 3540 3541ac_ext=c 3542ac_cpp='$CPP $CPPFLAGS' 3543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3545ac_compiler_gnu=$ac_cv_c_compiler_gnu 3546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3547$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3548if ${am_cv_prog_cc_c_o+:} false; then : 3549 $as_echo_n "(cached) " >&6 3550else 3551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3552/* end confdefs.h. */ 3553 3554int 3555main () 3556{ 3557 3558 ; 3559 return 0; 3560} 3561_ACEOF 3562 # Make sure it works both with $CC and with simple cc. 3563 # Following AC_PROG_CC_C_O, we do the test twice because some 3564 # compilers refuse to overwrite an existing .o file with -o, 3565 # though they will create one. 3566 am_cv_prog_cc_c_o=yes 3567 for am_i in 1 2; do 3568 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3569 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3570 ac_status=$? 3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3572 (exit $ac_status); } \ 3573 && test -f conftest2.$ac_objext; then 3574 : OK 3575 else 3576 am_cv_prog_cc_c_o=no 3577 break 3578 fi 3579 done 3580 rm -f core conftest* 3581 unset am_i 3582fi 3583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3584$as_echo "$am_cv_prog_cc_c_o" >&6; } 3585if test "$am_cv_prog_cc_c_o" != yes; then 3586 # Losing compiler, so override with the script. 3587 # FIXME: It is wrong to rewrite CC. 3588 # But if we don't then we get into trouble of one sort or another. 3589 # A longer-term fix would be to have automake use am__CC in this case, 3590 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3591 CC="$am_aux_dir/compile $CC" 3592fi 3593ac_ext=c 3594ac_cpp='$CPP $CPPFLAGS' 3595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3597ac_compiler_gnu=$ac_cv_c_compiler_gnu 3598 3599 3600 3601ac_ext=c 3602ac_cpp='$CPP $CPPFLAGS' 3603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3605ac_compiler_gnu=$ac_cv_c_compiler_gnu 3606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3607$as_echo_n "checking how to run the C preprocessor... " >&6; } 3608# On Suns, sometimes $CPP names a directory. 3609if test -n "$CPP" && test -d "$CPP"; then 3610 CPP= 3611fi 3612if test -z "$CPP"; then 3613 if ${ac_cv_prog_CPP+:} false; then : 3614 $as_echo_n "(cached) " >&6 3615else 3616 # Double quotes because CPP needs to be expanded 3617 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3618 do 3619 ac_preproc_ok=false 3620for ac_c_preproc_warn_flag in '' yes 3621do 3622 # Use a header file that comes with gcc, so configuring glibc 3623 # with a fresh cross-compiler works. 3624 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3625 # <limits.h> exists even on freestanding compilers. 3626 # On the NeXT, cc -E runs the code through the compiler's parser, 3627 # not just through cpp. "Syntax error" is here to catch this case. 3628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3629/* end confdefs.h. */ 3630#ifdef __STDC__ 3631# include <limits.h> 3632#else 3633# include <assert.h> 3634#endif 3635 Syntax error 3636_ACEOF 3637if ac_fn_c_try_cpp "$LINENO"; then : 3638 3639else 3640 # Broken: fails on valid input. 3641continue 3642fi 3643rm -f conftest.err conftest.i conftest.$ac_ext 3644 3645 # OK, works on sane cases. Now check whether nonexistent headers 3646 # can be detected and how. 3647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3648/* end confdefs.h. */ 3649#include <ac_nonexistent.h> 3650_ACEOF 3651if ac_fn_c_try_cpp "$LINENO"; then : 3652 # Broken: success on invalid input. 3653continue 3654else 3655 # Passes both tests. 3656ac_preproc_ok=: 3657break 3658fi 3659rm -f conftest.err conftest.i conftest.$ac_ext 3660 3661done 3662# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3663rm -f conftest.i conftest.err conftest.$ac_ext 3664if $ac_preproc_ok; then : 3665 break 3666fi 3667 3668 done 3669 ac_cv_prog_CPP=$CPP 3670 3671fi 3672 CPP=$ac_cv_prog_CPP 3673else 3674 ac_cv_prog_CPP=$CPP 3675fi 3676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3677$as_echo "$CPP" >&6; } 3678ac_preproc_ok=false 3679for ac_c_preproc_warn_flag in '' yes 3680do 3681 # Use a header file that comes with gcc, so configuring glibc 3682 # with a fresh cross-compiler works. 3683 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3684 # <limits.h> exists even on freestanding compilers. 3685 # On the NeXT, cc -E runs the code through the compiler's parser, 3686 # not just through cpp. "Syntax error" is here to catch this case. 3687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3688/* end confdefs.h. */ 3689#ifdef __STDC__ 3690# include <limits.h> 3691#else 3692# include <assert.h> 3693#endif 3694 Syntax error 3695_ACEOF 3696if ac_fn_c_try_cpp "$LINENO"; then : 3697 3698else 3699 # Broken: fails on valid input. 3700continue 3701fi 3702rm -f conftest.err conftest.i conftest.$ac_ext 3703 3704 # OK, works on sane cases. Now check whether nonexistent headers 3705 # can be detected and how. 3706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3707/* end confdefs.h. */ 3708#include <ac_nonexistent.h> 3709_ACEOF 3710if ac_fn_c_try_cpp "$LINENO"; then : 3711 # Broken: success on invalid input. 3712continue 3713else 3714 # Passes both tests. 3715ac_preproc_ok=: 3716break 3717fi 3718rm -f conftest.err conftest.i conftest.$ac_ext 3719 3720done 3721# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3722rm -f conftest.i conftest.err conftest.$ac_ext 3723if $ac_preproc_ok; then : 3724 3725else 3726 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3727$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3728as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3729See \`config.log' for more details" "$LINENO" 5; } 3730fi 3731 3732ac_ext=c 3733ac_cpp='$CPP $CPPFLAGS' 3734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3736ac_compiler_gnu=$ac_cv_c_compiler_gnu 3737 3738 3739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3740$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3741if ${ac_cv_path_GREP+:} false; then : 3742 $as_echo_n "(cached) " >&6 3743else 3744 if test -z "$GREP"; then 3745 ac_path_GREP_found=false 3746 # Loop through the user's path and test for each of PROGNAME-LIST 3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3748for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3749do 3750 IFS=$as_save_IFS 3751 test -z "$as_dir" && as_dir=. 3752 for ac_prog in grep ggrep; do 3753 for ac_exec_ext in '' $ac_executable_extensions; do 3754 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3755 as_fn_executable_p "$ac_path_GREP" || continue 3756# Check for GNU ac_path_GREP and select it if it is found. 3757 # Check for GNU $ac_path_GREP 3758case `"$ac_path_GREP" --version 2>&1` in 3759*GNU*) 3760 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3761*) 3762 ac_count=0 3763 $as_echo_n 0123456789 >"conftest.in" 3764 while : 3765 do 3766 cat "conftest.in" "conftest.in" >"conftest.tmp" 3767 mv "conftest.tmp" "conftest.in" 3768 cp "conftest.in" "conftest.nl" 3769 $as_echo 'GREP' >> "conftest.nl" 3770 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3771 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3772 as_fn_arith $ac_count + 1 && ac_count=$as_val 3773 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3774 # Best one so far, save it but keep looking for a better one 3775 ac_cv_path_GREP="$ac_path_GREP" 3776 ac_path_GREP_max=$ac_count 3777 fi 3778 # 10*(2^10) chars as input seems more than enough 3779 test $ac_count -gt 10 && break 3780 done 3781 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3782esac 3783 3784 $ac_path_GREP_found && break 3 3785 done 3786 done 3787 done 3788IFS=$as_save_IFS 3789 if test -z "$ac_cv_path_GREP"; then 3790 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3791 fi 3792else 3793 ac_cv_path_GREP=$GREP 3794fi 3795 3796fi 3797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3798$as_echo "$ac_cv_path_GREP" >&6; } 3799 GREP="$ac_cv_path_GREP" 3800 3801 3802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3803$as_echo_n "checking for egrep... " >&6; } 3804if ${ac_cv_path_EGREP+:} false; then : 3805 $as_echo_n "(cached) " >&6 3806else 3807 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3808 then ac_cv_path_EGREP="$GREP -E" 3809 else 3810 if test -z "$EGREP"; then 3811 ac_path_EGREP_found=false 3812 # Loop through the user's path and test for each of PROGNAME-LIST 3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3814for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3815do 3816 IFS=$as_save_IFS 3817 test -z "$as_dir" && as_dir=. 3818 for ac_prog in egrep; do 3819 for ac_exec_ext in '' $ac_executable_extensions; do 3820 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3821 as_fn_executable_p "$ac_path_EGREP" || continue 3822# Check for GNU ac_path_EGREP and select it if it is found. 3823 # Check for GNU $ac_path_EGREP 3824case `"$ac_path_EGREP" --version 2>&1` in 3825*GNU*) 3826 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3827*) 3828 ac_count=0 3829 $as_echo_n 0123456789 >"conftest.in" 3830 while : 3831 do 3832 cat "conftest.in" "conftest.in" >"conftest.tmp" 3833 mv "conftest.tmp" "conftest.in" 3834 cp "conftest.in" "conftest.nl" 3835 $as_echo 'EGREP' >> "conftest.nl" 3836 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3837 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3838 as_fn_arith $ac_count + 1 && ac_count=$as_val 3839 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3840 # Best one so far, save it but keep looking for a better one 3841 ac_cv_path_EGREP="$ac_path_EGREP" 3842 ac_path_EGREP_max=$ac_count 3843 fi 3844 # 10*(2^10) chars as input seems more than enough 3845 test $ac_count -gt 10 && break 3846 done 3847 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3848esac 3849 3850 $ac_path_EGREP_found && break 3 3851 done 3852 done 3853 done 3854IFS=$as_save_IFS 3855 if test -z "$ac_cv_path_EGREP"; then 3856 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3857 fi 3858else 3859 ac_cv_path_EGREP=$EGREP 3860fi 3861 3862 fi 3863fi 3864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3865$as_echo "$ac_cv_path_EGREP" >&6; } 3866 EGREP="$ac_cv_path_EGREP" 3867 3868 3869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3870$as_echo_n "checking for ANSI C header files... " >&6; } 3871if ${ac_cv_header_stdc+:} false; then : 3872 $as_echo_n "(cached) " >&6 3873else 3874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3875/* end confdefs.h. */ 3876#include <stdlib.h> 3877#include <stdarg.h> 3878#include <string.h> 3879#include <float.h> 3880 3881int 3882main () 3883{ 3884 3885 ; 3886 return 0; 3887} 3888_ACEOF 3889if ac_fn_c_try_compile "$LINENO"; then : 3890 ac_cv_header_stdc=yes 3891else 3892 ac_cv_header_stdc=no 3893fi 3894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3895 3896if test $ac_cv_header_stdc = yes; then 3897 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3899/* end confdefs.h. */ 3900#include <string.h> 3901 3902_ACEOF 3903if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3904 $EGREP "memchr" >/dev/null 2>&1; then : 3905 3906else 3907 ac_cv_header_stdc=no 3908fi 3909rm -f conftest* 3910 3911fi 3912 3913if test $ac_cv_header_stdc = yes; then 3914 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3916/* end confdefs.h. */ 3917#include <stdlib.h> 3918 3919_ACEOF 3920if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3921 $EGREP "free" >/dev/null 2>&1; then : 3922 3923else 3924 ac_cv_header_stdc=no 3925fi 3926rm -f conftest* 3927 3928fi 3929 3930if test $ac_cv_header_stdc = yes; then 3931 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3932 if test "$cross_compiling" = yes; then : 3933 : 3934else 3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3936/* end confdefs.h. */ 3937#include <ctype.h> 3938#include <stdlib.h> 3939#if ((' ' & 0x0FF) == 0x020) 3940# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3941# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3942#else 3943# define ISLOWER(c) \ 3944 (('a' <= (c) && (c) <= 'i') \ 3945 || ('j' <= (c) && (c) <= 'r') \ 3946 || ('s' <= (c) && (c) <= 'z')) 3947# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3948#endif 3949 3950#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3951int 3952main () 3953{ 3954 int i; 3955 for (i = 0; i < 256; i++) 3956 if (XOR (islower (i), ISLOWER (i)) 3957 || toupper (i) != TOUPPER (i)) 3958 return 2; 3959 return 0; 3960} 3961_ACEOF 3962if ac_fn_c_try_run "$LINENO"; then : 3963 3964else 3965 ac_cv_header_stdc=no 3966fi 3967rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3968 conftest.$ac_objext conftest.beam conftest.$ac_ext 3969fi 3970 3971fi 3972fi 3973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3974$as_echo "$ac_cv_header_stdc" >&6; } 3975if test $ac_cv_header_stdc = yes; then 3976 3977$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3978 3979fi 3980 3981# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3982for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3983 inttypes.h stdint.h unistd.h 3984do : 3985 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3986ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3987" 3988if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3989 cat >>confdefs.h <<_ACEOF 3990#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3991_ACEOF 3992 3993fi 3994 3995done 3996 3997 3998 3999 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4000if test "x$ac_cv_header_minix_config_h" = xyes; then : 4001 MINIX=yes 4002else 4003 MINIX= 4004fi 4005 4006 4007 if test "$MINIX" = yes; then 4008 4009$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4010 4011 4012$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4013 4014 4015$as_echo "#define _MINIX 1" >>confdefs.h 4016 4017 fi 4018 4019 4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4021$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4022if ${ac_cv_safe_to_define___extensions__+:} false; then : 4023 $as_echo_n "(cached) " >&6 4024else 4025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4026/* end confdefs.h. */ 4027 4028# define __EXTENSIONS__ 1 4029 $ac_includes_default 4030int 4031main () 4032{ 4033 4034 ; 4035 return 0; 4036} 4037_ACEOF 4038if ac_fn_c_try_compile "$LINENO"; then : 4039 ac_cv_safe_to_define___extensions__=yes 4040else 4041 ac_cv_safe_to_define___extensions__=no 4042fi 4043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4044fi 4045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4046$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4047 test $ac_cv_safe_to_define___extensions__ = yes && 4048 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4049 4050 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4051 4052 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4053 4054 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4055 4056 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4057 4058 4059 4060# Initialize Automake 4061am__api_version='1.15' 4062 4063# Find a good install program. We prefer a C program (faster), 4064# so one script is as good as another. But avoid the broken or 4065# incompatible versions: 4066# SysV /etc/install, /usr/sbin/install 4067# SunOS /usr/etc/install 4068# IRIX /sbin/install 4069# AIX /bin/install 4070# AmigaOS /C/install, which installs bootblocks on floppy discs 4071# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4072# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4073# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4074# OS/2's system install, which has a completely different semantic 4075# ./install, which can be erroneously created by make from ./install.sh. 4076# Reject install programs that cannot install multiple files. 4077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4078$as_echo_n "checking for a BSD-compatible install... " >&6; } 4079if test -z "$INSTALL"; then 4080if ${ac_cv_path_install+:} false; then : 4081 $as_echo_n "(cached) " >&6 4082else 4083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4084for as_dir in $PATH 4085do 4086 IFS=$as_save_IFS 4087 test -z "$as_dir" && as_dir=. 4088 # Account for people who put trailing slashes in PATH elements. 4089case $as_dir/ in #(( 4090 ./ | .// | /[cC]/* | \ 4091 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4092 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4093 /usr/ucb/* ) ;; 4094 *) 4095 # OSF1 and SCO ODT 3.0 have their own names for install. 4096 # Don't use installbsd from OSF since it installs stuff as root 4097 # by default. 4098 for ac_prog in ginstall scoinst install; do 4099 for ac_exec_ext in '' $ac_executable_extensions; do 4100 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 4101 if test $ac_prog = install && 4102 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4103 # AIX install. It has an incompatible calling convention. 4104 : 4105 elif test $ac_prog = install && 4106 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4107 # program-specific install script used by HP pwplus--don't use. 4108 : 4109 else 4110 rm -rf conftest.one conftest.two conftest.dir 4111 echo one > conftest.one 4112 echo two > conftest.two 4113 mkdir conftest.dir 4114 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 4115 test -s conftest.one && test -s conftest.two && 4116 test -s conftest.dir/conftest.one && 4117 test -s conftest.dir/conftest.two 4118 then 4119 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4120 break 3 4121 fi 4122 fi 4123 fi 4124 done 4125 done 4126 ;; 4127esac 4128 4129 done 4130IFS=$as_save_IFS 4131 4132rm -rf conftest.one conftest.two conftest.dir 4133 4134fi 4135 if test "${ac_cv_path_install+set}" = set; then 4136 INSTALL=$ac_cv_path_install 4137 else 4138 # As a last resort, use the slow shell script. Don't cache a 4139 # value for INSTALL within a source directory, because that will 4140 # break other packages using the cache if that directory is 4141 # removed, or if the value is a relative name. 4142 INSTALL=$ac_install_sh 4143 fi 4144fi 4145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4146$as_echo "$INSTALL" >&6; } 4147 4148# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4149# It thinks the first close brace ends the variable substitution. 4150test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4151 4152test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4153 4154test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4155 4156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4157$as_echo_n "checking whether build environment is sane... " >&6; } 4158# Reject unsafe characters in $srcdir or the absolute working directory 4159# name. Accept space and tab only in the latter. 4160am_lf=' 4161' 4162case `pwd` in 4163 *[\\\"\#\$\&\'\`$am_lf]*) 4164 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4165esac 4166case $srcdir in 4167 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4168 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4169esac 4170 4171# Do 'set' in a subshell so we don't clobber the current shell's 4172# arguments. Must try -L first in case configure is actually a 4173# symlink; some systems play weird games with the mod time of symlinks 4174# (eg FreeBSD returns the mod time of the symlink's containing 4175# directory). 4176if ( 4177 am_has_slept=no 4178 for am_try in 1 2; do 4179 echo "timestamp, slept: $am_has_slept" > conftest.file 4180 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4181 if test "$*" = "X"; then 4182 # -L didn't work. 4183 set X `ls -t "$srcdir/configure" conftest.file` 4184 fi 4185 if test "$*" != "X $srcdir/configure conftest.file" \ 4186 && test "$*" != "X conftest.file $srcdir/configure"; then 4187 4188 # If neither matched, then we have a broken ls. This can happen 4189 # if, for instance, CONFIG_SHELL is bash and it inherits a 4190 # broken ls alias from the environment. This has actually 4191 # happened. Such a system could not be considered "sane". 4192 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 4193 alias in your environment" "$LINENO" 5 4194 fi 4195 if test "$2" = conftest.file || test $am_try -eq 2; then 4196 break 4197 fi 4198 # Just in case. 4199 sleep 1 4200 am_has_slept=yes 4201 done 4202 test "$2" = conftest.file 4203 ) 4204then 4205 # Ok. 4206 : 4207else 4208 as_fn_error $? "newly created file is older than distributed files! 4209Check your system clock" "$LINENO" 5 4210fi 4211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4212$as_echo "yes" >&6; } 4213# If we didn't sleep, we still need to ensure time stamps of config.status and 4214# generated files are strictly newer. 4215am_sleep_pid= 4216if grep 'slept: no' conftest.file >/dev/null 2>&1; then 4217 ( sleep 1 ) & 4218 am_sleep_pid=$! 4219fi 4220 4221rm -f conftest.file 4222 4223test "$program_prefix" != NONE && 4224 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4225# Use a double $ so make ignores it. 4226test "$program_suffix" != NONE && 4227 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4228# Double any \ or $. 4229# By default was `s,x,x', remove it if useless. 4230ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4231program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 4232 4233if test x"${MISSING+set}" != xset; then 4234 case $am_aux_dir in 4235 *\ * | *\ *) 4236 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 4237 *) 4238 MISSING="\${SHELL} $am_aux_dir/missing" ;; 4239 esac 4240fi 4241# Use eval to expand $SHELL 4242if eval "$MISSING --is-lightweight"; then 4243 am_missing_run="$MISSING " 4244else 4245 am_missing_run= 4246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4247$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4248fi 4249 4250if test x"${install_sh+set}" != xset; then 4251 case $am_aux_dir in 4252 *\ * | *\ *) 4253 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4254 *) 4255 install_sh="\${SHELL} $am_aux_dir/install-sh" 4256 esac 4257fi 4258 4259# Installed binaries are usually stripped using 'strip' when the user 4260# run "make install-strip". However 'strip' might not be the right 4261# tool to use in cross-compilation environments, therefore Automake 4262# will honor the 'STRIP' environment variable to overrule this program. 4263if test "$cross_compiling" != no; then 4264 if test -n "$ac_tool_prefix"; then 4265 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4266set dummy ${ac_tool_prefix}strip; ac_word=$2 4267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4268$as_echo_n "checking for $ac_word... " >&6; } 4269if ${ac_cv_prog_STRIP+:} false; then : 4270 $as_echo_n "(cached) " >&6 4271else 4272 if test -n "$STRIP"; then 4273 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4274else 4275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4276for as_dir in $PATH 4277do 4278 IFS=$as_save_IFS 4279 test -z "$as_dir" && as_dir=. 4280 for ac_exec_ext in '' $ac_executable_extensions; do 4281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4282 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4284 break 2 4285 fi 4286done 4287 done 4288IFS=$as_save_IFS 4289 4290fi 4291fi 4292STRIP=$ac_cv_prog_STRIP 4293if test -n "$STRIP"; then 4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4295$as_echo "$STRIP" >&6; } 4296else 4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4298$as_echo "no" >&6; } 4299fi 4300 4301 4302fi 4303if test -z "$ac_cv_prog_STRIP"; then 4304 ac_ct_STRIP=$STRIP 4305 # Extract the first word of "strip", so it can be a program name with args. 4306set dummy strip; ac_word=$2 4307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4308$as_echo_n "checking for $ac_word... " >&6; } 4309if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 4310 $as_echo_n "(cached) " >&6 4311else 4312 if test -n "$ac_ct_STRIP"; then 4313 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4314else 4315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4316for as_dir in $PATH 4317do 4318 IFS=$as_save_IFS 4319 test -z "$as_dir" && as_dir=. 4320 for ac_exec_ext in '' $ac_executable_extensions; do 4321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4322 ac_cv_prog_ac_ct_STRIP="strip" 4323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4324 break 2 4325 fi 4326done 4327 done 4328IFS=$as_save_IFS 4329 4330fi 4331fi 4332ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4333if test -n "$ac_ct_STRIP"; then 4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4335$as_echo "$ac_ct_STRIP" >&6; } 4336else 4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4338$as_echo "no" >&6; } 4339fi 4340 4341 if test "x$ac_ct_STRIP" = x; then 4342 STRIP=":" 4343 else 4344 case $cross_compiling:$ac_tool_warned in 4345yes:) 4346{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4347$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4348ac_tool_warned=yes ;; 4349esac 4350 STRIP=$ac_ct_STRIP 4351 fi 4352else 4353 STRIP="$ac_cv_prog_STRIP" 4354fi 4355 4356fi 4357INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4358 4359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 4360$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 4361if test -z "$MKDIR_P"; then 4362 if ${ac_cv_path_mkdir+:} false; then : 4363 $as_echo_n "(cached) " >&6 4364else 4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4366for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4367do 4368 IFS=$as_save_IFS 4369 test -z "$as_dir" && as_dir=. 4370 for ac_prog in mkdir gmkdir; do 4371 for ac_exec_ext in '' $ac_executable_extensions; do 4372 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 4373 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 4374 'mkdir (GNU coreutils) '* | \ 4375 'mkdir (coreutils) '* | \ 4376 'mkdir (fileutils) '4.1*) 4377 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 4378 break 3;; 4379 esac 4380 done 4381 done 4382 done 4383IFS=$as_save_IFS 4384 4385fi 4386 4387 test -d ./--version && rmdir ./--version 4388 if test "${ac_cv_path_mkdir+set}" = set; then 4389 MKDIR_P="$ac_cv_path_mkdir -p" 4390 else 4391 # As a last resort, use the slow shell script. Don't cache a 4392 # value for MKDIR_P within a source directory, because that will 4393 # break other packages using the cache if that directory is 4394 # removed, or if the value is a relative name. 4395 MKDIR_P="$ac_install_sh -d" 4396 fi 4397fi 4398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4399$as_echo "$MKDIR_P" >&6; } 4400 4401for ac_prog in gawk mawk nawk awk 4402do 4403 # Extract the first word of "$ac_prog", so it can be a program name with args. 4404set dummy $ac_prog; ac_word=$2 4405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4406$as_echo_n "checking for $ac_word... " >&6; } 4407if ${ac_cv_prog_AWK+:} false; then : 4408 $as_echo_n "(cached) " >&6 4409else 4410 if test -n "$AWK"; then 4411 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4412else 4413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4414for as_dir in $PATH 4415do 4416 IFS=$as_save_IFS 4417 test -z "$as_dir" && as_dir=. 4418 for ac_exec_ext in '' $ac_executable_extensions; do 4419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4420 ac_cv_prog_AWK="$ac_prog" 4421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4422 break 2 4423 fi 4424done 4425 done 4426IFS=$as_save_IFS 4427 4428fi 4429fi 4430AWK=$ac_cv_prog_AWK 4431if test -n "$AWK"; then 4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4433$as_echo "$AWK" >&6; } 4434else 4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4436$as_echo "no" >&6; } 4437fi 4438 4439 4440 test -n "$AWK" && break 4441done 4442 4443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4444$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4445set x ${MAKE-make} 4446ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4447if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4448 $as_echo_n "(cached) " >&6 4449else 4450 cat >conftest.make <<\_ACEOF 4451SHELL = /bin/sh 4452all: 4453 @echo '@@@%%%=$(MAKE)=@@@%%%' 4454_ACEOF 4455# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4456case `${MAKE-make} -f conftest.make 2>/dev/null` in 4457 *@@@%%%=?*=@@@%%%*) 4458 eval ac_cv_prog_make_${ac_make}_set=yes;; 4459 *) 4460 eval ac_cv_prog_make_${ac_make}_set=no;; 4461esac 4462rm -f conftest.make 4463fi 4464if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4466$as_echo "yes" >&6; } 4467 SET_MAKE= 4468else 4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4470$as_echo "no" >&6; } 4471 SET_MAKE="MAKE=${MAKE-make}" 4472fi 4473 4474rm -rf .tst 2>/dev/null 4475mkdir .tst 2>/dev/null 4476if test -d .tst; then 4477 am__leading_dot=. 4478else 4479 am__leading_dot=_ 4480fi 4481rmdir .tst 2>/dev/null 4482 4483DEPDIR="${am__leading_dot}deps" 4484 4485ac_config_commands="$ac_config_commands depfiles" 4486 4487 4488am_make=${MAKE-make} 4489cat > confinc << 'END' 4490am__doit: 4491 @echo this is the am__doit target 4492.PHONY: am__doit 4493END 4494# If we don't find an include directive, just comment out the code. 4495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4496$as_echo_n "checking for style of include used by $am_make... " >&6; } 4497am__include="#" 4498am__quote= 4499_am_result=none 4500# First try GNU make style include. 4501echo "include confinc" > confmf 4502# Ignore all kinds of additional output from 'make'. 4503case `$am_make -s -f confmf 2> /dev/null` in #( 4504*the\ am__doit\ target*) 4505 am__include=include 4506 am__quote= 4507 _am_result=GNU 4508 ;; 4509esac 4510# Now try BSD make style include. 4511if test "$am__include" = "#"; then 4512 echo '.include "confinc"' > confmf 4513 case `$am_make -s -f confmf 2> /dev/null` in #( 4514 *the\ am__doit\ target*) 4515 am__include=.include 4516 am__quote="\"" 4517 _am_result=BSD 4518 ;; 4519 esac 4520fi 4521 4522 4523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4524$as_echo "$_am_result" >&6; } 4525rm -f confinc confmf 4526 4527# Check whether --enable-dependency-tracking was given. 4528if test "${enable_dependency_tracking+set}" = set; then : 4529 enableval=$enable_dependency_tracking; 4530fi 4531 4532if test "x$enable_dependency_tracking" != xno; then 4533 am_depcomp="$ac_aux_dir/depcomp" 4534 AMDEPBACKSLASH='\' 4535 am__nodep='_no' 4536fi 4537 if test "x$enable_dependency_tracking" != xno; then 4538 AMDEP_TRUE= 4539 AMDEP_FALSE='#' 4540else 4541 AMDEP_TRUE='#' 4542 AMDEP_FALSE= 4543fi 4544 4545 4546# Check whether --enable-silent-rules was given. 4547if test "${enable_silent_rules+set}" = set; then : 4548 enableval=$enable_silent_rules; 4549fi 4550 4551case $enable_silent_rules in # ((( 4552 yes) AM_DEFAULT_VERBOSITY=0;; 4553 no) AM_DEFAULT_VERBOSITY=1;; 4554 *) AM_DEFAULT_VERBOSITY=1;; 4555esac 4556am_make=${MAKE-make} 4557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4558$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4559if ${am_cv_make_support_nested_variables+:} false; then : 4560 $as_echo_n "(cached) " >&6 4561else 4562 if $as_echo 'TRUE=$(BAR$(V)) 4563BAR0=false 4564BAR1=true 4565V=1 4566am__doit: 4567 @$(TRUE) 4568.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4569 am_cv_make_support_nested_variables=yes 4570else 4571 am_cv_make_support_nested_variables=no 4572fi 4573fi 4574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4575$as_echo "$am_cv_make_support_nested_variables" >&6; } 4576if test $am_cv_make_support_nested_variables = yes; then 4577 AM_V='$(V)' 4578 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4579else 4580 AM_V=$AM_DEFAULT_VERBOSITY 4581 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4582fi 4583AM_BACKSLASH='\' 4584 4585if test "`cd $srcdir && pwd`" != "`pwd`"; then 4586 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4587 # is not polluted with repeated "-I." 4588 am__isrc=' -I$(srcdir)' 4589 # test to see if srcdir already configured 4590 if test -f $srcdir/config.status; then 4591 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4592 fi 4593fi 4594 4595# test whether we have cygpath 4596if test -z "$CYGPATH_W"; then 4597 if (cygpath --version) >/dev/null 2>/dev/null; then 4598 CYGPATH_W='cygpath -w' 4599 else 4600 CYGPATH_W=echo 4601 fi 4602fi 4603 4604 4605# Define the identity of the package. 4606 PACKAGE='libX11' 4607 VERSION='1.6.10' 4608 4609 4610cat >>confdefs.h <<_ACEOF 4611#define PACKAGE "$PACKAGE" 4612_ACEOF 4613 4614 4615cat >>confdefs.h <<_ACEOF 4616#define VERSION "$VERSION" 4617_ACEOF 4618 4619# Some tools Automake needs. 4620 4621ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4622 4623 4624AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4625 4626 4627AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4628 4629 4630AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4631 4632 4633MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4634 4635# For better backward compatibility. To be removed once Automake 1.9.x 4636# dies out for good. For more background, see: 4637# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4638# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4639mkdir_p='$(MKDIR_P)' 4640 4641# We need awk for the "check" target (and possibly the TAP driver). The 4642# system "awk" is bad on some platforms. 4643# Always define AMTAR for backward compatibility. Yes, it's still used 4644# in the wild :-( We should find a proper way to deprecate it ... 4645AMTAR='$${TAR-tar}' 4646 4647 4648# We'll loop over all known methods to create a tar archive until one works. 4649_am_tools='gnutar pax cpio none' 4650 4651am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4652 4653 4654 4655 4656 4657depcc="$CC" am_compiler_list= 4658 4659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4660$as_echo_n "checking dependency style of $depcc... " >&6; } 4661if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4662 $as_echo_n "(cached) " >&6 4663else 4664 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4665 # We make a subdir and do the tests there. Otherwise we can end up 4666 # making bogus files that we don't know about and never remove. For 4667 # instance it was reported that on HP-UX the gcc test will end up 4668 # making a dummy file named 'D' -- because '-MD' means "put the output 4669 # in D". 4670 rm -rf conftest.dir 4671 mkdir conftest.dir 4672 # Copy depcomp to subdir because otherwise we won't find it if we're 4673 # using a relative directory. 4674 cp "$am_depcomp" conftest.dir 4675 cd conftest.dir 4676 # We will build objects and dependencies in a subdirectory because 4677 # it helps to detect inapplicable dependency modes. For instance 4678 # both Tru64's cc and ICC support -MD to output dependencies as a 4679 # side effect of compilation, but ICC will put the dependencies in 4680 # the current directory while Tru64 will put them in the object 4681 # directory. 4682 mkdir sub 4683 4684 am_cv_CC_dependencies_compiler_type=none 4685 if test "$am_compiler_list" = ""; then 4686 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4687 fi 4688 am__universal=false 4689 case " $depcc " in #( 4690 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4691 esac 4692 4693 for depmode in $am_compiler_list; do 4694 # Setup a source with many dependencies, because some compilers 4695 # like to wrap large dependency lists on column 80 (with \), and 4696 # we should not choose a depcomp mode which is confused by this. 4697 # 4698 # We need to recreate these files for each test, as the compiler may 4699 # overwrite some of them when testing with obscure command lines. 4700 # This happens at least with the AIX C compiler. 4701 : > sub/conftest.c 4702 for i in 1 2 3 4 5 6; do 4703 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4704 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4705 # Solaris 10 /bin/sh. 4706 echo '/* dummy */' > sub/conftst$i.h 4707 done 4708 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4709 4710 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4711 # mode. It turns out that the SunPro C++ compiler does not properly 4712 # handle '-M -o', and we need to detect this. Also, some Intel 4713 # versions had trouble with output in subdirs. 4714 am__obj=sub/conftest.${OBJEXT-o} 4715 am__minus_obj="-o $am__obj" 4716 case $depmode in 4717 gcc) 4718 # This depmode causes a compiler race in universal mode. 4719 test "$am__universal" = false || continue 4720 ;; 4721 nosideeffect) 4722 # After this tag, mechanisms are not by side-effect, so they'll 4723 # only be used when explicitly requested. 4724 if test "x$enable_dependency_tracking" = xyes; then 4725 continue 4726 else 4727 break 4728 fi 4729 ;; 4730 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4731 # This compiler won't grok '-c -o', but also, the minuso test has 4732 # not run yet. These depmodes are late enough in the game, and 4733 # so weak that their functioning should not be impacted. 4734 am__obj=conftest.${OBJEXT-o} 4735 am__minus_obj= 4736 ;; 4737 none) break ;; 4738 esac 4739 if depmode=$depmode \ 4740 source=sub/conftest.c object=$am__obj \ 4741 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4742 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4743 >/dev/null 2>conftest.err && 4744 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4745 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4746 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4747 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4748 # icc doesn't choke on unknown options, it will just issue warnings 4749 # or remarks (even with -Werror). So we grep stderr for any message 4750 # that says an option was ignored or not supported. 4751 # When given -MP, icc 7.0 and 7.1 complain thusly: 4752 # icc: Command line warning: ignoring option '-M'; no argument required 4753 # The diagnosis changed in icc 8.0: 4754 # icc: Command line remark: option '-MP' not supported 4755 if (grep 'ignoring option' conftest.err || 4756 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4757 am_cv_CC_dependencies_compiler_type=$depmode 4758 break 4759 fi 4760 fi 4761 done 4762 4763 cd .. 4764 rm -rf conftest.dir 4765else 4766 am_cv_CC_dependencies_compiler_type=none 4767fi 4768 4769fi 4770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4771$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4772CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4773 4774 if 4775 test "x$enable_dependency_tracking" != xno \ 4776 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4777 am__fastdepCC_TRUE= 4778 am__fastdepCC_FALSE='#' 4779else 4780 am__fastdepCC_TRUE='#' 4781 am__fastdepCC_FALSE= 4782fi 4783 4784 4785 4786# POSIX will say in a future version that running "rm -f" with no argument 4787# is OK; and we want to be able to make that assumption in our Makefile 4788# recipes. So use an aggressive probe to check that the usage we want is 4789# actually supported "in the wild" to an acceptable degree. 4790# See automake bug#10828. 4791# To make any issue more visible, cause the running configure to be aborted 4792# by default if the 'rm' program in use doesn't match our expectations; the 4793# user can still override this though. 4794if rm -f && rm -fr && rm -rf; then : OK; else 4795 cat >&2 <<'END' 4796Oops! 4797 4798Your 'rm' program seems unable to run without file operands specified 4799on the command line, even when the '-f' option is present. This is contrary 4800to the behaviour of most rm programs out there, and not conforming with 4801the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4802 4803Please tell bug-automake@gnu.org about your system, including the value 4804of your $PATH and any error possibly output before this message. This 4805can help us improve future automake versions. 4806 4807END 4808 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4809 echo 'Configuration will proceed anyway, since you have set the' >&2 4810 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4811 echo >&2 4812 else 4813 cat >&2 <<'END' 4814Aborting the configuration process, to ensure you take notice of the issue. 4815 4816You can download and install GNU coreutils to get an 'rm' implementation 4817that behaves properly: <http://www.gnu.org/software/coreutils/>. 4818 4819If you want to complete the configuration process using your problematic 4820'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4821to "yes", and re-run configure. 4822 4823END 4824 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4825 fi 4826fi 4827 4828 4829# Initialize libtool 4830case `pwd` in 4831 *\ * | *\ *) 4832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4833$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4834esac 4835 4836 4837 4838macro_version='2.4.6' 4839macro_revision='2.4.6' 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853ltmain=$ac_aux_dir/ltmain.sh 4854 4855# Backslashify metacharacters that are still active within 4856# double-quoted strings. 4857sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4858 4859# Same as above, but do not quote variable references. 4860double_quote_subst='s/\(["`\\]\)/\\\1/g' 4861 4862# Sed substitution to delay expansion of an escaped shell variable in a 4863# double_quote_subst'ed string. 4864delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4865 4866# Sed substitution to delay expansion of an escaped single quote. 4867delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4868 4869# Sed substitution to avoid accidental globbing in evaled expressions 4870no_glob_subst='s/\*/\\\*/g' 4871 4872ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4873ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4874ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4875 4876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4877$as_echo_n "checking how to print strings... " >&6; } 4878# Test print first, because it will be a builtin if present. 4879if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4880 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4881 ECHO='print -r --' 4882elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4883 ECHO='printf %s\n' 4884else 4885 # Use this function as a fallback that always works. 4886 func_fallback_echo () 4887 { 4888 eval 'cat <<_LTECHO_EOF 4889$1 4890_LTECHO_EOF' 4891 } 4892 ECHO='func_fallback_echo' 4893fi 4894 4895# func_echo_all arg... 4896# Invoke $ECHO with all args, space-separated. 4897func_echo_all () 4898{ 4899 $ECHO "" 4900} 4901 4902case $ECHO in 4903 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4904$as_echo "printf" >&6; } ;; 4905 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4906$as_echo "print -r" >&6; } ;; 4907 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4908$as_echo "cat" >&6; } ;; 4909esac 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4925$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4926if ${ac_cv_path_SED+:} false; then : 4927 $as_echo_n "(cached) " >&6 4928else 4929 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4930 for ac_i in 1 2 3 4 5 6 7; do 4931 ac_script="$ac_script$as_nl$ac_script" 4932 done 4933 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4934 { ac_script=; unset ac_script;} 4935 if test -z "$SED"; then 4936 ac_path_SED_found=false 4937 # Loop through the user's path and test for each of PROGNAME-LIST 4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4939for as_dir in $PATH 4940do 4941 IFS=$as_save_IFS 4942 test -z "$as_dir" && as_dir=. 4943 for ac_prog in sed gsed; do 4944 for ac_exec_ext in '' $ac_executable_extensions; do 4945 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4946 as_fn_executable_p "$ac_path_SED" || continue 4947# Check for GNU ac_path_SED and select it if it is found. 4948 # Check for GNU $ac_path_SED 4949case `"$ac_path_SED" --version 2>&1` in 4950*GNU*) 4951 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4952*) 4953 ac_count=0 4954 $as_echo_n 0123456789 >"conftest.in" 4955 while : 4956 do 4957 cat "conftest.in" "conftest.in" >"conftest.tmp" 4958 mv "conftest.tmp" "conftest.in" 4959 cp "conftest.in" "conftest.nl" 4960 $as_echo '' >> "conftest.nl" 4961 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4962 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4963 as_fn_arith $ac_count + 1 && ac_count=$as_val 4964 if test $ac_count -gt ${ac_path_SED_max-0}; then 4965 # Best one so far, save it but keep looking for a better one 4966 ac_cv_path_SED="$ac_path_SED" 4967 ac_path_SED_max=$ac_count 4968 fi 4969 # 10*(2^10) chars as input seems more than enough 4970 test $ac_count -gt 10 && break 4971 done 4972 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4973esac 4974 4975 $ac_path_SED_found && break 3 4976 done 4977 done 4978 done 4979IFS=$as_save_IFS 4980 if test -z "$ac_cv_path_SED"; then 4981 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4982 fi 4983else 4984 ac_cv_path_SED=$SED 4985fi 4986 4987fi 4988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4989$as_echo "$ac_cv_path_SED" >&6; } 4990 SED="$ac_cv_path_SED" 4991 rm -f conftest.sed 4992 4993test -z "$SED" && SED=sed 4994Xsed="$SED -e 1s/^X//" 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5007$as_echo_n "checking for fgrep... " >&6; } 5008if ${ac_cv_path_FGREP+:} false; then : 5009 $as_echo_n "(cached) " >&6 5010else 5011 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5012 then ac_cv_path_FGREP="$GREP -F" 5013 else 5014 if test -z "$FGREP"; then 5015 ac_path_FGREP_found=false 5016 # Loop through the user's path and test for each of PROGNAME-LIST 5017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5018for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5019do 5020 IFS=$as_save_IFS 5021 test -z "$as_dir" && as_dir=. 5022 for ac_prog in fgrep; do 5023 for ac_exec_ext in '' $ac_executable_extensions; do 5024 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5025 as_fn_executable_p "$ac_path_FGREP" || continue 5026# Check for GNU ac_path_FGREP and select it if it is found. 5027 # Check for GNU $ac_path_FGREP 5028case `"$ac_path_FGREP" --version 2>&1` in 5029*GNU*) 5030 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5031*) 5032 ac_count=0 5033 $as_echo_n 0123456789 >"conftest.in" 5034 while : 5035 do 5036 cat "conftest.in" "conftest.in" >"conftest.tmp" 5037 mv "conftest.tmp" "conftest.in" 5038 cp "conftest.in" "conftest.nl" 5039 $as_echo 'FGREP' >> "conftest.nl" 5040 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5041 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5042 as_fn_arith $ac_count + 1 && ac_count=$as_val 5043 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5044 # Best one so far, save it but keep looking for a better one 5045 ac_cv_path_FGREP="$ac_path_FGREP" 5046 ac_path_FGREP_max=$ac_count 5047 fi 5048 # 10*(2^10) chars as input seems more than enough 5049 test $ac_count -gt 10 && break 5050 done 5051 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5052esac 5053 5054 $ac_path_FGREP_found && break 3 5055 done 5056 done 5057 done 5058IFS=$as_save_IFS 5059 if test -z "$ac_cv_path_FGREP"; then 5060 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5061 fi 5062else 5063 ac_cv_path_FGREP=$FGREP 5064fi 5065 5066 fi 5067fi 5068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5069$as_echo "$ac_cv_path_FGREP" >&6; } 5070 FGREP="$ac_cv_path_FGREP" 5071 5072 5073test -z "$GREP" && GREP=grep 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093# Check whether --with-gnu-ld was given. 5094if test "${with_gnu_ld+set}" = set; then : 5095 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5096else 5097 with_gnu_ld=no 5098fi 5099 5100ac_prog=ld 5101if test yes = "$GCC"; then 5102 # Check if gcc -print-prog-name=ld gives a path. 5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5104$as_echo_n "checking for ld used by $CC... " >&6; } 5105 case $host in 5106 *-*-mingw*) 5107 # gcc leaves a trailing carriage return, which upsets mingw 5108 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5109 *) 5110 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5111 esac 5112 case $ac_prog in 5113 # Accept absolute paths. 5114 [\\/]* | ?:[\\/]*) 5115 re_direlt='/[^/][^/]*/\.\./' 5116 # Canonicalize the pathname of ld 5117 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5118 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5119 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5120 done 5121 test -z "$LD" && LD=$ac_prog 5122 ;; 5123 "") 5124 # If it fails, then pretend we aren't using GCC. 5125 ac_prog=ld 5126 ;; 5127 *) 5128 # If it is relative, then search for the first ld in PATH. 5129 with_gnu_ld=unknown 5130 ;; 5131 esac 5132elif test yes = "$with_gnu_ld"; then 5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5134$as_echo_n "checking for GNU ld... " >&6; } 5135else 5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5137$as_echo_n "checking for non-GNU ld... " >&6; } 5138fi 5139if ${lt_cv_path_LD+:} false; then : 5140 $as_echo_n "(cached) " >&6 5141else 5142 if test -z "$LD"; then 5143 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5144 for ac_dir in $PATH; do 5145 IFS=$lt_save_ifs 5146 test -z "$ac_dir" && ac_dir=. 5147 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5148 lt_cv_path_LD=$ac_dir/$ac_prog 5149 # Check to see if the program is GNU ld. I'd rather use --version, 5150 # but apparently some variants of GNU ld only accept -v. 5151 # Break only if it was the GNU/non-GNU ld that we prefer. 5152 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5153 *GNU* | *'with BFD'*) 5154 test no != "$with_gnu_ld" && break 5155 ;; 5156 *) 5157 test yes != "$with_gnu_ld" && break 5158 ;; 5159 esac 5160 fi 5161 done 5162 IFS=$lt_save_ifs 5163else 5164 lt_cv_path_LD=$LD # Let the user override the test with a path. 5165fi 5166fi 5167 5168LD=$lt_cv_path_LD 5169if test -n "$LD"; then 5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5171$as_echo "$LD" >&6; } 5172else 5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5174$as_echo "no" >&6; } 5175fi 5176test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5178$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5179if ${lt_cv_prog_gnu_ld+:} false; then : 5180 $as_echo_n "(cached) " >&6 5181else 5182 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5183case `$LD -v 2>&1 </dev/null` in 5184*GNU* | *'with BFD'*) 5185 lt_cv_prog_gnu_ld=yes 5186 ;; 5187*) 5188 lt_cv_prog_gnu_ld=no 5189 ;; 5190esac 5191fi 5192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5193$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5194with_gnu_ld=$lt_cv_prog_gnu_ld 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5205$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5206if ${lt_cv_path_NM+:} false; then : 5207 $as_echo_n "(cached) " >&6 5208else 5209 if test -n "$NM"; then 5210 # Let the user override the test. 5211 lt_cv_path_NM=$NM 5212else 5213 lt_nm_to_check=${ac_tool_prefix}nm 5214 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5215 lt_nm_to_check="$lt_nm_to_check nm" 5216 fi 5217 for lt_tmp_nm in $lt_nm_to_check; do 5218 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5219 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5220 IFS=$lt_save_ifs 5221 test -z "$ac_dir" && ac_dir=. 5222 tmp_nm=$ac_dir/$lt_tmp_nm 5223 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5224 # Check to see if the nm accepts a BSD-compat flag. 5225 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5226 # nm: unknown option "B" ignored 5227 # Tru64's nm complains that /dev/null is an invalid object file 5228 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5229 case $build_os in 5230 mingw*) lt_bad_file=conftest.nm/nofile ;; 5231 *) lt_bad_file=/dev/null ;; 5232 esac 5233 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5234 *$lt_bad_file* | *'Invalid file or object type'*) 5235 lt_cv_path_NM="$tmp_nm -B" 5236 break 2 5237 ;; 5238 *) 5239 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5240 */dev/null*) 5241 lt_cv_path_NM="$tmp_nm -p" 5242 break 2 5243 ;; 5244 *) 5245 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5246 continue # so that we can try to find one that supports BSD flags 5247 ;; 5248 esac 5249 ;; 5250 esac 5251 fi 5252 done 5253 IFS=$lt_save_ifs 5254 done 5255 : ${lt_cv_path_NM=no} 5256fi 5257fi 5258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5259$as_echo "$lt_cv_path_NM" >&6; } 5260if test no != "$lt_cv_path_NM"; then 5261 NM=$lt_cv_path_NM 5262else 5263 # Didn't find any BSD compatible name lister, look for dumpbin. 5264 if test -n "$DUMPBIN"; then : 5265 # Let the user override the test. 5266 else 5267 if test -n "$ac_tool_prefix"; then 5268 for ac_prog in dumpbin "link -dump" 5269 do 5270 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5271set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5273$as_echo_n "checking for $ac_word... " >&6; } 5274if ${ac_cv_prog_DUMPBIN+:} false; then : 5275 $as_echo_n "(cached) " >&6 5276else 5277 if test -n "$DUMPBIN"; then 5278 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5279else 5280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5281for as_dir in $PATH 5282do 5283 IFS=$as_save_IFS 5284 test -z "$as_dir" && as_dir=. 5285 for ac_exec_ext in '' $ac_executable_extensions; do 5286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5287 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5289 break 2 5290 fi 5291done 5292 done 5293IFS=$as_save_IFS 5294 5295fi 5296fi 5297DUMPBIN=$ac_cv_prog_DUMPBIN 5298if test -n "$DUMPBIN"; then 5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5300$as_echo "$DUMPBIN" >&6; } 5301else 5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5303$as_echo "no" >&6; } 5304fi 5305 5306 5307 test -n "$DUMPBIN" && break 5308 done 5309fi 5310if test -z "$DUMPBIN"; then 5311 ac_ct_DUMPBIN=$DUMPBIN 5312 for ac_prog in dumpbin "link -dump" 5313do 5314 # Extract the first word of "$ac_prog", so it can be a program name with args. 5315set dummy $ac_prog; ac_word=$2 5316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5317$as_echo_n "checking for $ac_word... " >&6; } 5318if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5319 $as_echo_n "(cached) " >&6 5320else 5321 if test -n "$ac_ct_DUMPBIN"; then 5322 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5323else 5324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5325for as_dir in $PATH 5326do 5327 IFS=$as_save_IFS 5328 test -z "$as_dir" && as_dir=. 5329 for ac_exec_ext in '' $ac_executable_extensions; do 5330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5331 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5333 break 2 5334 fi 5335done 5336 done 5337IFS=$as_save_IFS 5338 5339fi 5340fi 5341ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5342if test -n "$ac_ct_DUMPBIN"; then 5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5344$as_echo "$ac_ct_DUMPBIN" >&6; } 5345else 5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5347$as_echo "no" >&6; } 5348fi 5349 5350 5351 test -n "$ac_ct_DUMPBIN" && break 5352done 5353 5354 if test "x$ac_ct_DUMPBIN" = x; then 5355 DUMPBIN=":" 5356 else 5357 case $cross_compiling:$ac_tool_warned in 5358yes:) 5359{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5360$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5361ac_tool_warned=yes ;; 5362esac 5363 DUMPBIN=$ac_ct_DUMPBIN 5364 fi 5365fi 5366 5367 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5368 *COFF*) 5369 DUMPBIN="$DUMPBIN -symbols -headers" 5370 ;; 5371 *) 5372 DUMPBIN=: 5373 ;; 5374 esac 5375 fi 5376 5377 if test : != "$DUMPBIN"; then 5378 NM=$DUMPBIN 5379 fi 5380fi 5381test -z "$NM" && NM=nm 5382 5383 5384 5385 5386 5387 5388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5389$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5390if ${lt_cv_nm_interface+:} false; then : 5391 $as_echo_n "(cached) " >&6 5392else 5393 lt_cv_nm_interface="BSD nm" 5394 echo "int some_variable = 0;" > conftest.$ac_ext 5395 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5396 (eval "$ac_compile" 2>conftest.err) 5397 cat conftest.err >&5 5398 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5399 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5400 cat conftest.err >&5 5401 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5402 cat conftest.out >&5 5403 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5404 lt_cv_nm_interface="MS dumpbin" 5405 fi 5406 rm -f conftest* 5407fi 5408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5409$as_echo "$lt_cv_nm_interface" >&6; } 5410 5411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5412$as_echo_n "checking whether ln -s works... " >&6; } 5413LN_S=$as_ln_s 5414if test "$LN_S" = "ln -s"; then 5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5416$as_echo "yes" >&6; } 5417else 5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5419$as_echo "no, using $LN_S" >&6; } 5420fi 5421 5422# find the maximum length of command line arguments 5423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5424$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5425if ${lt_cv_sys_max_cmd_len+:} false; then : 5426 $as_echo_n "(cached) " >&6 5427else 5428 i=0 5429 teststring=ABCD 5430 5431 case $build_os in 5432 msdosdjgpp*) 5433 # On DJGPP, this test can blow up pretty badly due to problems in libc 5434 # (any single argument exceeding 2000 bytes causes a buffer overrun 5435 # during glob expansion). Even if it were fixed, the result of this 5436 # check would be larger than it should be. 5437 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5438 ;; 5439 5440 gnu*) 5441 # Under GNU Hurd, this test is not required because there is 5442 # no limit to the length of command line arguments. 5443 # Libtool will interpret -1 as no limit whatsoever 5444 lt_cv_sys_max_cmd_len=-1; 5445 ;; 5446 5447 cygwin* | mingw* | cegcc*) 5448 # On Win9x/ME, this test blows up -- it succeeds, but takes 5449 # about 5 minutes as the teststring grows exponentially. 5450 # Worse, since 9x/ME are not pre-emptively multitasking, 5451 # you end up with a "frozen" computer, even though with patience 5452 # the test eventually succeeds (with a max line length of 256k). 5453 # Instead, let's just punt: use the minimum linelength reported by 5454 # all of the supported platforms: 8192 (on NT/2K/XP). 5455 lt_cv_sys_max_cmd_len=8192; 5456 ;; 5457 5458 mint*) 5459 # On MiNT this can take a long time and run out of memory. 5460 lt_cv_sys_max_cmd_len=8192; 5461 ;; 5462 5463 amigaos*) 5464 # On AmigaOS with pdksh, this test takes hours, literally. 5465 # So we just punt and use a minimum line length of 8192. 5466 lt_cv_sys_max_cmd_len=8192; 5467 ;; 5468 5469 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5470 # This has been around since 386BSD, at least. Likely further. 5471 if test -x /sbin/sysctl; then 5472 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5473 elif test -x /usr/sbin/sysctl; then 5474 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5475 else 5476 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5477 fi 5478 # And add a safety zone 5479 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5480 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5481 ;; 5482 5483 interix*) 5484 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5485 lt_cv_sys_max_cmd_len=196608 5486 ;; 5487 5488 os2*) 5489 # The test takes a long time on OS/2. 5490 lt_cv_sys_max_cmd_len=8192 5491 ;; 5492 5493 osf*) 5494 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5495 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5496 # nice to cause kernel panics so lets avoid the loop below. 5497 # First set a reasonable default. 5498 lt_cv_sys_max_cmd_len=16384 5499 # 5500 if test -x /sbin/sysconfig; then 5501 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5502 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5503 esac 5504 fi 5505 ;; 5506 sco3.2v5*) 5507 lt_cv_sys_max_cmd_len=102400 5508 ;; 5509 sysv5* | sco5v6* | sysv4.2uw2*) 5510 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5511 if test -n "$kargmax"; then 5512 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5513 else 5514 lt_cv_sys_max_cmd_len=32768 5515 fi 5516 ;; 5517 *) 5518 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5519 if test -n "$lt_cv_sys_max_cmd_len" && \ 5520 test undefined != "$lt_cv_sys_max_cmd_len"; then 5521 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5522 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5523 else 5524 # Make teststring a little bigger before we do anything with it. 5525 # a 1K string should be a reasonable start. 5526 for i in 1 2 3 4 5 6 7 8; do 5527 teststring=$teststring$teststring 5528 done 5529 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5530 # If test is not a shell built-in, we'll probably end up computing a 5531 # maximum length that is only half of the actual maximum length, but 5532 # we can't tell. 5533 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5534 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5535 test 17 != "$i" # 1/2 MB should be enough 5536 do 5537 i=`expr $i + 1` 5538 teststring=$teststring$teststring 5539 done 5540 # Only check the string length outside the loop. 5541 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5542 teststring= 5543 # Add a significant safety factor because C++ compilers can tack on 5544 # massive amounts of additional arguments before passing them to the 5545 # linker. It appears as though 1/2 is a usable value. 5546 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5547 fi 5548 ;; 5549 esac 5550 5551fi 5552 5553if test -n "$lt_cv_sys_max_cmd_len"; then 5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5555$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5556else 5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5558$as_echo "none" >&6; } 5559fi 5560max_cmd_len=$lt_cv_sys_max_cmd_len 5561 5562 5563 5564 5565 5566 5567: ${CP="cp -f"} 5568: ${MV="mv -f"} 5569: ${RM="rm -f"} 5570 5571if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5572 lt_unset=unset 5573else 5574 lt_unset=false 5575fi 5576 5577 5578 5579 5580 5581# test EBCDIC or ASCII 5582case `echo X|tr X '\101'` in 5583 A) # ASCII based system 5584 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5585 lt_SP2NL='tr \040 \012' 5586 lt_NL2SP='tr \015\012 \040\040' 5587 ;; 5588 *) # EBCDIC based system 5589 lt_SP2NL='tr \100 \n' 5590 lt_NL2SP='tr \r\n \100\100' 5591 ;; 5592esac 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5603$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5604if ${lt_cv_to_host_file_cmd+:} false; then : 5605 $as_echo_n "(cached) " >&6 5606else 5607 case $host in 5608 *-*-mingw* ) 5609 case $build in 5610 *-*-mingw* ) # actually msys 5611 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5612 ;; 5613 *-*-cygwin* ) 5614 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5615 ;; 5616 * ) # otherwise, assume *nix 5617 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5618 ;; 5619 esac 5620 ;; 5621 *-*-cygwin* ) 5622 case $build in 5623 *-*-mingw* ) # actually msys 5624 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5625 ;; 5626 *-*-cygwin* ) 5627 lt_cv_to_host_file_cmd=func_convert_file_noop 5628 ;; 5629 * ) # otherwise, assume *nix 5630 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5631 ;; 5632 esac 5633 ;; 5634 * ) # unhandled hosts (and "normal" native builds) 5635 lt_cv_to_host_file_cmd=func_convert_file_noop 5636 ;; 5637esac 5638 5639fi 5640 5641to_host_file_cmd=$lt_cv_to_host_file_cmd 5642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5643$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5644 5645 5646 5647 5648 5649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5650$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5651if ${lt_cv_to_tool_file_cmd+:} false; then : 5652 $as_echo_n "(cached) " >&6 5653else 5654 #assume ordinary cross tools, or native build. 5655lt_cv_to_tool_file_cmd=func_convert_file_noop 5656case $host in 5657 *-*-mingw* ) 5658 case $build in 5659 *-*-mingw* ) # actually msys 5660 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5661 ;; 5662 esac 5663 ;; 5664esac 5665 5666fi 5667 5668to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5670$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5671 5672 5673 5674 5675 5676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5677$as_echo_n "checking for $LD option to reload object files... " >&6; } 5678if ${lt_cv_ld_reload_flag+:} false; then : 5679 $as_echo_n "(cached) " >&6 5680else 5681 lt_cv_ld_reload_flag='-r' 5682fi 5683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5684$as_echo "$lt_cv_ld_reload_flag" >&6; } 5685reload_flag=$lt_cv_ld_reload_flag 5686case $reload_flag in 5687"" | " "*) ;; 5688*) reload_flag=" $reload_flag" ;; 5689esac 5690reload_cmds='$LD$reload_flag -o $output$reload_objs' 5691case $host_os in 5692 cygwin* | mingw* | pw32* | cegcc*) 5693 if test yes != "$GCC"; then 5694 reload_cmds=false 5695 fi 5696 ;; 5697 darwin*) 5698 if test yes = "$GCC"; then 5699 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5700 else 5701 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5702 fi 5703 ;; 5704esac 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714if test -n "$ac_tool_prefix"; then 5715 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5716set dummy ${ac_tool_prefix}objdump; ac_word=$2 5717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5718$as_echo_n "checking for $ac_word... " >&6; } 5719if ${ac_cv_prog_OBJDUMP+:} false; then : 5720 $as_echo_n "(cached) " >&6 5721else 5722 if test -n "$OBJDUMP"; then 5723 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5724else 5725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5726for as_dir in $PATH 5727do 5728 IFS=$as_save_IFS 5729 test -z "$as_dir" && as_dir=. 5730 for ac_exec_ext in '' $ac_executable_extensions; do 5731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5732 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5734 break 2 5735 fi 5736done 5737 done 5738IFS=$as_save_IFS 5739 5740fi 5741fi 5742OBJDUMP=$ac_cv_prog_OBJDUMP 5743if test -n "$OBJDUMP"; then 5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5745$as_echo "$OBJDUMP" >&6; } 5746else 5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5748$as_echo "no" >&6; } 5749fi 5750 5751 5752fi 5753if test -z "$ac_cv_prog_OBJDUMP"; then 5754 ac_ct_OBJDUMP=$OBJDUMP 5755 # Extract the first word of "objdump", so it can be a program name with args. 5756set dummy objdump; ac_word=$2 5757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5758$as_echo_n "checking for $ac_word... " >&6; } 5759if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5760 $as_echo_n "(cached) " >&6 5761else 5762 if test -n "$ac_ct_OBJDUMP"; then 5763 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5764else 5765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5766for as_dir in $PATH 5767do 5768 IFS=$as_save_IFS 5769 test -z "$as_dir" && as_dir=. 5770 for ac_exec_ext in '' $ac_executable_extensions; do 5771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5772 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5774 break 2 5775 fi 5776done 5777 done 5778IFS=$as_save_IFS 5779 5780fi 5781fi 5782ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5783if test -n "$ac_ct_OBJDUMP"; then 5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5785$as_echo "$ac_ct_OBJDUMP" >&6; } 5786else 5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5788$as_echo "no" >&6; } 5789fi 5790 5791 if test "x$ac_ct_OBJDUMP" = x; then 5792 OBJDUMP="false" 5793 else 5794 case $cross_compiling:$ac_tool_warned in 5795yes:) 5796{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5797$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5798ac_tool_warned=yes ;; 5799esac 5800 OBJDUMP=$ac_ct_OBJDUMP 5801 fi 5802else 5803 OBJDUMP="$ac_cv_prog_OBJDUMP" 5804fi 5805 5806test -z "$OBJDUMP" && OBJDUMP=objdump 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5817$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5818if ${lt_cv_deplibs_check_method+:} false; then : 5819 $as_echo_n "(cached) " >&6 5820else 5821 lt_cv_file_magic_cmd='$MAGIC_CMD' 5822lt_cv_file_magic_test_file= 5823lt_cv_deplibs_check_method='unknown' 5824# Need to set the preceding variable on all platforms that support 5825# interlibrary dependencies. 5826# 'none' -- dependencies not supported. 5827# 'unknown' -- same as none, but documents that we really don't know. 5828# 'pass_all' -- all dependencies passed with no checks. 5829# 'test_compile' -- check by making test program. 5830# 'file_magic [[regex]]' -- check by looking for files in library path 5831# that responds to the $file_magic_cmd with a given extended regex. 5832# If you have 'file' or equivalent on your system and you're not sure 5833# whether 'pass_all' will *always* work, you probably want this one. 5834 5835case $host_os in 5836aix[4-9]*) 5837 lt_cv_deplibs_check_method=pass_all 5838 ;; 5839 5840beos*) 5841 lt_cv_deplibs_check_method=pass_all 5842 ;; 5843 5844bsdi[45]*) 5845 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5846 lt_cv_file_magic_cmd='/usr/bin/file -L' 5847 lt_cv_file_magic_test_file=/shlib/libc.so 5848 ;; 5849 5850cygwin*) 5851 # func_win32_libid is a shell function defined in ltmain.sh 5852 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5853 lt_cv_file_magic_cmd='func_win32_libid' 5854 ;; 5855 5856mingw* | pw32*) 5857 # Base MSYS/MinGW do not provide the 'file' command needed by 5858 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5859 # unless we find 'file', for example because we are cross-compiling. 5860 if ( file / ) >/dev/null 2>&1; then 5861 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5862 lt_cv_file_magic_cmd='func_win32_libid' 5863 else 5864 # Keep this pattern in sync with the one in func_win32_libid. 5865 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5866 lt_cv_file_magic_cmd='$OBJDUMP -f' 5867 fi 5868 ;; 5869 5870cegcc*) 5871 # use the weaker test based on 'objdump'. See mingw*. 5872 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5873 lt_cv_file_magic_cmd='$OBJDUMP -f' 5874 ;; 5875 5876darwin* | rhapsody*) 5877 lt_cv_deplibs_check_method=pass_all 5878 ;; 5879 5880freebsd* | dragonfly*) 5881 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5882 case $host_cpu in 5883 i*86 ) 5884 # Not sure whether the presence of OpenBSD here was a mistake. 5885 # Let's accept both of them until this is cleared up. 5886 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5887 lt_cv_file_magic_cmd=/usr/bin/file 5888 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5889 ;; 5890 esac 5891 else 5892 lt_cv_deplibs_check_method=pass_all 5893 fi 5894 ;; 5895 5896haiku*) 5897 lt_cv_deplibs_check_method=pass_all 5898 ;; 5899 5900hpux10.20* | hpux11*) 5901 lt_cv_file_magic_cmd=/usr/bin/file 5902 case $host_cpu in 5903 ia64*) 5904 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5905 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5906 ;; 5907 hppa*64*) 5908 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]' 5909 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5910 ;; 5911 *) 5912 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5913 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5914 ;; 5915 esac 5916 ;; 5917 5918interix[3-9]*) 5919 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5920 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5921 ;; 5922 5923irix5* | irix6* | nonstopux*) 5924 case $LD in 5925 *-32|*"-32 ") libmagic=32-bit;; 5926 *-n32|*"-n32 ") libmagic=N32;; 5927 *-64|*"-64 ") libmagic=64-bit;; 5928 *) libmagic=never-match;; 5929 esac 5930 lt_cv_deplibs_check_method=pass_all 5931 ;; 5932 5933# This must be glibc/ELF. 5934linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5935 lt_cv_deplibs_check_method=pass_all 5936 ;; 5937 5938netbsd* | netbsdelf*-gnu) 5939 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5940 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5941 else 5942 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5943 fi 5944 ;; 5945 5946newos6*) 5947 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5948 lt_cv_file_magic_cmd=/usr/bin/file 5949 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5950 ;; 5951 5952*nto* | *qnx*) 5953 lt_cv_deplibs_check_method=pass_all 5954 ;; 5955 5956openbsd* | bitrig*) 5957 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5958 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5959 else 5960 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5961 fi 5962 ;; 5963 5964osf3* | osf4* | osf5*) 5965 lt_cv_deplibs_check_method=pass_all 5966 ;; 5967 5968rdos*) 5969 lt_cv_deplibs_check_method=pass_all 5970 ;; 5971 5972solaris*) 5973 lt_cv_deplibs_check_method=pass_all 5974 ;; 5975 5976sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5977 lt_cv_deplibs_check_method=pass_all 5978 ;; 5979 5980sysv4 | sysv4.3*) 5981 case $host_vendor in 5982 motorola) 5983 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]' 5984 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5985 ;; 5986 ncr) 5987 lt_cv_deplibs_check_method=pass_all 5988 ;; 5989 sequent) 5990 lt_cv_file_magic_cmd='/bin/file' 5991 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5992 ;; 5993 sni) 5994 lt_cv_file_magic_cmd='/bin/file' 5995 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5996 lt_cv_file_magic_test_file=/lib/libc.so 5997 ;; 5998 siemens) 5999 lt_cv_deplibs_check_method=pass_all 6000 ;; 6001 pc) 6002 lt_cv_deplibs_check_method=pass_all 6003 ;; 6004 esac 6005 ;; 6006 6007tpf*) 6008 lt_cv_deplibs_check_method=pass_all 6009 ;; 6010os2*) 6011 lt_cv_deplibs_check_method=pass_all 6012 ;; 6013esac 6014 6015fi 6016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6017$as_echo "$lt_cv_deplibs_check_method" >&6; } 6018 6019file_magic_glob= 6020want_nocaseglob=no 6021if test "$build" = "$host"; then 6022 case $host_os in 6023 mingw* | pw32*) 6024 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6025 want_nocaseglob=yes 6026 else 6027 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6028 fi 6029 ;; 6030 esac 6031fi 6032 6033file_magic_cmd=$lt_cv_file_magic_cmd 6034deplibs_check_method=$lt_cv_deplibs_check_method 6035test -z "$deplibs_check_method" && deplibs_check_method=unknown 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058if test -n "$ac_tool_prefix"; then 6059 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6060set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6062$as_echo_n "checking for $ac_word... " >&6; } 6063if ${ac_cv_prog_DLLTOOL+:} false; then : 6064 $as_echo_n "(cached) " >&6 6065else 6066 if test -n "$DLLTOOL"; then 6067 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6068else 6069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6070for as_dir in $PATH 6071do 6072 IFS=$as_save_IFS 6073 test -z "$as_dir" && as_dir=. 6074 for ac_exec_ext in '' $ac_executable_extensions; do 6075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6076 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6078 break 2 6079 fi 6080done 6081 done 6082IFS=$as_save_IFS 6083 6084fi 6085fi 6086DLLTOOL=$ac_cv_prog_DLLTOOL 6087if test -n "$DLLTOOL"; then 6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6089$as_echo "$DLLTOOL" >&6; } 6090else 6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6092$as_echo "no" >&6; } 6093fi 6094 6095 6096fi 6097if test -z "$ac_cv_prog_DLLTOOL"; then 6098 ac_ct_DLLTOOL=$DLLTOOL 6099 # Extract the first word of "dlltool", so it can be a program name with args. 6100set dummy dlltool; ac_word=$2 6101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6102$as_echo_n "checking for $ac_word... " >&6; } 6103if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6104 $as_echo_n "(cached) " >&6 6105else 6106 if test -n "$ac_ct_DLLTOOL"; then 6107 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6108else 6109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6110for as_dir in $PATH 6111do 6112 IFS=$as_save_IFS 6113 test -z "$as_dir" && as_dir=. 6114 for ac_exec_ext in '' $ac_executable_extensions; do 6115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6116 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6118 break 2 6119 fi 6120done 6121 done 6122IFS=$as_save_IFS 6123 6124fi 6125fi 6126ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6127if test -n "$ac_ct_DLLTOOL"; then 6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6129$as_echo "$ac_ct_DLLTOOL" >&6; } 6130else 6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6132$as_echo "no" >&6; } 6133fi 6134 6135 if test "x$ac_ct_DLLTOOL" = x; then 6136 DLLTOOL="false" 6137 else 6138 case $cross_compiling:$ac_tool_warned in 6139yes:) 6140{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6141$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6142ac_tool_warned=yes ;; 6143esac 6144 DLLTOOL=$ac_ct_DLLTOOL 6145 fi 6146else 6147 DLLTOOL="$ac_cv_prog_DLLTOOL" 6148fi 6149 6150test -z "$DLLTOOL" && DLLTOOL=dlltool 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6162$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6163if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6164 $as_echo_n "(cached) " >&6 6165else 6166 lt_cv_sharedlib_from_linklib_cmd='unknown' 6167 6168case $host_os in 6169cygwin* | mingw* | pw32* | cegcc*) 6170 # two different shell functions defined in ltmain.sh; 6171 # decide which one to use based on capabilities of $DLLTOOL 6172 case `$DLLTOOL --help 2>&1` in 6173 *--identify-strict*) 6174 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6175 ;; 6176 *) 6177 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6178 ;; 6179 esac 6180 ;; 6181*) 6182 # fallback: assume linklib IS sharedlib 6183 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6184 ;; 6185esac 6186 6187fi 6188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6189$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6190sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6191test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6192 6193 6194 6195 6196 6197 6198 6199if test -n "$ac_tool_prefix"; then 6200 for ac_prog in ar 6201 do 6202 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6203set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6205$as_echo_n "checking for $ac_word... " >&6; } 6206if ${ac_cv_prog_AR+:} false; then : 6207 $as_echo_n "(cached) " >&6 6208else 6209 if test -n "$AR"; then 6210 ac_cv_prog_AR="$AR" # Let the user override the test. 6211else 6212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6213for as_dir in $PATH 6214do 6215 IFS=$as_save_IFS 6216 test -z "$as_dir" && as_dir=. 6217 for ac_exec_ext in '' $ac_executable_extensions; do 6218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6219 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6221 break 2 6222 fi 6223done 6224 done 6225IFS=$as_save_IFS 6226 6227fi 6228fi 6229AR=$ac_cv_prog_AR 6230if test -n "$AR"; then 6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6232$as_echo "$AR" >&6; } 6233else 6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6235$as_echo "no" >&6; } 6236fi 6237 6238 6239 test -n "$AR" && break 6240 done 6241fi 6242if test -z "$AR"; then 6243 ac_ct_AR=$AR 6244 for ac_prog in ar 6245do 6246 # Extract the first word of "$ac_prog", so it can be a program name with args. 6247set dummy $ac_prog; ac_word=$2 6248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6249$as_echo_n "checking for $ac_word... " >&6; } 6250if ${ac_cv_prog_ac_ct_AR+:} false; then : 6251 $as_echo_n "(cached) " >&6 6252else 6253 if test -n "$ac_ct_AR"; then 6254 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6255else 6256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6257for as_dir in $PATH 6258do 6259 IFS=$as_save_IFS 6260 test -z "$as_dir" && as_dir=. 6261 for ac_exec_ext in '' $ac_executable_extensions; do 6262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6263 ac_cv_prog_ac_ct_AR="$ac_prog" 6264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6265 break 2 6266 fi 6267done 6268 done 6269IFS=$as_save_IFS 6270 6271fi 6272fi 6273ac_ct_AR=$ac_cv_prog_ac_ct_AR 6274if test -n "$ac_ct_AR"; then 6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6276$as_echo "$ac_ct_AR" >&6; } 6277else 6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6279$as_echo "no" >&6; } 6280fi 6281 6282 6283 test -n "$ac_ct_AR" && break 6284done 6285 6286 if test "x$ac_ct_AR" = x; then 6287 AR="false" 6288 else 6289 case $cross_compiling:$ac_tool_warned in 6290yes:) 6291{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6292$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6293ac_tool_warned=yes ;; 6294esac 6295 AR=$ac_ct_AR 6296 fi 6297fi 6298 6299: ${AR=ar} 6300: ${AR_FLAGS=cru} 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6313$as_echo_n "checking for archiver @FILE support... " >&6; } 6314if ${lt_cv_ar_at_file+:} false; then : 6315 $as_echo_n "(cached) " >&6 6316else 6317 lt_cv_ar_at_file=no 6318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6319/* end confdefs.h. */ 6320 6321int 6322main () 6323{ 6324 6325 ; 6326 return 0; 6327} 6328_ACEOF 6329if ac_fn_c_try_compile "$LINENO"; then : 6330 echo conftest.$ac_objext > conftest.lst 6331 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6333 (eval $lt_ar_try) 2>&5 6334 ac_status=$? 6335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6336 test $ac_status = 0; } 6337 if test 0 -eq "$ac_status"; then 6338 # Ensure the archiver fails upon bogus file names. 6339 rm -f conftest.$ac_objext libconftest.a 6340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6341 (eval $lt_ar_try) 2>&5 6342 ac_status=$? 6343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6344 test $ac_status = 0; } 6345 if test 0 -ne "$ac_status"; then 6346 lt_cv_ar_at_file=@ 6347 fi 6348 fi 6349 rm -f conftest.* libconftest.a 6350 6351fi 6352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6353 6354fi 6355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6356$as_echo "$lt_cv_ar_at_file" >&6; } 6357 6358if test no = "$lt_cv_ar_at_file"; then 6359 archiver_list_spec= 6360else 6361 archiver_list_spec=$lt_cv_ar_at_file 6362fi 6363 6364 6365 6366 6367 6368 6369 6370if test -n "$ac_tool_prefix"; then 6371 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6372set dummy ${ac_tool_prefix}strip; ac_word=$2 6373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6374$as_echo_n "checking for $ac_word... " >&6; } 6375if ${ac_cv_prog_STRIP+:} false; then : 6376 $as_echo_n "(cached) " >&6 6377else 6378 if test -n "$STRIP"; then 6379 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6380else 6381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6382for as_dir in $PATH 6383do 6384 IFS=$as_save_IFS 6385 test -z "$as_dir" && as_dir=. 6386 for ac_exec_ext in '' $ac_executable_extensions; do 6387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6388 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6390 break 2 6391 fi 6392done 6393 done 6394IFS=$as_save_IFS 6395 6396fi 6397fi 6398STRIP=$ac_cv_prog_STRIP 6399if test -n "$STRIP"; then 6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6401$as_echo "$STRIP" >&6; } 6402else 6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6404$as_echo "no" >&6; } 6405fi 6406 6407 6408fi 6409if test -z "$ac_cv_prog_STRIP"; then 6410 ac_ct_STRIP=$STRIP 6411 # Extract the first word of "strip", so it can be a program name with args. 6412set dummy strip; ac_word=$2 6413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6414$as_echo_n "checking for $ac_word... " >&6; } 6415if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6416 $as_echo_n "(cached) " >&6 6417else 6418 if test -n "$ac_ct_STRIP"; then 6419 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6420else 6421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6422for as_dir in $PATH 6423do 6424 IFS=$as_save_IFS 6425 test -z "$as_dir" && as_dir=. 6426 for ac_exec_ext in '' $ac_executable_extensions; do 6427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6428 ac_cv_prog_ac_ct_STRIP="strip" 6429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6430 break 2 6431 fi 6432done 6433 done 6434IFS=$as_save_IFS 6435 6436fi 6437fi 6438ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6439if test -n "$ac_ct_STRIP"; then 6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6441$as_echo "$ac_ct_STRIP" >&6; } 6442else 6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6444$as_echo "no" >&6; } 6445fi 6446 6447 if test "x$ac_ct_STRIP" = x; then 6448 STRIP=":" 6449 else 6450 case $cross_compiling:$ac_tool_warned in 6451yes:) 6452{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6453$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6454ac_tool_warned=yes ;; 6455esac 6456 STRIP=$ac_ct_STRIP 6457 fi 6458else 6459 STRIP="$ac_cv_prog_STRIP" 6460fi 6461 6462test -z "$STRIP" && STRIP=: 6463 6464 6465 6466 6467 6468 6469if test -n "$ac_tool_prefix"; then 6470 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6471set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6473$as_echo_n "checking for $ac_word... " >&6; } 6474if ${ac_cv_prog_RANLIB+:} false; then : 6475 $as_echo_n "(cached) " >&6 6476else 6477 if test -n "$RANLIB"; then 6478 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6479else 6480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6481for as_dir in $PATH 6482do 6483 IFS=$as_save_IFS 6484 test -z "$as_dir" && as_dir=. 6485 for ac_exec_ext in '' $ac_executable_extensions; do 6486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6487 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6489 break 2 6490 fi 6491done 6492 done 6493IFS=$as_save_IFS 6494 6495fi 6496fi 6497RANLIB=$ac_cv_prog_RANLIB 6498if test -n "$RANLIB"; then 6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6500$as_echo "$RANLIB" >&6; } 6501else 6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6503$as_echo "no" >&6; } 6504fi 6505 6506 6507fi 6508if test -z "$ac_cv_prog_RANLIB"; then 6509 ac_ct_RANLIB=$RANLIB 6510 # Extract the first word of "ranlib", so it can be a program name with args. 6511set dummy ranlib; ac_word=$2 6512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6513$as_echo_n "checking for $ac_word... " >&6; } 6514if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6515 $as_echo_n "(cached) " >&6 6516else 6517 if test -n "$ac_ct_RANLIB"; then 6518 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6519else 6520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6521for as_dir in $PATH 6522do 6523 IFS=$as_save_IFS 6524 test -z "$as_dir" && as_dir=. 6525 for ac_exec_ext in '' $ac_executable_extensions; do 6526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6527 ac_cv_prog_ac_ct_RANLIB="ranlib" 6528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6529 break 2 6530 fi 6531done 6532 done 6533IFS=$as_save_IFS 6534 6535fi 6536fi 6537ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6538if test -n "$ac_ct_RANLIB"; then 6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6540$as_echo "$ac_ct_RANLIB" >&6; } 6541else 6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6543$as_echo "no" >&6; } 6544fi 6545 6546 if test "x$ac_ct_RANLIB" = x; then 6547 RANLIB=":" 6548 else 6549 case $cross_compiling:$ac_tool_warned in 6550yes:) 6551{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6552$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6553ac_tool_warned=yes ;; 6554esac 6555 RANLIB=$ac_ct_RANLIB 6556 fi 6557else 6558 RANLIB="$ac_cv_prog_RANLIB" 6559fi 6560 6561test -z "$RANLIB" && RANLIB=: 6562 6563 6564 6565 6566 6567 6568# Determine commands to create old-style static archives. 6569old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6570old_postinstall_cmds='chmod 644 $oldlib' 6571old_postuninstall_cmds= 6572 6573if test -n "$RANLIB"; then 6574 case $host_os in 6575 bitrig* | openbsd*) 6576 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6577 ;; 6578 *) 6579 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6580 ;; 6581 esac 6582 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6583fi 6584 6585case $host_os in 6586 darwin*) 6587 lock_old_archive_extraction=yes ;; 6588 *) 6589 lock_old_archive_extraction=no ;; 6590esac 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630# If no C compiler was specified, use CC. 6631LTCC=${LTCC-"$CC"} 6632 6633# If no C compiler flags were specified, use CFLAGS. 6634LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6635 6636# Allow CC to be a program name with arguments. 6637compiler=$CC 6638 6639 6640# Check for command to grab the raw symbol name followed by C symbol from nm. 6641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6642$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6643if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6644 $as_echo_n "(cached) " >&6 6645else 6646 6647# These are sane defaults that work on at least a few old systems. 6648# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6649 6650# Character class describing NM global symbol codes. 6651symcode='[BCDEGRST]' 6652 6653# Regexp to match symbols that can be accessed directly from C. 6654sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6655 6656# Define system-specific variables. 6657case $host_os in 6658aix*) 6659 symcode='[BCDT]' 6660 ;; 6661cygwin* | mingw* | pw32* | cegcc*) 6662 symcode='[ABCDGISTW]' 6663 ;; 6664hpux*) 6665 if test ia64 = "$host_cpu"; then 6666 symcode='[ABCDEGRST]' 6667 fi 6668 ;; 6669irix* | nonstopux*) 6670 symcode='[BCDEGRST]' 6671 ;; 6672osf*) 6673 symcode='[BCDEGQRST]' 6674 ;; 6675solaris*) 6676 symcode='[BDRT]' 6677 ;; 6678sco3.2v5*) 6679 symcode='[DT]' 6680 ;; 6681sysv4.2uw2*) 6682 symcode='[DT]' 6683 ;; 6684sysv5* | sco5v6* | unixware* | OpenUNIX*) 6685 symcode='[ABDT]' 6686 ;; 6687sysv4) 6688 symcode='[DFNSTU]' 6689 ;; 6690esac 6691 6692# If we're using GNU nm, then use its standard symbol codes. 6693case `$NM -V 2>&1` in 6694*GNU* | *'with BFD'*) 6695 symcode='[ABCDGIRSTW]' ;; 6696esac 6697 6698if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6699 # Gets list of data symbols to import. 6700 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6701 # Adjust the below global symbol transforms to fixup imported variables. 6702 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6703 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6704 lt_c_name_lib_hook="\ 6705 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6706 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6707else 6708 # Disable hooks by default. 6709 lt_cv_sys_global_symbol_to_import= 6710 lt_cdecl_hook= 6711 lt_c_name_hook= 6712 lt_c_name_lib_hook= 6713fi 6714 6715# Transform an extracted symbol line into a proper C declaration. 6716# Some systems (esp. on ia64) link data and code symbols differently, 6717# so use this general approach. 6718lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6719$lt_cdecl_hook\ 6720" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6721" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6722 6723# Transform an extracted symbol line into symbol name and symbol address 6724lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6725$lt_c_name_hook\ 6726" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6727" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6728 6729# Transform an extracted symbol line into symbol name with lib prefix and 6730# symbol address. 6731lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6732$lt_c_name_lib_hook\ 6733" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6734" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6735" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6736 6737# Handle CRLF in mingw tool chain 6738opt_cr= 6739case $build_os in 6740mingw*) 6741 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6742 ;; 6743esac 6744 6745# Try without a prefix underscore, then with it. 6746for ac_symprfx in "" "_"; do 6747 6748 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6749 symxfrm="\\1 $ac_symprfx\\2 \\2" 6750 6751 # Write the raw and C identifiers. 6752 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6753 # Fake it for dumpbin and say T for any non-static function, 6754 # D for any global variable and I for any imported variable. 6755 # Also find C++ and __fastcall symbols from MSVC++, 6756 # which start with @ or ?. 6757 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6758" {last_section=section; section=\$ 3};"\ 6759" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6760" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6761" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6762" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6763" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6764" \$ 0!~/External *\|/{next};"\ 6765" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6766" {if(hide[section]) next};"\ 6767" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6768" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6769" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6770" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6771" ' prfx=^$ac_symprfx" 6772 else 6773 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6774 fi 6775 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6776 6777 # Check to see that the pipe works correctly. 6778 pipe_works=no 6779 6780 rm -f conftest* 6781 cat > conftest.$ac_ext <<_LT_EOF 6782#ifdef __cplusplus 6783extern "C" { 6784#endif 6785char nm_test_var; 6786void nm_test_func(void); 6787void nm_test_func(void){} 6788#ifdef __cplusplus 6789} 6790#endif 6791int main(){nm_test_var='a';nm_test_func();return(0);} 6792_LT_EOF 6793 6794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6795 (eval $ac_compile) 2>&5 6796 ac_status=$? 6797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6798 test $ac_status = 0; }; then 6799 # Now try to grab the symbols. 6800 nlist=conftest.nm 6801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6802 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6803 ac_status=$? 6804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6805 test $ac_status = 0; } && test -s "$nlist"; then 6806 # Try sorting and uniquifying the output. 6807 if sort "$nlist" | uniq > "$nlist"T; then 6808 mv -f "$nlist"T "$nlist" 6809 else 6810 rm -f "$nlist"T 6811 fi 6812 6813 # Make sure that we snagged all the symbols we need. 6814 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6815 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6816 cat <<_LT_EOF > conftest.$ac_ext 6817/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6818#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6819/* DATA imports from DLLs on WIN32 can't be const, because runtime 6820 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6821# define LT_DLSYM_CONST 6822#elif defined __osf__ 6823/* This system does not cope well with relocations in const data. */ 6824# define LT_DLSYM_CONST 6825#else 6826# define LT_DLSYM_CONST const 6827#endif 6828 6829#ifdef __cplusplus 6830extern "C" { 6831#endif 6832 6833_LT_EOF 6834 # Now generate the symbol file. 6835 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6836 6837 cat <<_LT_EOF >> conftest.$ac_ext 6838 6839/* The mapping between symbol names and symbols. */ 6840LT_DLSYM_CONST struct { 6841 const char *name; 6842 void *address; 6843} 6844lt__PROGRAM__LTX_preloaded_symbols[] = 6845{ 6846 { "@PROGRAM@", (void *) 0 }, 6847_LT_EOF 6848 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6849 cat <<\_LT_EOF >> conftest.$ac_ext 6850 {0, (void *) 0} 6851}; 6852 6853/* This works around a problem in FreeBSD linker */ 6854#ifdef FREEBSD_WORKAROUND 6855static const void *lt_preloaded_setup() { 6856 return lt__PROGRAM__LTX_preloaded_symbols; 6857} 6858#endif 6859 6860#ifdef __cplusplus 6861} 6862#endif 6863_LT_EOF 6864 # Now try linking the two files. 6865 mv conftest.$ac_objext conftstm.$ac_objext 6866 lt_globsym_save_LIBS=$LIBS 6867 lt_globsym_save_CFLAGS=$CFLAGS 6868 LIBS=conftstm.$ac_objext 6869 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6870 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6871 (eval $ac_link) 2>&5 6872 ac_status=$? 6873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6874 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6875 pipe_works=yes 6876 fi 6877 LIBS=$lt_globsym_save_LIBS 6878 CFLAGS=$lt_globsym_save_CFLAGS 6879 else 6880 echo "cannot find nm_test_func in $nlist" >&5 6881 fi 6882 else 6883 echo "cannot find nm_test_var in $nlist" >&5 6884 fi 6885 else 6886 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6887 fi 6888 else 6889 echo "$progname: failed program was:" >&5 6890 cat conftest.$ac_ext >&5 6891 fi 6892 rm -rf conftest* conftst* 6893 6894 # Do not use the global_symbol_pipe unless it works. 6895 if test yes = "$pipe_works"; then 6896 break 6897 else 6898 lt_cv_sys_global_symbol_pipe= 6899 fi 6900done 6901 6902fi 6903 6904if test -z "$lt_cv_sys_global_symbol_pipe"; then 6905 lt_cv_sys_global_symbol_to_cdecl= 6906fi 6907if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6909$as_echo "failed" >&6; } 6910else 6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6912$as_echo "ok" >&6; } 6913fi 6914 6915# Response file support. 6916if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6917 nm_file_list_spec='@' 6918elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6919 nm_file_list_spec='@' 6920fi 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6959$as_echo_n "checking for sysroot... " >&6; } 6960 6961# Check whether --with-sysroot was given. 6962if test "${with_sysroot+set}" = set; then : 6963 withval=$with_sysroot; 6964else 6965 with_sysroot=no 6966fi 6967 6968 6969lt_sysroot= 6970case $with_sysroot in #( 6971 yes) 6972 if test yes = "$GCC"; then 6973 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6974 fi 6975 ;; #( 6976 /*) 6977 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6978 ;; #( 6979 no|'') 6980 ;; #( 6981 *) 6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6983$as_echo "$with_sysroot" >&6; } 6984 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6985 ;; 6986esac 6987 6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6989$as_echo "${lt_sysroot:-no}" >&6; } 6990 6991 6992 6993 6994 6995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6996$as_echo_n "checking for a working dd... " >&6; } 6997if ${ac_cv_path_lt_DD+:} false; then : 6998 $as_echo_n "(cached) " >&6 6999else 7000 printf 0123456789abcdef0123456789abcdef >conftest.i 7001cat conftest.i conftest.i >conftest2.i 7002: ${lt_DD:=$DD} 7003if test -z "$lt_DD"; then 7004 ac_path_lt_DD_found=false 7005 # Loop through the user's path and test for each of PROGNAME-LIST 7006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7007for as_dir in $PATH 7008do 7009 IFS=$as_save_IFS 7010 test -z "$as_dir" && as_dir=. 7011 for ac_prog in dd; do 7012 for ac_exec_ext in '' $ac_executable_extensions; do 7013 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7014 as_fn_executable_p "$ac_path_lt_DD" || continue 7015if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7016 cmp -s conftest.i conftest.out \ 7017 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7018fi 7019 $ac_path_lt_DD_found && break 3 7020 done 7021 done 7022 done 7023IFS=$as_save_IFS 7024 if test -z "$ac_cv_path_lt_DD"; then 7025 : 7026 fi 7027else 7028 ac_cv_path_lt_DD=$lt_DD 7029fi 7030 7031rm -f conftest.i conftest2.i conftest.out 7032fi 7033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7034$as_echo "$ac_cv_path_lt_DD" >&6; } 7035 7036 7037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7038$as_echo_n "checking how to truncate binary pipes... " >&6; } 7039if ${lt_cv_truncate_bin+:} false; then : 7040 $as_echo_n "(cached) " >&6 7041else 7042 printf 0123456789abcdef0123456789abcdef >conftest.i 7043cat conftest.i conftest.i >conftest2.i 7044lt_cv_truncate_bin= 7045if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7046 cmp -s conftest.i conftest.out \ 7047 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7048fi 7049rm -f conftest.i conftest2.i conftest.out 7050test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7051fi 7052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7053$as_echo "$lt_cv_truncate_bin" >&6; } 7054 7055 7056 7057 7058 7059 7060 7061# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7062func_cc_basename () 7063{ 7064 for cc_temp in $*""; do 7065 case $cc_temp in 7066 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7067 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7068 \-*) ;; 7069 *) break;; 7070 esac 7071 done 7072 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7073} 7074 7075# Check whether --enable-libtool-lock was given. 7076if test "${enable_libtool_lock+set}" = set; then : 7077 enableval=$enable_libtool_lock; 7078fi 7079 7080test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7081 7082# Some flags need to be propagated to the compiler or linker for good 7083# libtool support. 7084case $host in 7085ia64-*-hpux*) 7086 # Find out what ABI is being produced by ac_compile, and set mode 7087 # options accordingly. 7088 echo 'int i;' > conftest.$ac_ext 7089 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7090 (eval $ac_compile) 2>&5 7091 ac_status=$? 7092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7093 test $ac_status = 0; }; then 7094 case `/usr/bin/file conftest.$ac_objext` in 7095 *ELF-32*) 7096 HPUX_IA64_MODE=32 7097 ;; 7098 *ELF-64*) 7099 HPUX_IA64_MODE=64 7100 ;; 7101 esac 7102 fi 7103 rm -rf conftest* 7104 ;; 7105*-*-irix6*) 7106 # Find out what ABI is being produced by ac_compile, and set linker 7107 # options accordingly. 7108 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7109 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7110 (eval $ac_compile) 2>&5 7111 ac_status=$? 7112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7113 test $ac_status = 0; }; then 7114 if test yes = "$lt_cv_prog_gnu_ld"; then 7115 case `/usr/bin/file conftest.$ac_objext` in 7116 *32-bit*) 7117 LD="${LD-ld} -melf32bsmip" 7118 ;; 7119 *N32*) 7120 LD="${LD-ld} -melf32bmipn32" 7121 ;; 7122 *64-bit*) 7123 LD="${LD-ld} -melf64bmip" 7124 ;; 7125 esac 7126 else 7127 case `/usr/bin/file conftest.$ac_objext` in 7128 *32-bit*) 7129 LD="${LD-ld} -32" 7130 ;; 7131 *N32*) 7132 LD="${LD-ld} -n32" 7133 ;; 7134 *64-bit*) 7135 LD="${LD-ld} -64" 7136 ;; 7137 esac 7138 fi 7139 fi 7140 rm -rf conftest* 7141 ;; 7142 7143mips64*-*linux*) 7144 # Find out what ABI is being produced by ac_compile, and set linker 7145 # options accordingly. 7146 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7148 (eval $ac_compile) 2>&5 7149 ac_status=$? 7150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7151 test $ac_status = 0; }; then 7152 emul=elf 7153 case `/usr/bin/file conftest.$ac_objext` in 7154 *32-bit*) 7155 emul="${emul}32" 7156 ;; 7157 *64-bit*) 7158 emul="${emul}64" 7159 ;; 7160 esac 7161 case `/usr/bin/file conftest.$ac_objext` in 7162 *MSB*) 7163 emul="${emul}btsmip" 7164 ;; 7165 *LSB*) 7166 emul="${emul}ltsmip" 7167 ;; 7168 esac 7169 case `/usr/bin/file conftest.$ac_objext` in 7170 *N32*) 7171 emul="${emul}n32" 7172 ;; 7173 esac 7174 LD="${LD-ld} -m $emul" 7175 fi 7176 rm -rf conftest* 7177 ;; 7178 7179x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7180s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7181 # Find out what ABI is being produced by ac_compile, and set linker 7182 # options accordingly. Note that the listed cases only cover the 7183 # situations where additional linker options are needed (such as when 7184 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7185 # vice versa); the common cases where no linker options are needed do 7186 # not appear in the list. 7187 echo 'int i;' > conftest.$ac_ext 7188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7189 (eval $ac_compile) 2>&5 7190 ac_status=$? 7191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7192 test $ac_status = 0; }; then 7193 case `/usr/bin/file conftest.o` in 7194 *32-bit*) 7195 case $host in 7196 x86_64-*kfreebsd*-gnu) 7197 LD="${LD-ld} -m elf_i386_fbsd" 7198 ;; 7199 x86_64-*linux*) 7200 case `/usr/bin/file conftest.o` in 7201 *x86-64*) 7202 LD="${LD-ld} -m elf32_x86_64" 7203 ;; 7204 *) 7205 LD="${LD-ld} -m elf_i386" 7206 ;; 7207 esac 7208 ;; 7209 powerpc64le-*linux*) 7210 LD="${LD-ld} -m elf32lppclinux" 7211 ;; 7212 powerpc64-*linux*) 7213 LD="${LD-ld} -m elf32ppclinux" 7214 ;; 7215 s390x-*linux*) 7216 LD="${LD-ld} -m elf_s390" 7217 ;; 7218 sparc64-*linux*) 7219 LD="${LD-ld} -m elf32_sparc" 7220 ;; 7221 esac 7222 ;; 7223 *64-bit*) 7224 case $host in 7225 x86_64-*kfreebsd*-gnu) 7226 LD="${LD-ld} -m elf_x86_64_fbsd" 7227 ;; 7228 x86_64-*linux*) 7229 LD="${LD-ld} -m elf_x86_64" 7230 ;; 7231 powerpcle-*linux*) 7232 LD="${LD-ld} -m elf64lppc" 7233 ;; 7234 powerpc-*linux*) 7235 LD="${LD-ld} -m elf64ppc" 7236 ;; 7237 s390*-*linux*|s390*-*tpf*) 7238 LD="${LD-ld} -m elf64_s390" 7239 ;; 7240 sparc*-*linux*) 7241 LD="${LD-ld} -m elf64_sparc" 7242 ;; 7243 esac 7244 ;; 7245 esac 7246 fi 7247 rm -rf conftest* 7248 ;; 7249 7250*-*-sco3.2v5*) 7251 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7252 SAVE_CFLAGS=$CFLAGS 7253 CFLAGS="$CFLAGS -belf" 7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7255$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7256if ${lt_cv_cc_needs_belf+:} false; then : 7257 $as_echo_n "(cached) " >&6 7258else 7259 ac_ext=c 7260ac_cpp='$CPP $CPPFLAGS' 7261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7263ac_compiler_gnu=$ac_cv_c_compiler_gnu 7264 7265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7266/* end confdefs.h. */ 7267 7268int 7269main () 7270{ 7271 7272 ; 7273 return 0; 7274} 7275_ACEOF 7276if ac_fn_c_try_link "$LINENO"; then : 7277 lt_cv_cc_needs_belf=yes 7278else 7279 lt_cv_cc_needs_belf=no 7280fi 7281rm -f core conftest.err conftest.$ac_objext \ 7282 conftest$ac_exeext conftest.$ac_ext 7283 ac_ext=c 7284ac_cpp='$CPP $CPPFLAGS' 7285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7287ac_compiler_gnu=$ac_cv_c_compiler_gnu 7288 7289fi 7290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7291$as_echo "$lt_cv_cc_needs_belf" >&6; } 7292 if test yes != "$lt_cv_cc_needs_belf"; then 7293 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7294 CFLAGS=$SAVE_CFLAGS 7295 fi 7296 ;; 7297*-*solaris*) 7298 # Find out what ABI is being produced by ac_compile, and set linker 7299 # options accordingly. 7300 echo 'int i;' > conftest.$ac_ext 7301 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7302 (eval $ac_compile) 2>&5 7303 ac_status=$? 7304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7305 test $ac_status = 0; }; then 7306 case `/usr/bin/file conftest.o` in 7307 *64-bit*) 7308 case $lt_cv_prog_gnu_ld in 7309 yes*) 7310 case $host in 7311 i?86-*-solaris*|x86_64-*-solaris*) 7312 LD="${LD-ld} -m elf_x86_64" 7313 ;; 7314 sparc*-*-solaris*) 7315 LD="${LD-ld} -m elf64_sparc" 7316 ;; 7317 esac 7318 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7319 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7320 LD=${LD-ld}_sol2 7321 fi 7322 ;; 7323 *) 7324 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7325 LD="${LD-ld} -64" 7326 fi 7327 ;; 7328 esac 7329 ;; 7330 esac 7331 fi 7332 rm -rf conftest* 7333 ;; 7334esac 7335 7336need_locks=$enable_libtool_lock 7337 7338if test -n "$ac_tool_prefix"; then 7339 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7340set dummy ${ac_tool_prefix}mt; ac_word=$2 7341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7342$as_echo_n "checking for $ac_word... " >&6; } 7343if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7344 $as_echo_n "(cached) " >&6 7345else 7346 if test -n "$MANIFEST_TOOL"; then 7347 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7348else 7349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7350for as_dir in $PATH 7351do 7352 IFS=$as_save_IFS 7353 test -z "$as_dir" && as_dir=. 7354 for ac_exec_ext in '' $ac_executable_extensions; do 7355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7356 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7358 break 2 7359 fi 7360done 7361 done 7362IFS=$as_save_IFS 7363 7364fi 7365fi 7366MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7367if test -n "$MANIFEST_TOOL"; then 7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7369$as_echo "$MANIFEST_TOOL" >&6; } 7370else 7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7372$as_echo "no" >&6; } 7373fi 7374 7375 7376fi 7377if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7378 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7379 # Extract the first word of "mt", so it can be a program name with args. 7380set dummy mt; ac_word=$2 7381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7382$as_echo_n "checking for $ac_word... " >&6; } 7383if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7384 $as_echo_n "(cached) " >&6 7385else 7386 if test -n "$ac_ct_MANIFEST_TOOL"; then 7387 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7388else 7389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7390for as_dir in $PATH 7391do 7392 IFS=$as_save_IFS 7393 test -z "$as_dir" && as_dir=. 7394 for ac_exec_ext in '' $ac_executable_extensions; do 7395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7396 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7398 break 2 7399 fi 7400done 7401 done 7402IFS=$as_save_IFS 7403 7404fi 7405fi 7406ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7407if test -n "$ac_ct_MANIFEST_TOOL"; then 7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7409$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7410else 7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7412$as_echo "no" >&6; } 7413fi 7414 7415 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7416 MANIFEST_TOOL=":" 7417 else 7418 case $cross_compiling:$ac_tool_warned in 7419yes:) 7420{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7421$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7422ac_tool_warned=yes ;; 7423esac 7424 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7425 fi 7426else 7427 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7428fi 7429 7430test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7432$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7433if ${lt_cv_path_mainfest_tool+:} false; then : 7434 $as_echo_n "(cached) " >&6 7435else 7436 lt_cv_path_mainfest_tool=no 7437 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7438 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7439 cat conftest.err >&5 7440 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7441 lt_cv_path_mainfest_tool=yes 7442 fi 7443 rm -f conftest* 7444fi 7445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7446$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7447if test yes != "$lt_cv_path_mainfest_tool"; then 7448 MANIFEST_TOOL=: 7449fi 7450 7451 7452 7453 7454 7455 7456 case $host_os in 7457 rhapsody* | darwin*) 7458 if test -n "$ac_tool_prefix"; then 7459 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7460set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7462$as_echo_n "checking for $ac_word... " >&6; } 7463if ${ac_cv_prog_DSYMUTIL+:} false; then : 7464 $as_echo_n "(cached) " >&6 7465else 7466 if test -n "$DSYMUTIL"; then 7467 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7468else 7469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7470for as_dir in $PATH 7471do 7472 IFS=$as_save_IFS 7473 test -z "$as_dir" && as_dir=. 7474 for ac_exec_ext in '' $ac_executable_extensions; do 7475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7476 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7478 break 2 7479 fi 7480done 7481 done 7482IFS=$as_save_IFS 7483 7484fi 7485fi 7486DSYMUTIL=$ac_cv_prog_DSYMUTIL 7487if test -n "$DSYMUTIL"; then 7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7489$as_echo "$DSYMUTIL" >&6; } 7490else 7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7492$as_echo "no" >&6; } 7493fi 7494 7495 7496fi 7497if test -z "$ac_cv_prog_DSYMUTIL"; then 7498 ac_ct_DSYMUTIL=$DSYMUTIL 7499 # Extract the first word of "dsymutil", so it can be a program name with args. 7500set dummy dsymutil; ac_word=$2 7501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7502$as_echo_n "checking for $ac_word... " >&6; } 7503if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7504 $as_echo_n "(cached) " >&6 7505else 7506 if test -n "$ac_ct_DSYMUTIL"; then 7507 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7508else 7509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7510for as_dir in $PATH 7511do 7512 IFS=$as_save_IFS 7513 test -z "$as_dir" && as_dir=. 7514 for ac_exec_ext in '' $ac_executable_extensions; do 7515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7516 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7518 break 2 7519 fi 7520done 7521 done 7522IFS=$as_save_IFS 7523 7524fi 7525fi 7526ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7527if test -n "$ac_ct_DSYMUTIL"; then 7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7529$as_echo "$ac_ct_DSYMUTIL" >&6; } 7530else 7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7532$as_echo "no" >&6; } 7533fi 7534 7535 if test "x$ac_ct_DSYMUTIL" = x; then 7536 DSYMUTIL=":" 7537 else 7538 case $cross_compiling:$ac_tool_warned in 7539yes:) 7540{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7541$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7542ac_tool_warned=yes ;; 7543esac 7544 DSYMUTIL=$ac_ct_DSYMUTIL 7545 fi 7546else 7547 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7548fi 7549 7550 if test -n "$ac_tool_prefix"; then 7551 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7552set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7554$as_echo_n "checking for $ac_word... " >&6; } 7555if ${ac_cv_prog_NMEDIT+:} false; then : 7556 $as_echo_n "(cached) " >&6 7557else 7558 if test -n "$NMEDIT"; then 7559 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7560else 7561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7562for as_dir in $PATH 7563do 7564 IFS=$as_save_IFS 7565 test -z "$as_dir" && as_dir=. 7566 for ac_exec_ext in '' $ac_executable_extensions; do 7567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7568 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7570 break 2 7571 fi 7572done 7573 done 7574IFS=$as_save_IFS 7575 7576fi 7577fi 7578NMEDIT=$ac_cv_prog_NMEDIT 7579if test -n "$NMEDIT"; then 7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7581$as_echo "$NMEDIT" >&6; } 7582else 7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7584$as_echo "no" >&6; } 7585fi 7586 7587 7588fi 7589if test -z "$ac_cv_prog_NMEDIT"; then 7590 ac_ct_NMEDIT=$NMEDIT 7591 # Extract the first word of "nmedit", so it can be a program name with args. 7592set dummy nmedit; ac_word=$2 7593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7594$as_echo_n "checking for $ac_word... " >&6; } 7595if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7596 $as_echo_n "(cached) " >&6 7597else 7598 if test -n "$ac_ct_NMEDIT"; then 7599 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7600else 7601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7602for as_dir in $PATH 7603do 7604 IFS=$as_save_IFS 7605 test -z "$as_dir" && as_dir=. 7606 for ac_exec_ext in '' $ac_executable_extensions; do 7607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7608 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7610 break 2 7611 fi 7612done 7613 done 7614IFS=$as_save_IFS 7615 7616fi 7617fi 7618ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7619if test -n "$ac_ct_NMEDIT"; then 7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7621$as_echo "$ac_ct_NMEDIT" >&6; } 7622else 7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7624$as_echo "no" >&6; } 7625fi 7626 7627 if test "x$ac_ct_NMEDIT" = x; then 7628 NMEDIT=":" 7629 else 7630 case $cross_compiling:$ac_tool_warned in 7631yes:) 7632{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7633$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7634ac_tool_warned=yes ;; 7635esac 7636 NMEDIT=$ac_ct_NMEDIT 7637 fi 7638else 7639 NMEDIT="$ac_cv_prog_NMEDIT" 7640fi 7641 7642 if test -n "$ac_tool_prefix"; then 7643 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7644set dummy ${ac_tool_prefix}lipo; ac_word=$2 7645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7646$as_echo_n "checking for $ac_word... " >&6; } 7647if ${ac_cv_prog_LIPO+:} false; then : 7648 $as_echo_n "(cached) " >&6 7649else 7650 if test -n "$LIPO"; then 7651 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7652else 7653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7654for as_dir in $PATH 7655do 7656 IFS=$as_save_IFS 7657 test -z "$as_dir" && as_dir=. 7658 for ac_exec_ext in '' $ac_executable_extensions; do 7659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7660 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7662 break 2 7663 fi 7664done 7665 done 7666IFS=$as_save_IFS 7667 7668fi 7669fi 7670LIPO=$ac_cv_prog_LIPO 7671if test -n "$LIPO"; then 7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7673$as_echo "$LIPO" >&6; } 7674else 7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7676$as_echo "no" >&6; } 7677fi 7678 7679 7680fi 7681if test -z "$ac_cv_prog_LIPO"; then 7682 ac_ct_LIPO=$LIPO 7683 # Extract the first word of "lipo", so it can be a program name with args. 7684set dummy lipo; ac_word=$2 7685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7686$as_echo_n "checking for $ac_word... " >&6; } 7687if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7688 $as_echo_n "(cached) " >&6 7689else 7690 if test -n "$ac_ct_LIPO"; then 7691 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7692else 7693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7694for as_dir in $PATH 7695do 7696 IFS=$as_save_IFS 7697 test -z "$as_dir" && as_dir=. 7698 for ac_exec_ext in '' $ac_executable_extensions; do 7699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7700 ac_cv_prog_ac_ct_LIPO="lipo" 7701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7702 break 2 7703 fi 7704done 7705 done 7706IFS=$as_save_IFS 7707 7708fi 7709fi 7710ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7711if test -n "$ac_ct_LIPO"; then 7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7713$as_echo "$ac_ct_LIPO" >&6; } 7714else 7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7716$as_echo "no" >&6; } 7717fi 7718 7719 if test "x$ac_ct_LIPO" = x; then 7720 LIPO=":" 7721 else 7722 case $cross_compiling:$ac_tool_warned in 7723yes:) 7724{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7725$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7726ac_tool_warned=yes ;; 7727esac 7728 LIPO=$ac_ct_LIPO 7729 fi 7730else 7731 LIPO="$ac_cv_prog_LIPO" 7732fi 7733 7734 if test -n "$ac_tool_prefix"; then 7735 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7736set dummy ${ac_tool_prefix}otool; ac_word=$2 7737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7738$as_echo_n "checking for $ac_word... " >&6; } 7739if ${ac_cv_prog_OTOOL+:} false; then : 7740 $as_echo_n "(cached) " >&6 7741else 7742 if test -n "$OTOOL"; then 7743 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7744else 7745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7746for as_dir in $PATH 7747do 7748 IFS=$as_save_IFS 7749 test -z "$as_dir" && as_dir=. 7750 for ac_exec_ext in '' $ac_executable_extensions; do 7751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7752 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7754 break 2 7755 fi 7756done 7757 done 7758IFS=$as_save_IFS 7759 7760fi 7761fi 7762OTOOL=$ac_cv_prog_OTOOL 7763if test -n "$OTOOL"; then 7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7765$as_echo "$OTOOL" >&6; } 7766else 7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7768$as_echo "no" >&6; } 7769fi 7770 7771 7772fi 7773if test -z "$ac_cv_prog_OTOOL"; then 7774 ac_ct_OTOOL=$OTOOL 7775 # Extract the first word of "otool", so it can be a program name with args. 7776set dummy otool; ac_word=$2 7777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7778$as_echo_n "checking for $ac_word... " >&6; } 7779if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7780 $as_echo_n "(cached) " >&6 7781else 7782 if test -n "$ac_ct_OTOOL"; then 7783 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7784else 7785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7786for as_dir in $PATH 7787do 7788 IFS=$as_save_IFS 7789 test -z "$as_dir" && as_dir=. 7790 for ac_exec_ext in '' $ac_executable_extensions; do 7791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7792 ac_cv_prog_ac_ct_OTOOL="otool" 7793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7794 break 2 7795 fi 7796done 7797 done 7798IFS=$as_save_IFS 7799 7800fi 7801fi 7802ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7803if test -n "$ac_ct_OTOOL"; then 7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7805$as_echo "$ac_ct_OTOOL" >&6; } 7806else 7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7808$as_echo "no" >&6; } 7809fi 7810 7811 if test "x$ac_ct_OTOOL" = x; then 7812 OTOOL=":" 7813 else 7814 case $cross_compiling:$ac_tool_warned in 7815yes:) 7816{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7817$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7818ac_tool_warned=yes ;; 7819esac 7820 OTOOL=$ac_ct_OTOOL 7821 fi 7822else 7823 OTOOL="$ac_cv_prog_OTOOL" 7824fi 7825 7826 if test -n "$ac_tool_prefix"; then 7827 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7828set dummy ${ac_tool_prefix}otool64; ac_word=$2 7829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7830$as_echo_n "checking for $ac_word... " >&6; } 7831if ${ac_cv_prog_OTOOL64+:} false; then : 7832 $as_echo_n "(cached) " >&6 7833else 7834 if test -n "$OTOOL64"; then 7835 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7836else 7837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7838for as_dir in $PATH 7839do 7840 IFS=$as_save_IFS 7841 test -z "$as_dir" && as_dir=. 7842 for ac_exec_ext in '' $ac_executable_extensions; do 7843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7844 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7846 break 2 7847 fi 7848done 7849 done 7850IFS=$as_save_IFS 7851 7852fi 7853fi 7854OTOOL64=$ac_cv_prog_OTOOL64 7855if test -n "$OTOOL64"; then 7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7857$as_echo "$OTOOL64" >&6; } 7858else 7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7860$as_echo "no" >&6; } 7861fi 7862 7863 7864fi 7865if test -z "$ac_cv_prog_OTOOL64"; then 7866 ac_ct_OTOOL64=$OTOOL64 7867 # Extract the first word of "otool64", so it can be a program name with args. 7868set dummy otool64; ac_word=$2 7869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7870$as_echo_n "checking for $ac_word... " >&6; } 7871if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7872 $as_echo_n "(cached) " >&6 7873else 7874 if test -n "$ac_ct_OTOOL64"; then 7875 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7876else 7877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7878for as_dir in $PATH 7879do 7880 IFS=$as_save_IFS 7881 test -z "$as_dir" && as_dir=. 7882 for ac_exec_ext in '' $ac_executable_extensions; do 7883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7884 ac_cv_prog_ac_ct_OTOOL64="otool64" 7885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7886 break 2 7887 fi 7888done 7889 done 7890IFS=$as_save_IFS 7891 7892fi 7893fi 7894ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7895if test -n "$ac_ct_OTOOL64"; then 7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7897$as_echo "$ac_ct_OTOOL64" >&6; } 7898else 7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7900$as_echo "no" >&6; } 7901fi 7902 7903 if test "x$ac_ct_OTOOL64" = x; then 7904 OTOOL64=":" 7905 else 7906 case $cross_compiling:$ac_tool_warned in 7907yes:) 7908{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7909$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7910ac_tool_warned=yes ;; 7911esac 7912 OTOOL64=$ac_ct_OTOOL64 7913 fi 7914else 7915 OTOOL64="$ac_cv_prog_OTOOL64" 7916fi 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7945$as_echo_n "checking for -single_module linker flag... " >&6; } 7946if ${lt_cv_apple_cc_single_mod+:} false; then : 7947 $as_echo_n "(cached) " >&6 7948else 7949 lt_cv_apple_cc_single_mod=no 7950 if test -z "$LT_MULTI_MODULE"; then 7951 # By default we will add the -single_module flag. You can override 7952 # by either setting the environment variable LT_MULTI_MODULE 7953 # non-empty at configure time, or by adding -multi_module to the 7954 # link flags. 7955 rm -rf libconftest.dylib* 7956 echo "int foo(void){return 1;}" > conftest.c 7957 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7958-dynamiclib -Wl,-single_module conftest.c" >&5 7959 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7960 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7961 _lt_result=$? 7962 # If there is a non-empty error log, and "single_module" 7963 # appears in it, assume the flag caused a linker warning 7964 if test -s conftest.err && $GREP single_module conftest.err; then 7965 cat conftest.err >&5 7966 # Otherwise, if the output was created with a 0 exit code from 7967 # the compiler, it worked. 7968 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7969 lt_cv_apple_cc_single_mod=yes 7970 else 7971 cat conftest.err >&5 7972 fi 7973 rm -rf libconftest.dylib* 7974 rm -f conftest.* 7975 fi 7976fi 7977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7978$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7979 7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7981$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7982if ${lt_cv_ld_exported_symbols_list+:} false; then : 7983 $as_echo_n "(cached) " >&6 7984else 7985 lt_cv_ld_exported_symbols_list=no 7986 save_LDFLAGS=$LDFLAGS 7987 echo "_main" > conftest.sym 7988 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7990/* end confdefs.h. */ 7991 7992int 7993main () 7994{ 7995 7996 ; 7997 return 0; 7998} 7999_ACEOF 8000if ac_fn_c_try_link "$LINENO"; then : 8001 lt_cv_ld_exported_symbols_list=yes 8002else 8003 lt_cv_ld_exported_symbols_list=no 8004fi 8005rm -f core conftest.err conftest.$ac_objext \ 8006 conftest$ac_exeext conftest.$ac_ext 8007 LDFLAGS=$save_LDFLAGS 8008 8009fi 8010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8011$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8012 8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8014$as_echo_n "checking for -force_load linker flag... " >&6; } 8015if ${lt_cv_ld_force_load+:} false; then : 8016 $as_echo_n "(cached) " >&6 8017else 8018 lt_cv_ld_force_load=no 8019 cat > conftest.c << _LT_EOF 8020int forced_loaded() { return 2;} 8021_LT_EOF 8022 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8023 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8024 echo "$AR cru libconftest.a conftest.o" >&5 8025 $AR cru libconftest.a conftest.o 2>&5 8026 echo "$RANLIB libconftest.a" >&5 8027 $RANLIB libconftest.a 2>&5 8028 cat > conftest.c << _LT_EOF 8029int main() { return 0;} 8030_LT_EOF 8031 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8032 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8033 _lt_result=$? 8034 if test -s conftest.err && $GREP force_load conftest.err; then 8035 cat conftest.err >&5 8036 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8037 lt_cv_ld_force_load=yes 8038 else 8039 cat conftest.err >&5 8040 fi 8041 rm -f conftest.err libconftest.a conftest conftest.c 8042 rm -rf conftest.dSYM 8043 8044fi 8045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8046$as_echo "$lt_cv_ld_force_load" >&6; } 8047 case $host_os in 8048 rhapsody* | darwin1.[012]) 8049 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8050 darwin1.*) 8051 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8052 darwin*) # darwin 5.x on 8053 # if running on 10.5 or later, the deployment target defaults 8054 # to the OS version, if on x86, and 10.4, the deployment 8055 # target defaults to 10.4. Don't you love it? 8056 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8057 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8058 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8059 10.[012][,.]*) 8060 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8061 10.*) 8062 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8063 esac 8064 ;; 8065 esac 8066 if test yes = "$lt_cv_apple_cc_single_mod"; then 8067 _lt_dar_single_mod='$single_module' 8068 fi 8069 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8070 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8071 else 8072 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8073 fi 8074 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8075 _lt_dsymutil='~$DSYMUTIL $lib || :' 8076 else 8077 _lt_dsymutil= 8078 fi 8079 ;; 8080 esac 8081 8082# func_munge_path_list VARIABLE PATH 8083# ----------------------------------- 8084# VARIABLE is name of variable containing _space_ separated list of 8085# directories to be munged by the contents of PATH, which is string 8086# having a format: 8087# "DIR[:DIR]:" 8088# string "DIR[ DIR]" will be prepended to VARIABLE 8089# ":DIR[:DIR]" 8090# string "DIR[ DIR]" will be appended to VARIABLE 8091# "DIRP[:DIRP]::[DIRA:]DIRA" 8092# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8093# "DIRA[ DIRA]" will be appended to VARIABLE 8094# "DIR[:DIR]" 8095# VARIABLE will be replaced by "DIR[ DIR]" 8096func_munge_path_list () 8097{ 8098 case x$2 in 8099 x) 8100 ;; 8101 *:) 8102 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8103 ;; 8104 x:*) 8105 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8106 ;; 8107 *::*) 8108 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8109 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8110 ;; 8111 *) 8112 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8113 ;; 8114 esac 8115} 8116 8117for ac_header in dlfcn.h 8118do : 8119 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8120" 8121if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8122 cat >>confdefs.h <<_ACEOF 8123#define HAVE_DLFCN_H 1 8124_ACEOF 8125 8126fi 8127 8128done 8129 8130 8131 8132 8133 8134# Set options 8135 8136 8137 8138 enable_dlopen=no 8139 8140 8141 enable_win32_dll=no 8142 8143 8144 # Check whether --enable-shared was given. 8145if test "${enable_shared+set}" = set; then : 8146 enableval=$enable_shared; p=${PACKAGE-default} 8147 case $enableval in 8148 yes) enable_shared=yes ;; 8149 no) enable_shared=no ;; 8150 *) 8151 enable_shared=no 8152 # Look at the argument we got. We use all the common list separators. 8153 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8154 for pkg in $enableval; do 8155 IFS=$lt_save_ifs 8156 if test "X$pkg" = "X$p"; then 8157 enable_shared=yes 8158 fi 8159 done 8160 IFS=$lt_save_ifs 8161 ;; 8162 esac 8163else 8164 enable_shared=yes 8165fi 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 # Check whether --enable-static was given. 8176if test "${enable_static+set}" = set; then : 8177 enableval=$enable_static; p=${PACKAGE-default} 8178 case $enableval in 8179 yes) enable_static=yes ;; 8180 no) enable_static=no ;; 8181 *) 8182 enable_static=no 8183 # Look at the argument we got. We use all the common list separators. 8184 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8185 for pkg in $enableval; do 8186 IFS=$lt_save_ifs 8187 if test "X$pkg" = "X$p"; then 8188 enable_static=yes 8189 fi 8190 done 8191 IFS=$lt_save_ifs 8192 ;; 8193 esac 8194else 8195 enable_static=yes 8196fi 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207# Check whether --with-pic was given. 8208if test "${with_pic+set}" = set; then : 8209 withval=$with_pic; lt_p=${PACKAGE-default} 8210 case $withval in 8211 yes|no) pic_mode=$withval ;; 8212 *) 8213 pic_mode=default 8214 # Look at the argument we got. We use all the common list separators. 8215 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8216 for lt_pkg in $withval; do 8217 IFS=$lt_save_ifs 8218 if test "X$lt_pkg" = "X$lt_p"; then 8219 pic_mode=yes 8220 fi 8221 done 8222 IFS=$lt_save_ifs 8223 ;; 8224 esac 8225else 8226 pic_mode=default 8227fi 8228 8229 8230 8231 8232 8233 8234 8235 8236 # Check whether --enable-fast-install was given. 8237if test "${enable_fast_install+set}" = set; then : 8238 enableval=$enable_fast_install; p=${PACKAGE-default} 8239 case $enableval in 8240 yes) enable_fast_install=yes ;; 8241 no) enable_fast_install=no ;; 8242 *) 8243 enable_fast_install=no 8244 # Look at the argument we got. We use all the common list separators. 8245 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8246 for pkg in $enableval; do 8247 IFS=$lt_save_ifs 8248 if test "X$pkg" = "X$p"; then 8249 enable_fast_install=yes 8250 fi 8251 done 8252 IFS=$lt_save_ifs 8253 ;; 8254 esac 8255else 8256 enable_fast_install=yes 8257fi 8258 8259 8260 8261 8262 8263 8264 8265 8266 shared_archive_member_spec= 8267case $host,$enable_shared in 8268power*-*-aix[5-9]*,yes) 8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8270$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8271 8272# Check whether --with-aix-soname was given. 8273if test "${with_aix_soname+set}" = set; then : 8274 withval=$with_aix_soname; case $withval in 8275 aix|svr4|both) 8276 ;; 8277 *) 8278 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8279 ;; 8280 esac 8281 lt_cv_with_aix_soname=$with_aix_soname 8282else 8283 if ${lt_cv_with_aix_soname+:} false; then : 8284 $as_echo_n "(cached) " >&6 8285else 8286 lt_cv_with_aix_soname=aix 8287fi 8288 8289 with_aix_soname=$lt_cv_with_aix_soname 8290fi 8291 8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8293$as_echo "$with_aix_soname" >&6; } 8294 if test aix != "$with_aix_soname"; then 8295 # For the AIX way of multilib, we name the shared archive member 8296 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8297 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8298 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8299 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8300 if test 64 = "${OBJECT_MODE-32}"; then 8301 shared_archive_member_spec=shr_64 8302 else 8303 shared_archive_member_spec=shr 8304 fi 8305 fi 8306 ;; 8307*) 8308 with_aix_soname=aix 8309 ;; 8310esac 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321# This can be used to rebuild libtool when needed 8322LIBTOOL_DEPS=$ltmain 8323 8324# Always use our own libtool. 8325LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356test -z "$LN_S" && LN_S="ln -s" 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371if test -n "${ZSH_VERSION+set}"; then 8372 setopt NO_GLOB_SUBST 8373fi 8374 8375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8376$as_echo_n "checking for objdir... " >&6; } 8377if ${lt_cv_objdir+:} false; then : 8378 $as_echo_n "(cached) " >&6 8379else 8380 rm -f .libs 2>/dev/null 8381mkdir .libs 2>/dev/null 8382if test -d .libs; then 8383 lt_cv_objdir=.libs 8384else 8385 # MS-DOS does not allow filenames that begin with a dot. 8386 lt_cv_objdir=_libs 8387fi 8388rmdir .libs 2>/dev/null 8389fi 8390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8391$as_echo "$lt_cv_objdir" >&6; } 8392objdir=$lt_cv_objdir 8393 8394 8395 8396 8397 8398cat >>confdefs.h <<_ACEOF 8399#define LT_OBJDIR "$lt_cv_objdir/" 8400_ACEOF 8401 8402 8403 8404 8405case $host_os in 8406aix3*) 8407 # AIX sometimes has problems with the GCC collect2 program. For some 8408 # reason, if we set the COLLECT_NAMES environment variable, the problems 8409 # vanish in a puff of smoke. 8410 if test set != "${COLLECT_NAMES+set}"; then 8411 COLLECT_NAMES= 8412 export COLLECT_NAMES 8413 fi 8414 ;; 8415esac 8416 8417# Global variables: 8418ofile=libtool 8419can_build_shared=yes 8420 8421# All known linkers require a '.a' archive for static linking (except MSVC, 8422# which needs '.lib'). 8423libext=a 8424 8425with_gnu_ld=$lt_cv_prog_gnu_ld 8426 8427old_CC=$CC 8428old_CFLAGS=$CFLAGS 8429 8430# Set sane defaults for various variables 8431test -z "$CC" && CC=cc 8432test -z "$LTCC" && LTCC=$CC 8433test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8434test -z "$LD" && LD=ld 8435test -z "$ac_objext" && ac_objext=o 8436 8437func_cc_basename $compiler 8438cc_basename=$func_cc_basename_result 8439 8440 8441# Only perform the check for file, if the check method requires it 8442test -z "$MAGIC_CMD" && MAGIC_CMD=file 8443case $deplibs_check_method in 8444file_magic*) 8445 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8447$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8448if ${lt_cv_path_MAGIC_CMD+:} false; then : 8449 $as_echo_n "(cached) " >&6 8450else 8451 case $MAGIC_CMD in 8452[\\/*] | ?:[\\/]*) 8453 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8454 ;; 8455*) 8456 lt_save_MAGIC_CMD=$MAGIC_CMD 8457 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8458 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8459 for ac_dir in $ac_dummy; do 8460 IFS=$lt_save_ifs 8461 test -z "$ac_dir" && ac_dir=. 8462 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8463 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8464 if test -n "$file_magic_test_file"; then 8465 case $deplibs_check_method in 8466 "file_magic "*) 8467 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8468 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8469 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8470 $EGREP "$file_magic_regex" > /dev/null; then 8471 : 8472 else 8473 cat <<_LT_EOF 1>&2 8474 8475*** Warning: the command libtool uses to detect shared libraries, 8476*** $file_magic_cmd, produces output that libtool cannot recognize. 8477*** The result is that libtool may fail to recognize shared libraries 8478*** as such. This will affect the creation of libtool libraries that 8479*** depend on shared libraries, but programs linked with such libtool 8480*** libraries will work regardless of this problem. Nevertheless, you 8481*** may want to report the problem to your system manager and/or to 8482*** bug-libtool@gnu.org 8483 8484_LT_EOF 8485 fi ;; 8486 esac 8487 fi 8488 break 8489 fi 8490 done 8491 IFS=$lt_save_ifs 8492 MAGIC_CMD=$lt_save_MAGIC_CMD 8493 ;; 8494esac 8495fi 8496 8497MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8498if test -n "$MAGIC_CMD"; then 8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8500$as_echo "$MAGIC_CMD" >&6; } 8501else 8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8503$as_echo "no" >&6; } 8504fi 8505 8506 8507 8508 8509 8510if test -z "$lt_cv_path_MAGIC_CMD"; then 8511 if test -n "$ac_tool_prefix"; then 8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8513$as_echo_n "checking for file... " >&6; } 8514if ${lt_cv_path_MAGIC_CMD+:} false; then : 8515 $as_echo_n "(cached) " >&6 8516else 8517 case $MAGIC_CMD in 8518[\\/*] | ?:[\\/]*) 8519 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8520 ;; 8521*) 8522 lt_save_MAGIC_CMD=$MAGIC_CMD 8523 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8524 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8525 for ac_dir in $ac_dummy; do 8526 IFS=$lt_save_ifs 8527 test -z "$ac_dir" && ac_dir=. 8528 if test -f "$ac_dir/file"; then 8529 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8530 if test -n "$file_magic_test_file"; then 8531 case $deplibs_check_method in 8532 "file_magic "*) 8533 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8534 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8535 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8536 $EGREP "$file_magic_regex" > /dev/null; then 8537 : 8538 else 8539 cat <<_LT_EOF 1>&2 8540 8541*** Warning: the command libtool uses to detect shared libraries, 8542*** $file_magic_cmd, produces output that libtool cannot recognize. 8543*** The result is that libtool may fail to recognize shared libraries 8544*** as such. This will affect the creation of libtool libraries that 8545*** depend on shared libraries, but programs linked with such libtool 8546*** libraries will work regardless of this problem. Nevertheless, you 8547*** may want to report the problem to your system manager and/or to 8548*** bug-libtool@gnu.org 8549 8550_LT_EOF 8551 fi ;; 8552 esac 8553 fi 8554 break 8555 fi 8556 done 8557 IFS=$lt_save_ifs 8558 MAGIC_CMD=$lt_save_MAGIC_CMD 8559 ;; 8560esac 8561fi 8562 8563MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8564if test -n "$MAGIC_CMD"; then 8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8566$as_echo "$MAGIC_CMD" >&6; } 8567else 8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8569$as_echo "no" >&6; } 8570fi 8571 8572 8573 else 8574 MAGIC_CMD=: 8575 fi 8576fi 8577 8578 fi 8579 ;; 8580esac 8581 8582# Use C for the default configuration in the libtool script 8583 8584lt_save_CC=$CC 8585ac_ext=c 8586ac_cpp='$CPP $CPPFLAGS' 8587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8589ac_compiler_gnu=$ac_cv_c_compiler_gnu 8590 8591 8592# Source file extension for C test sources. 8593ac_ext=c 8594 8595# Object file extension for compiled C test sources. 8596objext=o 8597objext=$objext 8598 8599# Code to be used in simple compile tests 8600lt_simple_compile_test_code="int some_variable = 0;" 8601 8602# Code to be used in simple link tests 8603lt_simple_link_test_code='int main(){return(0);}' 8604 8605 8606 8607 8608 8609 8610 8611# If no C compiler was specified, use CC. 8612LTCC=${LTCC-"$CC"} 8613 8614# If no C compiler flags were specified, use CFLAGS. 8615LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8616 8617# Allow CC to be a program name with arguments. 8618compiler=$CC 8619 8620# Save the default compiler, since it gets overwritten when the other 8621# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8622compiler_DEFAULT=$CC 8623 8624# save warnings/boilerplate of simple test code 8625ac_outfile=conftest.$ac_objext 8626echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8627eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8628_lt_compiler_boilerplate=`cat conftest.err` 8629$RM conftest* 8630 8631ac_outfile=conftest.$ac_objext 8632echo "$lt_simple_link_test_code" >conftest.$ac_ext 8633eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8634_lt_linker_boilerplate=`cat conftest.err` 8635$RM -r conftest* 8636 8637 8638## CAVEAT EMPTOR: 8639## There is no encapsulation within the following macros, do not change 8640## the running order or otherwise move them around unless you know exactly 8641## what you are doing... 8642if test -n "$compiler"; then 8643 8644lt_prog_compiler_no_builtin_flag= 8645 8646if test yes = "$GCC"; then 8647 case $cc_basename in 8648 nvcc*) 8649 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8650 *) 8651 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8652 esac 8653 8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8655$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8656if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8657 $as_echo_n "(cached) " >&6 8658else 8659 lt_cv_prog_compiler_rtti_exceptions=no 8660 ac_outfile=conftest.$ac_objext 8661 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8662 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8663 # Insert the option either (1) after the last *FLAGS variable, or 8664 # (2) before a word containing "conftest.", or (3) at the end. 8665 # Note that $ac_compile itself does not contain backslashes and begins 8666 # with a dollar sign (not a hyphen), so the echo should work correctly. 8667 # The option is referenced via a variable to avoid confusing sed. 8668 lt_compile=`echo "$ac_compile" | $SED \ 8669 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8670 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8671 -e 's:$: $lt_compiler_flag:'` 8672 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8673 (eval "$lt_compile" 2>conftest.err) 8674 ac_status=$? 8675 cat conftest.err >&5 8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8677 if (exit $ac_status) && test -s "$ac_outfile"; then 8678 # The compiler can only warn and ignore the option if not recognized 8679 # So say no if there are warnings other than the usual output. 8680 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8681 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8682 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8683 lt_cv_prog_compiler_rtti_exceptions=yes 8684 fi 8685 fi 8686 $RM conftest* 8687 8688fi 8689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8690$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8691 8692if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8693 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8694else 8695 : 8696fi 8697 8698fi 8699 8700 8701 8702 8703 8704 8705 lt_prog_compiler_wl= 8706lt_prog_compiler_pic= 8707lt_prog_compiler_static= 8708 8709 8710 if test yes = "$GCC"; then 8711 lt_prog_compiler_wl='-Wl,' 8712 lt_prog_compiler_static='-static' 8713 8714 case $host_os in 8715 aix*) 8716 # All AIX code is PIC. 8717 if test ia64 = "$host_cpu"; then 8718 # AIX 5 now supports IA64 processor 8719 lt_prog_compiler_static='-Bstatic' 8720 fi 8721 lt_prog_compiler_pic='-fPIC' 8722 ;; 8723 8724 amigaos*) 8725 case $host_cpu in 8726 powerpc) 8727 # see comment about AmigaOS4 .so support 8728 lt_prog_compiler_pic='-fPIC' 8729 ;; 8730 m68k) 8731 # FIXME: we need at least 68020 code to build shared libraries, but 8732 # adding the '-m68020' flag to GCC prevents building anything better, 8733 # like '-m68040'. 8734 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8735 ;; 8736 esac 8737 ;; 8738 8739 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8740 # PIC is the default for these OSes. 8741 ;; 8742 8743 mingw* | cygwin* | pw32* | os2* | cegcc*) 8744 # This hack is so that the source file can tell whether it is being 8745 # built for inclusion in a dll (and should export symbols for example). 8746 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8747 # (--disable-auto-import) libraries 8748 lt_prog_compiler_pic='-DDLL_EXPORT' 8749 case $host_os in 8750 os2*) 8751 lt_prog_compiler_static='$wl-static' 8752 ;; 8753 esac 8754 ;; 8755 8756 darwin* | rhapsody*) 8757 # PIC is the default on this platform 8758 # Common symbols not allowed in MH_DYLIB files 8759 lt_prog_compiler_pic='-fno-common' 8760 ;; 8761 8762 haiku*) 8763 # PIC is the default for Haiku. 8764 # The "-static" flag exists, but is broken. 8765 lt_prog_compiler_static= 8766 ;; 8767 8768 hpux*) 8769 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8770 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8771 # sets the default TLS model and affects inlining. 8772 case $host_cpu in 8773 hppa*64*) 8774 # +Z the default 8775 ;; 8776 *) 8777 lt_prog_compiler_pic='-fPIC' 8778 ;; 8779 esac 8780 ;; 8781 8782 interix[3-9]*) 8783 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8784 # Instead, we relocate shared libraries at runtime. 8785 ;; 8786 8787 msdosdjgpp*) 8788 # Just because we use GCC doesn't mean we suddenly get shared libraries 8789 # on systems that don't support them. 8790 lt_prog_compiler_can_build_shared=no 8791 enable_shared=no 8792 ;; 8793 8794 *nto* | *qnx*) 8795 # QNX uses GNU C++, but need to define -shared option too, otherwise 8796 # it will coredump. 8797 lt_prog_compiler_pic='-fPIC -shared' 8798 ;; 8799 8800 sysv4*MP*) 8801 if test -d /usr/nec; then 8802 lt_prog_compiler_pic=-Kconform_pic 8803 fi 8804 ;; 8805 8806 *) 8807 lt_prog_compiler_pic='-fPIC' 8808 ;; 8809 esac 8810 8811 case $cc_basename in 8812 nvcc*) # Cuda Compiler Driver 2.2 8813 lt_prog_compiler_wl='-Xlinker ' 8814 if test -n "$lt_prog_compiler_pic"; then 8815 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8816 fi 8817 ;; 8818 esac 8819 else 8820 # PORTME Check for flag to pass linker flags through the system compiler. 8821 case $host_os in 8822 aix*) 8823 lt_prog_compiler_wl='-Wl,' 8824 if test ia64 = "$host_cpu"; then 8825 # AIX 5 now supports IA64 processor 8826 lt_prog_compiler_static='-Bstatic' 8827 else 8828 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8829 fi 8830 ;; 8831 8832 darwin* | rhapsody*) 8833 # PIC is the default on this platform 8834 # Common symbols not allowed in MH_DYLIB files 8835 lt_prog_compiler_pic='-fno-common' 8836 case $cc_basename in 8837 nagfor*) 8838 # NAG Fortran compiler 8839 lt_prog_compiler_wl='-Wl,-Wl,,' 8840 lt_prog_compiler_pic='-PIC' 8841 lt_prog_compiler_static='-Bstatic' 8842 ;; 8843 esac 8844 ;; 8845 8846 mingw* | cygwin* | pw32* | os2* | cegcc*) 8847 # This hack is so that the source file can tell whether it is being 8848 # built for inclusion in a dll (and should export symbols for example). 8849 lt_prog_compiler_pic='-DDLL_EXPORT' 8850 case $host_os in 8851 os2*) 8852 lt_prog_compiler_static='$wl-static' 8853 ;; 8854 esac 8855 ;; 8856 8857 hpux9* | hpux10* | hpux11*) 8858 lt_prog_compiler_wl='-Wl,' 8859 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8860 # not for PA HP-UX. 8861 case $host_cpu in 8862 hppa*64*|ia64*) 8863 # +Z the default 8864 ;; 8865 *) 8866 lt_prog_compiler_pic='+Z' 8867 ;; 8868 esac 8869 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8870 lt_prog_compiler_static='$wl-a ${wl}archive' 8871 ;; 8872 8873 irix5* | irix6* | nonstopux*) 8874 lt_prog_compiler_wl='-Wl,' 8875 # PIC (with -KPIC) is the default. 8876 lt_prog_compiler_static='-non_shared' 8877 ;; 8878 8879 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8880 case $cc_basename in 8881 # old Intel for x86_64, which still supported -KPIC. 8882 ecc*) 8883 lt_prog_compiler_wl='-Wl,' 8884 lt_prog_compiler_pic='-KPIC' 8885 lt_prog_compiler_static='-static' 8886 ;; 8887 # icc used to be incompatible with GCC. 8888 # ICC 10 doesn't accept -KPIC any more. 8889 icc* | ifort*) 8890 lt_prog_compiler_wl='-Wl,' 8891 lt_prog_compiler_pic='-fPIC' 8892 lt_prog_compiler_static='-static' 8893 ;; 8894 # Lahey Fortran 8.1. 8895 lf95*) 8896 lt_prog_compiler_wl='-Wl,' 8897 lt_prog_compiler_pic='--shared' 8898 lt_prog_compiler_static='--static' 8899 ;; 8900 nagfor*) 8901 # NAG Fortran compiler 8902 lt_prog_compiler_wl='-Wl,-Wl,,' 8903 lt_prog_compiler_pic='-PIC' 8904 lt_prog_compiler_static='-Bstatic' 8905 ;; 8906 tcc*) 8907 # Fabrice Bellard et al's Tiny C Compiler 8908 lt_prog_compiler_wl='-Wl,' 8909 lt_prog_compiler_pic='-fPIC' 8910 lt_prog_compiler_static='-static' 8911 ;; 8912 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8913 # Portland Group compilers (*not* the Pentium gcc compiler, 8914 # which looks to be a dead project) 8915 lt_prog_compiler_wl='-Wl,' 8916 lt_prog_compiler_pic='-fpic' 8917 lt_prog_compiler_static='-Bstatic' 8918 ;; 8919 ccc*) 8920 lt_prog_compiler_wl='-Wl,' 8921 # All Alpha code is PIC. 8922 lt_prog_compiler_static='-non_shared' 8923 ;; 8924 xl* | bgxl* | bgf* | mpixl*) 8925 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8926 lt_prog_compiler_wl='-Wl,' 8927 lt_prog_compiler_pic='-qpic' 8928 lt_prog_compiler_static='-qstaticlink' 8929 ;; 8930 *) 8931 case `$CC -V 2>&1 | sed 5q` in 8932 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8933 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8934 lt_prog_compiler_pic='-KPIC' 8935 lt_prog_compiler_static='-Bstatic' 8936 lt_prog_compiler_wl='' 8937 ;; 8938 *Sun\ F* | *Sun*Fortran*) 8939 lt_prog_compiler_pic='-KPIC' 8940 lt_prog_compiler_static='-Bstatic' 8941 lt_prog_compiler_wl='-Qoption ld ' 8942 ;; 8943 *Sun\ C*) 8944 # Sun C 5.9 8945 lt_prog_compiler_pic='-KPIC' 8946 lt_prog_compiler_static='-Bstatic' 8947 lt_prog_compiler_wl='-Wl,' 8948 ;; 8949 *Intel*\ [CF]*Compiler*) 8950 lt_prog_compiler_wl='-Wl,' 8951 lt_prog_compiler_pic='-fPIC' 8952 lt_prog_compiler_static='-static' 8953 ;; 8954 *Portland\ Group*) 8955 lt_prog_compiler_wl='-Wl,' 8956 lt_prog_compiler_pic='-fpic' 8957 lt_prog_compiler_static='-Bstatic' 8958 ;; 8959 esac 8960 ;; 8961 esac 8962 ;; 8963 8964 newsos6) 8965 lt_prog_compiler_pic='-KPIC' 8966 lt_prog_compiler_static='-Bstatic' 8967 ;; 8968 8969 *nto* | *qnx*) 8970 # QNX uses GNU C++, but need to define -shared option too, otherwise 8971 # it will coredump. 8972 lt_prog_compiler_pic='-fPIC -shared' 8973 ;; 8974 8975 osf3* | osf4* | osf5*) 8976 lt_prog_compiler_wl='-Wl,' 8977 # All OSF/1 code is PIC. 8978 lt_prog_compiler_static='-non_shared' 8979 ;; 8980 8981 rdos*) 8982 lt_prog_compiler_static='-non_shared' 8983 ;; 8984 8985 solaris*) 8986 lt_prog_compiler_pic='-KPIC' 8987 lt_prog_compiler_static='-Bstatic' 8988 case $cc_basename in 8989 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8990 lt_prog_compiler_wl='-Qoption ld ';; 8991 *) 8992 lt_prog_compiler_wl='-Wl,';; 8993 esac 8994 ;; 8995 8996 sunos4*) 8997 lt_prog_compiler_wl='-Qoption ld ' 8998 lt_prog_compiler_pic='-PIC' 8999 lt_prog_compiler_static='-Bstatic' 9000 ;; 9001 9002 sysv4 | sysv4.2uw2* | sysv4.3*) 9003 lt_prog_compiler_wl='-Wl,' 9004 lt_prog_compiler_pic='-KPIC' 9005 lt_prog_compiler_static='-Bstatic' 9006 ;; 9007 9008 sysv4*MP*) 9009 if test -d /usr/nec; then 9010 lt_prog_compiler_pic='-Kconform_pic' 9011 lt_prog_compiler_static='-Bstatic' 9012 fi 9013 ;; 9014 9015 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9016 lt_prog_compiler_wl='-Wl,' 9017 lt_prog_compiler_pic='-KPIC' 9018 lt_prog_compiler_static='-Bstatic' 9019 ;; 9020 9021 unicos*) 9022 lt_prog_compiler_wl='-Wl,' 9023 lt_prog_compiler_can_build_shared=no 9024 ;; 9025 9026 uts4*) 9027 lt_prog_compiler_pic='-pic' 9028 lt_prog_compiler_static='-Bstatic' 9029 ;; 9030 9031 *) 9032 lt_prog_compiler_can_build_shared=no 9033 ;; 9034 esac 9035 fi 9036 9037case $host_os in 9038 # For platforms that do not support PIC, -DPIC is meaningless: 9039 *djgpp*) 9040 lt_prog_compiler_pic= 9041 ;; 9042 *) 9043 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9044 ;; 9045esac 9046 9047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9048$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9049if ${lt_cv_prog_compiler_pic+:} false; then : 9050 $as_echo_n "(cached) " >&6 9051else 9052 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9053fi 9054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9055$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9056lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9057 9058# 9059# Check to make sure the PIC flag actually works. 9060# 9061if test -n "$lt_prog_compiler_pic"; then 9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9063$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9064if ${lt_cv_prog_compiler_pic_works+:} false; then : 9065 $as_echo_n "(cached) " >&6 9066else 9067 lt_cv_prog_compiler_pic_works=no 9068 ac_outfile=conftest.$ac_objext 9069 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9070 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9071 # Insert the option either (1) after the last *FLAGS variable, or 9072 # (2) before a word containing "conftest.", or (3) at the end. 9073 # Note that $ac_compile itself does not contain backslashes and begins 9074 # with a dollar sign (not a hyphen), so the echo should work correctly. 9075 # The option is referenced via a variable to avoid confusing sed. 9076 lt_compile=`echo "$ac_compile" | $SED \ 9077 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9078 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9079 -e 's:$: $lt_compiler_flag:'` 9080 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9081 (eval "$lt_compile" 2>conftest.err) 9082 ac_status=$? 9083 cat conftest.err >&5 9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9085 if (exit $ac_status) && test -s "$ac_outfile"; then 9086 # The compiler can only warn and ignore the option if not recognized 9087 # So say no if there are warnings other than the usual output. 9088 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9089 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9090 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9091 lt_cv_prog_compiler_pic_works=yes 9092 fi 9093 fi 9094 $RM conftest* 9095 9096fi 9097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9098$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9099 9100if test yes = "$lt_cv_prog_compiler_pic_works"; then 9101 case $lt_prog_compiler_pic in 9102 "" | " "*) ;; 9103 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9104 esac 9105else 9106 lt_prog_compiler_pic= 9107 lt_prog_compiler_can_build_shared=no 9108fi 9109 9110fi 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122# 9123# Check to make sure the static flag actually works. 9124# 9125wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9127$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9128if ${lt_cv_prog_compiler_static_works+:} false; then : 9129 $as_echo_n "(cached) " >&6 9130else 9131 lt_cv_prog_compiler_static_works=no 9132 save_LDFLAGS=$LDFLAGS 9133 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9134 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9135 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9136 # The linker can only warn and ignore the option if not recognized 9137 # So say no if there are warnings 9138 if test -s conftest.err; then 9139 # Append any errors to the config.log. 9140 cat conftest.err 1>&5 9141 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9142 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9143 if diff conftest.exp conftest.er2 >/dev/null; then 9144 lt_cv_prog_compiler_static_works=yes 9145 fi 9146 else 9147 lt_cv_prog_compiler_static_works=yes 9148 fi 9149 fi 9150 $RM -r conftest* 9151 LDFLAGS=$save_LDFLAGS 9152 9153fi 9154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9155$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9156 9157if test yes = "$lt_cv_prog_compiler_static_works"; then 9158 : 9159else 9160 lt_prog_compiler_static= 9161fi 9162 9163 9164 9165 9166 9167 9168 9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9170$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9171if ${lt_cv_prog_compiler_c_o+:} false; then : 9172 $as_echo_n "(cached) " >&6 9173else 9174 lt_cv_prog_compiler_c_o=no 9175 $RM -r conftest 2>/dev/null 9176 mkdir conftest 9177 cd conftest 9178 mkdir out 9179 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9180 9181 lt_compiler_flag="-o out/conftest2.$ac_objext" 9182 # Insert the option either (1) after the last *FLAGS variable, or 9183 # (2) before a word containing "conftest.", or (3) at the end. 9184 # Note that $ac_compile itself does not contain backslashes and begins 9185 # with a dollar sign (not a hyphen), so the echo should work correctly. 9186 lt_compile=`echo "$ac_compile" | $SED \ 9187 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9188 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9189 -e 's:$: $lt_compiler_flag:'` 9190 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9191 (eval "$lt_compile" 2>out/conftest.err) 9192 ac_status=$? 9193 cat out/conftest.err >&5 9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9195 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9196 then 9197 # The compiler can only warn and ignore the option if not recognized 9198 # So say no if there are warnings 9199 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9200 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9201 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9202 lt_cv_prog_compiler_c_o=yes 9203 fi 9204 fi 9205 chmod u+w . 2>&5 9206 $RM conftest* 9207 # SGI C++ compiler will create directory out/ii_files/ for 9208 # template instantiation 9209 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9210 $RM out/* && rmdir out 9211 cd .. 9212 $RM -r conftest 9213 $RM conftest* 9214 9215fi 9216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9217$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9218 9219 9220 9221 9222 9223 9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9225$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9226if ${lt_cv_prog_compiler_c_o+:} false; then : 9227 $as_echo_n "(cached) " >&6 9228else 9229 lt_cv_prog_compiler_c_o=no 9230 $RM -r conftest 2>/dev/null 9231 mkdir conftest 9232 cd conftest 9233 mkdir out 9234 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9235 9236 lt_compiler_flag="-o out/conftest2.$ac_objext" 9237 # Insert the option either (1) after the last *FLAGS variable, or 9238 # (2) before a word containing "conftest.", or (3) at the end. 9239 # Note that $ac_compile itself does not contain backslashes and begins 9240 # with a dollar sign (not a hyphen), so the echo should work correctly. 9241 lt_compile=`echo "$ac_compile" | $SED \ 9242 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9243 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9244 -e 's:$: $lt_compiler_flag:'` 9245 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9246 (eval "$lt_compile" 2>out/conftest.err) 9247 ac_status=$? 9248 cat out/conftest.err >&5 9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9250 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9251 then 9252 # The compiler can only warn and ignore the option if not recognized 9253 # So say no if there are warnings 9254 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9255 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9256 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9257 lt_cv_prog_compiler_c_o=yes 9258 fi 9259 fi 9260 chmod u+w . 2>&5 9261 $RM conftest* 9262 # SGI C++ compiler will create directory out/ii_files/ for 9263 # template instantiation 9264 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9265 $RM out/* && rmdir out 9266 cd .. 9267 $RM -r conftest 9268 $RM conftest* 9269 9270fi 9271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9272$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9273 9274 9275 9276 9277hard_links=nottested 9278if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9279 # do not overwrite the value of need_locks provided by the user 9280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9281$as_echo_n "checking if we can lock with hard links... " >&6; } 9282 hard_links=yes 9283 $RM conftest* 9284 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9285 touch conftest.a 9286 ln conftest.a conftest.b 2>&5 || hard_links=no 9287 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9289$as_echo "$hard_links" >&6; } 9290 if test no = "$hard_links"; then 9291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9292$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9293 need_locks=warn 9294 fi 9295else 9296 need_locks=no 9297fi 9298 9299 9300 9301 9302 9303 9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9305$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9306 9307 runpath_var= 9308 allow_undefined_flag= 9309 always_export_symbols=no 9310 archive_cmds= 9311 archive_expsym_cmds= 9312 compiler_needs_object=no 9313 enable_shared_with_static_runtimes=no 9314 export_dynamic_flag_spec= 9315 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9316 hardcode_automatic=no 9317 hardcode_direct=no 9318 hardcode_direct_absolute=no 9319 hardcode_libdir_flag_spec= 9320 hardcode_libdir_separator= 9321 hardcode_minus_L=no 9322 hardcode_shlibpath_var=unsupported 9323 inherit_rpath=no 9324 link_all_deplibs=unknown 9325 module_cmds= 9326 module_expsym_cmds= 9327 old_archive_from_new_cmds= 9328 old_archive_from_expsyms_cmds= 9329 thread_safe_flag_spec= 9330 whole_archive_flag_spec= 9331 # include_expsyms should be a list of space-separated symbols to be *always* 9332 # included in the symbol list 9333 include_expsyms= 9334 # exclude_expsyms can be an extended regexp of symbols to exclude 9335 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9336 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9337 # as well as any symbol that contains 'd'. 9338 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9339 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9340 # platforms (ab)use it in PIC code, but their linkers get confused if 9341 # the symbol is explicitly referenced. Since portable code cannot 9342 # rely on this symbol name, it's probably fine to never include it in 9343 # preloaded symbol tables. 9344 # Exclude shared library initialization/finalization symbols. 9345 extract_expsyms_cmds= 9346 9347 case $host_os in 9348 cygwin* | mingw* | pw32* | cegcc*) 9349 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9350 # When not using gcc, we currently assume that we are using 9351 # Microsoft Visual C++. 9352 if test yes != "$GCC"; then 9353 with_gnu_ld=no 9354 fi 9355 ;; 9356 interix*) 9357 # we just hope/assume this is gcc and not c89 (= MSVC++) 9358 with_gnu_ld=yes 9359 ;; 9360 openbsd* | bitrig*) 9361 with_gnu_ld=no 9362 ;; 9363 linux* | k*bsd*-gnu | gnu*) 9364 link_all_deplibs=no 9365 ;; 9366 esac 9367 9368 ld_shlibs=yes 9369 9370 # On some targets, GNU ld is compatible enough with the native linker 9371 # that we're better off using the native interface for both. 9372 lt_use_gnu_ld_interface=no 9373 if test yes = "$with_gnu_ld"; then 9374 case $host_os in 9375 aix*) 9376 # The AIX port of GNU ld has always aspired to compatibility 9377 # with the native linker. However, as the warning in the GNU ld 9378 # block says, versions before 2.19.5* couldn't really create working 9379 # shared libraries, regardless of the interface used. 9380 case `$LD -v 2>&1` in 9381 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9382 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9383 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9384 *) 9385 lt_use_gnu_ld_interface=yes 9386 ;; 9387 esac 9388 ;; 9389 *) 9390 lt_use_gnu_ld_interface=yes 9391 ;; 9392 esac 9393 fi 9394 9395 if test yes = "$lt_use_gnu_ld_interface"; then 9396 # If archive_cmds runs LD, not CC, wlarc should be empty 9397 wlarc='$wl' 9398 9399 # Set some defaults for GNU ld with shared library support. These 9400 # are reset later if shared libraries are not supported. Putting them 9401 # here allows them to be overridden if necessary. 9402 runpath_var=LD_RUN_PATH 9403 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9404 export_dynamic_flag_spec='$wl--export-dynamic' 9405 # ancient GNU ld didn't support --whole-archive et. al. 9406 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9407 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9408 else 9409 whole_archive_flag_spec= 9410 fi 9411 supports_anon_versioning=no 9412 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9413 *GNU\ gold*) supports_anon_versioning=yes ;; 9414 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9415 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9416 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9417 *\ 2.11.*) ;; # other 2.11 versions 9418 *) supports_anon_versioning=yes ;; 9419 esac 9420 9421 # See if GNU ld supports shared libraries. 9422 case $host_os in 9423 aix[3-9]*) 9424 # On AIX/PPC, the GNU linker is very broken 9425 if test ia64 != "$host_cpu"; then 9426 ld_shlibs=no 9427 cat <<_LT_EOF 1>&2 9428 9429*** Warning: the GNU linker, at least up to release 2.19, is reported 9430*** to be unable to reliably create shared libraries on AIX. 9431*** Therefore, libtool is disabling shared libraries support. If you 9432*** really care for shared libraries, you may want to install binutils 9433*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9434*** You will then need to restart the configuration process. 9435 9436_LT_EOF 9437 fi 9438 ;; 9439 9440 amigaos*) 9441 case $host_cpu in 9442 powerpc) 9443 # see comment about AmigaOS4 .so support 9444 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9445 archive_expsym_cmds='' 9446 ;; 9447 m68k) 9448 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)' 9449 hardcode_libdir_flag_spec='-L$libdir' 9450 hardcode_minus_L=yes 9451 ;; 9452 esac 9453 ;; 9454 9455 beos*) 9456 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9457 allow_undefined_flag=unsupported 9458 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9459 # support --undefined. This deserves some investigation. FIXME 9460 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9461 else 9462 ld_shlibs=no 9463 fi 9464 ;; 9465 9466 cygwin* | mingw* | pw32* | cegcc*) 9467 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9468 # as there is no search path for DLLs. 9469 hardcode_libdir_flag_spec='-L$libdir' 9470 export_dynamic_flag_spec='$wl--export-all-symbols' 9471 allow_undefined_flag=unsupported 9472 always_export_symbols=no 9473 enable_shared_with_static_runtimes=yes 9474 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' 9475 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9476 9477 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9478 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9479 # If the export-symbols file already is a .def file, use it as 9480 # is; otherwise, prepend EXPORTS... 9481 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9482 cp $export_symbols $output_objdir/$soname.def; 9483 else 9484 echo EXPORTS > $output_objdir/$soname.def; 9485 cat $export_symbols >> $output_objdir/$soname.def; 9486 fi~ 9487 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9488 else 9489 ld_shlibs=no 9490 fi 9491 ;; 9492 9493 haiku*) 9494 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9495 link_all_deplibs=yes 9496 ;; 9497 9498 os2*) 9499 hardcode_libdir_flag_spec='-L$libdir' 9500 hardcode_minus_L=yes 9501 allow_undefined_flag=unsupported 9502 shrext_cmds=.dll 9503 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9504 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9505 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9506 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9507 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9508 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9509 emximp -o $lib $output_objdir/$libname.def' 9510 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9511 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9512 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9513 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9514 prefix_cmds="$SED"~ 9515 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9516 prefix_cmds="$prefix_cmds -e 1d"; 9517 fi~ 9518 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9519 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9520 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9521 emximp -o $lib $output_objdir/$libname.def' 9522 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9523 enable_shared_with_static_runtimes=yes 9524 ;; 9525 9526 interix[3-9]*) 9527 hardcode_direct=no 9528 hardcode_shlibpath_var=no 9529 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9530 export_dynamic_flag_spec='$wl-E' 9531 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9532 # Instead, shared libraries are loaded at an image base (0x10000000 by 9533 # default) and relocated if they conflict, which is a slow very memory 9534 # consuming and fragmenting process. To avoid this, we pick a random, 9535 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9536 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9537 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9538 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' 9539 ;; 9540 9541 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9542 tmp_diet=no 9543 if test linux-dietlibc = "$host_os"; then 9544 case $cc_basename in 9545 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9546 esac 9547 fi 9548 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9549 && test no = "$tmp_diet" 9550 then 9551 tmp_addflag=' $pic_flag' 9552 tmp_sharedflag='-shared' 9553 case $cc_basename,$host_cpu in 9554 pgcc*) # Portland Group C compiler 9555 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' 9556 tmp_addflag=' $pic_flag' 9557 ;; 9558 pgf77* | pgf90* | pgf95* | pgfortran*) 9559 # Portland Group f77 and f90 compilers 9560 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' 9561 tmp_addflag=' $pic_flag -Mnomain' ;; 9562 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9563 tmp_addflag=' -i_dynamic' ;; 9564 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9565 tmp_addflag=' -i_dynamic -nofor_main' ;; 9566 ifc* | ifort*) # Intel Fortran compiler 9567 tmp_addflag=' -nofor_main' ;; 9568 lf95*) # Lahey Fortran 8.1 9569 whole_archive_flag_spec= 9570 tmp_sharedflag='--shared' ;; 9571 nagfor*) # NAGFOR 5.3 9572 tmp_sharedflag='-Wl,-shared' ;; 9573 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9574 tmp_sharedflag='-qmkshrobj' 9575 tmp_addflag= ;; 9576 nvcc*) # Cuda Compiler Driver 2.2 9577 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' 9578 compiler_needs_object=yes 9579 ;; 9580 esac 9581 case `$CC -V 2>&1 | sed 5q` in 9582 *Sun\ C*) # Sun C 5.9 9583 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' 9584 compiler_needs_object=yes 9585 tmp_sharedflag='-G' ;; 9586 *Sun\ F*) # Sun Fortran 8.3 9587 tmp_sharedflag='-G' ;; 9588 esac 9589 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9590 9591 if test yes = "$supports_anon_versioning"; then 9592 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9593 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9594 echo "local: *; };" >> $output_objdir/$libname.ver~ 9595 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9596 fi 9597 9598 case $cc_basename in 9599 tcc*) 9600 export_dynamic_flag_spec='-rdynamic' 9601 ;; 9602 xlf* | bgf* | bgxlf* | mpixlf*) 9603 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9604 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9605 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9606 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9607 if test yes = "$supports_anon_versioning"; then 9608 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9609 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9610 echo "local: *; };" >> $output_objdir/$libname.ver~ 9611 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9612 fi 9613 ;; 9614 esac 9615 else 9616 ld_shlibs=no 9617 fi 9618 ;; 9619 9620 netbsd* | netbsdelf*-gnu) 9621 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9622 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9623 wlarc= 9624 else 9625 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9626 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9627 fi 9628 ;; 9629 9630 solaris*) 9631 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9632 ld_shlibs=no 9633 cat <<_LT_EOF 1>&2 9634 9635*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9636*** create shared libraries on Solaris systems. Therefore, libtool 9637*** is disabling shared libraries support. We urge you to upgrade GNU 9638*** binutils to release 2.9.1 or newer. Another option is to modify 9639*** your PATH or compiler configuration so that the native linker is 9640*** used, and then restart. 9641 9642_LT_EOF 9643 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9644 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9645 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9646 else 9647 ld_shlibs=no 9648 fi 9649 ;; 9650 9651 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9652 case `$LD -v 2>&1` in 9653 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9654 ld_shlibs=no 9655 cat <<_LT_EOF 1>&2 9656 9657*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9658*** reliably create shared libraries on SCO systems. Therefore, libtool 9659*** is disabling shared libraries support. We urge you to upgrade GNU 9660*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9661*** your PATH or compiler configuration so that the native linker is 9662*** used, and then restart. 9663 9664_LT_EOF 9665 ;; 9666 *) 9667 # For security reasons, it is highly recommended that you always 9668 # use absolute paths for naming shared libraries, and exclude the 9669 # DT_RUNPATH tag from executables and libraries. But doing so 9670 # requires that you compile everything twice, which is a pain. 9671 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9672 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9673 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9674 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9675 else 9676 ld_shlibs=no 9677 fi 9678 ;; 9679 esac 9680 ;; 9681 9682 sunos4*) 9683 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9684 wlarc= 9685 hardcode_direct=yes 9686 hardcode_shlibpath_var=no 9687 ;; 9688 9689 *) 9690 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9691 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9692 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9693 else 9694 ld_shlibs=no 9695 fi 9696 ;; 9697 esac 9698 9699 if test no = "$ld_shlibs"; then 9700 runpath_var= 9701 hardcode_libdir_flag_spec= 9702 export_dynamic_flag_spec= 9703 whole_archive_flag_spec= 9704 fi 9705 else 9706 # PORTME fill in a description of your system's linker (not GNU ld) 9707 case $host_os in 9708 aix3*) 9709 allow_undefined_flag=unsupported 9710 always_export_symbols=yes 9711 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' 9712 # Note: this linker hardcodes the directories in LIBPATH if there 9713 # are no directories specified by -L. 9714 hardcode_minus_L=yes 9715 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9716 # Neither direct hardcoding nor static linking is supported with a 9717 # broken collect2. 9718 hardcode_direct=unsupported 9719 fi 9720 ;; 9721 9722 aix[4-9]*) 9723 if test ia64 = "$host_cpu"; then 9724 # On IA64, the linker does run time linking by default, so we don't 9725 # have to do anything special. 9726 aix_use_runtimelinking=no 9727 exp_sym_flag='-Bexport' 9728 no_entry_flag= 9729 else 9730 # If we're using GNU nm, then we don't want the "-C" option. 9731 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9732 # Without the "-l" option, or with the "-B" option, AIX nm treats 9733 # weak defined symbols like other global defined symbols, whereas 9734 # GNU nm marks them as "W". 9735 # While the 'weak' keyword is ignored in the Export File, we need 9736 # it in the Import File for the 'aix-soname' feature, so we have 9737 # to replace the "-B" option with "-P" for AIX nm. 9738 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9739 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' 9740 else 9741 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' 9742 fi 9743 aix_use_runtimelinking=no 9744 9745 # Test if we are trying to use run time linking or normal 9746 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9747 # have runtime linking enabled, and use it for executables. 9748 # For shared libraries, we enable/disable runtime linking 9749 # depending on the kind of the shared library created - 9750 # when "with_aix_soname,aix_use_runtimelinking" is: 9751 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9752 # "aix,yes" lib.so shared, rtl:yes, for executables 9753 # lib.a static archive 9754 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9755 # lib.a(lib.so.V) shared, rtl:no, for executables 9756 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9757 # lib.a(lib.so.V) shared, rtl:no 9758 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9759 # lib.a static archive 9760 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9761 for ld_flag in $LDFLAGS; do 9762 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9763 aix_use_runtimelinking=yes 9764 break 9765 fi 9766 done 9767 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9768 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9769 # so we don't have lib.a shared libs to link our executables. 9770 # We have to force runtime linking in this case. 9771 aix_use_runtimelinking=yes 9772 LDFLAGS="$LDFLAGS -Wl,-brtl" 9773 fi 9774 ;; 9775 esac 9776 9777 exp_sym_flag='-bexport' 9778 no_entry_flag='-bnoentry' 9779 fi 9780 9781 # When large executables or shared objects are built, AIX ld can 9782 # have problems creating the table of contents. If linking a library 9783 # or program results in "error TOC overflow" add -mminimal-toc to 9784 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9785 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9786 9787 archive_cmds='' 9788 hardcode_direct=yes 9789 hardcode_direct_absolute=yes 9790 hardcode_libdir_separator=':' 9791 link_all_deplibs=yes 9792 file_list_spec='$wl-f,' 9793 case $with_aix_soname,$aix_use_runtimelinking in 9794 aix,*) ;; # traditional, no import file 9795 svr4,* | *,yes) # use import file 9796 # The Import File defines what to hardcode. 9797 hardcode_direct=no 9798 hardcode_direct_absolute=no 9799 ;; 9800 esac 9801 9802 if test yes = "$GCC"; then 9803 case $host_os in aix4.[012]|aix4.[012].*) 9804 # We only want to do this on AIX 4.2 and lower, the check 9805 # below for broken collect2 doesn't work under 4.3+ 9806 collect2name=`$CC -print-prog-name=collect2` 9807 if test -f "$collect2name" && 9808 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9809 then 9810 # We have reworked collect2 9811 : 9812 else 9813 # We have old collect2 9814 hardcode_direct=unsupported 9815 # It fails to find uninstalled libraries when the uninstalled 9816 # path is not listed in the libpath. Setting hardcode_minus_L 9817 # to unsupported forces relinking 9818 hardcode_minus_L=yes 9819 hardcode_libdir_flag_spec='-L$libdir' 9820 hardcode_libdir_separator= 9821 fi 9822 ;; 9823 esac 9824 shared_flag='-shared' 9825 if test yes = "$aix_use_runtimelinking"; then 9826 shared_flag="$shared_flag "'$wl-G' 9827 fi 9828 # Need to ensure runtime linking is disabled for the traditional 9829 # shared library, or the linker may eventually find shared libraries 9830 # /with/ Import File - we do not want to mix them. 9831 shared_flag_aix='-shared' 9832 shared_flag_svr4='-shared $wl-G' 9833 else 9834 # not using gcc 9835 if test ia64 = "$host_cpu"; then 9836 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9837 # chokes on -Wl,-G. The following line is correct: 9838 shared_flag='-G' 9839 else 9840 if test yes = "$aix_use_runtimelinking"; then 9841 shared_flag='$wl-G' 9842 else 9843 shared_flag='$wl-bM:SRE' 9844 fi 9845 shared_flag_aix='$wl-bM:SRE' 9846 shared_flag_svr4='$wl-G' 9847 fi 9848 fi 9849 9850 export_dynamic_flag_spec='$wl-bexpall' 9851 # It seems that -bexpall does not export symbols beginning with 9852 # underscore (_), so it is better to generate a list of symbols to export. 9853 always_export_symbols=yes 9854 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9855 # Warning - without using the other runtime loading flags (-brtl), 9856 # -berok will link without error, but may produce a broken library. 9857 allow_undefined_flag='-berok' 9858 # Determine the default libpath from the value encoded in an 9859 # empty executable. 9860 if test set = "${lt_cv_aix_libpath+set}"; then 9861 aix_libpath=$lt_cv_aix_libpath 9862else 9863 if ${lt_cv_aix_libpath_+:} false; then : 9864 $as_echo_n "(cached) " >&6 9865else 9866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9867/* end confdefs.h. */ 9868 9869int 9870main () 9871{ 9872 9873 ; 9874 return 0; 9875} 9876_ACEOF 9877if ac_fn_c_try_link "$LINENO"; then : 9878 9879 lt_aix_libpath_sed=' 9880 /Import File Strings/,/^$/ { 9881 /^0/ { 9882 s/^0 *\([^ ]*\) *$/\1/ 9883 p 9884 } 9885 }' 9886 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9887 # Check for a 64-bit object if we didn't find anything. 9888 if test -z "$lt_cv_aix_libpath_"; then 9889 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9890 fi 9891fi 9892rm -f core conftest.err conftest.$ac_objext \ 9893 conftest$ac_exeext conftest.$ac_ext 9894 if test -z "$lt_cv_aix_libpath_"; then 9895 lt_cv_aix_libpath_=/usr/lib:/lib 9896 fi 9897 9898fi 9899 9900 aix_libpath=$lt_cv_aix_libpath_ 9901fi 9902 9903 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9904 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 9905 else 9906 if test ia64 = "$host_cpu"; then 9907 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9908 allow_undefined_flag="-z nodefs" 9909 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" 9910 else 9911 # Determine the default libpath from the value encoded in an 9912 # empty executable. 9913 if test set = "${lt_cv_aix_libpath+set}"; then 9914 aix_libpath=$lt_cv_aix_libpath 9915else 9916 if ${lt_cv_aix_libpath_+:} false; then : 9917 $as_echo_n "(cached) " >&6 9918else 9919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9920/* end confdefs.h. */ 9921 9922int 9923main () 9924{ 9925 9926 ; 9927 return 0; 9928} 9929_ACEOF 9930if ac_fn_c_try_link "$LINENO"; then : 9931 9932 lt_aix_libpath_sed=' 9933 /Import File Strings/,/^$/ { 9934 /^0/ { 9935 s/^0 *\([^ ]*\) *$/\1/ 9936 p 9937 } 9938 }' 9939 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9940 # Check for a 64-bit object if we didn't find anything. 9941 if test -z "$lt_cv_aix_libpath_"; then 9942 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9943 fi 9944fi 9945rm -f core conftest.err conftest.$ac_objext \ 9946 conftest$ac_exeext conftest.$ac_ext 9947 if test -z "$lt_cv_aix_libpath_"; then 9948 lt_cv_aix_libpath_=/usr/lib:/lib 9949 fi 9950 9951fi 9952 9953 aix_libpath=$lt_cv_aix_libpath_ 9954fi 9955 9956 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9957 # Warning - without using the other run time loading flags, 9958 # -berok will link without error, but may produce a broken library. 9959 no_undefined_flag=' $wl-bernotok' 9960 allow_undefined_flag=' $wl-berok' 9961 if test yes = "$with_gnu_ld"; then 9962 # We only use this code for GNU lds that support --whole-archive. 9963 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9964 else 9965 # Exported symbols can be pulled into shared objects from archives 9966 whole_archive_flag_spec='$convenience' 9967 fi 9968 archive_cmds_need_lc=yes 9969 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9970 # -brtl affects multiple linker settings, -berok does not and is overridden later 9971 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9972 if test svr4 != "$with_aix_soname"; then 9973 # This is similar to how AIX traditionally builds its shared libraries. 9974 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' 9975 fi 9976 if test aix != "$with_aix_soname"; then 9977 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' 9978 else 9979 # used by -dlpreopen to get the symbols 9980 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9981 fi 9982 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9983 fi 9984 fi 9985 ;; 9986 9987 amigaos*) 9988 case $host_cpu in 9989 powerpc) 9990 # see comment about AmigaOS4 .so support 9991 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9992 archive_expsym_cmds='' 9993 ;; 9994 m68k) 9995 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)' 9996 hardcode_libdir_flag_spec='-L$libdir' 9997 hardcode_minus_L=yes 9998 ;; 9999 esac 10000 ;; 10001 10002 bsdi[45]*) 10003 export_dynamic_flag_spec=-rdynamic 10004 ;; 10005 10006 cygwin* | mingw* | pw32* | cegcc*) 10007 # When not using gcc, we currently assume that we are using 10008 # Microsoft Visual C++. 10009 # hardcode_libdir_flag_spec is actually meaningless, as there is 10010 # no search path for DLLs. 10011 case $cc_basename in 10012 cl*) 10013 # Native MSVC 10014 hardcode_libdir_flag_spec=' ' 10015 allow_undefined_flag=unsupported 10016 always_export_symbols=yes 10017 file_list_spec='@' 10018 # Tell ltmain to make .lib files, not .a files. 10019 libext=lib 10020 # Tell ltmain to make .dll files, not .so files. 10021 shrext_cmds=.dll 10022 # FIXME: Setting linknames here is a bad hack. 10023 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10024 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10025 cp "$export_symbols" "$output_objdir/$soname.def"; 10026 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10027 else 10028 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10029 fi~ 10030 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10031 linknames=' 10032 # The linker will not automatically build a static lib if we build a DLL. 10033 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10034 enable_shared_with_static_runtimes=yes 10035 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10036 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10037 # Don't use ranlib 10038 old_postinstall_cmds='chmod 644 $oldlib' 10039 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10040 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10041 case $lt_outputfile in 10042 *.exe|*.EXE) ;; 10043 *) 10044 lt_outputfile=$lt_outputfile.exe 10045 lt_tool_outputfile=$lt_tool_outputfile.exe 10046 ;; 10047 esac~ 10048 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10049 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10050 $RM "$lt_outputfile.manifest"; 10051 fi' 10052 ;; 10053 *) 10054 # Assume MSVC wrapper 10055 hardcode_libdir_flag_spec=' ' 10056 allow_undefined_flag=unsupported 10057 # Tell ltmain to make .lib files, not .a files. 10058 libext=lib 10059 # Tell ltmain to make .dll files, not .so files. 10060 shrext_cmds=.dll 10061 # FIXME: Setting linknames here is a bad hack. 10062 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10063 # The linker will automatically build a .lib file if we build a DLL. 10064 old_archive_from_new_cmds='true' 10065 # FIXME: Should let the user specify the lib program. 10066 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10067 enable_shared_with_static_runtimes=yes 10068 ;; 10069 esac 10070 ;; 10071 10072 darwin* | rhapsody*) 10073 10074 10075 archive_cmds_need_lc=no 10076 hardcode_direct=no 10077 hardcode_automatic=yes 10078 hardcode_shlibpath_var=unsupported 10079 if test yes = "$lt_cv_ld_force_load"; then 10080 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\"`' 10081 10082 else 10083 whole_archive_flag_spec='' 10084 fi 10085 link_all_deplibs=yes 10086 allow_undefined_flag=$_lt_dar_allow_undefined 10087 case $cc_basename in 10088 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10089 *) _lt_dar_can_shared=$GCC ;; 10090 esac 10091 if test yes = "$_lt_dar_can_shared"; then 10092 output_verbose_link_cmd=func_echo_all 10093 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10094 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10095 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" 10096 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" 10097 10098 else 10099 ld_shlibs=no 10100 fi 10101 10102 ;; 10103 10104 dgux*) 10105 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10106 hardcode_libdir_flag_spec='-L$libdir' 10107 hardcode_shlibpath_var=no 10108 ;; 10109 10110 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10111 # support. Future versions do this automatically, but an explicit c++rt0.o 10112 # does not break anything, and helps significantly (at the cost of a little 10113 # extra space). 10114 freebsd2.2*) 10115 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10116 hardcode_libdir_flag_spec='-R$libdir' 10117 hardcode_direct=yes 10118 hardcode_shlibpath_var=no 10119 ;; 10120 10121 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10122 freebsd2.*) 10123 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10124 hardcode_direct=yes 10125 hardcode_minus_L=yes 10126 hardcode_shlibpath_var=no 10127 ;; 10128 10129 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10130 freebsd* | dragonfly*) 10131 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10132 hardcode_libdir_flag_spec='-R$libdir' 10133 hardcode_direct=yes 10134 hardcode_shlibpath_var=no 10135 ;; 10136 10137 hpux9*) 10138 if test yes = "$GCC"; then 10139 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' 10140 else 10141 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' 10142 fi 10143 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10144 hardcode_libdir_separator=: 10145 hardcode_direct=yes 10146 10147 # hardcode_minus_L: Not really in the search PATH, 10148 # but as the default location of the library. 10149 hardcode_minus_L=yes 10150 export_dynamic_flag_spec='$wl-E' 10151 ;; 10152 10153 hpux10*) 10154 if test yes,no = "$GCC,$with_gnu_ld"; then 10155 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10156 else 10157 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10158 fi 10159 if test no = "$with_gnu_ld"; then 10160 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10161 hardcode_libdir_separator=: 10162 hardcode_direct=yes 10163 hardcode_direct_absolute=yes 10164 export_dynamic_flag_spec='$wl-E' 10165 # hardcode_minus_L: Not really in the search PATH, 10166 # but as the default location of the library. 10167 hardcode_minus_L=yes 10168 fi 10169 ;; 10170 10171 hpux11*) 10172 if test yes,no = "$GCC,$with_gnu_ld"; then 10173 case $host_cpu in 10174 hppa*64*) 10175 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10176 ;; 10177 ia64*) 10178 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10179 ;; 10180 *) 10181 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10182 ;; 10183 esac 10184 else 10185 case $host_cpu in 10186 hppa*64*) 10187 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10188 ;; 10189 ia64*) 10190 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10191 ;; 10192 *) 10193 10194 # Older versions of the 11.00 compiler do not understand -b yet 10195 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10197$as_echo_n "checking if $CC understands -b... " >&6; } 10198if ${lt_cv_prog_compiler__b+:} false; then : 10199 $as_echo_n "(cached) " >&6 10200else 10201 lt_cv_prog_compiler__b=no 10202 save_LDFLAGS=$LDFLAGS 10203 LDFLAGS="$LDFLAGS -b" 10204 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10205 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10206 # The linker can only warn and ignore the option if not recognized 10207 # So say no if there are warnings 10208 if test -s conftest.err; then 10209 # Append any errors to the config.log. 10210 cat conftest.err 1>&5 10211 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10212 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10213 if diff conftest.exp conftest.er2 >/dev/null; then 10214 lt_cv_prog_compiler__b=yes 10215 fi 10216 else 10217 lt_cv_prog_compiler__b=yes 10218 fi 10219 fi 10220 $RM -r conftest* 10221 LDFLAGS=$save_LDFLAGS 10222 10223fi 10224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10225$as_echo "$lt_cv_prog_compiler__b" >&6; } 10226 10227if test yes = "$lt_cv_prog_compiler__b"; then 10228 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10229else 10230 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10231fi 10232 10233 ;; 10234 esac 10235 fi 10236 if test no = "$with_gnu_ld"; then 10237 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10238 hardcode_libdir_separator=: 10239 10240 case $host_cpu in 10241 hppa*64*|ia64*) 10242 hardcode_direct=no 10243 hardcode_shlibpath_var=no 10244 ;; 10245 *) 10246 hardcode_direct=yes 10247 hardcode_direct_absolute=yes 10248 export_dynamic_flag_spec='$wl-E' 10249 10250 # hardcode_minus_L: Not really in the search PATH, 10251 # but as the default location of the library. 10252 hardcode_minus_L=yes 10253 ;; 10254 esac 10255 fi 10256 ;; 10257 10258 irix5* | irix6* | nonstopux*) 10259 if test yes = "$GCC"; then 10260 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' 10261 # Try to use the -exported_symbol ld option, if it does not 10262 # work, assume that -exports_file does not work either and 10263 # implicitly export all symbols. 10264 # This should be the same for all languages, so no per-tag cache variable. 10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10266$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10267if ${lt_cv_irix_exported_symbol+:} false; then : 10268 $as_echo_n "(cached) " >&6 10269else 10270 save_LDFLAGS=$LDFLAGS 10271 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10273/* end confdefs.h. */ 10274int foo (void) { return 0; } 10275_ACEOF 10276if ac_fn_c_try_link "$LINENO"; then : 10277 lt_cv_irix_exported_symbol=yes 10278else 10279 lt_cv_irix_exported_symbol=no 10280fi 10281rm -f core conftest.err conftest.$ac_objext \ 10282 conftest$ac_exeext conftest.$ac_ext 10283 LDFLAGS=$save_LDFLAGS 10284fi 10285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10286$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10287 if test yes = "$lt_cv_irix_exported_symbol"; then 10288 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' 10289 fi 10290 link_all_deplibs=no 10291 else 10292 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' 10293 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' 10294 fi 10295 archive_cmds_need_lc='no' 10296 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10297 hardcode_libdir_separator=: 10298 inherit_rpath=yes 10299 link_all_deplibs=yes 10300 ;; 10301 10302 linux*) 10303 case $cc_basename in 10304 tcc*) 10305 # Fabrice Bellard et al's Tiny C Compiler 10306 ld_shlibs=yes 10307 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10308 ;; 10309 esac 10310 ;; 10311 10312 netbsd* | netbsdelf*-gnu) 10313 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10314 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10315 else 10316 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10317 fi 10318 hardcode_libdir_flag_spec='-R$libdir' 10319 hardcode_direct=yes 10320 hardcode_shlibpath_var=no 10321 ;; 10322 10323 newsos6) 10324 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10325 hardcode_direct=yes 10326 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10327 hardcode_libdir_separator=: 10328 hardcode_shlibpath_var=no 10329 ;; 10330 10331 *nto* | *qnx*) 10332 ;; 10333 10334 openbsd* | bitrig*) 10335 if test -f /usr/libexec/ld.so; then 10336 hardcode_direct=yes 10337 hardcode_shlibpath_var=no 10338 hardcode_direct_absolute=yes 10339 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10340 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10341 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10342 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10343 export_dynamic_flag_spec='$wl-E' 10344 else 10345 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10346 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10347 fi 10348 else 10349 ld_shlibs=no 10350 fi 10351 ;; 10352 10353 os2*) 10354 hardcode_libdir_flag_spec='-L$libdir' 10355 hardcode_minus_L=yes 10356 allow_undefined_flag=unsupported 10357 shrext_cmds=.dll 10358 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10359 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10360 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10361 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10362 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10363 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10364 emximp -o $lib $output_objdir/$libname.def' 10365 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10366 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10367 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10368 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10369 prefix_cmds="$SED"~ 10370 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10371 prefix_cmds="$prefix_cmds -e 1d"; 10372 fi~ 10373 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10374 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10375 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10376 emximp -o $lib $output_objdir/$libname.def' 10377 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10378 enable_shared_with_static_runtimes=yes 10379 ;; 10380 10381 osf3*) 10382 if test yes = "$GCC"; then 10383 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10384 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' 10385 else 10386 allow_undefined_flag=' -expect_unresolved \*' 10387 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' 10388 fi 10389 archive_cmds_need_lc='no' 10390 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10391 hardcode_libdir_separator=: 10392 ;; 10393 10394 osf4* | osf5*) # as osf3* with the addition of -msym flag 10395 if test yes = "$GCC"; then 10396 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10397 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' 10398 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10399 else 10400 allow_undefined_flag=' -expect_unresolved \*' 10401 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' 10402 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~ 10403 $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' 10404 10405 # Both c and cxx compiler support -rpath directly 10406 hardcode_libdir_flag_spec='-rpath $libdir' 10407 fi 10408 archive_cmds_need_lc='no' 10409 hardcode_libdir_separator=: 10410 ;; 10411 10412 solaris*) 10413 no_undefined_flag=' -z defs' 10414 if test yes = "$GCC"; then 10415 wlarc='$wl' 10416 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10417 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10418 $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' 10419 else 10420 case `$CC -V 2>&1` in 10421 *"Compilers 5.0"*) 10422 wlarc='' 10423 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10424 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10425 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10426 ;; 10427 *) 10428 wlarc='$wl' 10429 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10430 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10431 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10432 ;; 10433 esac 10434 fi 10435 hardcode_libdir_flag_spec='-R$libdir' 10436 hardcode_shlibpath_var=no 10437 case $host_os in 10438 solaris2.[0-5] | solaris2.[0-5].*) ;; 10439 *) 10440 # The compiler driver will combine and reorder linker options, 10441 # but understands '-z linker_flag'. GCC discards it without '$wl', 10442 # but is careful enough not to reorder. 10443 # Supported since Solaris 2.6 (maybe 2.5.1?) 10444 if test yes = "$GCC"; then 10445 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10446 else 10447 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10448 fi 10449 ;; 10450 esac 10451 link_all_deplibs=yes 10452 ;; 10453 10454 sunos4*) 10455 if test sequent = "$host_vendor"; then 10456 # Use $CC to link under sequent, because it throws in some extra .o 10457 # files that make .init and .fini sections work. 10458 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10459 else 10460 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10461 fi 10462 hardcode_libdir_flag_spec='-L$libdir' 10463 hardcode_direct=yes 10464 hardcode_minus_L=yes 10465 hardcode_shlibpath_var=no 10466 ;; 10467 10468 sysv4) 10469 case $host_vendor in 10470 sni) 10471 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10472 hardcode_direct=yes # is this really true??? 10473 ;; 10474 siemens) 10475 ## LD is ld it makes a PLAMLIB 10476 ## CC just makes a GrossModule. 10477 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10478 reload_cmds='$CC -r -o $output$reload_objs' 10479 hardcode_direct=no 10480 ;; 10481 motorola) 10482 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10483 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10484 ;; 10485 esac 10486 runpath_var='LD_RUN_PATH' 10487 hardcode_shlibpath_var=no 10488 ;; 10489 10490 sysv4.3*) 10491 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10492 hardcode_shlibpath_var=no 10493 export_dynamic_flag_spec='-Bexport' 10494 ;; 10495 10496 sysv4*MP*) 10497 if test -d /usr/nec; then 10498 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10499 hardcode_shlibpath_var=no 10500 runpath_var=LD_RUN_PATH 10501 hardcode_runpath_var=yes 10502 ld_shlibs=yes 10503 fi 10504 ;; 10505 10506 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10507 no_undefined_flag='$wl-z,text' 10508 archive_cmds_need_lc=no 10509 hardcode_shlibpath_var=no 10510 runpath_var='LD_RUN_PATH' 10511 10512 if test yes = "$GCC"; then 10513 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10514 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10515 else 10516 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10517 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10518 fi 10519 ;; 10520 10521 sysv5* | sco3.2v5* | sco5v6*) 10522 # Note: We CANNOT use -z defs as we might desire, because we do not 10523 # link with -lc, and that would cause any symbols used from libc to 10524 # always be unresolved, which means just about no library would 10525 # ever link correctly. If we're not using GNU ld we use -z text 10526 # though, which does catch some bad symbols but isn't as heavy-handed 10527 # as -z defs. 10528 no_undefined_flag='$wl-z,text' 10529 allow_undefined_flag='$wl-z,nodefs' 10530 archive_cmds_need_lc=no 10531 hardcode_shlibpath_var=no 10532 hardcode_libdir_flag_spec='$wl-R,$libdir' 10533 hardcode_libdir_separator=':' 10534 link_all_deplibs=yes 10535 export_dynamic_flag_spec='$wl-Bexport' 10536 runpath_var='LD_RUN_PATH' 10537 10538 if test yes = "$GCC"; then 10539 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10540 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10541 else 10542 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10543 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10544 fi 10545 ;; 10546 10547 uts4*) 10548 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10549 hardcode_libdir_flag_spec='-L$libdir' 10550 hardcode_shlibpath_var=no 10551 ;; 10552 10553 *) 10554 ld_shlibs=no 10555 ;; 10556 esac 10557 10558 if test sni = "$host_vendor"; then 10559 case $host in 10560 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10561 export_dynamic_flag_spec='$wl-Blargedynsym' 10562 ;; 10563 esac 10564 fi 10565 fi 10566 10567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10568$as_echo "$ld_shlibs" >&6; } 10569test no = "$ld_shlibs" && can_build_shared=no 10570 10571with_gnu_ld=$with_gnu_ld 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587# 10588# Do we need to explicitly link libc? 10589# 10590case "x$archive_cmds_need_lc" in 10591x|xyes) 10592 # Assume -lc should be added 10593 archive_cmds_need_lc=yes 10594 10595 if test yes,yes = "$GCC,$enable_shared"; then 10596 case $archive_cmds in 10597 *'~'*) 10598 # FIXME: we may have to deal with multi-command sequences. 10599 ;; 10600 '$CC '*) 10601 # Test whether the compiler implicitly links with -lc since on some 10602 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10603 # to ld, don't add -lc before -lgcc. 10604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10605$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10606if ${lt_cv_archive_cmds_need_lc+:} false; then : 10607 $as_echo_n "(cached) " >&6 10608else 10609 $RM conftest* 10610 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10611 10612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10613 (eval $ac_compile) 2>&5 10614 ac_status=$? 10615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10616 test $ac_status = 0; } 2>conftest.err; then 10617 soname=conftest 10618 lib=conftest 10619 libobjs=conftest.$ac_objext 10620 deplibs= 10621 wl=$lt_prog_compiler_wl 10622 pic_flag=$lt_prog_compiler_pic 10623 compiler_flags=-v 10624 linker_flags=-v 10625 verstring= 10626 output_objdir=. 10627 libname=conftest 10628 lt_save_allow_undefined_flag=$allow_undefined_flag 10629 allow_undefined_flag= 10630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10631 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10632 ac_status=$? 10633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10634 test $ac_status = 0; } 10635 then 10636 lt_cv_archive_cmds_need_lc=no 10637 else 10638 lt_cv_archive_cmds_need_lc=yes 10639 fi 10640 allow_undefined_flag=$lt_save_allow_undefined_flag 10641 else 10642 cat conftest.err 1>&5 10643 fi 10644 $RM conftest* 10645 10646fi 10647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10648$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10649 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10650 ;; 10651 esac 10652 fi 10653 ;; 10654esac 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10808$as_echo_n "checking dynamic linker characteristics... " >&6; } 10809 10810if test yes = "$GCC"; then 10811 case $host_os in 10812 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10813 *) lt_awk_arg='/^libraries:/' ;; 10814 esac 10815 case $host_os in 10816 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10817 *) lt_sed_strip_eq='s|=/|/|g' ;; 10818 esac 10819 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10820 case $lt_search_path_spec in 10821 *\;*) 10822 # if the path contains ";" then we assume it to be the separator 10823 # otherwise default to the standard path separator (i.e. ":") - it is 10824 # assumed that no part of a normal pathname contains ";" but that should 10825 # okay in the real world where ";" in dirpaths is itself problematic. 10826 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10827 ;; 10828 *) 10829 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10830 ;; 10831 esac 10832 # Ok, now we have the path, separated by spaces, we can step through it 10833 # and add multilib dir if necessary... 10834 lt_tmp_lt_search_path_spec= 10835 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10836 # ...but if some path component already ends with the multilib dir we assume 10837 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10838 case "$lt_multi_os_dir; $lt_search_path_spec " in 10839 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10840 lt_multi_os_dir= 10841 ;; 10842 esac 10843 for lt_sys_path in $lt_search_path_spec; do 10844 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10845 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10846 elif test -n "$lt_multi_os_dir"; then 10847 test -d "$lt_sys_path" && \ 10848 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10849 fi 10850 done 10851 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10852BEGIN {RS = " "; FS = "/|\n";} { 10853 lt_foo = ""; 10854 lt_count = 0; 10855 for (lt_i = NF; lt_i > 0; lt_i--) { 10856 if ($lt_i != "" && $lt_i != ".") { 10857 if ($lt_i == "..") { 10858 lt_count++; 10859 } else { 10860 if (lt_count == 0) { 10861 lt_foo = "/" $lt_i lt_foo; 10862 } else { 10863 lt_count--; 10864 } 10865 } 10866 } 10867 } 10868 if (lt_foo != "") { lt_freq[lt_foo]++; } 10869 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10870}'` 10871 # AWK program above erroneously prepends '/' to C:/dos/paths 10872 # for these hosts. 10873 case $host_os in 10874 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10875 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10876 esac 10877 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10878else 10879 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10880fi 10881library_names_spec= 10882libname_spec='lib$name' 10883soname_spec= 10884shrext_cmds=.so 10885postinstall_cmds= 10886postuninstall_cmds= 10887finish_cmds= 10888finish_eval= 10889shlibpath_var= 10890shlibpath_overrides_runpath=unknown 10891version_type=none 10892dynamic_linker="$host_os ld.so" 10893sys_lib_dlsearch_path_spec="/lib /usr/lib" 10894need_lib_prefix=unknown 10895hardcode_into_libs=no 10896 10897# when you set need_version to no, make sure it does not cause -set_version 10898# flags to be left without arguments 10899need_version=unknown 10900 10901 10902 10903case $host_os in 10904aix3*) 10905 version_type=linux # correct to gnu/linux during the next big refactor 10906 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10907 shlibpath_var=LIBPATH 10908 10909 # AIX 3 has no versioning support, so we append a major version to the name. 10910 soname_spec='$libname$release$shared_ext$major' 10911 ;; 10912 10913aix[4-9]*) 10914 version_type=linux # correct to gnu/linux during the next big refactor 10915 need_lib_prefix=no 10916 need_version=no 10917 hardcode_into_libs=yes 10918 if test ia64 = "$host_cpu"; then 10919 # AIX 5 supports IA64 10920 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10921 shlibpath_var=LD_LIBRARY_PATH 10922 else 10923 # With GCC up to 2.95.x, collect2 would create an import file 10924 # for dependence libraries. The import file would start with 10925 # the line '#! .'. This would cause the generated library to 10926 # depend on '.', always an invalid library. This was fixed in 10927 # development snapshots of GCC prior to 3.0. 10928 case $host_os in 10929 aix4 | aix4.[01] | aix4.[01].*) 10930 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10931 echo ' yes ' 10932 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10933 : 10934 else 10935 can_build_shared=no 10936 fi 10937 ;; 10938 esac 10939 # Using Import Files as archive members, it is possible to support 10940 # filename-based versioning of shared library archives on AIX. While 10941 # this would work for both with and without runtime linking, it will 10942 # prevent static linking of such archives. So we do filename-based 10943 # shared library versioning with .so extension only, which is used 10944 # when both runtime linking and shared linking is enabled. 10945 # Unfortunately, runtime linking may impact performance, so we do 10946 # not want this to be the default eventually. Also, we use the 10947 # versioned .so libs for executables only if there is the -brtl 10948 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10949 # To allow for filename-based versioning support, we need to create 10950 # libNAME.so.V as an archive file, containing: 10951 # *) an Import File, referring to the versioned filename of the 10952 # archive as well as the shared archive member, telling the 10953 # bitwidth (32 or 64) of that shared object, and providing the 10954 # list of exported symbols of that shared object, eventually 10955 # decorated with the 'weak' keyword 10956 # *) the shared object with the F_LOADONLY flag set, to really avoid 10957 # it being seen by the linker. 10958 # At run time we better use the real file rather than another symlink, 10959 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10960 10961 case $with_aix_soname,$aix_use_runtimelinking in 10962 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10963 # soname into executable. Probably we can add versioning support to 10964 # collect2, so additional links can be useful in future. 10965 aix,yes) # traditional libtool 10966 dynamic_linker='AIX unversionable lib.so' 10967 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10968 # instead of lib<name>.a to let people know that these are not 10969 # typical AIX shared libraries. 10970 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10971 ;; 10972 aix,no) # traditional AIX only 10973 dynamic_linker='AIX lib.a(lib.so.V)' 10974 # We preserve .a as extension for shared libraries through AIX4.2 10975 # and later when we are not doing run time linking. 10976 library_names_spec='$libname$release.a $libname.a' 10977 soname_spec='$libname$release$shared_ext$major' 10978 ;; 10979 svr4,*) # full svr4 only 10980 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10981 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10982 # We do not specify a path in Import Files, so LIBPATH fires. 10983 shlibpath_overrides_runpath=yes 10984 ;; 10985 *,yes) # both, prefer svr4 10986 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10987 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10988 # unpreferred sharedlib libNAME.a needs extra handling 10989 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"' 10990 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"' 10991 # We do not specify a path in Import Files, so LIBPATH fires. 10992 shlibpath_overrides_runpath=yes 10993 ;; 10994 *,no) # both, prefer aix 10995 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10996 library_names_spec='$libname$release.a $libname.a' 10997 soname_spec='$libname$release$shared_ext$major' 10998 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10999 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)' 11000 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"' 11001 ;; 11002 esac 11003 shlibpath_var=LIBPATH 11004 fi 11005 ;; 11006 11007amigaos*) 11008 case $host_cpu in 11009 powerpc) 11010 # Since July 2007 AmigaOS4 officially supports .so libraries. 11011 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11012 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11013 ;; 11014 m68k) 11015 library_names_spec='$libname.ixlibrary $libname.a' 11016 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11017 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' 11018 ;; 11019 esac 11020 ;; 11021 11022beos*) 11023 library_names_spec='$libname$shared_ext' 11024 dynamic_linker="$host_os ld.so" 11025 shlibpath_var=LIBRARY_PATH 11026 ;; 11027 11028bsdi[45]*) 11029 version_type=linux # correct to gnu/linux during the next big refactor 11030 need_version=no 11031 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11032 soname_spec='$libname$release$shared_ext$major' 11033 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11034 shlibpath_var=LD_LIBRARY_PATH 11035 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11036 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11037 # the default ld.so.conf also contains /usr/contrib/lib and 11038 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11039 # libtool to hard-code these into programs 11040 ;; 11041 11042cygwin* | mingw* | pw32* | cegcc*) 11043 version_type=windows 11044 shrext_cmds=.dll 11045 need_version=no 11046 need_lib_prefix=no 11047 11048 case $GCC,$cc_basename in 11049 yes,*) 11050 # gcc 11051 library_names_spec='$libname.dll.a' 11052 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11053 postinstall_cmds='base_file=`basename \$file`~ 11054 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11055 dldir=$destdir/`dirname \$dlpath`~ 11056 test -d \$dldir || mkdir -p \$dldir~ 11057 $install_prog $dir/$dlname \$dldir/$dlname~ 11058 chmod a+x \$dldir/$dlname~ 11059 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11060 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11061 fi' 11062 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11063 dlpath=$dir/\$dldll~ 11064 $RM \$dlpath' 11065 shlibpath_overrides_runpath=yes 11066 11067 case $host_os in 11068 cygwin*) 11069 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11070 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11071 11072 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11073 ;; 11074 mingw* | cegcc*) 11075 # MinGW DLLs use traditional 'lib' prefix 11076 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11077 ;; 11078 pw32*) 11079 # pw32 DLLs use 'pw' prefix rather than 'lib' 11080 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11081 ;; 11082 esac 11083 dynamic_linker='Win32 ld.exe' 11084 ;; 11085 11086 *,cl*) 11087 # Native MSVC 11088 libname_spec='$name' 11089 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11090 library_names_spec='$libname.dll.lib' 11091 11092 case $build_os in 11093 mingw*) 11094 sys_lib_search_path_spec= 11095 lt_save_ifs=$IFS 11096 IFS=';' 11097 for lt_path in $LIB 11098 do 11099 IFS=$lt_save_ifs 11100 # Let DOS variable expansion print the short 8.3 style file name. 11101 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11102 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11103 done 11104 IFS=$lt_save_ifs 11105 # Convert to MSYS style. 11106 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11107 ;; 11108 cygwin*) 11109 # Convert to unix form, then to dos form, then back to unix form 11110 # but this time dos style (no spaces!) so that the unix form looks 11111 # like /cygdrive/c/PROGRA~1:/cygdr... 11112 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11113 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11114 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11115 ;; 11116 *) 11117 sys_lib_search_path_spec=$LIB 11118 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11119 # It is most probably a Windows format PATH. 11120 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11121 else 11122 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11123 fi 11124 # FIXME: find the short name or the path components, as spaces are 11125 # common. (e.g. "Program Files" -> "PROGRA~1") 11126 ;; 11127 esac 11128 11129 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11130 postinstall_cmds='base_file=`basename \$file`~ 11131 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11132 dldir=$destdir/`dirname \$dlpath`~ 11133 test -d \$dldir || mkdir -p \$dldir~ 11134 $install_prog $dir/$dlname \$dldir/$dlname' 11135 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11136 dlpath=$dir/\$dldll~ 11137 $RM \$dlpath' 11138 shlibpath_overrides_runpath=yes 11139 dynamic_linker='Win32 link.exe' 11140 ;; 11141 11142 *) 11143 # Assume MSVC wrapper 11144 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11145 dynamic_linker='Win32 ld.exe' 11146 ;; 11147 esac 11148 # FIXME: first we should search . and the directory the executable is in 11149 shlibpath_var=PATH 11150 ;; 11151 11152darwin* | rhapsody*) 11153 dynamic_linker="$host_os dyld" 11154 version_type=darwin 11155 need_lib_prefix=no 11156 need_version=no 11157 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11158 soname_spec='$libname$release$major$shared_ext' 11159 shlibpath_overrides_runpath=yes 11160 shlibpath_var=DYLD_LIBRARY_PATH 11161 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11162 11163 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11164 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11165 ;; 11166 11167dgux*) 11168 version_type=linux # correct to gnu/linux during the next big refactor 11169 need_lib_prefix=no 11170 need_version=no 11171 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11172 soname_spec='$libname$release$shared_ext$major' 11173 shlibpath_var=LD_LIBRARY_PATH 11174 ;; 11175 11176freebsd* | dragonfly*) 11177 # DragonFly does not have aout. When/if they implement a new 11178 # versioning mechanism, adjust this. 11179 if test -x /usr/bin/objformat; then 11180 objformat=`/usr/bin/objformat` 11181 else 11182 case $host_os in 11183 freebsd[23].*) objformat=aout ;; 11184 *) objformat=elf ;; 11185 esac 11186 fi 11187 version_type=freebsd-$objformat 11188 case $version_type in 11189 freebsd-elf*) 11190 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11191 soname_spec='$libname$release$shared_ext$major' 11192 need_version=no 11193 need_lib_prefix=no 11194 ;; 11195 freebsd-*) 11196 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11197 need_version=yes 11198 ;; 11199 esac 11200 shlibpath_var=LD_LIBRARY_PATH 11201 case $host_os in 11202 freebsd2.*) 11203 shlibpath_overrides_runpath=yes 11204 ;; 11205 freebsd3.[01]* | freebsdelf3.[01]*) 11206 shlibpath_overrides_runpath=yes 11207 hardcode_into_libs=yes 11208 ;; 11209 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11210 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11211 shlibpath_overrides_runpath=no 11212 hardcode_into_libs=yes 11213 ;; 11214 *) # from 4.6 on, and DragonFly 11215 shlibpath_overrides_runpath=yes 11216 hardcode_into_libs=yes 11217 ;; 11218 esac 11219 ;; 11220 11221haiku*) 11222 version_type=linux # correct to gnu/linux during the next big refactor 11223 need_lib_prefix=no 11224 need_version=no 11225 dynamic_linker="$host_os runtime_loader" 11226 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11227 soname_spec='$libname$release$shared_ext$major' 11228 shlibpath_var=LIBRARY_PATH 11229 shlibpath_overrides_runpath=no 11230 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11231 hardcode_into_libs=yes 11232 ;; 11233 11234hpux9* | hpux10* | hpux11*) 11235 # Give a soname corresponding to the major version so that dld.sl refuses to 11236 # link against other versions. 11237 version_type=sunos 11238 need_lib_prefix=no 11239 need_version=no 11240 case $host_cpu in 11241 ia64*) 11242 shrext_cmds='.so' 11243 hardcode_into_libs=yes 11244 dynamic_linker="$host_os dld.so" 11245 shlibpath_var=LD_LIBRARY_PATH 11246 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11247 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11248 soname_spec='$libname$release$shared_ext$major' 11249 if test 32 = "$HPUX_IA64_MODE"; then 11250 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11251 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11252 else 11253 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11254 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11255 fi 11256 ;; 11257 hppa*64*) 11258 shrext_cmds='.sl' 11259 hardcode_into_libs=yes 11260 dynamic_linker="$host_os dld.sl" 11261 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11262 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11263 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11264 soname_spec='$libname$release$shared_ext$major' 11265 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11266 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11267 ;; 11268 *) 11269 shrext_cmds='.sl' 11270 dynamic_linker="$host_os dld.sl" 11271 shlibpath_var=SHLIB_PATH 11272 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11273 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11274 soname_spec='$libname$release$shared_ext$major' 11275 ;; 11276 esac 11277 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11278 postinstall_cmds='chmod 555 $lib' 11279 # or fails outright, so override atomically: 11280 install_override_mode=555 11281 ;; 11282 11283interix[3-9]*) 11284 version_type=linux # correct to gnu/linux during the next big refactor 11285 need_lib_prefix=no 11286 need_version=no 11287 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11288 soname_spec='$libname$release$shared_ext$major' 11289 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11290 shlibpath_var=LD_LIBRARY_PATH 11291 shlibpath_overrides_runpath=no 11292 hardcode_into_libs=yes 11293 ;; 11294 11295irix5* | irix6* | nonstopux*) 11296 case $host_os in 11297 nonstopux*) version_type=nonstopux ;; 11298 *) 11299 if test yes = "$lt_cv_prog_gnu_ld"; then 11300 version_type=linux # correct to gnu/linux during the next big refactor 11301 else 11302 version_type=irix 11303 fi ;; 11304 esac 11305 need_lib_prefix=no 11306 need_version=no 11307 soname_spec='$libname$release$shared_ext$major' 11308 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11309 case $host_os in 11310 irix5* | nonstopux*) 11311 libsuff= shlibsuff= 11312 ;; 11313 *) 11314 case $LD in # libtool.m4 will add one of these switches to LD 11315 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11316 libsuff= shlibsuff= libmagic=32-bit;; 11317 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11318 libsuff=32 shlibsuff=N32 libmagic=N32;; 11319 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11320 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11321 *) libsuff= shlibsuff= libmagic=never-match;; 11322 esac 11323 ;; 11324 esac 11325 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11326 shlibpath_overrides_runpath=no 11327 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11328 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11329 hardcode_into_libs=yes 11330 ;; 11331 11332# No shared lib support for Linux oldld, aout, or coff. 11333linux*oldld* | linux*aout* | linux*coff*) 11334 dynamic_linker=no 11335 ;; 11336 11337linux*android*) 11338 version_type=none # Android doesn't support versioned libraries. 11339 need_lib_prefix=no 11340 need_version=no 11341 library_names_spec='$libname$release$shared_ext' 11342 soname_spec='$libname$release$shared_ext' 11343 finish_cmds= 11344 shlibpath_var=LD_LIBRARY_PATH 11345 shlibpath_overrides_runpath=yes 11346 11347 # This implies no fast_install, which is unacceptable. 11348 # Some rework will be needed to allow for fast_install 11349 # before this can be enabled. 11350 hardcode_into_libs=yes 11351 11352 dynamic_linker='Android linker' 11353 # Don't embed -rpath directories since the linker doesn't support them. 11354 hardcode_libdir_flag_spec='-L$libdir' 11355 ;; 11356 11357# This must be glibc/ELF. 11358linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11359 version_type=linux # correct to gnu/linux during the next big refactor 11360 need_lib_prefix=no 11361 need_version=no 11362 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11363 soname_spec='$libname$release$shared_ext$major' 11364 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11365 shlibpath_var=LD_LIBRARY_PATH 11366 shlibpath_overrides_runpath=no 11367 11368 # Some binutils ld are patched to set DT_RUNPATH 11369 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11370 $as_echo_n "(cached) " >&6 11371else 11372 lt_cv_shlibpath_overrides_runpath=no 11373 save_LDFLAGS=$LDFLAGS 11374 save_libdir=$libdir 11375 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11376 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11378/* end confdefs.h. */ 11379 11380int 11381main () 11382{ 11383 11384 ; 11385 return 0; 11386} 11387_ACEOF 11388if ac_fn_c_try_link "$LINENO"; then : 11389 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11390 lt_cv_shlibpath_overrides_runpath=yes 11391fi 11392fi 11393rm -f core conftest.err conftest.$ac_objext \ 11394 conftest$ac_exeext conftest.$ac_ext 11395 LDFLAGS=$save_LDFLAGS 11396 libdir=$save_libdir 11397 11398fi 11399 11400 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11401 11402 # This implies no fast_install, which is unacceptable. 11403 # Some rework will be needed to allow for fast_install 11404 # before this can be enabled. 11405 hardcode_into_libs=yes 11406 11407 # Ideally, we could use ldconfig to report *all* directores which are 11408 # searched for libraries, however this is still not possible. Aside from not 11409 # being certain /sbin/ldconfig is available, command 11410 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11411 # even though it is searched at run-time. Try to do the best guess by 11412 # appending ld.so.conf contents (and includes) to the search path. 11413 if test -f /etc/ld.so.conf; then 11414 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' ' '` 11415 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11416 fi 11417 11418 # We used to test for /lib/ld.so.1 and disable shared libraries on 11419 # powerpc, because MkLinux only supported shared libraries with the 11420 # GNU dynamic linker. Since this was broken with cross compilers, 11421 # most powerpc-linux boxes support dynamic linking these days and 11422 # people can always --disable-shared, the test was removed, and we 11423 # assume the GNU/Linux dynamic linker is in use. 11424 dynamic_linker='GNU/Linux ld.so' 11425 ;; 11426 11427netbsdelf*-gnu) 11428 version_type=linux 11429 need_lib_prefix=no 11430 need_version=no 11431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11432 soname_spec='${libname}${release}${shared_ext}$major' 11433 shlibpath_var=LD_LIBRARY_PATH 11434 shlibpath_overrides_runpath=no 11435 hardcode_into_libs=yes 11436 dynamic_linker='NetBSD ld.elf_so' 11437 ;; 11438 11439netbsd*) 11440 version_type=sunos 11441 need_lib_prefix=no 11442 need_version=no 11443 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11444 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11445 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11446 dynamic_linker='NetBSD (a.out) ld.so' 11447 else 11448 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11449 soname_spec='$libname$release$shared_ext$major' 11450 dynamic_linker='NetBSD ld.elf_so' 11451 fi 11452 shlibpath_var=LD_LIBRARY_PATH 11453 shlibpath_overrides_runpath=yes 11454 hardcode_into_libs=yes 11455 ;; 11456 11457newsos6) 11458 version_type=linux # correct to gnu/linux during the next big refactor 11459 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11460 shlibpath_var=LD_LIBRARY_PATH 11461 shlibpath_overrides_runpath=yes 11462 ;; 11463 11464*nto* | *qnx*) 11465 version_type=qnx 11466 need_lib_prefix=no 11467 need_version=no 11468 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11469 soname_spec='$libname$release$shared_ext$major' 11470 shlibpath_var=LD_LIBRARY_PATH 11471 shlibpath_overrides_runpath=no 11472 hardcode_into_libs=yes 11473 dynamic_linker='ldqnx.so' 11474 ;; 11475 11476openbsd* | bitrig*) 11477 version_type=sunos 11478 sys_lib_dlsearch_path_spec=/usr/lib 11479 need_lib_prefix=no 11480 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11481 need_version=no 11482 else 11483 need_version=yes 11484 fi 11485 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11486 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11487 shlibpath_var=LD_LIBRARY_PATH 11488 shlibpath_overrides_runpath=yes 11489 ;; 11490 11491os2*) 11492 libname_spec='$name' 11493 version_type=windows 11494 shrext_cmds=.dll 11495 need_version=no 11496 need_lib_prefix=no 11497 # OS/2 can only load a DLL with a base name of 8 characters or less. 11498 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11499 v=$($ECHO $release$versuffix | tr -d .-); 11500 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11501 $ECHO $n$v`$shared_ext' 11502 library_names_spec='${libname}_dll.$libext' 11503 dynamic_linker='OS/2 ld.exe' 11504 shlibpath_var=BEGINLIBPATH 11505 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11506 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11507 postinstall_cmds='base_file=`basename \$file`~ 11508 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11509 dldir=$destdir/`dirname \$dlpath`~ 11510 test -d \$dldir || mkdir -p \$dldir~ 11511 $install_prog $dir/$dlname \$dldir/$dlname~ 11512 chmod a+x \$dldir/$dlname~ 11513 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11514 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11515 fi' 11516 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11517 dlpath=$dir/\$dldll~ 11518 $RM \$dlpath' 11519 ;; 11520 11521osf3* | osf4* | osf5*) 11522 version_type=osf 11523 need_lib_prefix=no 11524 need_version=no 11525 soname_spec='$libname$release$shared_ext$major' 11526 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11527 shlibpath_var=LD_LIBRARY_PATH 11528 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11529 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11530 ;; 11531 11532rdos*) 11533 dynamic_linker=no 11534 ;; 11535 11536solaris*) 11537 version_type=linux # correct to gnu/linux during the next big refactor 11538 need_lib_prefix=no 11539 need_version=no 11540 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11541 soname_spec='$libname$release$shared_ext$major' 11542 shlibpath_var=LD_LIBRARY_PATH 11543 shlibpath_overrides_runpath=yes 11544 hardcode_into_libs=yes 11545 # ldd complains unless libraries are executable 11546 postinstall_cmds='chmod +x $lib' 11547 ;; 11548 11549sunos4*) 11550 version_type=sunos 11551 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11552 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11553 shlibpath_var=LD_LIBRARY_PATH 11554 shlibpath_overrides_runpath=yes 11555 if test yes = "$with_gnu_ld"; then 11556 need_lib_prefix=no 11557 fi 11558 need_version=yes 11559 ;; 11560 11561sysv4 | sysv4.3*) 11562 version_type=linux # correct to gnu/linux during the next big refactor 11563 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11564 soname_spec='$libname$release$shared_ext$major' 11565 shlibpath_var=LD_LIBRARY_PATH 11566 case $host_vendor in 11567 sni) 11568 shlibpath_overrides_runpath=no 11569 need_lib_prefix=no 11570 runpath_var=LD_RUN_PATH 11571 ;; 11572 siemens) 11573 need_lib_prefix=no 11574 ;; 11575 motorola) 11576 need_lib_prefix=no 11577 need_version=no 11578 shlibpath_overrides_runpath=no 11579 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11580 ;; 11581 esac 11582 ;; 11583 11584sysv4*MP*) 11585 if test -d /usr/nec; then 11586 version_type=linux # correct to gnu/linux during the next big refactor 11587 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11588 soname_spec='$libname$shared_ext.$major' 11589 shlibpath_var=LD_LIBRARY_PATH 11590 fi 11591 ;; 11592 11593sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11594 version_type=sco 11595 need_lib_prefix=no 11596 need_version=no 11597 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11598 soname_spec='$libname$release$shared_ext$major' 11599 shlibpath_var=LD_LIBRARY_PATH 11600 shlibpath_overrides_runpath=yes 11601 hardcode_into_libs=yes 11602 if test yes = "$with_gnu_ld"; then 11603 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11604 else 11605 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11606 case $host_os in 11607 sco3.2v5*) 11608 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11609 ;; 11610 esac 11611 fi 11612 sys_lib_dlsearch_path_spec='/usr/lib' 11613 ;; 11614 11615tpf*) 11616 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11617 version_type=linux # correct to gnu/linux during the next big refactor 11618 need_lib_prefix=no 11619 need_version=no 11620 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11621 shlibpath_var=LD_LIBRARY_PATH 11622 shlibpath_overrides_runpath=no 11623 hardcode_into_libs=yes 11624 ;; 11625 11626uts4*) 11627 version_type=linux # correct to gnu/linux during the next big refactor 11628 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11629 soname_spec='$libname$release$shared_ext$major' 11630 shlibpath_var=LD_LIBRARY_PATH 11631 ;; 11632 11633*) 11634 dynamic_linker=no 11635 ;; 11636esac 11637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11638$as_echo "$dynamic_linker" >&6; } 11639test no = "$dynamic_linker" && can_build_shared=no 11640 11641variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11642if test yes = "$GCC"; then 11643 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11644fi 11645 11646if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11647 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11648fi 11649 11650if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11651 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11652fi 11653 11654# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11655configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11656 11657# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11658func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11659 11660# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11661configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11760$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11761hardcode_action= 11762if test -n "$hardcode_libdir_flag_spec" || 11763 test -n "$runpath_var" || 11764 test yes = "$hardcode_automatic"; then 11765 11766 # We can hardcode non-existent directories. 11767 if test no != "$hardcode_direct" && 11768 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11769 # have to relink, otherwise we might link with an installed library 11770 # when we should be linking with a yet-to-be-installed one 11771 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11772 test no != "$hardcode_minus_L"; then 11773 # Linking always hardcodes the temporary library directory. 11774 hardcode_action=relink 11775 else 11776 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11777 hardcode_action=immediate 11778 fi 11779else 11780 # We cannot hardcode anything, or else we can only hardcode existing 11781 # directories. 11782 hardcode_action=unsupported 11783fi 11784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11785$as_echo "$hardcode_action" >&6; } 11786 11787if test relink = "$hardcode_action" || 11788 test yes = "$inherit_rpath"; then 11789 # Fast installation is not supported 11790 enable_fast_install=no 11791elif test yes = "$shlibpath_overrides_runpath" || 11792 test no = "$enable_shared"; then 11793 # Fast installation is not necessary 11794 enable_fast_install=needless 11795fi 11796 11797 11798 11799 11800 11801 11802 if test yes != "$enable_dlopen"; then 11803 enable_dlopen=unknown 11804 enable_dlopen_self=unknown 11805 enable_dlopen_self_static=unknown 11806else 11807 lt_cv_dlopen=no 11808 lt_cv_dlopen_libs= 11809 11810 case $host_os in 11811 beos*) 11812 lt_cv_dlopen=load_add_on 11813 lt_cv_dlopen_libs= 11814 lt_cv_dlopen_self=yes 11815 ;; 11816 11817 mingw* | pw32* | cegcc*) 11818 lt_cv_dlopen=LoadLibrary 11819 lt_cv_dlopen_libs= 11820 ;; 11821 11822 cygwin*) 11823 lt_cv_dlopen=dlopen 11824 lt_cv_dlopen_libs= 11825 ;; 11826 11827 darwin*) 11828 # if libdl is installed we need to link against it 11829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11830$as_echo_n "checking for dlopen in -ldl... " >&6; } 11831if ${ac_cv_lib_dl_dlopen+:} false; then : 11832 $as_echo_n "(cached) " >&6 11833else 11834 ac_check_lib_save_LIBS=$LIBS 11835LIBS="-ldl $LIBS" 11836cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11837/* end confdefs.h. */ 11838 11839/* Override any GCC internal prototype to avoid an error. 11840 Use char because int might match the return type of a GCC 11841 builtin and then its argument prototype would still apply. */ 11842#ifdef __cplusplus 11843extern "C" 11844#endif 11845char dlopen (); 11846int 11847main () 11848{ 11849return dlopen (); 11850 ; 11851 return 0; 11852} 11853_ACEOF 11854if ac_fn_c_try_link "$LINENO"; then : 11855 ac_cv_lib_dl_dlopen=yes 11856else 11857 ac_cv_lib_dl_dlopen=no 11858fi 11859rm -f core conftest.err conftest.$ac_objext \ 11860 conftest$ac_exeext conftest.$ac_ext 11861LIBS=$ac_check_lib_save_LIBS 11862fi 11863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11864$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11865if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11866 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11867else 11868 11869 lt_cv_dlopen=dyld 11870 lt_cv_dlopen_libs= 11871 lt_cv_dlopen_self=yes 11872 11873fi 11874 11875 ;; 11876 11877 tpf*) 11878 # Don't try to run any link tests for TPF. We know it's impossible 11879 # because TPF is a cross-compiler, and we know how we open DSOs. 11880 lt_cv_dlopen=dlopen 11881 lt_cv_dlopen_libs= 11882 lt_cv_dlopen_self=no 11883 ;; 11884 11885 *) 11886 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11887if test "x$ac_cv_func_shl_load" = xyes; then : 11888 lt_cv_dlopen=shl_load 11889else 11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11891$as_echo_n "checking for shl_load in -ldld... " >&6; } 11892if ${ac_cv_lib_dld_shl_load+:} false; then : 11893 $as_echo_n "(cached) " >&6 11894else 11895 ac_check_lib_save_LIBS=$LIBS 11896LIBS="-ldld $LIBS" 11897cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11898/* end confdefs.h. */ 11899 11900/* Override any GCC internal prototype to avoid an error. 11901 Use char because int might match the return type of a GCC 11902 builtin and then its argument prototype would still apply. */ 11903#ifdef __cplusplus 11904extern "C" 11905#endif 11906char shl_load (); 11907int 11908main () 11909{ 11910return shl_load (); 11911 ; 11912 return 0; 11913} 11914_ACEOF 11915if ac_fn_c_try_link "$LINENO"; then : 11916 ac_cv_lib_dld_shl_load=yes 11917else 11918 ac_cv_lib_dld_shl_load=no 11919fi 11920rm -f core conftest.err conftest.$ac_objext \ 11921 conftest$ac_exeext conftest.$ac_ext 11922LIBS=$ac_check_lib_save_LIBS 11923fi 11924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11925$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11926if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11927 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11928else 11929 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11930if test "x$ac_cv_func_dlopen" = xyes; then : 11931 lt_cv_dlopen=dlopen 11932else 11933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11934$as_echo_n "checking for dlopen in -ldl... " >&6; } 11935if ${ac_cv_lib_dl_dlopen+:} false; then : 11936 $as_echo_n "(cached) " >&6 11937else 11938 ac_check_lib_save_LIBS=$LIBS 11939LIBS="-ldl $LIBS" 11940cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11941/* end confdefs.h. */ 11942 11943/* Override any GCC internal prototype to avoid an error. 11944 Use char because int might match the return type of a GCC 11945 builtin and then its argument prototype would still apply. */ 11946#ifdef __cplusplus 11947extern "C" 11948#endif 11949char dlopen (); 11950int 11951main () 11952{ 11953return dlopen (); 11954 ; 11955 return 0; 11956} 11957_ACEOF 11958if ac_fn_c_try_link "$LINENO"; then : 11959 ac_cv_lib_dl_dlopen=yes 11960else 11961 ac_cv_lib_dl_dlopen=no 11962fi 11963rm -f core conftest.err conftest.$ac_objext \ 11964 conftest$ac_exeext conftest.$ac_ext 11965LIBS=$ac_check_lib_save_LIBS 11966fi 11967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11968$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11969if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11970 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11971else 11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11973$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11974if ${ac_cv_lib_svld_dlopen+:} false; then : 11975 $as_echo_n "(cached) " >&6 11976else 11977 ac_check_lib_save_LIBS=$LIBS 11978LIBS="-lsvld $LIBS" 11979cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11980/* end confdefs.h. */ 11981 11982/* Override any GCC internal prototype to avoid an error. 11983 Use char because int might match the return type of a GCC 11984 builtin and then its argument prototype would still apply. */ 11985#ifdef __cplusplus 11986extern "C" 11987#endif 11988char dlopen (); 11989int 11990main () 11991{ 11992return dlopen (); 11993 ; 11994 return 0; 11995} 11996_ACEOF 11997if ac_fn_c_try_link "$LINENO"; then : 11998 ac_cv_lib_svld_dlopen=yes 11999else 12000 ac_cv_lib_svld_dlopen=no 12001fi 12002rm -f core conftest.err conftest.$ac_objext \ 12003 conftest$ac_exeext conftest.$ac_ext 12004LIBS=$ac_check_lib_save_LIBS 12005fi 12006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12007$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12008if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12009 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12010else 12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12012$as_echo_n "checking for dld_link in -ldld... " >&6; } 12013if ${ac_cv_lib_dld_dld_link+:} false; then : 12014 $as_echo_n "(cached) " >&6 12015else 12016 ac_check_lib_save_LIBS=$LIBS 12017LIBS="-ldld $LIBS" 12018cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12019/* end confdefs.h. */ 12020 12021/* Override any GCC internal prototype to avoid an error. 12022 Use char because int might match the return type of a GCC 12023 builtin and then its argument prototype would still apply. */ 12024#ifdef __cplusplus 12025extern "C" 12026#endif 12027char dld_link (); 12028int 12029main () 12030{ 12031return dld_link (); 12032 ; 12033 return 0; 12034} 12035_ACEOF 12036if ac_fn_c_try_link "$LINENO"; then : 12037 ac_cv_lib_dld_dld_link=yes 12038else 12039 ac_cv_lib_dld_dld_link=no 12040fi 12041rm -f core conftest.err conftest.$ac_objext \ 12042 conftest$ac_exeext conftest.$ac_ext 12043LIBS=$ac_check_lib_save_LIBS 12044fi 12045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12046$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12047if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12048 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12049fi 12050 12051 12052fi 12053 12054 12055fi 12056 12057 12058fi 12059 12060 12061fi 12062 12063 12064fi 12065 12066 ;; 12067 esac 12068 12069 if test no = "$lt_cv_dlopen"; then 12070 enable_dlopen=no 12071 else 12072 enable_dlopen=yes 12073 fi 12074 12075 case $lt_cv_dlopen in 12076 dlopen) 12077 save_CPPFLAGS=$CPPFLAGS 12078 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12079 12080 save_LDFLAGS=$LDFLAGS 12081 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12082 12083 save_LIBS=$LIBS 12084 LIBS="$lt_cv_dlopen_libs $LIBS" 12085 12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12087$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12088if ${lt_cv_dlopen_self+:} false; then : 12089 $as_echo_n "(cached) " >&6 12090else 12091 if test yes = "$cross_compiling"; then : 12092 lt_cv_dlopen_self=cross 12093else 12094 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12095 lt_status=$lt_dlunknown 12096 cat > conftest.$ac_ext <<_LT_EOF 12097#line $LINENO "configure" 12098#include "confdefs.h" 12099 12100#if HAVE_DLFCN_H 12101#include <dlfcn.h> 12102#endif 12103 12104#include <stdio.h> 12105 12106#ifdef RTLD_GLOBAL 12107# define LT_DLGLOBAL RTLD_GLOBAL 12108#else 12109# ifdef DL_GLOBAL 12110# define LT_DLGLOBAL DL_GLOBAL 12111# else 12112# define LT_DLGLOBAL 0 12113# endif 12114#endif 12115 12116/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12117 find out it does not work in some platform. */ 12118#ifndef LT_DLLAZY_OR_NOW 12119# ifdef RTLD_LAZY 12120# define LT_DLLAZY_OR_NOW RTLD_LAZY 12121# else 12122# ifdef DL_LAZY 12123# define LT_DLLAZY_OR_NOW DL_LAZY 12124# else 12125# ifdef RTLD_NOW 12126# define LT_DLLAZY_OR_NOW RTLD_NOW 12127# else 12128# ifdef DL_NOW 12129# define LT_DLLAZY_OR_NOW DL_NOW 12130# else 12131# define LT_DLLAZY_OR_NOW 0 12132# endif 12133# endif 12134# endif 12135# endif 12136#endif 12137 12138/* When -fvisibility=hidden is used, assume the code has been annotated 12139 correspondingly for the symbols needed. */ 12140#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12141int fnord () __attribute__((visibility("default"))); 12142#endif 12143 12144int fnord () { return 42; } 12145int main () 12146{ 12147 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12148 int status = $lt_dlunknown; 12149 12150 if (self) 12151 { 12152 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12153 else 12154 { 12155 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12156 else puts (dlerror ()); 12157 } 12158 /* dlclose (self); */ 12159 } 12160 else 12161 puts (dlerror ()); 12162 12163 return status; 12164} 12165_LT_EOF 12166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12167 (eval $ac_link) 2>&5 12168 ac_status=$? 12169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12170 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12171 (./conftest; exit; ) >&5 2>/dev/null 12172 lt_status=$? 12173 case x$lt_status in 12174 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12175 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12176 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12177 esac 12178 else : 12179 # compilation failed 12180 lt_cv_dlopen_self=no 12181 fi 12182fi 12183rm -fr conftest* 12184 12185 12186fi 12187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12188$as_echo "$lt_cv_dlopen_self" >&6; } 12189 12190 if test yes = "$lt_cv_dlopen_self"; then 12191 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12193$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12194if ${lt_cv_dlopen_self_static+:} false; then : 12195 $as_echo_n "(cached) " >&6 12196else 12197 if test yes = "$cross_compiling"; then : 12198 lt_cv_dlopen_self_static=cross 12199else 12200 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12201 lt_status=$lt_dlunknown 12202 cat > conftest.$ac_ext <<_LT_EOF 12203#line $LINENO "configure" 12204#include "confdefs.h" 12205 12206#if HAVE_DLFCN_H 12207#include <dlfcn.h> 12208#endif 12209 12210#include <stdio.h> 12211 12212#ifdef RTLD_GLOBAL 12213# define LT_DLGLOBAL RTLD_GLOBAL 12214#else 12215# ifdef DL_GLOBAL 12216# define LT_DLGLOBAL DL_GLOBAL 12217# else 12218# define LT_DLGLOBAL 0 12219# endif 12220#endif 12221 12222/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12223 find out it does not work in some platform. */ 12224#ifndef LT_DLLAZY_OR_NOW 12225# ifdef RTLD_LAZY 12226# define LT_DLLAZY_OR_NOW RTLD_LAZY 12227# else 12228# ifdef DL_LAZY 12229# define LT_DLLAZY_OR_NOW DL_LAZY 12230# else 12231# ifdef RTLD_NOW 12232# define LT_DLLAZY_OR_NOW RTLD_NOW 12233# else 12234# ifdef DL_NOW 12235# define LT_DLLAZY_OR_NOW DL_NOW 12236# else 12237# define LT_DLLAZY_OR_NOW 0 12238# endif 12239# endif 12240# endif 12241# endif 12242#endif 12243 12244/* When -fvisibility=hidden is used, assume the code has been annotated 12245 correspondingly for the symbols needed. */ 12246#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12247int fnord () __attribute__((visibility("default"))); 12248#endif 12249 12250int fnord () { return 42; } 12251int main () 12252{ 12253 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12254 int status = $lt_dlunknown; 12255 12256 if (self) 12257 { 12258 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12259 else 12260 { 12261 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12262 else puts (dlerror ()); 12263 } 12264 /* dlclose (self); */ 12265 } 12266 else 12267 puts (dlerror ()); 12268 12269 return status; 12270} 12271_LT_EOF 12272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12273 (eval $ac_link) 2>&5 12274 ac_status=$? 12275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12276 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12277 (./conftest; exit; ) >&5 2>/dev/null 12278 lt_status=$? 12279 case x$lt_status in 12280 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12281 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12282 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12283 esac 12284 else : 12285 # compilation failed 12286 lt_cv_dlopen_self_static=no 12287 fi 12288fi 12289rm -fr conftest* 12290 12291 12292fi 12293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12294$as_echo "$lt_cv_dlopen_self_static" >&6; } 12295 fi 12296 12297 CPPFLAGS=$save_CPPFLAGS 12298 LDFLAGS=$save_LDFLAGS 12299 LIBS=$save_LIBS 12300 ;; 12301 esac 12302 12303 case $lt_cv_dlopen_self in 12304 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12305 *) enable_dlopen_self=unknown ;; 12306 esac 12307 12308 case $lt_cv_dlopen_self_static in 12309 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12310 *) enable_dlopen_self_static=unknown ;; 12311 esac 12312fi 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330striplib= 12331old_striplib= 12332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12333$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12334if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12335 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12336 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12338$as_echo "yes" >&6; } 12339else 12340# FIXME - insert some real tests, host_os isn't really good enough 12341 case $host_os in 12342 darwin*) 12343 if test -n "$STRIP"; then 12344 striplib="$STRIP -x" 12345 old_striplib="$STRIP -S" 12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12347$as_echo "yes" >&6; } 12348 else 12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12350$as_echo "no" >&6; } 12351 fi 12352 ;; 12353 *) 12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12355$as_echo "no" >&6; } 12356 ;; 12357 esac 12358fi 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371 # Report what library types will actually be built 12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12373$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12375$as_echo "$can_build_shared" >&6; } 12376 12377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12378$as_echo_n "checking whether to build shared libraries... " >&6; } 12379 test no = "$can_build_shared" && enable_shared=no 12380 12381 # On AIX, shared libraries and static libraries use the same namespace, and 12382 # are all built from PIC. 12383 case $host_os in 12384 aix3*) 12385 test yes = "$enable_shared" && enable_static=no 12386 if test -n "$RANLIB"; then 12387 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12388 postinstall_cmds='$RANLIB $lib' 12389 fi 12390 ;; 12391 12392 aix[4-9]*) 12393 if test ia64 != "$host_cpu"; then 12394 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12395 yes,aix,yes) ;; # shared object as lib.so file only 12396 yes,svr4,*) ;; # shared object as lib.so archive member only 12397 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12398 esac 12399 fi 12400 ;; 12401 esac 12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12403$as_echo "$enable_shared" >&6; } 12404 12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12406$as_echo_n "checking whether to build static libraries... " >&6; } 12407 # Make sure either enable_shared or enable_static is yes. 12408 test yes = "$enable_shared" || enable_static=yes 12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12410$as_echo "$enable_static" >&6; } 12411 12412 12413 12414 12415fi 12416ac_ext=c 12417ac_cpp='$CPP $CPPFLAGS' 12418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12420ac_compiler_gnu=$ac_cv_c_compiler_gnu 12421 12422CC=$lt_save_CC 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 ac_config_commands="$ac_config_commands libtool" 12439 12440 12441 12442 12443# Only expand once: 12444 12445 12446 12447# Check whether --enable-largefile was given. 12448if test "${enable_largefile+set}" = set; then : 12449 enableval=$enable_largefile; 12450fi 12451 12452if test "$enable_largefile" != no; then 12453 12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 12455$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 12456if ${ac_cv_sys_largefile_CC+:} false; then : 12457 $as_echo_n "(cached) " >&6 12458else 12459 ac_cv_sys_largefile_CC=no 12460 if test "$GCC" != yes; then 12461 ac_save_CC=$CC 12462 while :; do 12463 # IRIX 6.2 and later do not support large files by default, 12464 # so use the C compiler's -n32 option if that helps. 12465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12466/* end confdefs.h. */ 12467#include <sys/types.h> 12468 /* Check that off_t can represent 2**63 - 1 correctly. 12469 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12470 since some C++ compilers masquerading as C compilers 12471 incorrectly reject 9223372036854775807. */ 12472#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12473 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12474 && LARGE_OFF_T % 2147483647 == 1) 12475 ? 1 : -1]; 12476int 12477main () 12478{ 12479 12480 ; 12481 return 0; 12482} 12483_ACEOF 12484 if ac_fn_c_try_compile "$LINENO"; then : 12485 break 12486fi 12487rm -f core conftest.err conftest.$ac_objext 12488 CC="$CC -n32" 12489 if ac_fn_c_try_compile "$LINENO"; then : 12490 ac_cv_sys_largefile_CC=' -n32'; break 12491fi 12492rm -f core conftest.err conftest.$ac_objext 12493 break 12494 done 12495 CC=$ac_save_CC 12496 rm -f conftest.$ac_ext 12497 fi 12498fi 12499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 12500$as_echo "$ac_cv_sys_largefile_CC" >&6; } 12501 if test "$ac_cv_sys_largefile_CC" != no; then 12502 CC=$CC$ac_cv_sys_largefile_CC 12503 fi 12504 12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 12506$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 12507if ${ac_cv_sys_file_offset_bits+:} false; then : 12508 $as_echo_n "(cached) " >&6 12509else 12510 while :; do 12511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12512/* end confdefs.h. */ 12513#include <sys/types.h> 12514 /* Check that off_t can represent 2**63 - 1 correctly. 12515 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12516 since some C++ compilers masquerading as C compilers 12517 incorrectly reject 9223372036854775807. */ 12518#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12519 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12520 && LARGE_OFF_T % 2147483647 == 1) 12521 ? 1 : -1]; 12522int 12523main () 12524{ 12525 12526 ; 12527 return 0; 12528} 12529_ACEOF 12530if ac_fn_c_try_compile "$LINENO"; then : 12531 ac_cv_sys_file_offset_bits=no; break 12532fi 12533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12535/* end confdefs.h. */ 12536#define _FILE_OFFSET_BITS 64 12537#include <sys/types.h> 12538 /* Check that off_t can represent 2**63 - 1 correctly. 12539 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12540 since some C++ compilers masquerading as C compilers 12541 incorrectly reject 9223372036854775807. */ 12542#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12543 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12544 && LARGE_OFF_T % 2147483647 == 1) 12545 ? 1 : -1]; 12546int 12547main () 12548{ 12549 12550 ; 12551 return 0; 12552} 12553_ACEOF 12554if ac_fn_c_try_compile "$LINENO"; then : 12555 ac_cv_sys_file_offset_bits=64; break 12556fi 12557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12558 ac_cv_sys_file_offset_bits=unknown 12559 break 12560done 12561fi 12562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 12563$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 12564case $ac_cv_sys_file_offset_bits in #( 12565 no | unknown) ;; 12566 *) 12567cat >>confdefs.h <<_ACEOF 12568#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 12569_ACEOF 12570;; 12571esac 12572rm -rf conftest* 12573 if test $ac_cv_sys_file_offset_bits = unknown; then 12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 12575$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 12576if ${ac_cv_sys_large_files+:} false; then : 12577 $as_echo_n "(cached) " >&6 12578else 12579 while :; do 12580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12581/* end confdefs.h. */ 12582#include <sys/types.h> 12583 /* Check that off_t can represent 2**63 - 1 correctly. 12584 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12585 since some C++ compilers masquerading as C compilers 12586 incorrectly reject 9223372036854775807. */ 12587#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12588 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12589 && LARGE_OFF_T % 2147483647 == 1) 12590 ? 1 : -1]; 12591int 12592main () 12593{ 12594 12595 ; 12596 return 0; 12597} 12598_ACEOF 12599if ac_fn_c_try_compile "$LINENO"; then : 12600 ac_cv_sys_large_files=no; break 12601fi 12602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12604/* end confdefs.h. */ 12605#define _LARGE_FILES 1 12606#include <sys/types.h> 12607 /* Check that off_t can represent 2**63 - 1 correctly. 12608 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12609 since some C++ compilers masquerading as C compilers 12610 incorrectly reject 9223372036854775807. */ 12611#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12612 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12613 && LARGE_OFF_T % 2147483647 == 1) 12614 ? 1 : -1]; 12615int 12616main () 12617{ 12618 12619 ; 12620 return 0; 12621} 12622_ACEOF 12623if ac_fn_c_try_compile "$LINENO"; then : 12624 ac_cv_sys_large_files=1; break 12625fi 12626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12627 ac_cv_sys_large_files=unknown 12628 break 12629done 12630fi 12631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 12632$as_echo "$ac_cv_sys_large_files" >&6; } 12633case $ac_cv_sys_large_files in #( 12634 no | unknown) ;; 12635 *) 12636cat >>confdefs.h <<_ACEOF 12637#define _LARGE_FILES $ac_cv_sys_large_files 12638_ACEOF 12639;; 12640esac 12641rm -rf conftest* 12642 fi 12643 12644 12645fi 12646 12647 12648# Require xorg-macros minimum of 1.15 for fop minimum version 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 12661$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 12662if ${ac_cv_prog_cc_c99+:} false; then : 12663 $as_echo_n "(cached) " >&6 12664else 12665 ac_cv_prog_cc_c99=no 12666ac_save_CC=$CC 12667cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12668/* end confdefs.h. */ 12669#include <stdarg.h> 12670#include <stdbool.h> 12671#include <stdlib.h> 12672#include <wchar.h> 12673#include <stdio.h> 12674 12675// Check varargs macros. These examples are taken from C99 6.10.3.5. 12676#define debug(...) fprintf (stderr, __VA_ARGS__) 12677#define showlist(...) puts (#__VA_ARGS__) 12678#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 12679static void 12680test_varargs_macros (void) 12681{ 12682 int x = 1234; 12683 int y = 5678; 12684 debug ("Flag"); 12685 debug ("X = %d\n", x); 12686 showlist (The first, second, and third items.); 12687 report (x>y, "x is %d but y is %d", x, y); 12688} 12689 12690// Check long long types. 12691#define BIG64 18446744073709551615ull 12692#define BIG32 4294967295ul 12693#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 12694#if !BIG_OK 12695 your preprocessor is broken; 12696#endif 12697#if BIG_OK 12698#else 12699 your preprocessor is broken; 12700#endif 12701static long long int bignum = -9223372036854775807LL; 12702static unsigned long long int ubignum = BIG64; 12703 12704struct incomplete_array 12705{ 12706 int datasize; 12707 double data[]; 12708}; 12709 12710struct named_init { 12711 int number; 12712 const wchar_t *name; 12713 double average; 12714}; 12715 12716typedef const char *ccp; 12717 12718static inline int 12719test_restrict (ccp restrict text) 12720{ 12721 // See if C++-style comments work. 12722 // Iterate through items via the restricted pointer. 12723 // Also check for declarations in for loops. 12724 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 12725 continue; 12726 return 0; 12727} 12728 12729// Check varargs and va_copy. 12730static void 12731test_varargs (const char *format, ...) 12732{ 12733 va_list args; 12734 va_start (args, format); 12735 va_list args_copy; 12736 va_copy (args_copy, args); 12737 12738 const char *str; 12739 int number; 12740 float fnumber; 12741 12742 while (*format) 12743 { 12744 switch (*format++) 12745 { 12746 case 's': // string 12747 str = va_arg (args_copy, const char *); 12748 break; 12749 case 'd': // int 12750 number = va_arg (args_copy, int); 12751 break; 12752 case 'f': // float 12753 fnumber = va_arg (args_copy, double); 12754 break; 12755 default: 12756 break; 12757 } 12758 } 12759 va_end (args_copy); 12760 va_end (args); 12761} 12762 12763int 12764main () 12765{ 12766 12767 // Check bool. 12768 _Bool success = false; 12769 12770 // Check restrict. 12771 if (test_restrict ("String literal") == 0) 12772 success = true; 12773 char *restrict newvar = "Another string"; 12774 12775 // Check varargs. 12776 test_varargs ("s, d' f .", "string", 65, 34.234); 12777 test_varargs_macros (); 12778 12779 // Check flexible array members. 12780 struct incomplete_array *ia = 12781 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 12782 ia->datasize = 10; 12783 for (int i = 0; i < ia->datasize; ++i) 12784 ia->data[i] = i * 1.234; 12785 12786 // Check named initializers. 12787 struct named_init ni = { 12788 .number = 34, 12789 .name = L"Test wide string", 12790 .average = 543.34343, 12791 }; 12792 12793 ni.number = 58; 12794 12795 int dynamic_array[ni.number]; 12796 dynamic_array[ni.number - 1] = 543; 12797 12798 // work around unused variable warnings 12799 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 12800 || dynamic_array[ni.number - 1] != 543); 12801 12802 ; 12803 return 0; 12804} 12805_ACEOF 12806for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 12807do 12808 CC="$ac_save_CC $ac_arg" 12809 if ac_fn_c_try_compile "$LINENO"; then : 12810 ac_cv_prog_cc_c99=$ac_arg 12811fi 12812rm -f core conftest.err conftest.$ac_objext 12813 test "x$ac_cv_prog_cc_c99" != "xno" && break 12814done 12815rm -f conftest.$ac_ext 12816CC=$ac_save_CC 12817 12818fi 12819# AC_CACHE_VAL 12820case "x$ac_cv_prog_cc_c99" in 12821 x) 12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12823$as_echo "none needed" >&6; } ;; 12824 xno) 12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12826$as_echo "unsupported" >&6; } ;; 12827 *) 12828 CC="$CC $ac_cv_prog_cc_c99" 12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 12830$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 12831esac 12832if test "x$ac_cv_prog_cc_c99" != xno; then : 12833 12834fi 12835 12836 12837 12838 12839 12840 12841ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 12842if test "x$ac_cv_have_decl___clang__" = xyes; then : 12843 CLANGCC="yes" 12844else 12845 CLANGCC="no" 12846fi 12847 12848ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 12849if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 12850 INTELCC="yes" 12851else 12852 INTELCC="no" 12853fi 12854 12855ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 12856if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 12857 SUNCC="yes" 12858else 12859 SUNCC="no" 12860fi 12861 12862 12863 12864 12865 12866 12867 12868 12869 12870if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12871 if test -n "$ac_tool_prefix"; then 12872 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12873set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12875$as_echo_n "checking for $ac_word... " >&6; } 12876if ${ac_cv_path_PKG_CONFIG+:} false; then : 12877 $as_echo_n "(cached) " >&6 12878else 12879 case $PKG_CONFIG in 12880 [\\/]* | ?:[\\/]*) 12881 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12882 ;; 12883 *) 12884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12885for as_dir in $PATH 12886do 12887 IFS=$as_save_IFS 12888 test -z "$as_dir" && as_dir=. 12889 for ac_exec_ext in '' $ac_executable_extensions; do 12890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12891 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12893 break 2 12894 fi 12895done 12896 done 12897IFS=$as_save_IFS 12898 12899 ;; 12900esac 12901fi 12902PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12903if test -n "$PKG_CONFIG"; then 12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12905$as_echo "$PKG_CONFIG" >&6; } 12906else 12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12908$as_echo "no" >&6; } 12909fi 12910 12911 12912fi 12913if test -z "$ac_cv_path_PKG_CONFIG"; then 12914 ac_pt_PKG_CONFIG=$PKG_CONFIG 12915 # Extract the first word of "pkg-config", so it can be a program name with args. 12916set dummy pkg-config; ac_word=$2 12917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12918$as_echo_n "checking for $ac_word... " >&6; } 12919if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 12920 $as_echo_n "(cached) " >&6 12921else 12922 case $ac_pt_PKG_CONFIG in 12923 [\\/]* | ?:[\\/]*) 12924 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12925 ;; 12926 *) 12927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12928for as_dir in $PATH 12929do 12930 IFS=$as_save_IFS 12931 test -z "$as_dir" && as_dir=. 12932 for ac_exec_ext in '' $ac_executable_extensions; do 12933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12934 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12936 break 2 12937 fi 12938done 12939 done 12940IFS=$as_save_IFS 12941 12942 ;; 12943esac 12944fi 12945ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12946if test -n "$ac_pt_PKG_CONFIG"; then 12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12948$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12949else 12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12951$as_echo "no" >&6; } 12952fi 12953 12954 if test "x$ac_pt_PKG_CONFIG" = x; then 12955 PKG_CONFIG="" 12956 else 12957 case $cross_compiling:$ac_tool_warned in 12958yes:) 12959{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12960$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12961ac_tool_warned=yes ;; 12962esac 12963 PKG_CONFIG=$ac_pt_PKG_CONFIG 12964 fi 12965else 12966 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12967fi 12968 12969fi 12970if test -n "$PKG_CONFIG"; then 12971 _pkg_min_version=0.9.0 12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12973$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12974 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12976$as_echo "yes" >&6; } 12977 else 12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12979$as_echo "no" >&6; } 12980 PKG_CONFIG="" 12981 fi 12982fi 12983 12984 12985 12986 12987 12988# Check whether --enable-selective-werror was given. 12989if test "${enable_selective_werror+set}" = set; then : 12990 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12991else 12992 SELECTIVE_WERROR=yes 12993fi 12994 12995 12996 12997 12998 12999# -v is too short to test reliably with XORG_TESTSET_CFLAG 13000if test "x$SUNCC" = "xyes"; then 13001 BASE_CFLAGS="-v" 13002else 13003 BASE_CFLAGS="" 13004fi 13005 13006# This chunk of warnings were those that existed in the legacy CWARNFLAGS 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020xorg_testset_save_CFLAGS="$CFLAGS" 13021 13022if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13025$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13026if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13027 $as_echo_n "(cached) " >&6 13028else 13029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13030/* end confdefs.h. */ 13031int i; 13032_ACEOF 13033if ac_fn_c_try_compile "$LINENO"; then : 13034 xorg_cv_cc_flag_unknown_warning_option=yes 13035else 13036 xorg_cv_cc_flag_unknown_warning_option=no 13037fi 13038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13039fi 13040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13041$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13042 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13043 CFLAGS="$xorg_testset_save_CFLAGS" 13044fi 13045 13046if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13047 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13048 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13049 fi 13050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13052$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13053if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13054 $as_echo_n "(cached) " >&6 13055else 13056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13057/* end confdefs.h. */ 13058int i; 13059_ACEOF 13060if ac_fn_c_try_compile "$LINENO"; then : 13061 xorg_cv_cc_flag_unused_command_line_argument=yes 13062else 13063 xorg_cv_cc_flag_unused_command_line_argument=no 13064fi 13065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13066fi 13067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13068$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13069 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13070 CFLAGS="$xorg_testset_save_CFLAGS" 13071fi 13072 13073found="no" 13074 13075 if test $found = "no" ; then 13076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13078 fi 13079 13080 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13082 fi 13083 13084 CFLAGS="$CFLAGS -Wall" 13085 13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 13087$as_echo_n "checking if $CC supports -Wall... " >&6; } 13088 cacheid=xorg_cv_cc_flag__Wall 13089 if eval \${$cacheid+:} false; then : 13090 $as_echo_n "(cached) " >&6 13091else 13092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13093/* end confdefs.h. */ 13094int i; 13095int 13096main () 13097{ 13098 13099 ; 13100 return 0; 13101} 13102_ACEOF 13103if ac_fn_c_try_link "$LINENO"; then : 13104 eval $cacheid=yes 13105else 13106 eval $cacheid=no 13107fi 13108rm -f core conftest.err conftest.$ac_objext \ 13109 conftest$ac_exeext conftest.$ac_ext 13110fi 13111 13112 13113 CFLAGS="$xorg_testset_save_CFLAGS" 13114 13115 eval supported=\$$cacheid 13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13117$as_echo "$supported" >&6; } 13118 if test "$supported" = "yes" ; then 13119 BASE_CFLAGS="$BASE_CFLAGS -Wall" 13120 found="yes" 13121 fi 13122 fi 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138xorg_testset_save_CFLAGS="$CFLAGS" 13139 13140if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13143$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13144if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13145 $as_echo_n "(cached) " >&6 13146else 13147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13148/* end confdefs.h. */ 13149int i; 13150_ACEOF 13151if ac_fn_c_try_compile "$LINENO"; then : 13152 xorg_cv_cc_flag_unknown_warning_option=yes 13153else 13154 xorg_cv_cc_flag_unknown_warning_option=no 13155fi 13156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13157fi 13158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13159$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13160 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13161 CFLAGS="$xorg_testset_save_CFLAGS" 13162fi 13163 13164if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13166 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13167 fi 13168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13170$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13171if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13172 $as_echo_n "(cached) " >&6 13173else 13174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13175/* end confdefs.h. */ 13176int i; 13177_ACEOF 13178if ac_fn_c_try_compile "$LINENO"; then : 13179 xorg_cv_cc_flag_unused_command_line_argument=yes 13180else 13181 xorg_cv_cc_flag_unused_command_line_argument=no 13182fi 13183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13184fi 13185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13186$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13187 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13188 CFLAGS="$xorg_testset_save_CFLAGS" 13189fi 13190 13191found="no" 13192 13193 if test $found = "no" ; then 13194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13196 fi 13197 13198 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13200 fi 13201 13202 CFLAGS="$CFLAGS -Wpointer-arith" 13203 13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 13205$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 13206 cacheid=xorg_cv_cc_flag__Wpointer_arith 13207 if eval \${$cacheid+:} false; then : 13208 $as_echo_n "(cached) " >&6 13209else 13210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13211/* end confdefs.h. */ 13212int i; 13213int 13214main () 13215{ 13216 13217 ; 13218 return 0; 13219} 13220_ACEOF 13221if ac_fn_c_try_link "$LINENO"; then : 13222 eval $cacheid=yes 13223else 13224 eval $cacheid=no 13225fi 13226rm -f core conftest.err conftest.$ac_objext \ 13227 conftest$ac_exeext conftest.$ac_ext 13228fi 13229 13230 13231 CFLAGS="$xorg_testset_save_CFLAGS" 13232 13233 eval supported=\$$cacheid 13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13235$as_echo "$supported" >&6; } 13236 if test "$supported" = "yes" ; then 13237 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 13238 found="yes" 13239 fi 13240 fi 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256xorg_testset_save_CFLAGS="$CFLAGS" 13257 13258if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13261$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13262if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13263 $as_echo_n "(cached) " >&6 13264else 13265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13266/* end confdefs.h. */ 13267int i; 13268_ACEOF 13269if ac_fn_c_try_compile "$LINENO"; then : 13270 xorg_cv_cc_flag_unknown_warning_option=yes 13271else 13272 xorg_cv_cc_flag_unknown_warning_option=no 13273fi 13274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13275fi 13276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13277$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13278 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13279 CFLAGS="$xorg_testset_save_CFLAGS" 13280fi 13281 13282if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13283 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13284 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13285 fi 13286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13288$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13289if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13290 $as_echo_n "(cached) " >&6 13291else 13292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13293/* end confdefs.h. */ 13294int i; 13295_ACEOF 13296if ac_fn_c_try_compile "$LINENO"; then : 13297 xorg_cv_cc_flag_unused_command_line_argument=yes 13298else 13299 xorg_cv_cc_flag_unused_command_line_argument=no 13300fi 13301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13302fi 13303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13304$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13305 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13306 CFLAGS="$xorg_testset_save_CFLAGS" 13307fi 13308 13309found="no" 13310 13311 if test $found = "no" ; then 13312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13313 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13314 fi 13315 13316 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13318 fi 13319 13320 CFLAGS="$CFLAGS -Wmissing-declarations" 13321 13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 13323$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 13324 cacheid=xorg_cv_cc_flag__Wmissing_declarations 13325 if eval \${$cacheid+:} false; then : 13326 $as_echo_n "(cached) " >&6 13327else 13328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13329/* end confdefs.h. */ 13330int i; 13331int 13332main () 13333{ 13334 13335 ; 13336 return 0; 13337} 13338_ACEOF 13339if ac_fn_c_try_link "$LINENO"; then : 13340 eval $cacheid=yes 13341else 13342 eval $cacheid=no 13343fi 13344rm -f core conftest.err conftest.$ac_objext \ 13345 conftest$ac_exeext conftest.$ac_ext 13346fi 13347 13348 13349 CFLAGS="$xorg_testset_save_CFLAGS" 13350 13351 eval supported=\$$cacheid 13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13353$as_echo "$supported" >&6; } 13354 if test "$supported" = "yes" ; then 13355 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 13356 found="yes" 13357 fi 13358 fi 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369 13370 13371 13372 13373 13374xorg_testset_save_CFLAGS="$CFLAGS" 13375 13376if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13377 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13379$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13380if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13381 $as_echo_n "(cached) " >&6 13382else 13383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13384/* end confdefs.h. */ 13385int i; 13386_ACEOF 13387if ac_fn_c_try_compile "$LINENO"; then : 13388 xorg_cv_cc_flag_unknown_warning_option=yes 13389else 13390 xorg_cv_cc_flag_unknown_warning_option=no 13391fi 13392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13393fi 13394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13395$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13396 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13397 CFLAGS="$xorg_testset_save_CFLAGS" 13398fi 13399 13400if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13401 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13402 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13403 fi 13404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13406$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13407if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13408 $as_echo_n "(cached) " >&6 13409else 13410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13411/* end confdefs.h. */ 13412int i; 13413_ACEOF 13414if ac_fn_c_try_compile "$LINENO"; then : 13415 xorg_cv_cc_flag_unused_command_line_argument=yes 13416else 13417 xorg_cv_cc_flag_unused_command_line_argument=no 13418fi 13419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13420fi 13421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13422$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13423 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13424 CFLAGS="$xorg_testset_save_CFLAGS" 13425fi 13426 13427found="no" 13428 13429 if test $found = "no" ; then 13430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13432 fi 13433 13434 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13436 fi 13437 13438 CFLAGS="$CFLAGS -Wformat=2" 13439 13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 13441$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 13442 cacheid=xorg_cv_cc_flag__Wformat_2 13443 if eval \${$cacheid+:} false; then : 13444 $as_echo_n "(cached) " >&6 13445else 13446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13447/* end confdefs.h. */ 13448int i; 13449int 13450main () 13451{ 13452 13453 ; 13454 return 0; 13455} 13456_ACEOF 13457if ac_fn_c_try_link "$LINENO"; then : 13458 eval $cacheid=yes 13459else 13460 eval $cacheid=no 13461fi 13462rm -f core conftest.err conftest.$ac_objext \ 13463 conftest$ac_exeext conftest.$ac_ext 13464fi 13465 13466 13467 CFLAGS="$xorg_testset_save_CFLAGS" 13468 13469 eval supported=\$$cacheid 13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13471$as_echo "$supported" >&6; } 13472 if test "$supported" = "yes" ; then 13473 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 13474 found="yes" 13475 fi 13476 fi 13477 13478 if test $found = "no" ; then 13479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13481 fi 13482 13483 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13485 fi 13486 13487 CFLAGS="$CFLAGS -Wformat" 13488 13489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 13490$as_echo_n "checking if $CC supports -Wformat... " >&6; } 13491 cacheid=xorg_cv_cc_flag__Wformat 13492 if eval \${$cacheid+:} false; then : 13493 $as_echo_n "(cached) " >&6 13494else 13495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13496/* end confdefs.h. */ 13497int i; 13498int 13499main () 13500{ 13501 13502 ; 13503 return 0; 13504} 13505_ACEOF 13506if ac_fn_c_try_link "$LINENO"; then : 13507 eval $cacheid=yes 13508else 13509 eval $cacheid=no 13510fi 13511rm -f core conftest.err conftest.$ac_objext \ 13512 conftest$ac_exeext conftest.$ac_ext 13513fi 13514 13515 13516 CFLAGS="$xorg_testset_save_CFLAGS" 13517 13518 eval supported=\$$cacheid 13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13520$as_echo "$supported" >&6; } 13521 if test "$supported" = "yes" ; then 13522 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 13523 found="yes" 13524 fi 13525 fi 13526 13527 13528 13529 13530 13531 13532 13533 13534 13535 13536 13537 13538 13539 13540 13541 13542 13543xorg_testset_save_CFLAGS="$CFLAGS" 13544 13545if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13548$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13549if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13550 $as_echo_n "(cached) " >&6 13551else 13552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13553/* end confdefs.h. */ 13554int i; 13555_ACEOF 13556if ac_fn_c_try_compile "$LINENO"; then : 13557 xorg_cv_cc_flag_unknown_warning_option=yes 13558else 13559 xorg_cv_cc_flag_unknown_warning_option=no 13560fi 13561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13562fi 13563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13564$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13565 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13566 CFLAGS="$xorg_testset_save_CFLAGS" 13567fi 13568 13569if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13572 fi 13573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13575$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13576if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13577 $as_echo_n "(cached) " >&6 13578else 13579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13580/* end confdefs.h. */ 13581int i; 13582_ACEOF 13583if ac_fn_c_try_compile "$LINENO"; then : 13584 xorg_cv_cc_flag_unused_command_line_argument=yes 13585else 13586 xorg_cv_cc_flag_unused_command_line_argument=no 13587fi 13588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13589fi 13590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13591$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13592 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13593 CFLAGS="$xorg_testset_save_CFLAGS" 13594fi 13595 13596found="no" 13597 13598 if test $found = "no" ; then 13599 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13601 fi 13602 13603 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13605 fi 13606 13607 CFLAGS="$CFLAGS -Wstrict-prototypes" 13608 13609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 13610$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 13611 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 13612 if eval \${$cacheid+:} false; then : 13613 $as_echo_n "(cached) " >&6 13614else 13615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13616/* end confdefs.h. */ 13617int i; 13618int 13619main () 13620{ 13621 13622 ; 13623 return 0; 13624} 13625_ACEOF 13626if ac_fn_c_try_link "$LINENO"; then : 13627 eval $cacheid=yes 13628else 13629 eval $cacheid=no 13630fi 13631rm -f core conftest.err conftest.$ac_objext \ 13632 conftest$ac_exeext conftest.$ac_ext 13633fi 13634 13635 13636 CFLAGS="$xorg_testset_save_CFLAGS" 13637 13638 eval supported=\$$cacheid 13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13640$as_echo "$supported" >&6; } 13641 if test "$supported" = "yes" ; then 13642 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 13643 found="yes" 13644 fi 13645 fi 13646 13647 13648 13649 13650 13651 13652 13653 13654 13655 13656 13657 13658 13659 13660 13661xorg_testset_save_CFLAGS="$CFLAGS" 13662 13663if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13666$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13667if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13668 $as_echo_n "(cached) " >&6 13669else 13670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13671/* end confdefs.h. */ 13672int i; 13673_ACEOF 13674if ac_fn_c_try_compile "$LINENO"; then : 13675 xorg_cv_cc_flag_unknown_warning_option=yes 13676else 13677 xorg_cv_cc_flag_unknown_warning_option=no 13678fi 13679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13680fi 13681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13682$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13683 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13684 CFLAGS="$xorg_testset_save_CFLAGS" 13685fi 13686 13687if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13689 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13690 fi 13691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13693$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13694if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13695 $as_echo_n "(cached) " >&6 13696else 13697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13698/* end confdefs.h. */ 13699int i; 13700_ACEOF 13701if ac_fn_c_try_compile "$LINENO"; then : 13702 xorg_cv_cc_flag_unused_command_line_argument=yes 13703else 13704 xorg_cv_cc_flag_unused_command_line_argument=no 13705fi 13706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13707fi 13708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13709$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13710 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13711 CFLAGS="$xorg_testset_save_CFLAGS" 13712fi 13713 13714found="no" 13715 13716 if test $found = "no" ; then 13717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13719 fi 13720 13721 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13723 fi 13724 13725 CFLAGS="$CFLAGS -Wmissing-prototypes" 13726 13727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13728$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 13729 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13730 if eval \${$cacheid+:} false; then : 13731 $as_echo_n "(cached) " >&6 13732else 13733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13734/* end confdefs.h. */ 13735int i; 13736int 13737main () 13738{ 13739 13740 ; 13741 return 0; 13742} 13743_ACEOF 13744if ac_fn_c_try_link "$LINENO"; then : 13745 eval $cacheid=yes 13746else 13747 eval $cacheid=no 13748fi 13749rm -f core conftest.err conftest.$ac_objext \ 13750 conftest$ac_exeext conftest.$ac_ext 13751fi 13752 13753 13754 CFLAGS="$xorg_testset_save_CFLAGS" 13755 13756 eval supported=\$$cacheid 13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13758$as_echo "$supported" >&6; } 13759 if test "$supported" = "yes" ; then 13760 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 13761 found="yes" 13762 fi 13763 fi 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774 13775 13776 13777 13778 13779xorg_testset_save_CFLAGS="$CFLAGS" 13780 13781if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13782 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13784$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13785if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13786 $as_echo_n "(cached) " >&6 13787else 13788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13789/* end confdefs.h. */ 13790int i; 13791_ACEOF 13792if ac_fn_c_try_compile "$LINENO"; then : 13793 xorg_cv_cc_flag_unknown_warning_option=yes 13794else 13795 xorg_cv_cc_flag_unknown_warning_option=no 13796fi 13797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13798fi 13799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13800$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13801 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13802 CFLAGS="$xorg_testset_save_CFLAGS" 13803fi 13804 13805if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13808 fi 13809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13811$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13812if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13813 $as_echo_n "(cached) " >&6 13814else 13815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13816/* end confdefs.h. */ 13817int i; 13818_ACEOF 13819if ac_fn_c_try_compile "$LINENO"; then : 13820 xorg_cv_cc_flag_unused_command_line_argument=yes 13821else 13822 xorg_cv_cc_flag_unused_command_line_argument=no 13823fi 13824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13825fi 13826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13827$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13828 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13829 CFLAGS="$xorg_testset_save_CFLAGS" 13830fi 13831 13832found="no" 13833 13834 if test $found = "no" ; then 13835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13837 fi 13838 13839 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13841 fi 13842 13843 CFLAGS="$CFLAGS -Wnested-externs" 13844 13845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 13846$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 13847 cacheid=xorg_cv_cc_flag__Wnested_externs 13848 if eval \${$cacheid+:} false; then : 13849 $as_echo_n "(cached) " >&6 13850else 13851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13852/* end confdefs.h. */ 13853int i; 13854int 13855main () 13856{ 13857 13858 ; 13859 return 0; 13860} 13861_ACEOF 13862if ac_fn_c_try_link "$LINENO"; then : 13863 eval $cacheid=yes 13864else 13865 eval $cacheid=no 13866fi 13867rm -f core conftest.err conftest.$ac_objext \ 13868 conftest$ac_exeext conftest.$ac_ext 13869fi 13870 13871 13872 CFLAGS="$xorg_testset_save_CFLAGS" 13873 13874 eval supported=\$$cacheid 13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13876$as_echo "$supported" >&6; } 13877 if test "$supported" = "yes" ; then 13878 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 13879 found="yes" 13880 fi 13881 fi 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 13895 13896 13897xorg_testset_save_CFLAGS="$CFLAGS" 13898 13899if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13902$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13903if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13904 $as_echo_n "(cached) " >&6 13905else 13906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13907/* end confdefs.h. */ 13908int i; 13909_ACEOF 13910if ac_fn_c_try_compile "$LINENO"; then : 13911 xorg_cv_cc_flag_unknown_warning_option=yes 13912else 13913 xorg_cv_cc_flag_unknown_warning_option=no 13914fi 13915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13916fi 13917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13918$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13919 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13920 CFLAGS="$xorg_testset_save_CFLAGS" 13921fi 13922 13923if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13924 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13925 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13926 fi 13927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13929$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13930if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13931 $as_echo_n "(cached) " >&6 13932else 13933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13934/* end confdefs.h. */ 13935int i; 13936_ACEOF 13937if ac_fn_c_try_compile "$LINENO"; then : 13938 xorg_cv_cc_flag_unused_command_line_argument=yes 13939else 13940 xorg_cv_cc_flag_unused_command_line_argument=no 13941fi 13942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13943fi 13944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13945$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13946 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13947 CFLAGS="$xorg_testset_save_CFLAGS" 13948fi 13949 13950found="no" 13951 13952 if test $found = "no" ; then 13953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13955 fi 13956 13957 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13959 fi 13960 13961 CFLAGS="$CFLAGS -Wbad-function-cast" 13962 13963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 13964$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 13965 cacheid=xorg_cv_cc_flag__Wbad_function_cast 13966 if eval \${$cacheid+:} false; then : 13967 $as_echo_n "(cached) " >&6 13968else 13969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13970/* end confdefs.h. */ 13971int i; 13972int 13973main () 13974{ 13975 13976 ; 13977 return 0; 13978} 13979_ACEOF 13980if ac_fn_c_try_link "$LINENO"; then : 13981 eval $cacheid=yes 13982else 13983 eval $cacheid=no 13984fi 13985rm -f core conftest.err conftest.$ac_objext \ 13986 conftest$ac_exeext conftest.$ac_ext 13987fi 13988 13989 13990 CFLAGS="$xorg_testset_save_CFLAGS" 13991 13992 eval supported=\$$cacheid 13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13994$as_echo "$supported" >&6; } 13995 if test "$supported" = "yes" ; then 13996 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 13997 found="yes" 13998 fi 13999 fi 14000 14001 14002 14003 14004 14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015xorg_testset_save_CFLAGS="$CFLAGS" 14016 14017if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14020$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14021if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14022 $as_echo_n "(cached) " >&6 14023else 14024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14025/* end confdefs.h. */ 14026int i; 14027_ACEOF 14028if ac_fn_c_try_compile "$LINENO"; then : 14029 xorg_cv_cc_flag_unknown_warning_option=yes 14030else 14031 xorg_cv_cc_flag_unknown_warning_option=no 14032fi 14033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14034fi 14035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14036$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14037 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14038 CFLAGS="$xorg_testset_save_CFLAGS" 14039fi 14040 14041if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14044 fi 14045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14047$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14048if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14049 $as_echo_n "(cached) " >&6 14050else 14051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14052/* end confdefs.h. */ 14053int i; 14054_ACEOF 14055if ac_fn_c_try_compile "$LINENO"; then : 14056 xorg_cv_cc_flag_unused_command_line_argument=yes 14057else 14058 xorg_cv_cc_flag_unused_command_line_argument=no 14059fi 14060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14061fi 14062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14063$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14064 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14065 CFLAGS="$xorg_testset_save_CFLAGS" 14066fi 14067 14068found="no" 14069 14070 if test $found = "no" ; then 14071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14073 fi 14074 14075 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14077 fi 14078 14079 CFLAGS="$CFLAGS -Wold-style-definition" 14080 14081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 14082$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 14083 cacheid=xorg_cv_cc_flag__Wold_style_definition 14084 if eval \${$cacheid+:} false; then : 14085 $as_echo_n "(cached) " >&6 14086else 14087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14088/* end confdefs.h. */ 14089int i; 14090int 14091main () 14092{ 14093 14094 ; 14095 return 0; 14096} 14097_ACEOF 14098if ac_fn_c_try_link "$LINENO"; then : 14099 eval $cacheid=yes 14100else 14101 eval $cacheid=no 14102fi 14103rm -f core conftest.err conftest.$ac_objext \ 14104 conftest$ac_exeext conftest.$ac_ext 14105fi 14106 14107 14108 CFLAGS="$xorg_testset_save_CFLAGS" 14109 14110 eval supported=\$$cacheid 14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14112$as_echo "$supported" >&6; } 14113 if test "$supported" = "yes" ; then 14114 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 14115 found="yes" 14116 fi 14117 fi 14118 14119 if test $found = "no" ; then 14120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14122 fi 14123 14124 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14126 fi 14127 14128 CFLAGS="$CFLAGS -fd" 14129 14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 14131$as_echo_n "checking if $CC supports -fd... " >&6; } 14132 cacheid=xorg_cv_cc_flag__fd 14133 if eval \${$cacheid+:} false; then : 14134 $as_echo_n "(cached) " >&6 14135else 14136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14137/* end confdefs.h. */ 14138int i; 14139int 14140main () 14141{ 14142 14143 ; 14144 return 0; 14145} 14146_ACEOF 14147if ac_fn_c_try_link "$LINENO"; then : 14148 eval $cacheid=yes 14149else 14150 eval $cacheid=no 14151fi 14152rm -f core conftest.err conftest.$ac_objext \ 14153 conftest$ac_exeext conftest.$ac_ext 14154fi 14155 14156 14157 CFLAGS="$xorg_testset_save_CFLAGS" 14158 14159 eval supported=\$$cacheid 14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14161$as_echo "$supported" >&6; } 14162 if test "$supported" = "yes" ; then 14163 BASE_CFLAGS="$BASE_CFLAGS -fd" 14164 found="yes" 14165 fi 14166 fi 14167 14168 14169 14170 14171 14172 14173 14174 14175 14176 14177 14178 14179 14180 14181 14182xorg_testset_save_CFLAGS="$CFLAGS" 14183 14184if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14185 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14187$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14188if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14189 $as_echo_n "(cached) " >&6 14190else 14191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14192/* end confdefs.h. */ 14193int i; 14194_ACEOF 14195if ac_fn_c_try_compile "$LINENO"; then : 14196 xorg_cv_cc_flag_unknown_warning_option=yes 14197else 14198 xorg_cv_cc_flag_unknown_warning_option=no 14199fi 14200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14201fi 14202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14203$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14204 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14205 CFLAGS="$xorg_testset_save_CFLAGS" 14206fi 14207 14208if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14211 fi 14212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14214$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14215if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14216 $as_echo_n "(cached) " >&6 14217else 14218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14219/* end confdefs.h. */ 14220int i; 14221_ACEOF 14222if ac_fn_c_try_compile "$LINENO"; then : 14223 xorg_cv_cc_flag_unused_command_line_argument=yes 14224else 14225 xorg_cv_cc_flag_unused_command_line_argument=no 14226fi 14227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14228fi 14229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14230$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14231 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14232 CFLAGS="$xorg_testset_save_CFLAGS" 14233fi 14234 14235found="no" 14236 14237 if test $found = "no" ; then 14238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14240 fi 14241 14242 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14244 fi 14245 14246 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 14247 14248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 14249$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 14250 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 14251 if eval \${$cacheid+:} false; then : 14252 $as_echo_n "(cached) " >&6 14253else 14254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14255/* end confdefs.h. */ 14256int i; 14257int 14258main () 14259{ 14260 14261 ; 14262 return 0; 14263} 14264_ACEOF 14265if ac_fn_c_try_link "$LINENO"; then : 14266 eval $cacheid=yes 14267else 14268 eval $cacheid=no 14269fi 14270rm -f core conftest.err conftest.$ac_objext \ 14271 conftest$ac_exeext conftest.$ac_ext 14272fi 14273 14274 14275 CFLAGS="$xorg_testset_save_CFLAGS" 14276 14277 eval supported=\$$cacheid 14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14279$as_echo "$supported" >&6; } 14280 if test "$supported" = "yes" ; then 14281 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 14282 found="yes" 14283 fi 14284 fi 14285 14286 14287 14288 14289 14290# This chunk adds additional warnings that could catch undesired effects. 14291 14292 14293 14294 14295 14296 14297 14298 14299 14300 14301 14302 14303 14304xorg_testset_save_CFLAGS="$CFLAGS" 14305 14306if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14307 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14309$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14310if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14311 $as_echo_n "(cached) " >&6 14312else 14313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14314/* end confdefs.h. */ 14315int i; 14316_ACEOF 14317if ac_fn_c_try_compile "$LINENO"; then : 14318 xorg_cv_cc_flag_unknown_warning_option=yes 14319else 14320 xorg_cv_cc_flag_unknown_warning_option=no 14321fi 14322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14323fi 14324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14325$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14326 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14327 CFLAGS="$xorg_testset_save_CFLAGS" 14328fi 14329 14330if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14331 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14332 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14333 fi 14334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14336$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14337if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14338 $as_echo_n "(cached) " >&6 14339else 14340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14341/* end confdefs.h. */ 14342int i; 14343_ACEOF 14344if ac_fn_c_try_compile "$LINENO"; then : 14345 xorg_cv_cc_flag_unused_command_line_argument=yes 14346else 14347 xorg_cv_cc_flag_unused_command_line_argument=no 14348fi 14349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14350fi 14351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14352$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14353 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14354 CFLAGS="$xorg_testset_save_CFLAGS" 14355fi 14356 14357found="no" 14358 14359 if test $found = "no" ; then 14360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14362 fi 14363 14364 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14366 fi 14367 14368 CFLAGS="$CFLAGS -Wunused" 14369 14370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 14371$as_echo_n "checking if $CC supports -Wunused... " >&6; } 14372 cacheid=xorg_cv_cc_flag__Wunused 14373 if eval \${$cacheid+:} false; then : 14374 $as_echo_n "(cached) " >&6 14375else 14376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14377/* end confdefs.h. */ 14378int i; 14379int 14380main () 14381{ 14382 14383 ; 14384 return 0; 14385} 14386_ACEOF 14387if ac_fn_c_try_link "$LINENO"; then : 14388 eval $cacheid=yes 14389else 14390 eval $cacheid=no 14391fi 14392rm -f core conftest.err conftest.$ac_objext \ 14393 conftest$ac_exeext conftest.$ac_ext 14394fi 14395 14396 14397 CFLAGS="$xorg_testset_save_CFLAGS" 14398 14399 eval supported=\$$cacheid 14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14401$as_echo "$supported" >&6; } 14402 if test "$supported" = "yes" ; then 14403 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 14404 found="yes" 14405 fi 14406 fi 14407 14408 14409 14410 14411 14412 14413 14414 14415 14416 14417 14418 14419 14420 14421 14422xorg_testset_save_CFLAGS="$CFLAGS" 14423 14424if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14425 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14427$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14428if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14429 $as_echo_n "(cached) " >&6 14430else 14431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14432/* end confdefs.h. */ 14433int i; 14434_ACEOF 14435if ac_fn_c_try_compile "$LINENO"; then : 14436 xorg_cv_cc_flag_unknown_warning_option=yes 14437else 14438 xorg_cv_cc_flag_unknown_warning_option=no 14439fi 14440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14441fi 14442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14443$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14444 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14445 CFLAGS="$xorg_testset_save_CFLAGS" 14446fi 14447 14448if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14451 fi 14452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14454$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14455if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14456 $as_echo_n "(cached) " >&6 14457else 14458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14459/* end confdefs.h. */ 14460int i; 14461_ACEOF 14462if ac_fn_c_try_compile "$LINENO"; then : 14463 xorg_cv_cc_flag_unused_command_line_argument=yes 14464else 14465 xorg_cv_cc_flag_unused_command_line_argument=no 14466fi 14467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14468fi 14469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14470$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14471 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14472 CFLAGS="$xorg_testset_save_CFLAGS" 14473fi 14474 14475found="no" 14476 14477 if test $found = "no" ; then 14478 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14479 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14480 fi 14481 14482 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14484 fi 14485 14486 CFLAGS="$CFLAGS -Wuninitialized" 14487 14488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 14489$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 14490 cacheid=xorg_cv_cc_flag__Wuninitialized 14491 if eval \${$cacheid+:} false; then : 14492 $as_echo_n "(cached) " >&6 14493else 14494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14495/* end confdefs.h. */ 14496int i; 14497int 14498main () 14499{ 14500 14501 ; 14502 return 0; 14503} 14504_ACEOF 14505if ac_fn_c_try_link "$LINENO"; then : 14506 eval $cacheid=yes 14507else 14508 eval $cacheid=no 14509fi 14510rm -f core conftest.err conftest.$ac_objext \ 14511 conftest$ac_exeext conftest.$ac_ext 14512fi 14513 14514 14515 CFLAGS="$xorg_testset_save_CFLAGS" 14516 14517 eval supported=\$$cacheid 14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14519$as_echo "$supported" >&6; } 14520 if test "$supported" = "yes" ; then 14521 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 14522 found="yes" 14523 fi 14524 fi 14525 14526 14527 14528 14529 14530 14531 14532 14533 14534 14535 14536 14537 14538 14539 14540xorg_testset_save_CFLAGS="$CFLAGS" 14541 14542if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14545$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14546if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14547 $as_echo_n "(cached) " >&6 14548else 14549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14550/* end confdefs.h. */ 14551int i; 14552_ACEOF 14553if ac_fn_c_try_compile "$LINENO"; then : 14554 xorg_cv_cc_flag_unknown_warning_option=yes 14555else 14556 xorg_cv_cc_flag_unknown_warning_option=no 14557fi 14558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14559fi 14560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14561$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14562 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14563 CFLAGS="$xorg_testset_save_CFLAGS" 14564fi 14565 14566if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14567 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14568 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14569 fi 14570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14572$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14573if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14574 $as_echo_n "(cached) " >&6 14575else 14576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14577/* end confdefs.h. */ 14578int i; 14579_ACEOF 14580if ac_fn_c_try_compile "$LINENO"; then : 14581 xorg_cv_cc_flag_unused_command_line_argument=yes 14582else 14583 xorg_cv_cc_flag_unused_command_line_argument=no 14584fi 14585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14586fi 14587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14588$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14589 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14590 CFLAGS="$xorg_testset_save_CFLAGS" 14591fi 14592 14593found="no" 14594 14595 if test $found = "no" ; then 14596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14597 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14598 fi 14599 14600 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14602 fi 14603 14604 CFLAGS="$CFLAGS -Wshadow" 14605 14606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 14607$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 14608 cacheid=xorg_cv_cc_flag__Wshadow 14609 if eval \${$cacheid+:} false; then : 14610 $as_echo_n "(cached) " >&6 14611else 14612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14613/* end confdefs.h. */ 14614int i; 14615int 14616main () 14617{ 14618 14619 ; 14620 return 0; 14621} 14622_ACEOF 14623if ac_fn_c_try_link "$LINENO"; then : 14624 eval $cacheid=yes 14625else 14626 eval $cacheid=no 14627fi 14628rm -f core conftest.err conftest.$ac_objext \ 14629 conftest$ac_exeext conftest.$ac_ext 14630fi 14631 14632 14633 CFLAGS="$xorg_testset_save_CFLAGS" 14634 14635 eval supported=\$$cacheid 14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14637$as_echo "$supported" >&6; } 14638 if test "$supported" = "yes" ; then 14639 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 14640 found="yes" 14641 fi 14642 fi 14643 14644 14645 14646 14647 14648 14649 14650 14651 14652 14653 14654 14655 14656 14657 14658xorg_testset_save_CFLAGS="$CFLAGS" 14659 14660if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14661 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14663$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14664if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14665 $as_echo_n "(cached) " >&6 14666else 14667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14668/* end confdefs.h. */ 14669int i; 14670_ACEOF 14671if ac_fn_c_try_compile "$LINENO"; then : 14672 xorg_cv_cc_flag_unknown_warning_option=yes 14673else 14674 xorg_cv_cc_flag_unknown_warning_option=no 14675fi 14676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14677fi 14678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14679$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14680 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14681 CFLAGS="$xorg_testset_save_CFLAGS" 14682fi 14683 14684if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14687 fi 14688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14690$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14691if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14692 $as_echo_n "(cached) " >&6 14693else 14694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14695/* end confdefs.h. */ 14696int i; 14697_ACEOF 14698if ac_fn_c_try_compile "$LINENO"; then : 14699 xorg_cv_cc_flag_unused_command_line_argument=yes 14700else 14701 xorg_cv_cc_flag_unused_command_line_argument=no 14702fi 14703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14704fi 14705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14706$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14707 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14708 CFLAGS="$xorg_testset_save_CFLAGS" 14709fi 14710 14711found="no" 14712 14713 if test $found = "no" ; then 14714 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14715 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14716 fi 14717 14718 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14720 fi 14721 14722 CFLAGS="$CFLAGS -Wmissing-noreturn" 14723 14724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 14725$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 14726 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 14727 if eval \${$cacheid+:} false; then : 14728 $as_echo_n "(cached) " >&6 14729else 14730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14731/* end confdefs.h. */ 14732int i; 14733int 14734main () 14735{ 14736 14737 ; 14738 return 0; 14739} 14740_ACEOF 14741if ac_fn_c_try_link "$LINENO"; then : 14742 eval $cacheid=yes 14743else 14744 eval $cacheid=no 14745fi 14746rm -f core conftest.err conftest.$ac_objext \ 14747 conftest$ac_exeext conftest.$ac_ext 14748fi 14749 14750 14751 CFLAGS="$xorg_testset_save_CFLAGS" 14752 14753 eval supported=\$$cacheid 14754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14755$as_echo "$supported" >&6; } 14756 if test "$supported" = "yes" ; then 14757 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 14758 found="yes" 14759 fi 14760 fi 14761 14762 14763 14764 14765 14766 14767 14768 14769 14770 14771 14772 14773 14774 14775 14776xorg_testset_save_CFLAGS="$CFLAGS" 14777 14778if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14779 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14781$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14782if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14783 $as_echo_n "(cached) " >&6 14784else 14785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14786/* end confdefs.h. */ 14787int i; 14788_ACEOF 14789if ac_fn_c_try_compile "$LINENO"; then : 14790 xorg_cv_cc_flag_unknown_warning_option=yes 14791else 14792 xorg_cv_cc_flag_unknown_warning_option=no 14793fi 14794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14795fi 14796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14797$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14798 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14799 CFLAGS="$xorg_testset_save_CFLAGS" 14800fi 14801 14802if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14803 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14804 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14805 fi 14806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14808$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14809if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14810 $as_echo_n "(cached) " >&6 14811else 14812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14813/* end confdefs.h. */ 14814int i; 14815_ACEOF 14816if ac_fn_c_try_compile "$LINENO"; then : 14817 xorg_cv_cc_flag_unused_command_line_argument=yes 14818else 14819 xorg_cv_cc_flag_unused_command_line_argument=no 14820fi 14821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14822fi 14823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14824$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14825 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14826 CFLAGS="$xorg_testset_save_CFLAGS" 14827fi 14828 14829found="no" 14830 14831 if test $found = "no" ; then 14832 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14833 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14834 fi 14835 14836 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14838 fi 14839 14840 CFLAGS="$CFLAGS -Wmissing-format-attribute" 14841 14842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 14843$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 14844 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 14845 if eval \${$cacheid+:} false; then : 14846 $as_echo_n "(cached) " >&6 14847else 14848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14849/* end confdefs.h. */ 14850int i; 14851int 14852main () 14853{ 14854 14855 ; 14856 return 0; 14857} 14858_ACEOF 14859if ac_fn_c_try_link "$LINENO"; then : 14860 eval $cacheid=yes 14861else 14862 eval $cacheid=no 14863fi 14864rm -f core conftest.err conftest.$ac_objext \ 14865 conftest$ac_exeext conftest.$ac_ext 14866fi 14867 14868 14869 CFLAGS="$xorg_testset_save_CFLAGS" 14870 14871 eval supported=\$$cacheid 14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14873$as_echo "$supported" >&6; } 14874 if test "$supported" = "yes" ; then 14875 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 14876 found="yes" 14877 fi 14878 fi 14879 14880 14881 14882 14883 14884 14885 14886 14887 14888 14889 14890 14891 14892 14893 14894xorg_testset_save_CFLAGS="$CFLAGS" 14895 14896if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14897 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14899$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14900if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14901 $as_echo_n "(cached) " >&6 14902else 14903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14904/* end confdefs.h. */ 14905int i; 14906_ACEOF 14907if ac_fn_c_try_compile "$LINENO"; then : 14908 xorg_cv_cc_flag_unknown_warning_option=yes 14909else 14910 xorg_cv_cc_flag_unknown_warning_option=no 14911fi 14912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14913fi 14914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14915$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14916 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14917 CFLAGS="$xorg_testset_save_CFLAGS" 14918fi 14919 14920if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14923 fi 14924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14926$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14927if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14928 $as_echo_n "(cached) " >&6 14929else 14930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14931/* end confdefs.h. */ 14932int i; 14933_ACEOF 14934if ac_fn_c_try_compile "$LINENO"; then : 14935 xorg_cv_cc_flag_unused_command_line_argument=yes 14936else 14937 xorg_cv_cc_flag_unused_command_line_argument=no 14938fi 14939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14940fi 14941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14942$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14943 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14944 CFLAGS="$xorg_testset_save_CFLAGS" 14945fi 14946 14947found="no" 14948 14949 if test $found = "no" ; then 14950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14951 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14952 fi 14953 14954 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14956 fi 14957 14958 CFLAGS="$CFLAGS -Wredundant-decls" 14959 14960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 14961$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 14962 cacheid=xorg_cv_cc_flag__Wredundant_decls 14963 if eval \${$cacheid+:} false; then : 14964 $as_echo_n "(cached) " >&6 14965else 14966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14967/* end confdefs.h. */ 14968int i; 14969int 14970main () 14971{ 14972 14973 ; 14974 return 0; 14975} 14976_ACEOF 14977if ac_fn_c_try_link "$LINENO"; then : 14978 eval $cacheid=yes 14979else 14980 eval $cacheid=no 14981fi 14982rm -f core conftest.err conftest.$ac_objext \ 14983 conftest$ac_exeext conftest.$ac_ext 14984fi 14985 14986 14987 CFLAGS="$xorg_testset_save_CFLAGS" 14988 14989 eval supported=\$$cacheid 14990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14991$as_echo "$supported" >&6; } 14992 if test "$supported" = "yes" ; then 14993 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 14994 found="yes" 14995 fi 14996 fi 14997 14998 14999 15000 15001 15002 15003 15004 15005 15006 15007 15008 15009 15010 15011 15012xorg_testset_save_CFLAGS="$CFLAGS" 15013 15014if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15017$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15018if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15019 $as_echo_n "(cached) " >&6 15020else 15021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15022/* end confdefs.h. */ 15023int i; 15024_ACEOF 15025if ac_fn_c_try_compile "$LINENO"; then : 15026 xorg_cv_cc_flag_unknown_warning_option=yes 15027else 15028 xorg_cv_cc_flag_unknown_warning_option=no 15029fi 15030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15031fi 15032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15033$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15034 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15035 CFLAGS="$xorg_testset_save_CFLAGS" 15036fi 15037 15038if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15040 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15041 fi 15042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15044$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15045if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15046 $as_echo_n "(cached) " >&6 15047else 15048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15049/* end confdefs.h. */ 15050int i; 15051_ACEOF 15052if ac_fn_c_try_compile "$LINENO"; then : 15053 xorg_cv_cc_flag_unused_command_line_argument=yes 15054else 15055 xorg_cv_cc_flag_unused_command_line_argument=no 15056fi 15057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15058fi 15059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15060$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15061 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15062 CFLAGS="$xorg_testset_save_CFLAGS" 15063fi 15064 15065found="no" 15066 15067 if test $found = "no" ; then 15068 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15069 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15070 fi 15071 15072 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15074 fi 15075 15076 CFLAGS="$CFLAGS -Wlogical-op" 15077 15078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 15079$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 15080 cacheid=xorg_cv_cc_flag__Wlogical_op 15081 if eval \${$cacheid+:} false; then : 15082 $as_echo_n "(cached) " >&6 15083else 15084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15085/* end confdefs.h. */ 15086int i; 15087int 15088main () 15089{ 15090 15091 ; 15092 return 0; 15093} 15094_ACEOF 15095if ac_fn_c_try_link "$LINENO"; then : 15096 eval $cacheid=yes 15097else 15098 eval $cacheid=no 15099fi 15100rm -f core conftest.err conftest.$ac_objext \ 15101 conftest$ac_exeext conftest.$ac_ext 15102fi 15103 15104 15105 CFLAGS="$xorg_testset_save_CFLAGS" 15106 15107 eval supported=\$$cacheid 15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15109$as_echo "$supported" >&6; } 15110 if test "$supported" = "yes" ; then 15111 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 15112 found="yes" 15113 fi 15114 fi 15115 15116 15117 15118# These are currently disabled because they are noisy. They will be enabled 15119# in the future once the codebase is sufficiently modernized to silence 15120# them. For now, I don't want them to drown out the other warnings. 15121# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 15122# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 15123# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 15124 15125# Turn some warnings into errors, so we don't accidently get successful builds 15126# when there are problems that should be fixed. 15127 15128if test "x$SELECTIVE_WERROR" = "xyes" ; then 15129 15130 15131 15132 15133 15134 15135 15136 15137 15138 15139 15140 15141 15142xorg_testset_save_CFLAGS="$CFLAGS" 15143 15144if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15145 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15147$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15148if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15149 $as_echo_n "(cached) " >&6 15150else 15151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15152/* end confdefs.h. */ 15153int i; 15154_ACEOF 15155if ac_fn_c_try_compile "$LINENO"; then : 15156 xorg_cv_cc_flag_unknown_warning_option=yes 15157else 15158 xorg_cv_cc_flag_unknown_warning_option=no 15159fi 15160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15161fi 15162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15163$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15164 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15165 CFLAGS="$xorg_testset_save_CFLAGS" 15166fi 15167 15168if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15171 fi 15172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15174$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15175if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15176 $as_echo_n "(cached) " >&6 15177else 15178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15179/* end confdefs.h. */ 15180int i; 15181_ACEOF 15182if ac_fn_c_try_compile "$LINENO"; then : 15183 xorg_cv_cc_flag_unused_command_line_argument=yes 15184else 15185 xorg_cv_cc_flag_unused_command_line_argument=no 15186fi 15187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15188fi 15189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15190$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15191 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15192 CFLAGS="$xorg_testset_save_CFLAGS" 15193fi 15194 15195found="no" 15196 15197 if test $found = "no" ; then 15198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15199 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15200 fi 15201 15202 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15204 fi 15205 15206 CFLAGS="$CFLAGS -Werror=implicit" 15207 15208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 15209$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 15210 cacheid=xorg_cv_cc_flag__Werror_implicit 15211 if eval \${$cacheid+:} false; then : 15212 $as_echo_n "(cached) " >&6 15213else 15214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15215/* end confdefs.h. */ 15216int i; 15217int 15218main () 15219{ 15220 15221 ; 15222 return 0; 15223} 15224_ACEOF 15225if ac_fn_c_try_link "$LINENO"; then : 15226 eval $cacheid=yes 15227else 15228 eval $cacheid=no 15229fi 15230rm -f core conftest.err conftest.$ac_objext \ 15231 conftest$ac_exeext conftest.$ac_ext 15232fi 15233 15234 15235 CFLAGS="$xorg_testset_save_CFLAGS" 15236 15237 eval supported=\$$cacheid 15238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15239$as_echo "$supported" >&6; } 15240 if test "$supported" = "yes" ; then 15241 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 15242 found="yes" 15243 fi 15244 fi 15245 15246 if test $found = "no" ; then 15247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15249 fi 15250 15251 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15253 fi 15254 15255 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15256 15257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 15258$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 15259 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 15260 if eval \${$cacheid+:} false; then : 15261 $as_echo_n "(cached) " >&6 15262else 15263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15264/* end confdefs.h. */ 15265int i; 15266int 15267main () 15268{ 15269 15270 ; 15271 return 0; 15272} 15273_ACEOF 15274if ac_fn_c_try_link "$LINENO"; then : 15275 eval $cacheid=yes 15276else 15277 eval $cacheid=no 15278fi 15279rm -f core conftest.err conftest.$ac_objext \ 15280 conftest$ac_exeext conftest.$ac_ext 15281fi 15282 15283 15284 CFLAGS="$xorg_testset_save_CFLAGS" 15285 15286 eval supported=\$$cacheid 15287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15288$as_echo "$supported" >&6; } 15289 if test "$supported" = "yes" ; then 15290 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15291 found="yes" 15292 fi 15293 fi 15294 15295 15296 15297 15298 15299 15300 15301 15302 15303 15304 15305 15306 15307 15308 15309xorg_testset_save_CFLAGS="$CFLAGS" 15310 15311if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15314$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15315if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15316 $as_echo_n "(cached) " >&6 15317else 15318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15319/* end confdefs.h. */ 15320int i; 15321_ACEOF 15322if ac_fn_c_try_compile "$LINENO"; then : 15323 xorg_cv_cc_flag_unknown_warning_option=yes 15324else 15325 xorg_cv_cc_flag_unknown_warning_option=no 15326fi 15327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15328fi 15329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15330$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15331 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15332 CFLAGS="$xorg_testset_save_CFLAGS" 15333fi 15334 15335if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15337 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15338 fi 15339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15341$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15342if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15343 $as_echo_n "(cached) " >&6 15344else 15345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15346/* end confdefs.h. */ 15347int i; 15348_ACEOF 15349if ac_fn_c_try_compile "$LINENO"; then : 15350 xorg_cv_cc_flag_unused_command_line_argument=yes 15351else 15352 xorg_cv_cc_flag_unused_command_line_argument=no 15353fi 15354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15355fi 15356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15357$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15358 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15359 CFLAGS="$xorg_testset_save_CFLAGS" 15360fi 15361 15362found="no" 15363 15364 if test $found = "no" ; then 15365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15366 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15367 fi 15368 15369 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15371 fi 15372 15373 CFLAGS="$CFLAGS -Werror=nonnull" 15374 15375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 15376$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 15377 cacheid=xorg_cv_cc_flag__Werror_nonnull 15378 if eval \${$cacheid+:} false; then : 15379 $as_echo_n "(cached) " >&6 15380else 15381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15382/* end confdefs.h. */ 15383int i; 15384int 15385main () 15386{ 15387 15388 ; 15389 return 0; 15390} 15391_ACEOF 15392if ac_fn_c_try_link "$LINENO"; then : 15393 eval $cacheid=yes 15394else 15395 eval $cacheid=no 15396fi 15397rm -f core conftest.err conftest.$ac_objext \ 15398 conftest$ac_exeext conftest.$ac_ext 15399fi 15400 15401 15402 CFLAGS="$xorg_testset_save_CFLAGS" 15403 15404 eval supported=\$$cacheid 15405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15406$as_echo "$supported" >&6; } 15407 if test "$supported" = "yes" ; then 15408 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 15409 found="yes" 15410 fi 15411 fi 15412 15413 15414 15415 15416 15417 15418 15419 15420 15421 15422 15423 15424 15425 15426 15427xorg_testset_save_CFLAGS="$CFLAGS" 15428 15429if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15432$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15433if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15434 $as_echo_n "(cached) " >&6 15435else 15436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15437/* end confdefs.h. */ 15438int i; 15439_ACEOF 15440if ac_fn_c_try_compile "$LINENO"; then : 15441 xorg_cv_cc_flag_unknown_warning_option=yes 15442else 15443 xorg_cv_cc_flag_unknown_warning_option=no 15444fi 15445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15446fi 15447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15448$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15449 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15450 CFLAGS="$xorg_testset_save_CFLAGS" 15451fi 15452 15453if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15455 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15456 fi 15457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15459$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15460if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15461 $as_echo_n "(cached) " >&6 15462else 15463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15464/* end confdefs.h. */ 15465int i; 15466_ACEOF 15467if ac_fn_c_try_compile "$LINENO"; then : 15468 xorg_cv_cc_flag_unused_command_line_argument=yes 15469else 15470 xorg_cv_cc_flag_unused_command_line_argument=no 15471fi 15472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15473fi 15474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15475$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15476 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15477 CFLAGS="$xorg_testset_save_CFLAGS" 15478fi 15479 15480found="no" 15481 15482 if test $found = "no" ; then 15483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15485 fi 15486 15487 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15489 fi 15490 15491 CFLAGS="$CFLAGS -Werror=init-self" 15492 15493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 15494$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 15495 cacheid=xorg_cv_cc_flag__Werror_init_self 15496 if eval \${$cacheid+:} false; then : 15497 $as_echo_n "(cached) " >&6 15498else 15499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15500/* end confdefs.h. */ 15501int i; 15502int 15503main () 15504{ 15505 15506 ; 15507 return 0; 15508} 15509_ACEOF 15510if ac_fn_c_try_link "$LINENO"; then : 15511 eval $cacheid=yes 15512else 15513 eval $cacheid=no 15514fi 15515rm -f core conftest.err conftest.$ac_objext \ 15516 conftest$ac_exeext conftest.$ac_ext 15517fi 15518 15519 15520 CFLAGS="$xorg_testset_save_CFLAGS" 15521 15522 eval supported=\$$cacheid 15523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15524$as_echo "$supported" >&6; } 15525 if test "$supported" = "yes" ; then 15526 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 15527 found="yes" 15528 fi 15529 fi 15530 15531 15532 15533 15534 15535 15536 15537 15538 15539 15540 15541 15542 15543 15544 15545xorg_testset_save_CFLAGS="$CFLAGS" 15546 15547if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15550$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15551if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15552 $as_echo_n "(cached) " >&6 15553else 15554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15555/* end confdefs.h. */ 15556int i; 15557_ACEOF 15558if ac_fn_c_try_compile "$LINENO"; then : 15559 xorg_cv_cc_flag_unknown_warning_option=yes 15560else 15561 xorg_cv_cc_flag_unknown_warning_option=no 15562fi 15563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15564fi 15565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15566$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15567 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15568 CFLAGS="$xorg_testset_save_CFLAGS" 15569fi 15570 15571if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15574 fi 15575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15577$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15578if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15579 $as_echo_n "(cached) " >&6 15580else 15581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15582/* end confdefs.h. */ 15583int i; 15584_ACEOF 15585if ac_fn_c_try_compile "$LINENO"; then : 15586 xorg_cv_cc_flag_unused_command_line_argument=yes 15587else 15588 xorg_cv_cc_flag_unused_command_line_argument=no 15589fi 15590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15591fi 15592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15593$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15594 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15595 CFLAGS="$xorg_testset_save_CFLAGS" 15596fi 15597 15598found="no" 15599 15600 if test $found = "no" ; then 15601 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15602 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15603 fi 15604 15605 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15607 fi 15608 15609 CFLAGS="$CFLAGS -Werror=main" 15610 15611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 15612$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 15613 cacheid=xorg_cv_cc_flag__Werror_main 15614 if eval \${$cacheid+:} false; then : 15615 $as_echo_n "(cached) " >&6 15616else 15617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15618/* end confdefs.h. */ 15619int i; 15620int 15621main () 15622{ 15623 15624 ; 15625 return 0; 15626} 15627_ACEOF 15628if ac_fn_c_try_link "$LINENO"; then : 15629 eval $cacheid=yes 15630else 15631 eval $cacheid=no 15632fi 15633rm -f core conftest.err conftest.$ac_objext \ 15634 conftest$ac_exeext conftest.$ac_ext 15635fi 15636 15637 15638 CFLAGS="$xorg_testset_save_CFLAGS" 15639 15640 eval supported=\$$cacheid 15641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15642$as_echo "$supported" >&6; } 15643 if test "$supported" = "yes" ; then 15644 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 15645 found="yes" 15646 fi 15647 fi 15648 15649 15650 15651 15652 15653 15654 15655 15656 15657 15658 15659 15660 15661 15662 15663xorg_testset_save_CFLAGS="$CFLAGS" 15664 15665if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15668$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15669if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15670 $as_echo_n "(cached) " >&6 15671else 15672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15673/* end confdefs.h. */ 15674int i; 15675_ACEOF 15676if ac_fn_c_try_compile "$LINENO"; then : 15677 xorg_cv_cc_flag_unknown_warning_option=yes 15678else 15679 xorg_cv_cc_flag_unknown_warning_option=no 15680fi 15681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15682fi 15683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15684$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15685 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15686 CFLAGS="$xorg_testset_save_CFLAGS" 15687fi 15688 15689if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15691 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15692 fi 15693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15695$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15696if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15697 $as_echo_n "(cached) " >&6 15698else 15699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15700/* end confdefs.h. */ 15701int i; 15702_ACEOF 15703if ac_fn_c_try_compile "$LINENO"; then : 15704 xorg_cv_cc_flag_unused_command_line_argument=yes 15705else 15706 xorg_cv_cc_flag_unused_command_line_argument=no 15707fi 15708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15709fi 15710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15711$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15712 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15713 CFLAGS="$xorg_testset_save_CFLAGS" 15714fi 15715 15716found="no" 15717 15718 if test $found = "no" ; then 15719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15721 fi 15722 15723 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15725 fi 15726 15727 CFLAGS="$CFLAGS -Werror=missing-braces" 15728 15729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 15730$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 15731 cacheid=xorg_cv_cc_flag__Werror_missing_braces 15732 if eval \${$cacheid+:} false; then : 15733 $as_echo_n "(cached) " >&6 15734else 15735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15736/* end confdefs.h. */ 15737int i; 15738int 15739main () 15740{ 15741 15742 ; 15743 return 0; 15744} 15745_ACEOF 15746if ac_fn_c_try_link "$LINENO"; then : 15747 eval $cacheid=yes 15748else 15749 eval $cacheid=no 15750fi 15751rm -f core conftest.err conftest.$ac_objext \ 15752 conftest$ac_exeext conftest.$ac_ext 15753fi 15754 15755 15756 CFLAGS="$xorg_testset_save_CFLAGS" 15757 15758 eval supported=\$$cacheid 15759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15760$as_echo "$supported" >&6; } 15761 if test "$supported" = "yes" ; then 15762 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 15763 found="yes" 15764 fi 15765 fi 15766 15767 15768 15769 15770 15771 15772 15773 15774 15775 15776 15777 15778 15779 15780 15781xorg_testset_save_CFLAGS="$CFLAGS" 15782 15783if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15784 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15786$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15787if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15788 $as_echo_n "(cached) " >&6 15789else 15790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15791/* end confdefs.h. */ 15792int i; 15793_ACEOF 15794if ac_fn_c_try_compile "$LINENO"; then : 15795 xorg_cv_cc_flag_unknown_warning_option=yes 15796else 15797 xorg_cv_cc_flag_unknown_warning_option=no 15798fi 15799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15800fi 15801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15802$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15803 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15804 CFLAGS="$xorg_testset_save_CFLAGS" 15805fi 15806 15807if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15808 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15809 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15810 fi 15811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15813$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15814if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15815 $as_echo_n "(cached) " >&6 15816else 15817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15818/* end confdefs.h. */ 15819int i; 15820_ACEOF 15821if ac_fn_c_try_compile "$LINENO"; then : 15822 xorg_cv_cc_flag_unused_command_line_argument=yes 15823else 15824 xorg_cv_cc_flag_unused_command_line_argument=no 15825fi 15826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15827fi 15828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15829$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15830 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15831 CFLAGS="$xorg_testset_save_CFLAGS" 15832fi 15833 15834found="no" 15835 15836 if test $found = "no" ; then 15837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15839 fi 15840 15841 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15842 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15843 fi 15844 15845 CFLAGS="$CFLAGS -Werror=sequence-point" 15846 15847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 15848$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 15849 cacheid=xorg_cv_cc_flag__Werror_sequence_point 15850 if eval \${$cacheid+:} false; then : 15851 $as_echo_n "(cached) " >&6 15852else 15853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15854/* end confdefs.h. */ 15855int i; 15856int 15857main () 15858{ 15859 15860 ; 15861 return 0; 15862} 15863_ACEOF 15864if ac_fn_c_try_link "$LINENO"; then : 15865 eval $cacheid=yes 15866else 15867 eval $cacheid=no 15868fi 15869rm -f core conftest.err conftest.$ac_objext \ 15870 conftest$ac_exeext conftest.$ac_ext 15871fi 15872 15873 15874 CFLAGS="$xorg_testset_save_CFLAGS" 15875 15876 eval supported=\$$cacheid 15877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15878$as_echo "$supported" >&6; } 15879 if test "$supported" = "yes" ; then 15880 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 15881 found="yes" 15882 fi 15883 fi 15884 15885 15886 15887 15888 15889 15890 15891 15892 15893 15894 15895 15896 15897 15898 15899xorg_testset_save_CFLAGS="$CFLAGS" 15900 15901if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15902 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15904$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15905if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15906 $as_echo_n "(cached) " >&6 15907else 15908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15909/* end confdefs.h. */ 15910int i; 15911_ACEOF 15912if ac_fn_c_try_compile "$LINENO"; then : 15913 xorg_cv_cc_flag_unknown_warning_option=yes 15914else 15915 xorg_cv_cc_flag_unknown_warning_option=no 15916fi 15917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15918fi 15919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15920$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15921 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15922 CFLAGS="$xorg_testset_save_CFLAGS" 15923fi 15924 15925if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15928 fi 15929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15931$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15932if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15933 $as_echo_n "(cached) " >&6 15934else 15935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15936/* end confdefs.h. */ 15937int i; 15938_ACEOF 15939if ac_fn_c_try_compile "$LINENO"; then : 15940 xorg_cv_cc_flag_unused_command_line_argument=yes 15941else 15942 xorg_cv_cc_flag_unused_command_line_argument=no 15943fi 15944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15945fi 15946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15947$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15948 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15949 CFLAGS="$xorg_testset_save_CFLAGS" 15950fi 15951 15952found="no" 15953 15954 if test $found = "no" ; then 15955 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15957 fi 15958 15959 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15961 fi 15962 15963 CFLAGS="$CFLAGS -Werror=return-type" 15964 15965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 15966$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 15967 cacheid=xorg_cv_cc_flag__Werror_return_type 15968 if eval \${$cacheid+:} false; then : 15969 $as_echo_n "(cached) " >&6 15970else 15971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15972/* end confdefs.h. */ 15973int i; 15974int 15975main () 15976{ 15977 15978 ; 15979 return 0; 15980} 15981_ACEOF 15982if ac_fn_c_try_link "$LINENO"; then : 15983 eval $cacheid=yes 15984else 15985 eval $cacheid=no 15986fi 15987rm -f core conftest.err conftest.$ac_objext \ 15988 conftest$ac_exeext conftest.$ac_ext 15989fi 15990 15991 15992 CFLAGS="$xorg_testset_save_CFLAGS" 15993 15994 eval supported=\$$cacheid 15995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15996$as_echo "$supported" >&6; } 15997 if test "$supported" = "yes" ; then 15998 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 15999 found="yes" 16000 fi 16001 fi 16002 16003 if test $found = "no" ; then 16004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16006 fi 16007 16008 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16010 fi 16011 16012 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16013 16014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 16015$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 16016 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 16017 if eval \${$cacheid+:} false; then : 16018 $as_echo_n "(cached) " >&6 16019else 16020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16021/* end confdefs.h. */ 16022int i; 16023int 16024main () 16025{ 16026 16027 ; 16028 return 0; 16029} 16030_ACEOF 16031if ac_fn_c_try_link "$LINENO"; then : 16032 eval $cacheid=yes 16033else 16034 eval $cacheid=no 16035fi 16036rm -f core conftest.err conftest.$ac_objext \ 16037 conftest$ac_exeext conftest.$ac_ext 16038fi 16039 16040 16041 CFLAGS="$xorg_testset_save_CFLAGS" 16042 16043 eval supported=\$$cacheid 16044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16045$as_echo "$supported" >&6; } 16046 if test "$supported" = "yes" ; then 16047 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16048 found="yes" 16049 fi 16050 fi 16051 16052 16053 16054 16055 16056 16057 16058 16059 16060 16061 16062 16063 16064 16065 16066xorg_testset_save_CFLAGS="$CFLAGS" 16067 16068if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16069 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16071$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16072if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16073 $as_echo_n "(cached) " >&6 16074else 16075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16076/* end confdefs.h. */ 16077int i; 16078_ACEOF 16079if ac_fn_c_try_compile "$LINENO"; then : 16080 xorg_cv_cc_flag_unknown_warning_option=yes 16081else 16082 xorg_cv_cc_flag_unknown_warning_option=no 16083fi 16084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16085fi 16086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16087$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16088 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16089 CFLAGS="$xorg_testset_save_CFLAGS" 16090fi 16091 16092if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16093 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16094 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16095 fi 16096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16098$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16099if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16100 $as_echo_n "(cached) " >&6 16101else 16102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16103/* end confdefs.h. */ 16104int i; 16105_ACEOF 16106if ac_fn_c_try_compile "$LINENO"; then : 16107 xorg_cv_cc_flag_unused_command_line_argument=yes 16108else 16109 xorg_cv_cc_flag_unused_command_line_argument=no 16110fi 16111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16112fi 16113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16114$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16115 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16116 CFLAGS="$xorg_testset_save_CFLAGS" 16117fi 16118 16119found="no" 16120 16121 if test $found = "no" ; then 16122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16123 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16124 fi 16125 16126 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16128 fi 16129 16130 CFLAGS="$CFLAGS -Werror=trigraphs" 16131 16132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 16133$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 16134 cacheid=xorg_cv_cc_flag__Werror_trigraphs 16135 if eval \${$cacheid+:} false; then : 16136 $as_echo_n "(cached) " >&6 16137else 16138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16139/* end confdefs.h. */ 16140int i; 16141int 16142main () 16143{ 16144 16145 ; 16146 return 0; 16147} 16148_ACEOF 16149if ac_fn_c_try_link "$LINENO"; then : 16150 eval $cacheid=yes 16151else 16152 eval $cacheid=no 16153fi 16154rm -f core conftest.err conftest.$ac_objext \ 16155 conftest$ac_exeext conftest.$ac_ext 16156fi 16157 16158 16159 CFLAGS="$xorg_testset_save_CFLAGS" 16160 16161 eval supported=\$$cacheid 16162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16163$as_echo "$supported" >&6; } 16164 if test "$supported" = "yes" ; then 16165 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 16166 found="yes" 16167 fi 16168 fi 16169 16170 16171 16172 16173 16174 16175 16176 16177 16178 16179 16180 16181 16182 16183 16184xorg_testset_save_CFLAGS="$CFLAGS" 16185 16186if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16189$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16190if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16191 $as_echo_n "(cached) " >&6 16192else 16193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16194/* end confdefs.h. */ 16195int i; 16196_ACEOF 16197if ac_fn_c_try_compile "$LINENO"; then : 16198 xorg_cv_cc_flag_unknown_warning_option=yes 16199else 16200 xorg_cv_cc_flag_unknown_warning_option=no 16201fi 16202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16203fi 16204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16205$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16206 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16207 CFLAGS="$xorg_testset_save_CFLAGS" 16208fi 16209 16210if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16211 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16212 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16213 fi 16214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16216$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16217if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16218 $as_echo_n "(cached) " >&6 16219else 16220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16221/* end confdefs.h. */ 16222int i; 16223_ACEOF 16224if ac_fn_c_try_compile "$LINENO"; then : 16225 xorg_cv_cc_flag_unused_command_line_argument=yes 16226else 16227 xorg_cv_cc_flag_unused_command_line_argument=no 16228fi 16229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16230fi 16231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16232$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16233 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16234 CFLAGS="$xorg_testset_save_CFLAGS" 16235fi 16236 16237found="no" 16238 16239 if test $found = "no" ; then 16240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16242 fi 16243 16244 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16246 fi 16247 16248 CFLAGS="$CFLAGS -Werror=array-bounds" 16249 16250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 16251$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 16252 cacheid=xorg_cv_cc_flag__Werror_array_bounds 16253 if eval \${$cacheid+:} false; then : 16254 $as_echo_n "(cached) " >&6 16255else 16256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16257/* end confdefs.h. */ 16258int i; 16259int 16260main () 16261{ 16262 16263 ; 16264 return 0; 16265} 16266_ACEOF 16267if ac_fn_c_try_link "$LINENO"; then : 16268 eval $cacheid=yes 16269else 16270 eval $cacheid=no 16271fi 16272rm -f core conftest.err conftest.$ac_objext \ 16273 conftest$ac_exeext conftest.$ac_ext 16274fi 16275 16276 16277 CFLAGS="$xorg_testset_save_CFLAGS" 16278 16279 eval supported=\$$cacheid 16280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16281$as_echo "$supported" >&6; } 16282 if test "$supported" = "yes" ; then 16283 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 16284 found="yes" 16285 fi 16286 fi 16287 16288 16289 16290 16291 16292 16293 16294 16295 16296 16297 16298 16299 16300 16301 16302xorg_testset_save_CFLAGS="$CFLAGS" 16303 16304if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16305 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16307$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16308if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16309 $as_echo_n "(cached) " >&6 16310else 16311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16312/* end confdefs.h. */ 16313int i; 16314_ACEOF 16315if ac_fn_c_try_compile "$LINENO"; then : 16316 xorg_cv_cc_flag_unknown_warning_option=yes 16317else 16318 xorg_cv_cc_flag_unknown_warning_option=no 16319fi 16320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16321fi 16322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16323$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16324 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16325 CFLAGS="$xorg_testset_save_CFLAGS" 16326fi 16327 16328if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16331 fi 16332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16334$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16335if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16336 $as_echo_n "(cached) " >&6 16337else 16338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16339/* end confdefs.h. */ 16340int i; 16341_ACEOF 16342if ac_fn_c_try_compile "$LINENO"; then : 16343 xorg_cv_cc_flag_unused_command_line_argument=yes 16344else 16345 xorg_cv_cc_flag_unused_command_line_argument=no 16346fi 16347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16348fi 16349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16350$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16351 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16352 CFLAGS="$xorg_testset_save_CFLAGS" 16353fi 16354 16355found="no" 16356 16357 if test $found = "no" ; then 16358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16360 fi 16361 16362 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16364 fi 16365 16366 CFLAGS="$CFLAGS -Werror=write-strings" 16367 16368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 16369$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 16370 cacheid=xorg_cv_cc_flag__Werror_write_strings 16371 if eval \${$cacheid+:} false; then : 16372 $as_echo_n "(cached) " >&6 16373else 16374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16375/* end confdefs.h. */ 16376int i; 16377int 16378main () 16379{ 16380 16381 ; 16382 return 0; 16383} 16384_ACEOF 16385if ac_fn_c_try_link "$LINENO"; then : 16386 eval $cacheid=yes 16387else 16388 eval $cacheid=no 16389fi 16390rm -f core conftest.err conftest.$ac_objext \ 16391 conftest$ac_exeext conftest.$ac_ext 16392fi 16393 16394 16395 CFLAGS="$xorg_testset_save_CFLAGS" 16396 16397 eval supported=\$$cacheid 16398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16399$as_echo "$supported" >&6; } 16400 if test "$supported" = "yes" ; then 16401 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 16402 found="yes" 16403 fi 16404 fi 16405 16406 16407 16408 16409 16410 16411 16412 16413 16414 16415 16416 16417 16418 16419 16420xorg_testset_save_CFLAGS="$CFLAGS" 16421 16422if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16425$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16426if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16427 $as_echo_n "(cached) " >&6 16428else 16429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16430/* end confdefs.h. */ 16431int i; 16432_ACEOF 16433if ac_fn_c_try_compile "$LINENO"; then : 16434 xorg_cv_cc_flag_unknown_warning_option=yes 16435else 16436 xorg_cv_cc_flag_unknown_warning_option=no 16437fi 16438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16439fi 16440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16441$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16442 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16443 CFLAGS="$xorg_testset_save_CFLAGS" 16444fi 16445 16446if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16448 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16449 fi 16450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16452$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16453if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16454 $as_echo_n "(cached) " >&6 16455else 16456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16457/* end confdefs.h. */ 16458int i; 16459_ACEOF 16460if ac_fn_c_try_compile "$LINENO"; then : 16461 xorg_cv_cc_flag_unused_command_line_argument=yes 16462else 16463 xorg_cv_cc_flag_unused_command_line_argument=no 16464fi 16465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16466fi 16467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16468$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16469 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16470 CFLAGS="$xorg_testset_save_CFLAGS" 16471fi 16472 16473found="no" 16474 16475 if test $found = "no" ; then 16476 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16477 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16478 fi 16479 16480 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16481 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16482 fi 16483 16484 CFLAGS="$CFLAGS -Werror=address" 16485 16486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 16487$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 16488 cacheid=xorg_cv_cc_flag__Werror_address 16489 if eval \${$cacheid+:} false; then : 16490 $as_echo_n "(cached) " >&6 16491else 16492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16493/* end confdefs.h. */ 16494int i; 16495int 16496main () 16497{ 16498 16499 ; 16500 return 0; 16501} 16502_ACEOF 16503if ac_fn_c_try_link "$LINENO"; then : 16504 eval $cacheid=yes 16505else 16506 eval $cacheid=no 16507fi 16508rm -f core conftest.err conftest.$ac_objext \ 16509 conftest$ac_exeext conftest.$ac_ext 16510fi 16511 16512 16513 CFLAGS="$xorg_testset_save_CFLAGS" 16514 16515 eval supported=\$$cacheid 16516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16517$as_echo "$supported" >&6; } 16518 if test "$supported" = "yes" ; then 16519 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 16520 found="yes" 16521 fi 16522 fi 16523 16524 16525 16526 16527 16528 16529 16530 16531 16532 16533 16534 16535 16536 16537 16538xorg_testset_save_CFLAGS="$CFLAGS" 16539 16540if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16541 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16543$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16544if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16545 $as_echo_n "(cached) " >&6 16546else 16547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16548/* end confdefs.h. */ 16549int i; 16550_ACEOF 16551if ac_fn_c_try_compile "$LINENO"; then : 16552 xorg_cv_cc_flag_unknown_warning_option=yes 16553else 16554 xorg_cv_cc_flag_unknown_warning_option=no 16555fi 16556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16557fi 16558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16559$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16560 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16561 CFLAGS="$xorg_testset_save_CFLAGS" 16562fi 16563 16564if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16565 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16566 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16567 fi 16568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16570$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16571if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16572 $as_echo_n "(cached) " >&6 16573else 16574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16575/* end confdefs.h. */ 16576int i; 16577_ACEOF 16578if ac_fn_c_try_compile "$LINENO"; then : 16579 xorg_cv_cc_flag_unused_command_line_argument=yes 16580else 16581 xorg_cv_cc_flag_unused_command_line_argument=no 16582fi 16583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16584fi 16585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16586$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16587 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16588 CFLAGS="$xorg_testset_save_CFLAGS" 16589fi 16590 16591found="no" 16592 16593 if test $found = "no" ; then 16594 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16595 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16596 fi 16597 16598 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16600 fi 16601 16602 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 16603 16604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 16605$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 16606 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 16607 if eval \${$cacheid+:} false; then : 16608 $as_echo_n "(cached) " >&6 16609else 16610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16611/* end confdefs.h. */ 16612int i; 16613int 16614main () 16615{ 16616 16617 ; 16618 return 0; 16619} 16620_ACEOF 16621if ac_fn_c_try_link "$LINENO"; then : 16622 eval $cacheid=yes 16623else 16624 eval $cacheid=no 16625fi 16626rm -f core conftest.err conftest.$ac_objext \ 16627 conftest$ac_exeext conftest.$ac_ext 16628fi 16629 16630 16631 CFLAGS="$xorg_testset_save_CFLAGS" 16632 16633 eval supported=\$$cacheid 16634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16635$as_echo "$supported" >&6; } 16636 if test "$supported" = "yes" ; then 16637 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 16638 found="yes" 16639 fi 16640 fi 16641 16642 if test $found = "no" ; then 16643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16645 fi 16646 16647 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16649 fi 16650 16651 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16652 16653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 16654$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 16655 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 16656 if eval \${$cacheid+:} false; then : 16657 $as_echo_n "(cached) " >&6 16658else 16659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16660/* end confdefs.h. */ 16661int i; 16662int 16663main () 16664{ 16665 16666 ; 16667 return 0; 16668} 16669_ACEOF 16670if ac_fn_c_try_link "$LINENO"; then : 16671 eval $cacheid=yes 16672else 16673 eval $cacheid=no 16674fi 16675rm -f core conftest.err conftest.$ac_objext \ 16676 conftest$ac_exeext conftest.$ac_ext 16677fi 16678 16679 16680 CFLAGS="$xorg_testset_save_CFLAGS" 16681 16682 eval supported=\$$cacheid 16683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16684$as_echo "$supported" >&6; } 16685 if test "$supported" = "yes" ; then 16686 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16687 found="yes" 16688 fi 16689 fi 16690 16691 16692 16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 16703 16704 16705xorg_testset_save_CFLAGS="$CFLAGS" 16706 16707if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16708 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16710$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16711if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16712 $as_echo_n "(cached) " >&6 16713else 16714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16715/* end confdefs.h. */ 16716int i; 16717_ACEOF 16718if ac_fn_c_try_compile "$LINENO"; then : 16719 xorg_cv_cc_flag_unknown_warning_option=yes 16720else 16721 xorg_cv_cc_flag_unknown_warning_option=no 16722fi 16723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16724fi 16725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16726$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16727 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16728 CFLAGS="$xorg_testset_save_CFLAGS" 16729fi 16730 16731if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16732 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16734 fi 16735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16737$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16738if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16739 $as_echo_n "(cached) " >&6 16740else 16741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16742/* end confdefs.h. */ 16743int i; 16744_ACEOF 16745if ac_fn_c_try_compile "$LINENO"; then : 16746 xorg_cv_cc_flag_unused_command_line_argument=yes 16747else 16748 xorg_cv_cc_flag_unused_command_line_argument=no 16749fi 16750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16751fi 16752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16753$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16754 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16755 CFLAGS="$xorg_testset_save_CFLAGS" 16756fi 16757 16758found="no" 16759 16760 if test $found = "no" ; then 16761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16763 fi 16764 16765 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16767 fi 16768 16769 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 16770 16771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 16772$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 16773 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 16774 if eval \${$cacheid+:} false; then : 16775 $as_echo_n "(cached) " >&6 16776else 16777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16778/* end confdefs.h. */ 16779int i; 16780int 16781main () 16782{ 16783 16784 ; 16785 return 0; 16786} 16787_ACEOF 16788if ac_fn_c_try_link "$LINENO"; then : 16789 eval $cacheid=yes 16790else 16791 eval $cacheid=no 16792fi 16793rm -f core conftest.err conftest.$ac_objext \ 16794 conftest$ac_exeext conftest.$ac_ext 16795fi 16796 16797 16798 CFLAGS="$xorg_testset_save_CFLAGS" 16799 16800 eval supported=\$$cacheid 16801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16802$as_echo "$supported" >&6; } 16803 if test "$supported" = "yes" ; then 16804 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 16805 found="yes" 16806 fi 16807 fi 16808 16809 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 16810else 16811{ $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 16812$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;} 16813 16814 16815 16816 16817 16818 16819 16820 16821 16822 16823 16824 16825 16826xorg_testset_save_CFLAGS="$CFLAGS" 16827 16828if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16829 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16831$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16832if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16833 $as_echo_n "(cached) " >&6 16834else 16835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16836/* end confdefs.h. */ 16837int i; 16838_ACEOF 16839if ac_fn_c_try_compile "$LINENO"; then : 16840 xorg_cv_cc_flag_unknown_warning_option=yes 16841else 16842 xorg_cv_cc_flag_unknown_warning_option=no 16843fi 16844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16845fi 16846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16847$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16848 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16849 CFLAGS="$xorg_testset_save_CFLAGS" 16850fi 16851 16852if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16855 fi 16856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16858$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16859if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16860 $as_echo_n "(cached) " >&6 16861else 16862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16863/* end confdefs.h. */ 16864int i; 16865_ACEOF 16866if ac_fn_c_try_compile "$LINENO"; then : 16867 xorg_cv_cc_flag_unused_command_line_argument=yes 16868else 16869 xorg_cv_cc_flag_unused_command_line_argument=no 16870fi 16871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16872fi 16873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16874$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16875 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16876 CFLAGS="$xorg_testset_save_CFLAGS" 16877fi 16878 16879found="no" 16880 16881 if test $found = "no" ; then 16882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16883 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16884 fi 16885 16886 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16888 fi 16889 16890 CFLAGS="$CFLAGS -Wimplicit" 16891 16892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 16893$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 16894 cacheid=xorg_cv_cc_flag__Wimplicit 16895 if eval \${$cacheid+:} false; then : 16896 $as_echo_n "(cached) " >&6 16897else 16898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16899/* end confdefs.h. */ 16900int i; 16901int 16902main () 16903{ 16904 16905 ; 16906 return 0; 16907} 16908_ACEOF 16909if ac_fn_c_try_link "$LINENO"; then : 16910 eval $cacheid=yes 16911else 16912 eval $cacheid=no 16913fi 16914rm -f core conftest.err conftest.$ac_objext \ 16915 conftest$ac_exeext conftest.$ac_ext 16916fi 16917 16918 16919 CFLAGS="$xorg_testset_save_CFLAGS" 16920 16921 eval supported=\$$cacheid 16922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16923$as_echo "$supported" >&6; } 16924 if test "$supported" = "yes" ; then 16925 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 16926 found="yes" 16927 fi 16928 fi 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943 16944xorg_testset_save_CFLAGS="$CFLAGS" 16945 16946if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16947 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16949$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16950if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16951 $as_echo_n "(cached) " >&6 16952else 16953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16954/* end confdefs.h. */ 16955int i; 16956_ACEOF 16957if ac_fn_c_try_compile "$LINENO"; then : 16958 xorg_cv_cc_flag_unknown_warning_option=yes 16959else 16960 xorg_cv_cc_flag_unknown_warning_option=no 16961fi 16962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16963fi 16964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16965$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16966 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16967 CFLAGS="$xorg_testset_save_CFLAGS" 16968fi 16969 16970if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16971 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16972 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16973 fi 16974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16976$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16977if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16978 $as_echo_n "(cached) " >&6 16979else 16980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16981/* end confdefs.h. */ 16982int i; 16983_ACEOF 16984if ac_fn_c_try_compile "$LINENO"; then : 16985 xorg_cv_cc_flag_unused_command_line_argument=yes 16986else 16987 xorg_cv_cc_flag_unused_command_line_argument=no 16988fi 16989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16990fi 16991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16992$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16993 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16994 CFLAGS="$xorg_testset_save_CFLAGS" 16995fi 16996 16997found="no" 16998 16999 if test $found = "no" ; then 17000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17002 fi 17003 17004 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17006 fi 17007 17008 CFLAGS="$CFLAGS -Wnonnull" 17009 17010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 17011$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 17012 cacheid=xorg_cv_cc_flag__Wnonnull 17013 if eval \${$cacheid+:} false; then : 17014 $as_echo_n "(cached) " >&6 17015else 17016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17017/* end confdefs.h. */ 17018int i; 17019int 17020main () 17021{ 17022 17023 ; 17024 return 0; 17025} 17026_ACEOF 17027if ac_fn_c_try_link "$LINENO"; then : 17028 eval $cacheid=yes 17029else 17030 eval $cacheid=no 17031fi 17032rm -f core conftest.err conftest.$ac_objext \ 17033 conftest$ac_exeext conftest.$ac_ext 17034fi 17035 17036 17037 CFLAGS="$xorg_testset_save_CFLAGS" 17038 17039 eval supported=\$$cacheid 17040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17041$as_echo "$supported" >&6; } 17042 if test "$supported" = "yes" ; then 17043 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 17044 found="yes" 17045 fi 17046 fi 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057 17058 17059 17060 17061 17062xorg_testset_save_CFLAGS="$CFLAGS" 17063 17064if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17065 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17067$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17068if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17069 $as_echo_n "(cached) " >&6 17070else 17071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17072/* end confdefs.h. */ 17073int i; 17074_ACEOF 17075if ac_fn_c_try_compile "$LINENO"; then : 17076 xorg_cv_cc_flag_unknown_warning_option=yes 17077else 17078 xorg_cv_cc_flag_unknown_warning_option=no 17079fi 17080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17081fi 17082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17083$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17084 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17085 CFLAGS="$xorg_testset_save_CFLAGS" 17086fi 17087 17088if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17091 fi 17092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17094$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17095if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17096 $as_echo_n "(cached) " >&6 17097else 17098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17099/* end confdefs.h. */ 17100int i; 17101_ACEOF 17102if ac_fn_c_try_compile "$LINENO"; then : 17103 xorg_cv_cc_flag_unused_command_line_argument=yes 17104else 17105 xorg_cv_cc_flag_unused_command_line_argument=no 17106fi 17107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17108fi 17109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17110$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17111 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17112 CFLAGS="$xorg_testset_save_CFLAGS" 17113fi 17114 17115found="no" 17116 17117 if test $found = "no" ; then 17118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17120 fi 17121 17122 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17124 fi 17125 17126 CFLAGS="$CFLAGS -Winit-self" 17127 17128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 17129$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 17130 cacheid=xorg_cv_cc_flag__Winit_self 17131 if eval \${$cacheid+:} false; then : 17132 $as_echo_n "(cached) " >&6 17133else 17134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17135/* end confdefs.h. */ 17136int i; 17137int 17138main () 17139{ 17140 17141 ; 17142 return 0; 17143} 17144_ACEOF 17145if ac_fn_c_try_link "$LINENO"; then : 17146 eval $cacheid=yes 17147else 17148 eval $cacheid=no 17149fi 17150rm -f core conftest.err conftest.$ac_objext \ 17151 conftest$ac_exeext conftest.$ac_ext 17152fi 17153 17154 17155 CFLAGS="$xorg_testset_save_CFLAGS" 17156 17157 eval supported=\$$cacheid 17158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17159$as_echo "$supported" >&6; } 17160 if test "$supported" = "yes" ; then 17161 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 17162 found="yes" 17163 fi 17164 fi 17165 17166 17167 17168 17169 17170 17171 17172 17173 17174 17175 17176 17177 17178 17179 17180xorg_testset_save_CFLAGS="$CFLAGS" 17181 17182if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17183 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17185$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17186if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17187 $as_echo_n "(cached) " >&6 17188else 17189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17190/* end confdefs.h. */ 17191int i; 17192_ACEOF 17193if ac_fn_c_try_compile "$LINENO"; then : 17194 xorg_cv_cc_flag_unknown_warning_option=yes 17195else 17196 xorg_cv_cc_flag_unknown_warning_option=no 17197fi 17198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17199fi 17200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17201$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17202 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17203 CFLAGS="$xorg_testset_save_CFLAGS" 17204fi 17205 17206if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17208 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17209 fi 17210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17212$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17213if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17214 $as_echo_n "(cached) " >&6 17215else 17216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17217/* end confdefs.h. */ 17218int i; 17219_ACEOF 17220if ac_fn_c_try_compile "$LINENO"; then : 17221 xorg_cv_cc_flag_unused_command_line_argument=yes 17222else 17223 xorg_cv_cc_flag_unused_command_line_argument=no 17224fi 17225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17226fi 17227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17228$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17229 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17230 CFLAGS="$xorg_testset_save_CFLAGS" 17231fi 17232 17233found="no" 17234 17235 if test $found = "no" ; then 17236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17238 fi 17239 17240 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17242 fi 17243 17244 CFLAGS="$CFLAGS -Wmain" 17245 17246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 17247$as_echo_n "checking if $CC supports -Wmain... " >&6; } 17248 cacheid=xorg_cv_cc_flag__Wmain 17249 if eval \${$cacheid+:} false; then : 17250 $as_echo_n "(cached) " >&6 17251else 17252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17253/* end confdefs.h. */ 17254int i; 17255int 17256main () 17257{ 17258 17259 ; 17260 return 0; 17261} 17262_ACEOF 17263if ac_fn_c_try_link "$LINENO"; then : 17264 eval $cacheid=yes 17265else 17266 eval $cacheid=no 17267fi 17268rm -f core conftest.err conftest.$ac_objext \ 17269 conftest$ac_exeext conftest.$ac_ext 17270fi 17271 17272 17273 CFLAGS="$xorg_testset_save_CFLAGS" 17274 17275 eval supported=\$$cacheid 17276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17277$as_echo "$supported" >&6; } 17278 if test "$supported" = "yes" ; then 17279 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 17280 found="yes" 17281 fi 17282 fi 17283 17284 17285 17286 17287 17288 17289 17290 17291 17292 17293 17294 17295 17296 17297 17298xorg_testset_save_CFLAGS="$CFLAGS" 17299 17300if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17301 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17303$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17304if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17305 $as_echo_n "(cached) " >&6 17306else 17307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17308/* end confdefs.h. */ 17309int i; 17310_ACEOF 17311if ac_fn_c_try_compile "$LINENO"; then : 17312 xorg_cv_cc_flag_unknown_warning_option=yes 17313else 17314 xorg_cv_cc_flag_unknown_warning_option=no 17315fi 17316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17317fi 17318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17319$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17320 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17321 CFLAGS="$xorg_testset_save_CFLAGS" 17322fi 17323 17324if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17327 fi 17328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17330$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17331if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17332 $as_echo_n "(cached) " >&6 17333else 17334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17335/* end confdefs.h. */ 17336int i; 17337_ACEOF 17338if ac_fn_c_try_compile "$LINENO"; then : 17339 xorg_cv_cc_flag_unused_command_line_argument=yes 17340else 17341 xorg_cv_cc_flag_unused_command_line_argument=no 17342fi 17343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17344fi 17345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17346$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17347 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17348 CFLAGS="$xorg_testset_save_CFLAGS" 17349fi 17350 17351found="no" 17352 17353 if test $found = "no" ; then 17354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17356 fi 17357 17358 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17360 fi 17361 17362 CFLAGS="$CFLAGS -Wmissing-braces" 17363 17364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 17365$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 17366 cacheid=xorg_cv_cc_flag__Wmissing_braces 17367 if eval \${$cacheid+:} false; then : 17368 $as_echo_n "(cached) " >&6 17369else 17370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17371/* end confdefs.h. */ 17372int i; 17373int 17374main () 17375{ 17376 17377 ; 17378 return 0; 17379} 17380_ACEOF 17381if ac_fn_c_try_link "$LINENO"; then : 17382 eval $cacheid=yes 17383else 17384 eval $cacheid=no 17385fi 17386rm -f core conftest.err conftest.$ac_objext \ 17387 conftest$ac_exeext conftest.$ac_ext 17388fi 17389 17390 17391 CFLAGS="$xorg_testset_save_CFLAGS" 17392 17393 eval supported=\$$cacheid 17394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17395$as_echo "$supported" >&6; } 17396 if test "$supported" = "yes" ; then 17397 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 17398 found="yes" 17399 fi 17400 fi 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416xorg_testset_save_CFLAGS="$CFLAGS" 17417 17418if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17419 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17421$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17422if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17423 $as_echo_n "(cached) " >&6 17424else 17425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17426/* end confdefs.h. */ 17427int i; 17428_ACEOF 17429if ac_fn_c_try_compile "$LINENO"; then : 17430 xorg_cv_cc_flag_unknown_warning_option=yes 17431else 17432 xorg_cv_cc_flag_unknown_warning_option=no 17433fi 17434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17435fi 17436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17437$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17438 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17439 CFLAGS="$xorg_testset_save_CFLAGS" 17440fi 17441 17442if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17445 fi 17446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17448$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17449if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17450 $as_echo_n "(cached) " >&6 17451else 17452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17453/* end confdefs.h. */ 17454int i; 17455_ACEOF 17456if ac_fn_c_try_compile "$LINENO"; then : 17457 xorg_cv_cc_flag_unused_command_line_argument=yes 17458else 17459 xorg_cv_cc_flag_unused_command_line_argument=no 17460fi 17461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17462fi 17463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17464$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17465 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17466 CFLAGS="$xorg_testset_save_CFLAGS" 17467fi 17468 17469found="no" 17470 17471 if test $found = "no" ; then 17472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17474 fi 17475 17476 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17478 fi 17479 17480 CFLAGS="$CFLAGS -Wsequence-point" 17481 17482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 17483$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 17484 cacheid=xorg_cv_cc_flag__Wsequence_point 17485 if eval \${$cacheid+:} false; then : 17486 $as_echo_n "(cached) " >&6 17487else 17488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17489/* end confdefs.h. */ 17490int i; 17491int 17492main () 17493{ 17494 17495 ; 17496 return 0; 17497} 17498_ACEOF 17499if ac_fn_c_try_link "$LINENO"; then : 17500 eval $cacheid=yes 17501else 17502 eval $cacheid=no 17503fi 17504rm -f core conftest.err conftest.$ac_objext \ 17505 conftest$ac_exeext conftest.$ac_ext 17506fi 17507 17508 17509 CFLAGS="$xorg_testset_save_CFLAGS" 17510 17511 eval supported=\$$cacheid 17512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17513$as_echo "$supported" >&6; } 17514 if test "$supported" = "yes" ; then 17515 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 17516 found="yes" 17517 fi 17518 fi 17519 17520 17521 17522 17523 17524 17525 17526 17527 17528 17529 17530 17531 17532 17533 17534xorg_testset_save_CFLAGS="$CFLAGS" 17535 17536if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17537 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17539$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17540if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17541 $as_echo_n "(cached) " >&6 17542else 17543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17544/* end confdefs.h. */ 17545int i; 17546_ACEOF 17547if ac_fn_c_try_compile "$LINENO"; then : 17548 xorg_cv_cc_flag_unknown_warning_option=yes 17549else 17550 xorg_cv_cc_flag_unknown_warning_option=no 17551fi 17552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17553fi 17554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17555$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17556 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17557 CFLAGS="$xorg_testset_save_CFLAGS" 17558fi 17559 17560if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17563 fi 17564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17566$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17567if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17568 $as_echo_n "(cached) " >&6 17569else 17570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17571/* end confdefs.h. */ 17572int i; 17573_ACEOF 17574if ac_fn_c_try_compile "$LINENO"; then : 17575 xorg_cv_cc_flag_unused_command_line_argument=yes 17576else 17577 xorg_cv_cc_flag_unused_command_line_argument=no 17578fi 17579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17580fi 17581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17582$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17583 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17584 CFLAGS="$xorg_testset_save_CFLAGS" 17585fi 17586 17587found="no" 17588 17589 if test $found = "no" ; then 17590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17592 fi 17593 17594 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17596 fi 17597 17598 CFLAGS="$CFLAGS -Wreturn-type" 17599 17600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 17601$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 17602 cacheid=xorg_cv_cc_flag__Wreturn_type 17603 if eval \${$cacheid+:} false; then : 17604 $as_echo_n "(cached) " >&6 17605else 17606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17607/* end confdefs.h. */ 17608int i; 17609int 17610main () 17611{ 17612 17613 ; 17614 return 0; 17615} 17616_ACEOF 17617if ac_fn_c_try_link "$LINENO"; then : 17618 eval $cacheid=yes 17619else 17620 eval $cacheid=no 17621fi 17622rm -f core conftest.err conftest.$ac_objext \ 17623 conftest$ac_exeext conftest.$ac_ext 17624fi 17625 17626 17627 CFLAGS="$xorg_testset_save_CFLAGS" 17628 17629 eval supported=\$$cacheid 17630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17631$as_echo "$supported" >&6; } 17632 if test "$supported" = "yes" ; then 17633 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 17634 found="yes" 17635 fi 17636 fi 17637 17638 17639 17640 17641 17642 17643 17644 17645 17646 17647 17648 17649 17650 17651 17652xorg_testset_save_CFLAGS="$CFLAGS" 17653 17654if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17657$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17658if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17659 $as_echo_n "(cached) " >&6 17660else 17661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17662/* end confdefs.h. */ 17663int i; 17664_ACEOF 17665if ac_fn_c_try_compile "$LINENO"; then : 17666 xorg_cv_cc_flag_unknown_warning_option=yes 17667else 17668 xorg_cv_cc_flag_unknown_warning_option=no 17669fi 17670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17671fi 17672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17673$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17674 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17675 CFLAGS="$xorg_testset_save_CFLAGS" 17676fi 17677 17678if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17681 fi 17682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17684$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17685if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17686 $as_echo_n "(cached) " >&6 17687else 17688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17689/* end confdefs.h. */ 17690int i; 17691_ACEOF 17692if ac_fn_c_try_compile "$LINENO"; then : 17693 xorg_cv_cc_flag_unused_command_line_argument=yes 17694else 17695 xorg_cv_cc_flag_unused_command_line_argument=no 17696fi 17697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17698fi 17699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17700$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17701 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17702 CFLAGS="$xorg_testset_save_CFLAGS" 17703fi 17704 17705found="no" 17706 17707 if test $found = "no" ; then 17708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17710 fi 17711 17712 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17714 fi 17715 17716 CFLAGS="$CFLAGS -Wtrigraphs" 17717 17718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 17719$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 17720 cacheid=xorg_cv_cc_flag__Wtrigraphs 17721 if eval \${$cacheid+:} false; then : 17722 $as_echo_n "(cached) " >&6 17723else 17724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17725/* end confdefs.h. */ 17726int i; 17727int 17728main () 17729{ 17730 17731 ; 17732 return 0; 17733} 17734_ACEOF 17735if ac_fn_c_try_link "$LINENO"; then : 17736 eval $cacheid=yes 17737else 17738 eval $cacheid=no 17739fi 17740rm -f core conftest.err conftest.$ac_objext \ 17741 conftest$ac_exeext conftest.$ac_ext 17742fi 17743 17744 17745 CFLAGS="$xorg_testset_save_CFLAGS" 17746 17747 eval supported=\$$cacheid 17748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17749$as_echo "$supported" >&6; } 17750 if test "$supported" = "yes" ; then 17751 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 17752 found="yes" 17753 fi 17754 fi 17755 17756 17757 17758 17759 17760 17761 17762 17763 17764 17765 17766 17767 17768 17769 17770xorg_testset_save_CFLAGS="$CFLAGS" 17771 17772if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17775$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17776if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17777 $as_echo_n "(cached) " >&6 17778else 17779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17780/* end confdefs.h. */ 17781int i; 17782_ACEOF 17783if ac_fn_c_try_compile "$LINENO"; then : 17784 xorg_cv_cc_flag_unknown_warning_option=yes 17785else 17786 xorg_cv_cc_flag_unknown_warning_option=no 17787fi 17788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17789fi 17790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17791$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17792 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17793 CFLAGS="$xorg_testset_save_CFLAGS" 17794fi 17795 17796if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17799 fi 17800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17802$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17803if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17804 $as_echo_n "(cached) " >&6 17805else 17806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17807/* end confdefs.h. */ 17808int i; 17809_ACEOF 17810if ac_fn_c_try_compile "$LINENO"; then : 17811 xorg_cv_cc_flag_unused_command_line_argument=yes 17812else 17813 xorg_cv_cc_flag_unused_command_line_argument=no 17814fi 17815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17816fi 17817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17818$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17819 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17820 CFLAGS="$xorg_testset_save_CFLAGS" 17821fi 17822 17823found="no" 17824 17825 if test $found = "no" ; then 17826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17828 fi 17829 17830 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17832 fi 17833 17834 CFLAGS="$CFLAGS -Warray-bounds" 17835 17836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 17837$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 17838 cacheid=xorg_cv_cc_flag__Warray_bounds 17839 if eval \${$cacheid+:} false; then : 17840 $as_echo_n "(cached) " >&6 17841else 17842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17843/* end confdefs.h. */ 17844int i; 17845int 17846main () 17847{ 17848 17849 ; 17850 return 0; 17851} 17852_ACEOF 17853if ac_fn_c_try_link "$LINENO"; then : 17854 eval $cacheid=yes 17855else 17856 eval $cacheid=no 17857fi 17858rm -f core conftest.err conftest.$ac_objext \ 17859 conftest$ac_exeext conftest.$ac_ext 17860fi 17861 17862 17863 CFLAGS="$xorg_testset_save_CFLAGS" 17864 17865 eval supported=\$$cacheid 17866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17867$as_echo "$supported" >&6; } 17868 if test "$supported" = "yes" ; then 17869 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 17870 found="yes" 17871 fi 17872 fi 17873 17874 17875 17876 17877 17878 17879 17880 17881 17882 17883 17884 17885 17886 17887 17888xorg_testset_save_CFLAGS="$CFLAGS" 17889 17890if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17893$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17894if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17895 $as_echo_n "(cached) " >&6 17896else 17897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17898/* end confdefs.h. */ 17899int i; 17900_ACEOF 17901if ac_fn_c_try_compile "$LINENO"; then : 17902 xorg_cv_cc_flag_unknown_warning_option=yes 17903else 17904 xorg_cv_cc_flag_unknown_warning_option=no 17905fi 17906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17907fi 17908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17909$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17910 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17911 CFLAGS="$xorg_testset_save_CFLAGS" 17912fi 17913 17914if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17916 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17917 fi 17918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17920$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17921if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17922 $as_echo_n "(cached) " >&6 17923else 17924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17925/* end confdefs.h. */ 17926int i; 17927_ACEOF 17928if ac_fn_c_try_compile "$LINENO"; then : 17929 xorg_cv_cc_flag_unused_command_line_argument=yes 17930else 17931 xorg_cv_cc_flag_unused_command_line_argument=no 17932fi 17933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17934fi 17935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17936$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17937 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17938 CFLAGS="$xorg_testset_save_CFLAGS" 17939fi 17940 17941found="no" 17942 17943 if test $found = "no" ; then 17944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17946 fi 17947 17948 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17950 fi 17951 17952 CFLAGS="$CFLAGS -Wwrite-strings" 17953 17954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 17955$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 17956 cacheid=xorg_cv_cc_flag__Wwrite_strings 17957 if eval \${$cacheid+:} false; then : 17958 $as_echo_n "(cached) " >&6 17959else 17960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17961/* end confdefs.h. */ 17962int i; 17963int 17964main () 17965{ 17966 17967 ; 17968 return 0; 17969} 17970_ACEOF 17971if ac_fn_c_try_link "$LINENO"; then : 17972 eval $cacheid=yes 17973else 17974 eval $cacheid=no 17975fi 17976rm -f core conftest.err conftest.$ac_objext \ 17977 conftest$ac_exeext conftest.$ac_ext 17978fi 17979 17980 17981 CFLAGS="$xorg_testset_save_CFLAGS" 17982 17983 eval supported=\$$cacheid 17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17985$as_echo "$supported" >&6; } 17986 if test "$supported" = "yes" ; then 17987 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 17988 found="yes" 17989 fi 17990 fi 17991 17992 17993 17994 17995 17996 17997 17998 17999 18000 18001 18002 18003 18004 18005 18006xorg_testset_save_CFLAGS="$CFLAGS" 18007 18008if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18009 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18011$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18012if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18013 $as_echo_n "(cached) " >&6 18014else 18015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18016/* end confdefs.h. */ 18017int i; 18018_ACEOF 18019if ac_fn_c_try_compile "$LINENO"; then : 18020 xorg_cv_cc_flag_unknown_warning_option=yes 18021else 18022 xorg_cv_cc_flag_unknown_warning_option=no 18023fi 18024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18025fi 18026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18027$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18028 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18029 CFLAGS="$xorg_testset_save_CFLAGS" 18030fi 18031 18032if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18035 fi 18036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18038$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18039if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18040 $as_echo_n "(cached) " >&6 18041else 18042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18043/* end confdefs.h. */ 18044int i; 18045_ACEOF 18046if ac_fn_c_try_compile "$LINENO"; then : 18047 xorg_cv_cc_flag_unused_command_line_argument=yes 18048else 18049 xorg_cv_cc_flag_unused_command_line_argument=no 18050fi 18051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18052fi 18053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18054$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18055 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18056 CFLAGS="$xorg_testset_save_CFLAGS" 18057fi 18058 18059found="no" 18060 18061 if test $found = "no" ; then 18062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18064 fi 18065 18066 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18068 fi 18069 18070 CFLAGS="$CFLAGS -Waddress" 18071 18072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 18073$as_echo_n "checking if $CC supports -Waddress... " >&6; } 18074 cacheid=xorg_cv_cc_flag__Waddress 18075 if eval \${$cacheid+:} false; then : 18076 $as_echo_n "(cached) " >&6 18077else 18078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18079/* end confdefs.h. */ 18080int i; 18081int 18082main () 18083{ 18084 18085 ; 18086 return 0; 18087} 18088_ACEOF 18089if ac_fn_c_try_link "$LINENO"; then : 18090 eval $cacheid=yes 18091else 18092 eval $cacheid=no 18093fi 18094rm -f core conftest.err conftest.$ac_objext \ 18095 conftest$ac_exeext conftest.$ac_ext 18096fi 18097 18098 18099 CFLAGS="$xorg_testset_save_CFLAGS" 18100 18101 eval supported=\$$cacheid 18102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18103$as_echo "$supported" >&6; } 18104 if test "$supported" = "yes" ; then 18105 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 18106 found="yes" 18107 fi 18108 fi 18109 18110 18111 18112 18113 18114 18115 18116 18117 18118 18119 18120 18121 18122 18123 18124xorg_testset_save_CFLAGS="$CFLAGS" 18125 18126if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18127 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18129$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18130if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18131 $as_echo_n "(cached) " >&6 18132else 18133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18134/* end confdefs.h. */ 18135int i; 18136_ACEOF 18137if ac_fn_c_try_compile "$LINENO"; then : 18138 xorg_cv_cc_flag_unknown_warning_option=yes 18139else 18140 xorg_cv_cc_flag_unknown_warning_option=no 18141fi 18142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18143fi 18144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18145$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18146 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18147 CFLAGS="$xorg_testset_save_CFLAGS" 18148fi 18149 18150if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18153 fi 18154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18156$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18157if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18158 $as_echo_n "(cached) " >&6 18159else 18160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18161/* end confdefs.h. */ 18162int i; 18163_ACEOF 18164if ac_fn_c_try_compile "$LINENO"; then : 18165 xorg_cv_cc_flag_unused_command_line_argument=yes 18166else 18167 xorg_cv_cc_flag_unused_command_line_argument=no 18168fi 18169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18170fi 18171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18172$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18173 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18174 CFLAGS="$xorg_testset_save_CFLAGS" 18175fi 18176 18177found="no" 18178 18179 if test $found = "no" ; then 18180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18182 fi 18183 18184 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18186 fi 18187 18188 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 18189 18190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 18191$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 18192 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 18193 if eval \${$cacheid+:} false; then : 18194 $as_echo_n "(cached) " >&6 18195else 18196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18197/* end confdefs.h. */ 18198int i; 18199int 18200main () 18201{ 18202 18203 ; 18204 return 0; 18205} 18206_ACEOF 18207if ac_fn_c_try_link "$LINENO"; then : 18208 eval $cacheid=yes 18209else 18210 eval $cacheid=no 18211fi 18212rm -f core conftest.err conftest.$ac_objext \ 18213 conftest$ac_exeext conftest.$ac_ext 18214fi 18215 18216 18217 CFLAGS="$xorg_testset_save_CFLAGS" 18218 18219 eval supported=\$$cacheid 18220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18221$as_echo "$supported" >&6; } 18222 if test "$supported" = "yes" ; then 18223 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 18224 found="yes" 18225 fi 18226 fi 18227 18228 18229 18230 18231 18232 18233 18234 18235 18236 18237 18238 18239 18240 18241 18242xorg_testset_save_CFLAGS="$CFLAGS" 18243 18244if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18245 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18247$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18248if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18249 $as_echo_n "(cached) " >&6 18250else 18251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18252/* end confdefs.h. */ 18253int i; 18254_ACEOF 18255if ac_fn_c_try_compile "$LINENO"; then : 18256 xorg_cv_cc_flag_unknown_warning_option=yes 18257else 18258 xorg_cv_cc_flag_unknown_warning_option=no 18259fi 18260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18261fi 18262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18263$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18264 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18265 CFLAGS="$xorg_testset_save_CFLAGS" 18266fi 18267 18268if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18270 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18271 fi 18272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18274$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18275if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18276 $as_echo_n "(cached) " >&6 18277else 18278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18279/* end confdefs.h. */ 18280int i; 18281_ACEOF 18282if ac_fn_c_try_compile "$LINENO"; then : 18283 xorg_cv_cc_flag_unused_command_line_argument=yes 18284else 18285 xorg_cv_cc_flag_unused_command_line_argument=no 18286fi 18287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18288fi 18289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18290$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18291 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18292 CFLAGS="$xorg_testset_save_CFLAGS" 18293fi 18294 18295found="no" 18296 18297 if test $found = "no" ; then 18298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18300 fi 18301 18302 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18304 fi 18305 18306 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 18307 18308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 18309$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 18310 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 18311 if eval \${$cacheid+:} false; then : 18312 $as_echo_n "(cached) " >&6 18313else 18314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18315/* end confdefs.h. */ 18316int i; 18317int 18318main () 18319{ 18320 18321 ; 18322 return 0; 18323} 18324_ACEOF 18325if ac_fn_c_try_link "$LINENO"; then : 18326 eval $cacheid=yes 18327else 18328 eval $cacheid=no 18329fi 18330rm -f core conftest.err conftest.$ac_objext \ 18331 conftest$ac_exeext conftest.$ac_ext 18332fi 18333 18334 18335 CFLAGS="$xorg_testset_save_CFLAGS" 18336 18337 eval supported=\$$cacheid 18338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18339$as_echo "$supported" >&6; } 18340 if test "$supported" = "yes" ; then 18341 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 18342 found="yes" 18343 fi 18344 fi 18345 18346 18347fi 18348 18349 18350 18351 18352 18353 18354 18355 CWARNFLAGS="$BASE_CFLAGS" 18356 if test "x$GCC" = xyes ; then 18357 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 18358 fi 18359 18360 18361 18362 18363 18364 18365 18366 18367# Check whether --enable-strict-compilation was given. 18368if test "${enable_strict_compilation+set}" = set; then : 18369 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 18370else 18371 STRICT_COMPILE=no 18372fi 18373 18374 18375 18376 18377 18378 18379STRICT_CFLAGS="" 18380 18381 18382 18383 18384 18385 18386 18387 18388 18389 18390 18391 18392 18393xorg_testset_save_CFLAGS="$CFLAGS" 18394 18395if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18398$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18399if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18400 $as_echo_n "(cached) " >&6 18401else 18402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18403/* end confdefs.h. */ 18404int i; 18405_ACEOF 18406if ac_fn_c_try_compile "$LINENO"; then : 18407 xorg_cv_cc_flag_unknown_warning_option=yes 18408else 18409 xorg_cv_cc_flag_unknown_warning_option=no 18410fi 18411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18412fi 18413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18414$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18415 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18416 CFLAGS="$xorg_testset_save_CFLAGS" 18417fi 18418 18419if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18420 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18421 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18422 fi 18423 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18425$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18426if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18427 $as_echo_n "(cached) " >&6 18428else 18429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18430/* end confdefs.h. */ 18431int i; 18432_ACEOF 18433if ac_fn_c_try_compile "$LINENO"; then : 18434 xorg_cv_cc_flag_unused_command_line_argument=yes 18435else 18436 xorg_cv_cc_flag_unused_command_line_argument=no 18437fi 18438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18439fi 18440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18441$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18442 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18443 CFLAGS="$xorg_testset_save_CFLAGS" 18444fi 18445 18446found="no" 18447 18448 if test $found = "no" ; then 18449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18451 fi 18452 18453 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18455 fi 18456 18457 CFLAGS="$CFLAGS -pedantic" 18458 18459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 18460$as_echo_n "checking if $CC supports -pedantic... " >&6; } 18461 cacheid=xorg_cv_cc_flag__pedantic 18462 if eval \${$cacheid+:} false; then : 18463 $as_echo_n "(cached) " >&6 18464else 18465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18466/* end confdefs.h. */ 18467int i; 18468int 18469main () 18470{ 18471 18472 ; 18473 return 0; 18474} 18475_ACEOF 18476if ac_fn_c_try_link "$LINENO"; then : 18477 eval $cacheid=yes 18478else 18479 eval $cacheid=no 18480fi 18481rm -f core conftest.err conftest.$ac_objext \ 18482 conftest$ac_exeext conftest.$ac_ext 18483fi 18484 18485 18486 CFLAGS="$xorg_testset_save_CFLAGS" 18487 18488 eval supported=\$$cacheid 18489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18490$as_echo "$supported" >&6; } 18491 if test "$supported" = "yes" ; then 18492 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 18493 found="yes" 18494 fi 18495 fi 18496 18497 18498 18499 18500 18501 18502 18503 18504 18505 18506 18507 18508 18509 18510 18511xorg_testset_save_CFLAGS="$CFLAGS" 18512 18513if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18516$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18517if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18518 $as_echo_n "(cached) " >&6 18519else 18520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18521/* end confdefs.h. */ 18522int i; 18523_ACEOF 18524if ac_fn_c_try_compile "$LINENO"; then : 18525 xorg_cv_cc_flag_unknown_warning_option=yes 18526else 18527 xorg_cv_cc_flag_unknown_warning_option=no 18528fi 18529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18530fi 18531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18532$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18533 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18534 CFLAGS="$xorg_testset_save_CFLAGS" 18535fi 18536 18537if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18540 fi 18541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18543$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18544if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18545 $as_echo_n "(cached) " >&6 18546else 18547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18548/* end confdefs.h. */ 18549int i; 18550_ACEOF 18551if ac_fn_c_try_compile "$LINENO"; then : 18552 xorg_cv_cc_flag_unused_command_line_argument=yes 18553else 18554 xorg_cv_cc_flag_unused_command_line_argument=no 18555fi 18556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18557fi 18558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18559$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18560 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18561 CFLAGS="$xorg_testset_save_CFLAGS" 18562fi 18563 18564found="no" 18565 18566 if test $found = "no" ; then 18567 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18568 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18569 fi 18570 18571 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18573 fi 18574 18575 CFLAGS="$CFLAGS -Werror" 18576 18577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 18578$as_echo_n "checking if $CC supports -Werror... " >&6; } 18579 cacheid=xorg_cv_cc_flag__Werror 18580 if eval \${$cacheid+:} false; then : 18581 $as_echo_n "(cached) " >&6 18582else 18583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18584/* end confdefs.h. */ 18585int i; 18586int 18587main () 18588{ 18589 18590 ; 18591 return 0; 18592} 18593_ACEOF 18594if ac_fn_c_try_link "$LINENO"; then : 18595 eval $cacheid=yes 18596else 18597 eval $cacheid=no 18598fi 18599rm -f core conftest.err conftest.$ac_objext \ 18600 conftest$ac_exeext conftest.$ac_ext 18601fi 18602 18603 18604 CFLAGS="$xorg_testset_save_CFLAGS" 18605 18606 eval supported=\$$cacheid 18607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18608$as_echo "$supported" >&6; } 18609 if test "$supported" = "yes" ; then 18610 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 18611 found="yes" 18612 fi 18613 fi 18614 18615 if test $found = "no" ; then 18616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18618 fi 18619 18620 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18622 fi 18623 18624 CFLAGS="$CFLAGS -errwarn" 18625 18626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 18627$as_echo_n "checking if $CC supports -errwarn... " >&6; } 18628 cacheid=xorg_cv_cc_flag__errwarn 18629 if eval \${$cacheid+:} false; then : 18630 $as_echo_n "(cached) " >&6 18631else 18632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18633/* end confdefs.h. */ 18634int i; 18635int 18636main () 18637{ 18638 18639 ; 18640 return 0; 18641} 18642_ACEOF 18643if ac_fn_c_try_link "$LINENO"; then : 18644 eval $cacheid=yes 18645else 18646 eval $cacheid=no 18647fi 18648rm -f core conftest.err conftest.$ac_objext \ 18649 conftest$ac_exeext conftest.$ac_ext 18650fi 18651 18652 18653 CFLAGS="$xorg_testset_save_CFLAGS" 18654 18655 eval supported=\$$cacheid 18656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18657$as_echo "$supported" >&6; } 18658 if test "$supported" = "yes" ; then 18659 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 18660 found="yes" 18661 fi 18662 fi 18663 18664 18665 18666# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 18667# activate it with -Werror, so we add it here explicitly. 18668 18669 18670 18671 18672 18673 18674 18675 18676 18677 18678 18679 18680 18681xorg_testset_save_CFLAGS="$CFLAGS" 18682 18683if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18684 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18686$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18687if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18688 $as_echo_n "(cached) " >&6 18689else 18690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18691/* end confdefs.h. */ 18692int i; 18693_ACEOF 18694if ac_fn_c_try_compile "$LINENO"; then : 18695 xorg_cv_cc_flag_unknown_warning_option=yes 18696else 18697 xorg_cv_cc_flag_unknown_warning_option=no 18698fi 18699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18700fi 18701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18702$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18703 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18704 CFLAGS="$xorg_testset_save_CFLAGS" 18705fi 18706 18707if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18710 fi 18711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18713$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18714if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18715 $as_echo_n "(cached) " >&6 18716else 18717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18718/* end confdefs.h. */ 18719int i; 18720_ACEOF 18721if ac_fn_c_try_compile "$LINENO"; then : 18722 xorg_cv_cc_flag_unused_command_line_argument=yes 18723else 18724 xorg_cv_cc_flag_unused_command_line_argument=no 18725fi 18726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18727fi 18728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18729$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18730 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18731 CFLAGS="$xorg_testset_save_CFLAGS" 18732fi 18733 18734found="no" 18735 18736 if test $found = "no" ; then 18737 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18738 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18739 fi 18740 18741 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18743 fi 18744 18745 CFLAGS="$CFLAGS -Werror=attributes" 18746 18747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 18748$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 18749 cacheid=xorg_cv_cc_flag__Werror_attributes 18750 if eval \${$cacheid+:} false; then : 18751 $as_echo_n "(cached) " >&6 18752else 18753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18754/* end confdefs.h. */ 18755int i; 18756int 18757main () 18758{ 18759 18760 ; 18761 return 0; 18762} 18763_ACEOF 18764if ac_fn_c_try_link "$LINENO"; then : 18765 eval $cacheid=yes 18766else 18767 eval $cacheid=no 18768fi 18769rm -f core conftest.err conftest.$ac_objext \ 18770 conftest$ac_exeext conftest.$ac_ext 18771fi 18772 18773 18774 CFLAGS="$xorg_testset_save_CFLAGS" 18775 18776 eval supported=\$$cacheid 18777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18778$as_echo "$supported" >&6; } 18779 if test "$supported" = "yes" ; then 18780 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 18781 found="yes" 18782 fi 18783 fi 18784 18785 18786 18787if test "x$STRICT_COMPILE" = "xyes"; then 18788 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 18789 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 18790fi 18791 18792 18793 18794 18795 18796 18797cat >>confdefs.h <<_ACEOF 18798#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 18799_ACEOF 18800 18801 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 18802 if test "x$PVM" = "x"; then 18803 PVM="0" 18804 fi 18805 18806cat >>confdefs.h <<_ACEOF 18807#define PACKAGE_VERSION_MINOR $PVM 18808_ACEOF 18809 18810 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 18811 if test "x$PVP" = "x"; then 18812 PVP="0" 18813 fi 18814 18815cat >>confdefs.h <<_ACEOF 18816#define PACKAGE_VERSION_PATCHLEVEL $PVP 18817_ACEOF 18818 18819 18820 18821CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 18822mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 18823|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 18824echo 'git directory not found: installing possibly empty changelog.' >&2)" 18825 18826 18827 18828 18829macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 18830INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 18831mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 18832|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 18833echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 18834 18835 18836 18837 18838 18839 18840if test x$APP_MAN_SUFFIX = x ; then 18841 APP_MAN_SUFFIX=1 18842fi 18843if test x$APP_MAN_DIR = x ; then 18844 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 18845fi 18846 18847if test x$LIB_MAN_SUFFIX = x ; then 18848 LIB_MAN_SUFFIX=3 18849fi 18850if test x$LIB_MAN_DIR = x ; then 18851 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 18852fi 18853 18854if test x$FILE_MAN_SUFFIX = x ; then 18855 case $host_os in 18856 solaris*) FILE_MAN_SUFFIX=4 ;; 18857 *) FILE_MAN_SUFFIX=5 ;; 18858 esac 18859fi 18860if test x$FILE_MAN_DIR = x ; then 18861 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 18862fi 18863 18864if test x$MISC_MAN_SUFFIX = x ; then 18865 case $host_os in 18866 solaris*) MISC_MAN_SUFFIX=5 ;; 18867 *) MISC_MAN_SUFFIX=7 ;; 18868 esac 18869fi 18870if test x$MISC_MAN_DIR = x ; then 18871 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 18872fi 18873 18874if test x$DRIVER_MAN_SUFFIX = x ; then 18875 case $host_os in 18876 solaris*) DRIVER_MAN_SUFFIX=7 ;; 18877 *) DRIVER_MAN_SUFFIX=4 ;; 18878 esac 18879fi 18880if test x$DRIVER_MAN_DIR = x ; then 18881 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 18882fi 18883 18884if test x$ADMIN_MAN_SUFFIX = x ; then 18885 case $host_os in 18886 solaris*) ADMIN_MAN_SUFFIX=1m ;; 18887 *) ADMIN_MAN_SUFFIX=8 ;; 18888 esac 18889fi 18890if test x$ADMIN_MAN_DIR = x ; then 18891 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 18892fi 18893 18894 18895 18896 18897 18898 18899 18900 18901 18902 18903 18904 18905 18906 18907 18908XORG_MAN_PAGE="X Version 11" 18909 18910MAN_SUBSTS="\ 18911 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18912 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18913 -e 's|__xservername__|Xorg|g' \ 18914 -e 's|__xconfigfile__|xorg.conf|g' \ 18915 -e 's|__projectroot__|\$(prefix)|g' \ 18916 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 18917 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 18918 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 18919 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 18920 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 18921 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 18922 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 18923 18924 18925 18926# Check whether --enable-silent-rules was given. 18927if test "${enable_silent_rules+set}" = set; then : 18928 enableval=$enable_silent_rules; 18929fi 18930 18931case $enable_silent_rules in # ((( 18932 yes) AM_DEFAULT_VERBOSITY=0;; 18933 no) AM_DEFAULT_VERBOSITY=1;; 18934 *) AM_DEFAULT_VERBOSITY=0;; 18935esac 18936am_make=${MAKE-make} 18937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 18938$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 18939if ${am_cv_make_support_nested_variables+:} false; then : 18940 $as_echo_n "(cached) " >&6 18941else 18942 if $as_echo 'TRUE=$(BAR$(V)) 18943BAR0=false 18944BAR1=true 18945V=1 18946am__doit: 18947 @$(TRUE) 18948.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 18949 am_cv_make_support_nested_variables=yes 18950else 18951 am_cv_make_support_nested_variables=no 18952fi 18953fi 18954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 18955$as_echo "$am_cv_make_support_nested_variables" >&6; } 18956if test $am_cv_make_support_nested_variables = yes; then 18957 AM_V='$(V)' 18958 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 18959else 18960 AM_V=$AM_DEFAULT_VERBOSITY 18961 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 18962fi 18963AM_BACKSLASH='\' 18964 18965 18966 18967 18968# Check whether --enable-specs was given. 18969if test "${enable_specs+set}" = set; then : 18970 enableval=$enable_specs; build_specs=$enableval 18971else 18972 build_specs=yes 18973fi 18974 18975 18976 if test x$build_specs = xyes; then 18977 ENABLE_SPECS_TRUE= 18978 ENABLE_SPECS_FALSE='#' 18979else 18980 ENABLE_SPECS_TRUE='#' 18981 ENABLE_SPECS_FALSE= 18982fi 18983 18984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5 18985$as_echo_n "checking whether to build functional specifications... " >&6; } 18986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5 18987$as_echo "$build_specs" >&6; } 18988 18989 18990 18991 18992 18993# Check whether --with-xmlto was given. 18994if test "${with_xmlto+set}" = set; then : 18995 withval=$with_xmlto; use_xmlto=$withval 18996else 18997 use_xmlto=auto 18998fi 18999 19000 19001 19002if test "x$use_xmlto" = x"auto"; then 19003 # Extract the first word of "xmlto", so it can be a program name with args. 19004set dummy xmlto; ac_word=$2 19005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19006$as_echo_n "checking for $ac_word... " >&6; } 19007if ${ac_cv_path_XMLTO+:} false; then : 19008 $as_echo_n "(cached) " >&6 19009else 19010 case $XMLTO in 19011 [\\/]* | ?:[\\/]*) 19012 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 19013 ;; 19014 *) 19015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19016for as_dir in $PATH 19017do 19018 IFS=$as_save_IFS 19019 test -z "$as_dir" && as_dir=. 19020 for ac_exec_ext in '' $ac_executable_extensions; do 19021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19022 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 19023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19024 break 2 19025 fi 19026done 19027 done 19028IFS=$as_save_IFS 19029 19030 ;; 19031esac 19032fi 19033XMLTO=$ac_cv_path_XMLTO 19034if test -n "$XMLTO"; then 19035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 19036$as_echo "$XMLTO" >&6; } 19037else 19038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19039$as_echo "no" >&6; } 19040fi 19041 19042 19043 if test "x$XMLTO" = "x"; then 19044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 19045$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 19046 have_xmlto=no 19047 else 19048 have_xmlto=yes 19049 fi 19050elif test "x$use_xmlto" = x"yes" ; then 19051 # Extract the first word of "xmlto", so it can be a program name with args. 19052set dummy xmlto; ac_word=$2 19053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19054$as_echo_n "checking for $ac_word... " >&6; } 19055if ${ac_cv_path_XMLTO+:} false; then : 19056 $as_echo_n "(cached) " >&6 19057else 19058 case $XMLTO in 19059 [\\/]* | ?:[\\/]*) 19060 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 19061 ;; 19062 *) 19063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19064for as_dir in $PATH 19065do 19066 IFS=$as_save_IFS 19067 test -z "$as_dir" && as_dir=. 19068 for ac_exec_ext in '' $ac_executable_extensions; do 19069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19070 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 19071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19072 break 2 19073 fi 19074done 19075 done 19076IFS=$as_save_IFS 19077 19078 ;; 19079esac 19080fi 19081XMLTO=$ac_cv_path_XMLTO 19082if test -n "$XMLTO"; then 19083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 19084$as_echo "$XMLTO" >&6; } 19085else 19086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19087$as_echo "no" >&6; } 19088fi 19089 19090 19091 if test "x$XMLTO" = "x"; then 19092 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 19093 fi 19094 have_xmlto=yes 19095elif test "x$use_xmlto" = x"no" ; then 19096 if test "x$XMLTO" != "x"; then 19097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 19098$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 19099 fi 19100 have_xmlto=no 19101else 19102 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 19103fi 19104 19105# Test for a minimum version of xmlto, if provided. 19106if test "$have_xmlto" = yes; then 19107 # scrape the xmlto version 19108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 19109$as_echo_n "checking the xmlto version... " >&6; } 19110 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 19111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 19112$as_echo "$xmlto_version" >&6; } 19113 as_arg_v1=$xmlto_version 19114as_arg_v2=0.0.22 19115awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 19116case $? in #( 19117 1) : 19118 if test "x$use_xmlto" = xauto; then 19119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 19120$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 19121 have_xmlto=no 19122 else 19123 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 19124 fi ;; #( 19125 0) : 19126 ;; #( 19127 2) : 19128 ;; #( 19129 *) : 19130 ;; 19131esac 19132fi 19133 19134# Test for the ability of xmlto to generate a text target 19135# 19136# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the 19137# following test for empty XML docbook files. 19138# For compatibility reasons use the following empty XML docbook file and if 19139# it fails try it again with a non-empty XML file. 19140have_xmlto_text=no 19141cat > conftest.xml << "EOF" 19142EOF 19143if test "$have_xmlto" = yes; then : 19144 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 19145 have_xmlto_text=yes 19146else 19147 # Try it again with a non-empty XML file. 19148 cat > conftest.xml << "EOF" 19149<x></x> 19150EOF 19151 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 19152 have_xmlto_text=yes 19153else 19154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 19155$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 19156fi 19157fi 19158fi 19159rm -f conftest.xml 19160 if test $have_xmlto_text = yes; then 19161 HAVE_XMLTO_TEXT_TRUE= 19162 HAVE_XMLTO_TEXT_FALSE='#' 19163else 19164 HAVE_XMLTO_TEXT_TRUE='#' 19165 HAVE_XMLTO_TEXT_FALSE= 19166fi 19167 19168 if test "$have_xmlto" = yes; then 19169 HAVE_XMLTO_TRUE= 19170 HAVE_XMLTO_FALSE='#' 19171else 19172 HAVE_XMLTO_TRUE='#' 19173 HAVE_XMLTO_FALSE= 19174fi 19175 19176 19177 19178 19179 19180 19181# Check whether --with-fop was given. 19182if test "${with_fop+set}" = set; then : 19183 withval=$with_fop; use_fop=$withval 19184else 19185 use_fop=no 19186fi 19187 19188 19189 19190if test "x$use_fop" = x"auto"; then 19191 # Extract the first word of "fop", so it can be a program name with args. 19192set dummy fop; ac_word=$2 19193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19194$as_echo_n "checking for $ac_word... " >&6; } 19195if ${ac_cv_path_FOP+:} false; then : 19196 $as_echo_n "(cached) " >&6 19197else 19198 case $FOP in 19199 [\\/]* | ?:[\\/]*) 19200 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 19201 ;; 19202 *) 19203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19204for as_dir in $PATH 19205do 19206 IFS=$as_save_IFS 19207 test -z "$as_dir" && as_dir=. 19208 for ac_exec_ext in '' $ac_executable_extensions; do 19209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19210 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 19211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19212 break 2 19213 fi 19214done 19215 done 19216IFS=$as_save_IFS 19217 19218 ;; 19219esac 19220fi 19221FOP=$ac_cv_path_FOP 19222if test -n "$FOP"; then 19223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 19224$as_echo "$FOP" >&6; } 19225else 19226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19227$as_echo "no" >&6; } 19228fi 19229 19230 19231 if test "x$FOP" = "x"; then 19232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 19233$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 19234 have_fop=no 19235 else 19236 have_fop=yes 19237 fi 19238elif test "x$use_fop" = x"yes" ; then 19239 # Extract the first word of "fop", so it can be a program name with args. 19240set dummy fop; ac_word=$2 19241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19242$as_echo_n "checking for $ac_word... " >&6; } 19243if ${ac_cv_path_FOP+:} false; then : 19244 $as_echo_n "(cached) " >&6 19245else 19246 case $FOP in 19247 [\\/]* | ?:[\\/]*) 19248 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 19249 ;; 19250 *) 19251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19252for as_dir in $PATH 19253do 19254 IFS=$as_save_IFS 19255 test -z "$as_dir" && as_dir=. 19256 for ac_exec_ext in '' $ac_executable_extensions; do 19257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19258 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 19259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19260 break 2 19261 fi 19262done 19263 done 19264IFS=$as_save_IFS 19265 19266 ;; 19267esac 19268fi 19269FOP=$ac_cv_path_FOP 19270if test -n "$FOP"; then 19271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 19272$as_echo "$FOP" >&6; } 19273else 19274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19275$as_echo "no" >&6; } 19276fi 19277 19278 19279 if test "x$FOP" = "x"; then 19280 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 19281 fi 19282 have_fop=yes 19283elif test "x$use_fop" = x"no" ; then 19284 if test "x$FOP" != "x"; then 19285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 19286$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 19287 fi 19288 have_fop=no 19289else 19290 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 19291fi 19292 19293# Test for a minimum version of fop, if provided. 19294 19295 if test "$have_fop" = yes; then 19296 HAVE_FOP_TRUE= 19297 HAVE_FOP_FALSE='#' 19298else 19299 HAVE_FOP_TRUE='#' 19300 HAVE_FOP_FALSE= 19301fi 19302 19303 19304 19305 19306# Preserves the interface, should it be implemented later 19307 19308 19309 19310# Check whether --with-xsltproc was given. 19311if test "${with_xsltproc+set}" = set; then : 19312 withval=$with_xsltproc; use_xsltproc=$withval 19313else 19314 use_xsltproc=auto 19315fi 19316 19317 19318 19319if test "x$use_xsltproc" = x"auto"; then 19320 # Extract the first word of "xsltproc", so it can be a program name with args. 19321set dummy xsltproc; ac_word=$2 19322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19323$as_echo_n "checking for $ac_word... " >&6; } 19324if ${ac_cv_path_XSLTPROC+:} false; then : 19325 $as_echo_n "(cached) " >&6 19326else 19327 case $XSLTPROC in 19328 [\\/]* | ?:[\\/]*) 19329 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 19330 ;; 19331 *) 19332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19333for as_dir in $PATH 19334do 19335 IFS=$as_save_IFS 19336 test -z "$as_dir" && as_dir=. 19337 for ac_exec_ext in '' $ac_executable_extensions; do 19338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19339 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 19340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19341 break 2 19342 fi 19343done 19344 done 19345IFS=$as_save_IFS 19346 19347 ;; 19348esac 19349fi 19350XSLTPROC=$ac_cv_path_XSLTPROC 19351if test -n "$XSLTPROC"; then 19352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 19353$as_echo "$XSLTPROC" >&6; } 19354else 19355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19356$as_echo "no" >&6; } 19357fi 19358 19359 19360 if test "x$XSLTPROC" = "x"; then 19361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 19362$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 19363 have_xsltproc=no 19364 else 19365 have_xsltproc=yes 19366 fi 19367elif test "x$use_xsltproc" = x"yes" ; then 19368 # Extract the first word of "xsltproc", so it can be a program name with args. 19369set dummy xsltproc; ac_word=$2 19370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19371$as_echo_n "checking for $ac_word... " >&6; } 19372if ${ac_cv_path_XSLTPROC+:} false; then : 19373 $as_echo_n "(cached) " >&6 19374else 19375 case $XSLTPROC in 19376 [\\/]* | ?:[\\/]*) 19377 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 19378 ;; 19379 *) 19380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19381for as_dir in $PATH 19382do 19383 IFS=$as_save_IFS 19384 test -z "$as_dir" && as_dir=. 19385 for ac_exec_ext in '' $ac_executable_extensions; do 19386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19387 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 19388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19389 break 2 19390 fi 19391done 19392 done 19393IFS=$as_save_IFS 19394 19395 ;; 19396esac 19397fi 19398XSLTPROC=$ac_cv_path_XSLTPROC 19399if test -n "$XSLTPROC"; then 19400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 19401$as_echo "$XSLTPROC" >&6; } 19402else 19403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19404$as_echo "no" >&6; } 19405fi 19406 19407 19408 if test "x$XSLTPROC" = "x"; then 19409 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 19410 fi 19411 have_xsltproc=yes 19412elif test "x$use_xsltproc" = x"no" ; then 19413 if test "x$XSLTPROC" != "x"; then 19414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 19415$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 19416 fi 19417 have_xsltproc=no 19418else 19419 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 19420fi 19421 19422 if test "$have_xsltproc" = yes; then 19423 HAVE_XSLTPROC_TRUE= 19424 HAVE_XSLTPROC_FALSE='#' 19425else 19426 HAVE_XSLTPROC_TRUE='#' 19427 HAVE_XSLTPROC_FALSE= 19428fi 19429 19430 19431 19432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.10" >&5 19433$as_echo_n "checking for X.Org SGML entities >= 1.10... " >&6; } 19434XORG_SGML_PATH= 19435if test -n "$PKG_CONFIG" && \ 19436 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.10\""; } >&5 19437 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.10") 2>&5 19438 ac_status=$? 19439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19440 test $ac_status = 0; }; then 19441 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 19442else 19443 : 19444 19445fi 19446 19447# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 19448# the path and the name of the doc stylesheet 19449if test "x$XORG_SGML_PATH" != "x" ; then 19450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 19451$as_echo "$XORG_SGML_PATH" >&6; } 19452 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 19453 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 19454else 19455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19456$as_echo "no" >&6; } 19457fi 19458 19459 19460 19461 19462 if test "x$XSL_STYLESHEET" != "x"; then 19463 HAVE_STYLESHEETS_TRUE= 19464 HAVE_STYLESHEETS_FALSE='#' 19465else 19466 HAVE_STYLESHEETS_TRUE='#' 19467 HAVE_STYLESHEETS_FALSE= 19468fi 19469 19470 19471 19472 19473for ac_prog in cpp 19474do 19475 # Extract the first word of "$ac_prog", so it can be a program name with args. 19476set dummy $ac_prog; ac_word=$2 19477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19478$as_echo_n "checking for $ac_word... " >&6; } 19479if ${ac_cv_path_RAWCPP+:} false; then : 19480 $as_echo_n "(cached) " >&6 19481else 19482 case $RAWCPP in 19483 [\\/]* | ?:[\\/]*) 19484 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path. 19485 ;; 19486 *) 19487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19488as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 19489for as_dir in $as_dummy 19490do 19491 IFS=$as_save_IFS 19492 test -z "$as_dir" && as_dir=. 19493 for ac_exec_ext in '' $ac_executable_extensions; do 19494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19495 ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext" 19496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19497 break 2 19498 fi 19499done 19500 done 19501IFS=$as_save_IFS 19502 19503 ;; 19504esac 19505fi 19506RAWCPP=$ac_cv_path_RAWCPP 19507if test -n "$RAWCPP"; then 19508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5 19509$as_echo "$RAWCPP" >&6; } 19510else 19511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19512$as_echo "no" >&6; } 19513fi 19514 19515 19516 test -n "$RAWCPP" && break 19517done 19518test -n "$RAWCPP" || RAWCPP="${CPP}" 19519 19520 19521# Check for flag to avoid builtin definitions - assumes unix is predefined, 19522# which is not the best choice for supporting other OS'es, but covers most 19523# of the ones we need for now. 19524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5 19525$as_echo_n "checking if $RAWCPP requires -undef... " >&6; } 19526cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19527/* end confdefs.h. */ 19528Does cpp redefine unix ? 19529_ACEOF 19530if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 19531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19532$as_echo "no" >&6; } 19533else 19534 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 19535 RAWCPPFLAGS=-undef 19536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19537$as_echo "yes" >&6; } 19538 # under Cygwin unix is still defined even with -undef 19539 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 19540 RAWCPPFLAGS="-undef -ansi" 19541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5 19542$as_echo "yes, with -ansi" >&6; } 19543 else 19544 as_fn_error $? "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5 19545 fi 19546fi 19547rm -f conftest.$ac_ext 19548 19549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5 19550$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; } 19551cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19552/* end confdefs.h. */ 19553Does cpp preserve "whitespace"? 19554_ACEOF 19555if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 19556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19557$as_echo "no" >&6; } 19558else 19559 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 19560 TRADITIONALCPPFLAGS="-traditional" 19561 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 19562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19563$as_echo "yes" >&6; } 19564 else 19565 as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5 19566 fi 19567fi 19568rm -f conftest.$ac_ext 19569 19570 19571 19572 19573 19574# Preserves the interface, should it be implemented later 19575 19576 19577 19578# Check whether --with-perl was given. 19579if test "${with_perl+set}" = set; then : 19580 withval=$with_perl; use_perl=$withval 19581else 19582 use_perl=auto 19583fi 19584 19585 19586 19587if test "x$use_perl" = x"auto"; then 19588 # Extract the first word of "perl", so it can be a program name with args. 19589set dummy perl; ac_word=$2 19590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19591$as_echo_n "checking for $ac_word... " >&6; } 19592if ${ac_cv_path_PERL+:} false; then : 19593 $as_echo_n "(cached) " >&6 19594else 19595 case $PERL in 19596 [\\/]* | ?:[\\/]*) 19597 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 19598 ;; 19599 *) 19600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19601for as_dir in $PATH 19602do 19603 IFS=$as_save_IFS 19604 test -z "$as_dir" && as_dir=. 19605 for ac_exec_ext in '' $ac_executable_extensions; do 19606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19607 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 19608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19609 break 2 19610 fi 19611done 19612 done 19613IFS=$as_save_IFS 19614 19615 ;; 19616esac 19617fi 19618PERL=$ac_cv_path_PERL 19619if test -n "$PERL"; then 19620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 19621$as_echo "$PERL" >&6; } 19622else 19623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19624$as_echo "no" >&6; } 19625fi 19626 19627 19628 if test "x$PERL" = "x"; then 19629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - cannot extract information and report" >&5 19630$as_echo "$as_me: WARNING: perl not found - cannot extract information and report" >&2;} 19631 have_perl=no 19632 else 19633 have_perl=yes 19634 fi 19635elif test "x$use_perl" = x"yes" ; then 19636 # Extract the first word of "perl", so it can be a program name with args. 19637set dummy perl; ac_word=$2 19638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19639$as_echo_n "checking for $ac_word... " >&6; } 19640if ${ac_cv_path_PERL+:} false; then : 19641 $as_echo_n "(cached) " >&6 19642else 19643 case $PERL in 19644 [\\/]* | ?:[\\/]*) 19645 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 19646 ;; 19647 *) 19648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19649for as_dir in $PATH 19650do 19651 IFS=$as_save_IFS 19652 test -z "$as_dir" && as_dir=. 19653 for ac_exec_ext in '' $ac_executable_extensions; do 19654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19655 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 19656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19657 break 2 19658 fi 19659done 19660 done 19661IFS=$as_save_IFS 19662 19663 ;; 19664esac 19665fi 19666PERL=$ac_cv_path_PERL 19667if test -n "$PERL"; then 19668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 19669$as_echo "$PERL" >&6; } 19670else 19671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19672$as_echo "no" >&6; } 19673fi 19674 19675 19676 if test "x$PERL" = "x"; then 19677 as_fn_error $? "--with-perl=yes specified but perl not found in PATH" "$LINENO" 5 19678 fi 19679 have_perl=yes 19680elif test "x$use_perl" = x"no" ; then 19681 if test "x$PERL" != "x"; then 19682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&5 19683$as_echo "$as_me: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&2;} 19684 fi 19685 have_perl=no 19686else 19687 as_fn_error $? "--with-perl expects 'yes' or 'no'" "$LINENO" 5 19688fi 19689 19690 if test "$have_perl" = yes; then 19691 HAVE_PERL_TRUE= 19692 HAVE_PERL_FALSE='#' 19693else 19694 HAVE_PERL_TRUE='#' 19695 HAVE_PERL_FALSE= 19696fi 19697 19698 19699 19700# Required when PKG_CHECK_MODULES called within an if statement 19701 19702 19703 19704 19705 19706 19707 19708if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19709 if test -n "$ac_tool_prefix"; then 19710 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19711set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19713$as_echo_n "checking for $ac_word... " >&6; } 19714if ${ac_cv_path_PKG_CONFIG+:} false; then : 19715 $as_echo_n "(cached) " >&6 19716else 19717 case $PKG_CONFIG in 19718 [\\/]* | ?:[\\/]*) 19719 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19720 ;; 19721 *) 19722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19723for as_dir in $PATH 19724do 19725 IFS=$as_save_IFS 19726 test -z "$as_dir" && as_dir=. 19727 for ac_exec_ext in '' $ac_executable_extensions; do 19728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19729 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19731 break 2 19732 fi 19733done 19734 done 19735IFS=$as_save_IFS 19736 19737 ;; 19738esac 19739fi 19740PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19741if test -n "$PKG_CONFIG"; then 19742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 19743$as_echo "$PKG_CONFIG" >&6; } 19744else 19745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19746$as_echo "no" >&6; } 19747fi 19748 19749 19750fi 19751if test -z "$ac_cv_path_PKG_CONFIG"; then 19752 ac_pt_PKG_CONFIG=$PKG_CONFIG 19753 # Extract the first word of "pkg-config", so it can be a program name with args. 19754set dummy pkg-config; ac_word=$2 19755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19756$as_echo_n "checking for $ac_word... " >&6; } 19757if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 19758 $as_echo_n "(cached) " >&6 19759else 19760 case $ac_pt_PKG_CONFIG in 19761 [\\/]* | ?:[\\/]*) 19762 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19763 ;; 19764 *) 19765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19766for as_dir in $PATH 19767do 19768 IFS=$as_save_IFS 19769 test -z "$as_dir" && as_dir=. 19770 for ac_exec_ext in '' $ac_executable_extensions; do 19771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19772 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19774 break 2 19775 fi 19776done 19777 done 19778IFS=$as_save_IFS 19779 19780 ;; 19781esac 19782fi 19783ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19784if test -n "$ac_pt_PKG_CONFIG"; then 19785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 19786$as_echo "$ac_pt_PKG_CONFIG" >&6; } 19787else 19788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19789$as_echo "no" >&6; } 19790fi 19791 19792 if test "x$ac_pt_PKG_CONFIG" = x; then 19793 PKG_CONFIG="" 19794 else 19795 case $cross_compiling:$ac_tool_warned in 19796yes:) 19797{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19798$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19799ac_tool_warned=yes ;; 19800esac 19801 PKG_CONFIG=$ac_pt_PKG_CONFIG 19802 fi 19803else 19804 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19805fi 19806 19807fi 19808if test -n "$PKG_CONFIG"; then 19809 _pkg_min_version=0.9.0 19810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 19811$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 19812 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19814$as_echo "yes" >&6; } 19815 else 19816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19817$as_echo "no" >&6; } 19818 PKG_CONFIG="" 19819 fi 19820fi 19821 19822if test x"$CC_FOR_BUILD" = x; then 19823 if test x"$cross_compiling" = xyes; then 19824 for ac_prog in gcc cc 19825do 19826 # Extract the first word of "$ac_prog", so it can be a program name with args. 19827set dummy $ac_prog; ac_word=$2 19828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19829$as_echo_n "checking for $ac_word... " >&6; } 19830if ${ac_cv_prog_CC_FOR_BUILD+:} false; then : 19831 $as_echo_n "(cached) " >&6 19832else 19833 if test -n "$CC_FOR_BUILD"; then 19834 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 19835else 19836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19837for as_dir in $PATH 19838do 19839 IFS=$as_save_IFS 19840 test -z "$as_dir" && as_dir=. 19841 for ac_exec_ext in '' $ac_executable_extensions; do 19842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19843 ac_cv_prog_CC_FOR_BUILD="$ac_prog" 19844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19845 break 2 19846 fi 19847done 19848 done 19849IFS=$as_save_IFS 19850 19851fi 19852fi 19853CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 19854if test -n "$CC_FOR_BUILD"; then 19855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 19856$as_echo "$CC_FOR_BUILD" >&6; } 19857else 19858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19859$as_echo "no" >&6; } 19860fi 19861 19862 19863 test -n "$CC_FOR_BUILD" && break 19864done 19865 19866 else 19867 CC_FOR_BUILD="$CC" 19868 fi 19869fi 19870 19871 19872if test x"$CPPFLAGS_FOR_BUILD" = x; then 19873 if test ! x"$cross_compiling" = xyes; then 19874 CPPFLAGS_FOR_BUILD=${CPPFLAGS} 19875 fi 19876fi 19877 19878 19879if test x"$CFLAGS_FOR_BUILD" = x; then 19880 if test ! x"$cross_compiling" = xyes; then 19881 CFLAGS_FOR_BUILD=${CFLAGS} 19882 fi 19883fi 19884 19885 19886if test x"$LDFLAGS_FOR_BUILD" = x; then 19887 if test ! x"$cross_compiling" = xyes; then 19888 LDFLAGS_FOR_BUILD=${LDFLAGS} 19889 fi 19890fi 19891 19892 19893if test x"$EXEEXT_FOR_BUILD" = x; then 19894 if test x"$cross_compiling" = xno; then 19895 EXEEXT_FOR_BUILD=${EXEEXT} 19896 fi 19897 # If cross-compiling and not provided, assume EXEEXT_FOR_BUILD is empty 19898fi 19899 19900 19901# Checks for pkg-config packages 19902 19903# Always required 19904X11_REQUIRES='xproto >= 7.0.17 xextproto xtrans xcb >= 1.11.1' 19905X11_EXTRA_DEPS="xcb >= 1.11.1" 19906 19907 19908 19909 19910 19911 19912 19913 19914if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19915 if test -n "$ac_tool_prefix"; then 19916 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19917set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19919$as_echo_n "checking for $ac_word... " >&6; } 19920if ${ac_cv_path_PKG_CONFIG+:} false; then : 19921 $as_echo_n "(cached) " >&6 19922else 19923 case $PKG_CONFIG in 19924 [\\/]* | ?:[\\/]*) 19925 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19926 ;; 19927 *) 19928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19929for as_dir in $PATH 19930do 19931 IFS=$as_save_IFS 19932 test -z "$as_dir" && as_dir=. 19933 for ac_exec_ext in '' $ac_executable_extensions; do 19934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19935 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19937 break 2 19938 fi 19939done 19940 done 19941IFS=$as_save_IFS 19942 19943 ;; 19944esac 19945fi 19946PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19947if test -n "$PKG_CONFIG"; then 19948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 19949$as_echo "$PKG_CONFIG" >&6; } 19950else 19951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19952$as_echo "no" >&6; } 19953fi 19954 19955 19956fi 19957if test -z "$ac_cv_path_PKG_CONFIG"; then 19958 ac_pt_PKG_CONFIG=$PKG_CONFIG 19959 # Extract the first word of "pkg-config", so it can be a program name with args. 19960set dummy pkg-config; ac_word=$2 19961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19962$as_echo_n "checking for $ac_word... " >&6; } 19963if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 19964 $as_echo_n "(cached) " >&6 19965else 19966 case $ac_pt_PKG_CONFIG in 19967 [\\/]* | ?:[\\/]*) 19968 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19969 ;; 19970 *) 19971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19972for as_dir in $PATH 19973do 19974 IFS=$as_save_IFS 19975 test -z "$as_dir" && as_dir=. 19976 for ac_exec_ext in '' $ac_executable_extensions; do 19977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19978 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19980 break 2 19981 fi 19982done 19983 done 19984IFS=$as_save_IFS 19985 19986 ;; 19987esac 19988fi 19989ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19990if test -n "$ac_pt_PKG_CONFIG"; then 19991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 19992$as_echo "$ac_pt_PKG_CONFIG" >&6; } 19993else 19994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19995$as_echo "no" >&6; } 19996fi 19997 19998 if test "x$ac_pt_PKG_CONFIG" = x; then 19999 PKG_CONFIG="" 20000 else 20001 case $cross_compiling:$ac_tool_warned in 20002yes:) 20003{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 20004$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20005ac_tool_warned=yes ;; 20006esac 20007 PKG_CONFIG=$ac_pt_PKG_CONFIG 20008 fi 20009else 20010 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 20011fi 20012 20013fi 20014if test -n "$PKG_CONFIG"; then 20015 _pkg_min_version=0.9.0 20016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 20017$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 20018 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 20019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20020$as_echo "yes" >&6; } 20021 else 20022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20023$as_echo "no" >&6; } 20024 PKG_CONFIG="" 20025 fi 20026fi 20027 20028 20029 20030# Issue an error if xtrans.m4 was not found and XTRANS_CONNECTION_FLAGS macro 20031# was not expanded, since libX11 with no transport types is rather useless. 20032# 20033# If you're seeing an error here, be sure you installed the lib/xtrans module 20034# first and if it's not in the default location, that you set the ACLOCAL 20035# environment variable to find it, such as: 20036# ACLOCAL="aclocal -I ${PREFIX}/share/aclocal" 20037 20038 20039# Transport selection macro from xtrans.m4 20040 20041 20042 case $host_os in 20043 mingw*) unixdef="no" ;; 20044 *) unixdef="yes" ;; 20045 esac 20046 # Check whether --enable-unix-transport was given. 20047if test "${enable_unix_transport+set}" = set; then : 20048 enableval=$enable_unix_transport; UNIXCONN=$enableval 20049else 20050 UNIXCONN=$unixdef 20051fi 20052 20053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 20054$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; } 20055 if test "$UNIXCONN" = "yes"; then 20056 20057$as_echo "#define UNIXCONN 1" >>confdefs.h 20058 20059 fi 20060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 20061$as_echo "$UNIXCONN" >&6; } 20062 # Check whether --enable-tcp-transport was given. 20063if test "${enable_tcp_transport+set}" = set; then : 20064 enableval=$enable_tcp_transport; TCPCONN=$enableval 20065else 20066 TCPCONN=yes 20067fi 20068 20069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 20070$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; } 20071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 20072$as_echo "$TCPCONN" >&6; } 20073 if test "$TCPCONN" = "yes"; then 20074 20075$as_echo "#define TCPCONN 1" >>confdefs.h 20076 20077 20078 # SVR4 hides these in libraries other than libc 20079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 20080$as_echo_n "checking for library containing socket... " >&6; } 20081if ${ac_cv_search_socket+:} false; then : 20082 $as_echo_n "(cached) " >&6 20083else 20084 ac_func_search_save_LIBS=$LIBS 20085cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20086/* end confdefs.h. */ 20087 20088/* Override any GCC internal prototype to avoid an error. 20089 Use char because int might match the return type of a GCC 20090 builtin and then its argument prototype would still apply. */ 20091#ifdef __cplusplus 20092extern "C" 20093#endif 20094char socket (); 20095int 20096main () 20097{ 20098return socket (); 20099 ; 20100 return 0; 20101} 20102_ACEOF 20103for ac_lib in '' socket; do 20104 if test -z "$ac_lib"; then 20105 ac_res="none required" 20106 else 20107 ac_res=-l$ac_lib 20108 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20109 fi 20110 if ac_fn_c_try_link "$LINENO"; then : 20111 ac_cv_search_socket=$ac_res 20112fi 20113rm -f core conftest.err conftest.$ac_objext \ 20114 conftest$ac_exeext 20115 if ${ac_cv_search_socket+:} false; then : 20116 break 20117fi 20118done 20119if ${ac_cv_search_socket+:} false; then : 20120 20121else 20122 ac_cv_search_socket=no 20123fi 20124rm conftest.$ac_ext 20125LIBS=$ac_func_search_save_LIBS 20126fi 20127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 20128$as_echo "$ac_cv_search_socket" >&6; } 20129ac_res=$ac_cv_search_socket 20130if test "$ac_res" != no; then : 20131 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20132 20133fi 20134 20135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 20136$as_echo_n "checking for library containing gethostbyname... " >&6; } 20137if ${ac_cv_search_gethostbyname+:} false; then : 20138 $as_echo_n "(cached) " >&6 20139else 20140 ac_func_search_save_LIBS=$LIBS 20141cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20142/* end confdefs.h. */ 20143 20144/* Override any GCC internal prototype to avoid an error. 20145 Use char because int might match the return type of a GCC 20146 builtin and then its argument prototype would still apply. */ 20147#ifdef __cplusplus 20148extern "C" 20149#endif 20150char gethostbyname (); 20151int 20152main () 20153{ 20154return gethostbyname (); 20155 ; 20156 return 0; 20157} 20158_ACEOF 20159for ac_lib in '' nsl; do 20160 if test -z "$ac_lib"; then 20161 ac_res="none required" 20162 else 20163 ac_res=-l$ac_lib 20164 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20165 fi 20166 if ac_fn_c_try_link "$LINENO"; then : 20167 ac_cv_search_gethostbyname=$ac_res 20168fi 20169rm -f core conftest.err conftest.$ac_objext \ 20170 conftest$ac_exeext 20171 if ${ac_cv_search_gethostbyname+:} false; then : 20172 break 20173fi 20174done 20175if ${ac_cv_search_gethostbyname+:} false; then : 20176 20177else 20178 ac_cv_search_gethostbyname=no 20179fi 20180rm conftest.$ac_ext 20181LIBS=$ac_func_search_save_LIBS 20182fi 20183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 20184$as_echo "$ac_cv_search_gethostbyname" >&6; } 20185ac_res=$ac_cv_search_gethostbyname 20186if test "$ac_res" != no; then : 20187 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20188 20189fi 20190 20191 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 20192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 20193$as_echo_n "checking for main in -lws2_32... " >&6; } 20194if ${ac_cv_lib_ws2_32_main+:} false; then : 20195 $as_echo_n "(cached) " >&6 20196else 20197 ac_check_lib_save_LIBS=$LIBS 20198LIBS="-lws2_32 $LIBS" 20199cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20200/* end confdefs.h. */ 20201 20202 20203int 20204main () 20205{ 20206return main (); 20207 ; 20208 return 0; 20209} 20210_ACEOF 20211if ac_fn_c_try_link "$LINENO"; then : 20212 ac_cv_lib_ws2_32_main=yes 20213else 20214 ac_cv_lib_ws2_32_main=no 20215fi 20216rm -f core conftest.err conftest.$ac_objext \ 20217 conftest$ac_exeext conftest.$ac_ext 20218LIBS=$ac_check_lib_save_LIBS 20219fi 20220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 20221$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 20222if test "x$ac_cv_lib_ws2_32_main" = xyes; then : 20223 cat >>confdefs.h <<_ACEOF 20224#define HAVE_LIBWS2_32 1 20225_ACEOF 20226 20227 LIBS="-lws2_32 $LIBS" 20228 20229fi 20230 20231 fi 20232 20233 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 20234 # Check whether --enable-ipv6 was given. 20235if test "${enable_ipv6+set}" = set; then : 20236 enableval=$enable_ipv6; IPV6CONN=$enableval 20237else 20238 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 20239if test "x$ac_cv_func_getaddrinfo" = xyes; then : 20240 IPV6CONN=yes 20241else 20242 IPV6CONN=no 20243fi 20244 20245fi 20246 20247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 20248$as_echo_n "checking if IPv6 support should be built... " >&6; } 20249 if test "$IPV6CONN" = "yes"; then 20250 20251$as_echo "#define IPv6 1" >>confdefs.h 20252 20253 fi 20254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 20255$as_echo "$IPV6CONN" >&6; } 20256 20257 # 4.3BSD-Reno added a new member to struct sockaddr_in 20258 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 20259#include <sys/types.h> 20260#include <sys/socket.h> 20261#include <netinet/in.h> 20262 20263" 20264if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : 20265 20266$as_echo "#define BSD44SOCKETS 1" >>confdefs.h 20267 20268fi 20269 20270 20271 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 20272 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 20273$ac_includes_default 20274#include <sys/socket.h> 20275" 20276if test "x$ac_cv_type_socklen_t" = xyes; then : 20277 20278cat >>confdefs.h <<_ACEOF 20279#define HAVE_SOCKLEN_T 1 20280_ACEOF 20281 20282 20283fi 20284 20285 20286 # XPG4v2/UNIX95 added msg_control - check to see if we need to define 20287 # _XOPEN_SOURCE to get it (such as on Solaris) 20288 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 20289$ac_includes_default 20290#include <sys/socket.h> 20291 20292" 20293if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 20294 20295fi 20296 20297 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03 20298 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 20299 unset ac_cv_member_struct_msghdr_msg_control 20300 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5 20301$as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;} 20302 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 20303#define _XOPEN_SOURCE 600 20304$ac_includes_default 20305#include <sys/socket.h> 20306 20307" 20308if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 20309 20310$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h 20311 20312 20313fi 20314 20315 fi 20316 # If that didn't work, fall back to XPG5/UNIX98 with C89 20317 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 20318 unset ac_cv_member_struct_msghdr_msg_control 20319 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5 20320$as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;} 20321 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 20322#define _XOPEN_SOURCE 500 20323$ac_includes_default 20324#include <sys/socket.h> 20325 20326" 20327if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 20328 20329$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h 20330 20331 20332fi 20333 20334 fi 20335 20336 20337 20338 fi 20339 case $host_os in 20340 solaris*|sco*|sysv4*) localdef="yes" ;; 20341 *) localdef="no" ;; 20342 esac 20343 # Check whether --enable-local-transport was given. 20344if test "${enable_local_transport+set}" = set; then : 20345 enableval=$enable_local_transport; LOCALCONN=$enableval 20346else 20347 LOCALCONN=$localdef 20348fi 20349 20350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 20351$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; } 20352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 20353$as_echo "$LOCALCONN" >&6; } 20354 if test "$LOCALCONN" = "yes"; then 20355 20356$as_echo "#define LOCALCONN 1" >>confdefs.h 20357 20358 fi 20359 20360 20361 20362# Check for dlopen 20363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if run-time linking is supported" >&5 20364$as_echo_n "checking if run-time linking is supported... " >&6; } 20365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 20366$as_echo_n "checking for library containing dlopen... " >&6; } 20367if ${ac_cv_search_dlopen+:} false; then : 20368 $as_echo_n "(cached) " >&6 20369else 20370 ac_func_search_save_LIBS=$LIBS 20371cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20372/* end confdefs.h. */ 20373 20374/* Override any GCC internal prototype to avoid an error. 20375 Use char because int might match the return type of a GCC 20376 builtin and then its argument prototype would still apply. */ 20377#ifdef __cplusplus 20378extern "C" 20379#endif 20380char dlopen (); 20381int 20382main () 20383{ 20384return dlopen (); 20385 ; 20386 return 0; 20387} 20388_ACEOF 20389for ac_lib in '' dl svld; do 20390 if test -z "$ac_lib"; then 20391 ac_res="none required" 20392 else 20393 ac_res=-l$ac_lib 20394 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20395 fi 20396 if ac_fn_c_try_link "$LINENO"; then : 20397 ac_cv_search_dlopen=$ac_res 20398fi 20399rm -f core conftest.err conftest.$ac_objext \ 20400 conftest$ac_exeext 20401 if ${ac_cv_search_dlopen+:} false; then : 20402 break 20403fi 20404done 20405if ${ac_cv_search_dlopen+:} false; then : 20406 20407else 20408 ac_cv_search_dlopen=no 20409fi 20410rm conftest.$ac_ext 20411LIBS=$ac_func_search_save_LIBS 20412fi 20413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 20414$as_echo "$ac_cv_search_dlopen" >&6; } 20415ac_res=$ac_cv_search_dlopen 20416if test "$ac_res" != no; then : 20417 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20418 20419fi 20420 20421if test "x$ac_cv_search_dlopen" = xno; then 20422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5 20423$as_echo_n "checking for library containing shl_load... " >&6; } 20424if ${ac_cv_search_shl_load+:} false; then : 20425 $as_echo_n "(cached) " >&6 20426else 20427 ac_func_search_save_LIBS=$LIBS 20428cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20429/* end confdefs.h. */ 20430 20431/* Override any GCC internal prototype to avoid an error. 20432 Use char because int might match the return type of a GCC 20433 builtin and then its argument prototype would still apply. */ 20434#ifdef __cplusplus 20435extern "C" 20436#endif 20437char shl_load (); 20438int 20439main () 20440{ 20441return shl_load (); 20442 ; 20443 return 0; 20444} 20445_ACEOF 20446for ac_lib in '' dld; do 20447 if test -z "$ac_lib"; then 20448 ac_res="none required" 20449 else 20450 ac_res=-l$ac_lib 20451 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20452 fi 20453 if ac_fn_c_try_link "$LINENO"; then : 20454 ac_cv_search_shl_load=$ac_res 20455fi 20456rm -f core conftest.err conftest.$ac_objext \ 20457 conftest$ac_exeext 20458 if ${ac_cv_search_shl_load+:} false; then : 20459 break 20460fi 20461done 20462if ${ac_cv_search_shl_load+:} false; then : 20463 20464else 20465 ac_cv_search_shl_load=no 20466fi 20467rm conftest.$ac_ext 20468LIBS=$ac_func_search_save_LIBS 20469fi 20470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5 20471$as_echo "$ac_cv_search_shl_load" >&6; } 20472ac_res=$ac_cv_search_shl_load 20473if test "$ac_res" != no; then : 20474 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20475 20476fi 20477 20478 if test "x$ac_cv_search_shl_load" != xno; then 20479 20480$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 20481 20482 for ac_header in dl.h 20483do : 20484 ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default" 20485if test "x$ac_cv_header_dl_h" = xyes; then : 20486 cat >>confdefs.h <<_ACEOF 20487#define HAVE_DL_H 1 20488_ACEOF 20489 20490fi 20491 20492done 20493 20494 fi 20495else 20496 20497$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 20498 20499 for ac_header in dlfcn.h 20500do : 20501 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 20502if test "x$ac_cv_header_dlfcn_h" = xyes; then : 20503 cat >>confdefs.h <<_ACEOF 20504#define HAVE_DLFCN_H 1 20505_ACEOF 20506 20507fi 20508 20509done 20510 20511fi 20512if test "x$ac_cv_header_dlfcn_h" = xyes -o "x$ac_cv_header_dl_h" = xyes; then 20513 HAVE_LOADABLE_MODULES=yes 20514else 20515 HAVE_LOADABLE_MODULES=no 20516fi 20517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LOADABLE_MODULES" >&5 20518$as_echo "$HAVE_LOADABLE_MODULES" >&6; } 20519 20520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if loadable i18n module support should be enabled" >&5 20521$as_echo_n "checking if loadable i18n module support should be enabled... " >&6; } 20522# Check whether --enable-loadable-i18n was given. 20523if test "${enable_loadable_i18n+set}" = set; then : 20524 enableval=$enable_loadable_i18n; XLIB_LOADABLE_I18N=$enableval 20525else 20526 XLIB_LOADABLE_I18N="no" 20527fi 20528 20529if test x$XLIB_LOADABLE_I18N = xyes; then 20530 if test x$HAVE_LOADABLE_MODULES = xno; then 20531 as_fn_error $? "Loadable module support is required to enable loadable i18n module support" "$LINENO" 5 20532 fi 20533 20534$as_echo "#define USE_DYNAMIC_LC 1" >>confdefs.h 20535 20536 I18N_MODULE_LIBS='${top_builddir}/src/libX11.la' 20537 20538fi 20539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_I18N" >&5 20540$as_echo "$XLIB_LOADABLE_I18N" >&6; } 20541 20542 if test x$XLIB_LOADABLE_I18N = xyes; then 20543 XLIB_LOADABLE_I18N_TRUE= 20544 XLIB_LOADABLE_I18N_FALSE='#' 20545else 20546 XLIB_LOADABLE_I18N_TRUE='#' 20547 XLIB_LOADABLE_I18N_FALSE= 20548fi 20549 20550 20551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if loadable Xcursor library support should be enabled" >&5 20552$as_echo_n "checking if loadable Xcursor library support should be enabled... " >&6; } 20553# Check whether --enable-loadable-xcursor was given. 20554if test "${enable_loadable_xcursor+set}" = set; then : 20555 enableval=$enable_loadable_xcursor; XLIB_LOADABLE_XCURSOR=$enableval 20556else 20557 XLIB_LOADABLE_XCURSOR=$HAVE_LOADABLE_MODULES 20558fi 20559 20560if test x$XLIB_LOADABLE_XCURSOR = xyes; then 20561 20562$as_echo "#define USE_DYNAMIC_XCURSOR 1" >>confdefs.h 20563 20564fi 20565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_XCURSOR" >&5 20566$as_echo "$XLIB_LOADABLE_XCURSOR" >&6; } 20567 20568# Checks for header files. 20569for ac_header in sys/filio.h sys/select.h sys/ioctl.h sys/socket.h 20570do : 20571 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20572ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 20573if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20574 cat >>confdefs.h <<_ACEOF 20575#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20576_ACEOF 20577 20578fi 20579 20580done 20581 20582 20583# Checks for typedefs, structures, and compiler characteristics. 20584 20585# Checks for library functions. 20586for ac_func in strtol seteuid 20587do : 20588 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20589ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20590if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20591 cat >>confdefs.h <<_ACEOF 20592#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20593_ACEOF 20594 20595fi 20596done 20597 20598ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray" 20599if test "x$ac_cv_func_reallocarray" = xyes; then : 20600 $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h 20601 20602else 20603 case " $LIBOBJS " in 20604 *" reallocarray.$ac_objext "* ) ;; 20605 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext" 20606 ;; 20607esac 20608 20609fi 20610 20611 20612# Used in lcFile.c (see also --enable-xlocaledir settings below) 20613XLOCALEDIR_IS_SAFE="no" 20614ac_fn_c_check_decl "$LINENO" "issetugid" "ac_cv_have_decl_issetugid" "$ac_includes_default" 20615if test "x$ac_cv_have_decl_issetugid" = xyes; then : 20616 20617fi 20618 20619ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid" 20620if test "x$ac_cv_func_issetugid" = xyes; then : 20621 20622fi 20623 20624if test "$ac_cv_have_decl_issetugid" = yes && test "$ac_cv_func_issetugid" = yes; then 20625 XLOCALEDIR_IS_SAFE="yes" 20626 20627$as_echo "#define HASSETUGID 1" >>confdefs.h 20628 20629fi 20630ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid" 20631if test "x$ac_cv_func_getresuid" = xyes; then : 20632 XLOCALEDIR_IS_SAFE="yes" 20633 20634$as_echo "#define HASGETRESUID 1" >>confdefs.h 20635 20636fi 20637 20638# Used in Font.c 20639ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 20640if test "x$ac_cv_func_shmat" = xyes; then : 20641 20642$as_echo "#define HAS_SHM 1" >>confdefs.h 20643 20644fi 20645 20646 20647# Checks for system services 20648# AC_PATH_XTRA 20649 20650# arch specific things 20651WCHAR32="1" 20652case $host_os in 20653 os2*) os2="true" ; WCHAR32="0" ;; 20654 *) ;; 20655esac 20656 20657 20658 if test x$os2 = xtrue; then 20659 OS2_TRUE= 20660 OS2_FALSE='#' 20661else 20662 OS2_TRUE='#' 20663 OS2_FALSE= 20664fi 20665 20666 20667 20668# Check whether --with-launchd was given. 20669if test "${with_launchd+set}" = set; then : 20670 withval=$with_launchd; LAUNCHD=$withval 20671else 20672 LAUNCHD=auto 20673fi 20674 20675if test "x$LAUNCHD" = xauto; then 20676 unset LAUNCHD 20677 # Extract the first word of "launchd", so it can be a program name with args. 20678set dummy launchd; ac_word=$2 20679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20680$as_echo_n "checking for $ac_word... " >&6; } 20681if ${ac_cv_prog_LAUNCHD+:} false; then : 20682 $as_echo_n "(cached) " >&6 20683else 20684 if test -n "$LAUNCHD"; then 20685 ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test. 20686else 20687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20688for as_dir in $PATH$PATH_SEPARATOR/sbin 20689do 20690 IFS=$as_save_IFS 20691 test -z "$as_dir" && as_dir=. 20692 for ac_exec_ext in '' $ac_executable_extensions; do 20693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20694 ac_cv_prog_LAUNCHD="yes" 20695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20696 break 2 20697 fi 20698done 20699 done 20700IFS=$as_save_IFS 20701 20702 test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no" 20703fi 20704fi 20705LAUNCHD=$ac_cv_prog_LAUNCHD 20706if test -n "$LAUNCHD"; then 20707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5 20708$as_echo "$LAUNCHD" >&6; } 20709else 20710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20711$as_echo "no" >&6; } 20712fi 20713 20714 20715fi 20716 20717if test "x$LAUNCHD" = xyes ; then 20718 20719$as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h 20720 20721 20722$as_echo "#define TRANS_REOPEN 1" >>confdefs.h 20723 20724fi 20725 20726# Check whether --enable-xthreads was given. 20727if test "${enable_xthreads+set}" = set; then : 20728 enableval=$enable_xthreads; xthreads=$enableval 20729else 20730 xthreads=yes 20731fi 20732 20733 20734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwuid_r in -lc" >&5 20735$as_echo_n "checking for getpwuid_r in -lc... " >&6; } 20736if ${ac_cv_lib_c_getpwuid_r+:} false; then : 20737 $as_echo_n "(cached) " >&6 20738else 20739 ac_check_lib_save_LIBS=$LIBS 20740LIBS="-lc $LIBS" 20741cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20742/* end confdefs.h. */ 20743 20744/* Override any GCC internal prototype to avoid an error. 20745 Use char because int might match the return type of a GCC 20746 builtin and then its argument prototype would still apply. */ 20747#ifdef __cplusplus 20748extern "C" 20749#endif 20750char getpwuid_r (); 20751int 20752main () 20753{ 20754return getpwuid_r (); 20755 ; 20756 return 0; 20757} 20758_ACEOF 20759if ac_fn_c_try_link "$LINENO"; then : 20760 ac_cv_lib_c_getpwuid_r=yes 20761else 20762 ac_cv_lib_c_getpwuid_r=no 20763fi 20764rm -f core conftest.err conftest.$ac_objext \ 20765 conftest$ac_exeext conftest.$ac_ext 20766LIBS=$ac_check_lib_save_LIBS 20767fi 20768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpwuid_r" >&5 20769$as_echo "$ac_cv_lib_c_getpwuid_r" >&6; } 20770if test "x$ac_cv_lib_c_getpwuid_r" = xyes; then : 20771 mtsafeapi="yes" 20772else 20773 mtsafeapi="no" 20774fi 20775 20776 20777case x$xthreads in 20778xyes) 20779 20780$as_echo "#define XTHREADS 1" >>confdefs.h 20781 20782 if test x$mtsafeapi = xyes 20783 then 20784 20785$as_echo "#define XUSE_MTSAFE_API 1" >>confdefs.h 20786 20787 fi 20788 ;; 20789*) 20790 ;; 20791esac 20792 20793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lc" >&5 20794$as_echo_n "checking for pthread_self in -lc... " >&6; } 20795if ${ac_cv_lib_c_pthread_self+:} false; then : 20796 $as_echo_n "(cached) " >&6 20797else 20798 ac_check_lib_save_LIBS=$LIBS 20799LIBS="-lc $LIBS" 20800cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20801/* end confdefs.h. */ 20802 20803/* Override any GCC internal prototype to avoid an error. 20804 Use char because int might match the return type of a GCC 20805 builtin and then its argument prototype would still apply. */ 20806#ifdef __cplusplus 20807extern "C" 20808#endif 20809char pthread_self (); 20810int 20811main () 20812{ 20813return pthread_self (); 20814 ; 20815 return 0; 20816} 20817_ACEOF 20818if ac_fn_c_try_link "$LINENO"; then : 20819 ac_cv_lib_c_pthread_self=yes 20820else 20821 ac_cv_lib_c_pthread_self=no 20822fi 20823rm -f core conftest.err conftest.$ac_objext \ 20824 conftest$ac_exeext conftest.$ac_ext 20825LIBS=$ac_check_lib_save_LIBS 20826fi 20827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_self" >&5 20828$as_echo "$ac_cv_lib_c_pthread_self" >&6; } 20829if test "x$ac_cv_lib_c_pthread_self" = xyes; then : 20830 thrstubs="no" 20831else 20832 thrstubs="yes" 20833fi 20834 20835 if test x$thrstubs = xyes; then 20836 THRSTUBS_TRUE= 20837 THRSTUBS_FALSE='#' 20838else 20839 THRSTUBS_TRUE='#' 20840 THRSTUBS_FALSE= 20841fi 20842 20843 20844# XXX incomplete, please fill this in 20845if test x$xthreads = xyes ; then 20846 case $host_os in 20847 linux*|gnu*|k*bsd*-gnu) 20848 XTHREADLIB=-lpthread ;; 20849 netbsd*) 20850 XTHREAD_CFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS" 20851 XTHREADLIB="-lpthread" ;; 20852 freebsd*) 20853 XTHREAD_CFLAGS="-D_THREAD_SAFE" 20854 XTHREADLIB="-pthread" ;; 20855 dragonfly*|openbsd*) 20856 XTHREADLIB="-pthread" ;; 20857 solaris*) 20858 XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;; 20859 esac 20860fi 20861 20862 20863 20864ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 20865if test "x$ac_cv_func_poll" = xyes; then : 20866 20867$as_echo "#define USE_POLL 1" >>confdefs.h 20868 20869fi 20870 20871 20872# 20873# Find keysymdef.h 20874# 20875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking keysym definitions" >&5 20876$as_echo_n "checking keysym definitions... " >&6; } 20877 20878# Check whether --with-keysymdefdir was given. 20879if test "${with_keysymdefdir+set}" = set; then : 20880 withval=$with_keysymdefdir; KEYSYMDEFDIR=$withval 20881else 20882 KEYSYMDEFDIR=`$PKG_CONFIG --variable=includedir xproto`/X11 20883fi 20884 20885 20886if test ! -d "$KEYSYMDEFDIR"; then 20887 as_fn_error $? "$KEYSYMDEFDIR doesn't exist or isn't a directory" "$LINENO" 5 20888fi 20889 20890FILES="keysymdef.h XF86keysym.h Sunkeysym.h DECkeysym.h HPkeysym.h" 20891for i in $FILES; do 20892 if test -f "$KEYSYMDEFDIR/$i"; then 20893 KEYSYMDEFS="$KEYSYMDEFS $KEYSYMDEFDIR/$i" 20894 elif test "x$i" = "xkeysymdef.h"; then 20895 as_fn_error $? "Cannot find keysymdef.h" "$LINENO" 5 20896 fi 20897done 20898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $KEYSYMDEFS" >&5 20899$as_echo "$KEYSYMDEFS" >&6; } 20900 20901 20902# Check whether --enable-xcms was given. 20903if test "${enable_xcms+set}" = set; then : 20904 enableval=$enable_xcms; XCMS=$enableval 20905else 20906 XCMS=yes 20907fi 20908 20909 if test x$XCMS = xyes ; then 20910 XCMS_TRUE= 20911 XCMS_FALSE='#' 20912else 20913 XCMS_TRUE='#' 20914 XCMS_FALSE= 20915fi 20916 20917if test x"$XCMS" = "xyes"; then 20918 20919$as_echo "#define XCMS 1" >>confdefs.h 20920 20921fi 20922 20923# Check whether --enable-xlocale was given. 20924if test "${enable_xlocale+set}" = set; then : 20925 enableval=$enable_xlocale; XLOCALE=$enableval 20926else 20927 XLOCALE=yes 20928fi 20929 20930 20931 if test x$XLOCALE = xyes ; then 20932 XLOCALE_TRUE= 20933 XLOCALE_FALSE='#' 20934else 20935 XLOCALE_TRUE='#' 20936 XLOCALE_FALSE= 20937fi 20938 20939if test x"$XLOCALE" = "xyes"; then 20940 20941$as_echo "#define XLOCALE 1" >>confdefs.h 20942 20943fi 20944 20945# This disables XLOCALEDIR. Set it if you're using BuildLoadableXlibI18n, 20946# don't have either issetugid() or getresuid(), and you need to protect 20947# clients that are setgid or setuid to an id other than 0. 20948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XLOCALEDIR support should be enabled" >&5 20949$as_echo_n "checking if XLOCALEDIR support should be enabled... " >&6; } 20950# Check whether --enable-xlocaledir was given. 20951if test "${enable_xlocaledir+set}" = set; then : 20952 enableval=$enable_xlocaledir; ENABLE_XLOCALEDIR=$enableval 20953else 20954 ENABLE_XLOCALEDIR=$XLOCALEDIR_IS_SAFE 20955fi 20956 20957if test "x$ENABLE_XLOCALEDIR" = "xno"; then 20958 20959$as_echo "#define NO_XLOCALEDIR 1" >>confdefs.h 20960 20961fi 20962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_XLOCALEDIR" >&5 20963$as_echo "$ENABLE_XLOCALEDIR" >&6; } 20964 20965# Check whether --enable-xf86bigfont was given. 20966if test "${enable_xf86bigfont+set}" = set; then : 20967 enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval 20968else 20969 XF86BIGFONT="yes" 20970fi 20971 20972if test "x$XF86BIGFONT" = "xyes"; then 20973 20974pkg_failed=no 20975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIGFONT" >&5 20976$as_echo_n "checking for BIGFONT... " >&6; } 20977 20978if test -n "$BIGFONT_CFLAGS"; then 20979 pkg_cv_BIGFONT_CFLAGS="$BIGFONT_CFLAGS" 20980 elif test -n "$PKG_CONFIG"; then 20981 if test -n "$PKG_CONFIG" && \ 20982 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto >= 1.2.0\""; } >&5 20983 ($PKG_CONFIG --exists --print-errors "xf86bigfontproto >= 1.2.0") 2>&5 20984 ac_status=$? 20985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20986 test $ac_status = 0; }; then 20987 pkg_cv_BIGFONT_CFLAGS=`$PKG_CONFIG --cflags "xf86bigfontproto >= 1.2.0" 2>/dev/null` 20988 test "x$?" != "x0" && pkg_failed=yes 20989else 20990 pkg_failed=yes 20991fi 20992 else 20993 pkg_failed=untried 20994fi 20995if test -n "$BIGFONT_LIBS"; then 20996 pkg_cv_BIGFONT_LIBS="$BIGFONT_LIBS" 20997 elif test -n "$PKG_CONFIG"; then 20998 if test -n "$PKG_CONFIG" && \ 20999 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto >= 1.2.0\""; } >&5 21000 ($PKG_CONFIG --exists --print-errors "xf86bigfontproto >= 1.2.0") 2>&5 21001 ac_status=$? 21002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21003 test $ac_status = 0; }; then 21004 pkg_cv_BIGFONT_LIBS=`$PKG_CONFIG --libs "xf86bigfontproto >= 1.2.0" 2>/dev/null` 21005 test "x$?" != "x0" && pkg_failed=yes 21006else 21007 pkg_failed=yes 21008fi 21009 else 21010 pkg_failed=untried 21011fi 21012 21013 21014 21015if test $pkg_failed = yes; then 21016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21017$as_echo "no" >&6; } 21018 21019if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21020 _pkg_short_errors_supported=yes 21021else 21022 _pkg_short_errors_supported=no 21023fi 21024 if test $_pkg_short_errors_supported = yes; then 21025 BIGFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xf86bigfontproto >= 1.2.0" 2>&1` 21026 else 21027 BIGFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xf86bigfontproto >= 1.2.0" 2>&1` 21028 fi 21029 # Put the nasty error message in config.log where it belongs 21030 echo "$BIGFONT_PKG_ERRORS" >&5 21031 21032 XF86BIGFONT="no" 21033elif test $pkg_failed = untried; then 21034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21035$as_echo "no" >&6; } 21036 XF86BIGFONT="no" 21037else 21038 BIGFONT_CFLAGS=$pkg_cv_BIGFONT_CFLAGS 21039 BIGFONT_LIBS=$pkg_cv_BIGFONT_LIBS 21040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21041$as_echo "yes" >&6; } 21042 21043$as_echo "#define XF86BIGFONT 1" >>confdefs.h 21044 21045fi 21046fi 21047 21048# Check whether --enable-xkb was given. 21049if test "${enable_xkb+set}" = set; then : 21050 enableval=$enable_xkb; XKB=$enableval 21051else 21052 XKB=yes 21053fi 21054 21055 21056 if test x$XKB = xyes ; then 21057 XKB_TRUE= 21058 XKB_FALSE='#' 21059else 21060 XKB_TRUE='#' 21061 XKB_FALSE= 21062fi 21063 21064if test x"$XKB" = "xyes"; then 21065 XKBPROTO_REQUIRES="kbproto" 21066 X11_REQUIRES="${X11_REQUIRES} kbproto inputproto" 21067 21068$as_echo "#define XKB 1" >>confdefs.h 21069 21070else 21071 XKBPROTO_REQUIRES="" 21072fi 21073 21074 21075 21076 21077 21078 for ac_header in $ac_header_list 21079do : 21080 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 21081ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 21082" 21083if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 21084 cat >>confdefs.h <<_ACEOF 21085#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 21086_ACEOF 21087 21088fi 21089 21090done 21091 21092 21093 21094 21095 21096 21097 21098 21099for ac_func in getpagesize 21100do : 21101 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 21102if test "x$ac_cv_func_getpagesize" = xyes; then : 21103 cat >>confdefs.h <<_ACEOF 21104#define HAVE_GETPAGESIZE 1 21105_ACEOF 21106 21107fi 21108done 21109 21110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 21111$as_echo_n "checking for working mmap... " >&6; } 21112if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 21113 $as_echo_n "(cached) " >&6 21114else 21115 if test "$cross_compiling" = yes; then : 21116 ac_cv_func_mmap_fixed_mapped=no 21117else 21118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21119/* end confdefs.h. */ 21120$ac_includes_default 21121/* malloc might have been renamed as rpl_malloc. */ 21122#undef malloc 21123 21124/* Thanks to Mike Haertel and Jim Avera for this test. 21125 Here is a matrix of mmap possibilities: 21126 mmap private not fixed 21127 mmap private fixed at somewhere currently unmapped 21128 mmap private fixed at somewhere already mapped 21129 mmap shared not fixed 21130 mmap shared fixed at somewhere currently unmapped 21131 mmap shared fixed at somewhere already mapped 21132 For private mappings, we should verify that changes cannot be read() 21133 back from the file, nor mmap's back from the file at a different 21134 address. (There have been systems where private was not correctly 21135 implemented like the infamous i386 svr4.0, and systems where the 21136 VM page cache was not coherent with the file system buffer cache 21137 like early versions of FreeBSD and possibly contemporary NetBSD.) 21138 For shared mappings, we should conversely verify that changes get 21139 propagated back to all the places they're supposed to be. 21140 21141 Grep wants private fixed already mapped. 21142 The main things grep needs to know about mmap are: 21143 * does it exist and is it safe to write into the mmap'd area 21144 * how to use it (BSD variants) */ 21145 21146#include <fcntl.h> 21147#include <sys/mman.h> 21148 21149#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 21150char *malloc (); 21151#endif 21152 21153/* This mess was copied from the GNU getpagesize.h. */ 21154#ifndef HAVE_GETPAGESIZE 21155# ifdef _SC_PAGESIZE 21156# define getpagesize() sysconf(_SC_PAGESIZE) 21157# else /* no _SC_PAGESIZE */ 21158# ifdef HAVE_SYS_PARAM_H 21159# include <sys/param.h> 21160# ifdef EXEC_PAGESIZE 21161# define getpagesize() EXEC_PAGESIZE 21162# else /* no EXEC_PAGESIZE */ 21163# ifdef NBPG 21164# define getpagesize() NBPG * CLSIZE 21165# ifndef CLSIZE 21166# define CLSIZE 1 21167# endif /* no CLSIZE */ 21168# else /* no NBPG */ 21169# ifdef NBPC 21170# define getpagesize() NBPC 21171# else /* no NBPC */ 21172# ifdef PAGESIZE 21173# define getpagesize() PAGESIZE 21174# endif /* PAGESIZE */ 21175# endif /* no NBPC */ 21176# endif /* no NBPG */ 21177# endif /* no EXEC_PAGESIZE */ 21178# else /* no HAVE_SYS_PARAM_H */ 21179# define getpagesize() 8192 /* punt totally */ 21180# endif /* no HAVE_SYS_PARAM_H */ 21181# endif /* no _SC_PAGESIZE */ 21182 21183#endif /* no HAVE_GETPAGESIZE */ 21184 21185int 21186main () 21187{ 21188 char *data, *data2, *data3; 21189 const char *cdata2; 21190 int i, pagesize; 21191 int fd, fd2; 21192 21193 pagesize = getpagesize (); 21194 21195 /* First, make a file with some known garbage in it. */ 21196 data = (char *) malloc (pagesize); 21197 if (!data) 21198 return 1; 21199 for (i = 0; i < pagesize; ++i) 21200 *(data + i) = rand (); 21201 umask (0); 21202 fd = creat ("conftest.mmap", 0600); 21203 if (fd < 0) 21204 return 2; 21205 if (write (fd, data, pagesize) != pagesize) 21206 return 3; 21207 close (fd); 21208 21209 /* Next, check that the tail of a page is zero-filled. File must have 21210 non-zero length, otherwise we risk SIGBUS for entire page. */ 21211 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 21212 if (fd2 < 0) 21213 return 4; 21214 cdata2 = ""; 21215 if (write (fd2, cdata2, 1) != 1) 21216 return 5; 21217 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 21218 if (data2 == MAP_FAILED) 21219 return 6; 21220 for (i = 0; i < pagesize; ++i) 21221 if (*(data2 + i)) 21222 return 7; 21223 close (fd2); 21224 if (munmap (data2, pagesize)) 21225 return 8; 21226 21227 /* Next, try to mmap the file at a fixed address which already has 21228 something else allocated at it. If we can, also make sure that 21229 we see the same garbage. */ 21230 fd = open ("conftest.mmap", O_RDWR); 21231 if (fd < 0) 21232 return 9; 21233 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 21234 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 21235 return 10; 21236 for (i = 0; i < pagesize; ++i) 21237 if (*(data + i) != *(data2 + i)) 21238 return 11; 21239 21240 /* Finally, make sure that changes to the mapped area do not 21241 percolate back to the file as seen by read(). (This is a bug on 21242 some variants of i386 svr4.0.) */ 21243 for (i = 0; i < pagesize; ++i) 21244 *(data2 + i) = *(data2 + i) + 1; 21245 data3 = (char *) malloc (pagesize); 21246 if (!data3) 21247 return 12; 21248 if (read (fd, data3, pagesize) != pagesize) 21249 return 13; 21250 for (i = 0; i < pagesize; ++i) 21251 if (*(data + i) != *(data3 + i)) 21252 return 14; 21253 close (fd); 21254 free (data); 21255 free (data3); 21256 return 0; 21257} 21258_ACEOF 21259if ac_fn_c_try_run "$LINENO"; then : 21260 ac_cv_func_mmap_fixed_mapped=yes 21261else 21262 ac_cv_func_mmap_fixed_mapped=no 21263fi 21264rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21265 conftest.$ac_objext conftest.beam conftest.$ac_ext 21266fi 21267 21268fi 21269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 21270$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 21271if test $ac_cv_func_mmap_fixed_mapped = yes; then 21272 21273$as_echo "#define HAVE_MMAP 1" >>confdefs.h 21274 21275fi 21276rm -f conftest.mmap conftest.txt 21277 21278composecache_default=$ac_cv_func_mmap_fixed_mapped 21279ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo" 21280if test "x$ac_cv_func_nl_langinfo" = xyes; then : 21281 21282else 21283 composecache_default=no 21284fi 21285 21286# Check whether --enable-composecache was given. 21287if test "${enable_composecache+set}" = set; then : 21288 enableval=$enable_composecache; COMPOSECACHE=$enableval 21289else 21290 COMPOSECACHE=$composecache_default 21291fi 21292 21293if test x"$COMPOSECACHE" = "xyes"; then 21294 21295$as_echo "#define COMPOSECACHE 1" >>confdefs.h 21296 21297fi 21298 21299# Allow checking code with lint, sparse, etc. 21300 21301 21302 21303 21304 21305# Check whether --with-lint was given. 21306if test "${with_lint+set}" = set; then : 21307 withval=$with_lint; use_lint=$withval 21308else 21309 use_lint=no 21310fi 21311 21312 21313# Obtain platform specific info like program name and options 21314# The lint program on FreeBSD and NetBSD is different from the one on Solaris 21315case $host_os in 21316 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 21317 lint_name=splint 21318 lint_options="-badflag" 21319 ;; 21320 *freebsd* | *netbsd*) 21321 lint_name=lint 21322 lint_options="-u -b" 21323 ;; 21324 *solaris*) 21325 lint_name=lint 21326 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 21327 ;; 21328esac 21329 21330# Test for the presence of the program (either guessed by the code or spelled out by the user) 21331if test "x$use_lint" = x"yes" ; then 21332 # Extract the first word of "$lint_name", so it can be a program name with args. 21333set dummy $lint_name; ac_word=$2 21334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21335$as_echo_n "checking for $ac_word... " >&6; } 21336if ${ac_cv_path_LINT+:} false; then : 21337 $as_echo_n "(cached) " >&6 21338else 21339 case $LINT in 21340 [\\/]* | ?:[\\/]*) 21341 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 21342 ;; 21343 *) 21344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21345for as_dir in $PATH 21346do 21347 IFS=$as_save_IFS 21348 test -z "$as_dir" && as_dir=. 21349 for ac_exec_ext in '' $ac_executable_extensions; do 21350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21351 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 21352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21353 break 2 21354 fi 21355done 21356 done 21357IFS=$as_save_IFS 21358 21359 ;; 21360esac 21361fi 21362LINT=$ac_cv_path_LINT 21363if test -n "$LINT"; then 21364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 21365$as_echo "$LINT" >&6; } 21366else 21367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21368$as_echo "no" >&6; } 21369fi 21370 21371 21372 if test "x$LINT" = "x"; then 21373 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 21374 fi 21375elif test "x$use_lint" = x"no" ; then 21376 if test "x$LINT" != "x"; then 21377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 21378$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 21379 fi 21380else 21381 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 21382fi 21383 21384# User supplied flags override default flags 21385if test "x$LINT_FLAGS" != "x"; then 21386 lint_options=$LINT_FLAGS 21387fi 21388 21389LINT_FLAGS=$lint_options 21390 21391 if test "x$LINT" != x; then 21392 LINT_TRUE= 21393 LINT_FALSE='#' 21394else 21395 LINT_TRUE='#' 21396 LINT_FALSE= 21397fi 21398 21399 21400 21401 21402 21403# Check whether --enable-lint-library was given. 21404if test "${enable_lint_library+set}" = set; then : 21405 enableval=$enable_lint_library; make_lint_lib=$enableval 21406else 21407 make_lint_lib=no 21408fi 21409 21410 21411if test "x$make_lint_lib" = x"yes" ; then 21412 LINTLIB=llib-lX11.ln 21413 if test "x$LINT" = "x"; then 21414 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5 21415 fi 21416elif test "x$make_lint_lib" != x"no" ; then 21417 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5 21418fi 21419 21420 21421 if test x$make_lint_lib != xno; then 21422 MAKE_LINT_LIB_TRUE= 21423 MAKE_LINT_LIB_FALSE='#' 21424else 21425 MAKE_LINT_LIB_TRUE='#' 21426 MAKE_LINT_LIB_FALSE= 21427fi 21428 21429 21430 21431 21432X11_DATADIR="${datadir}/X11" 21433 21434 prefix_NONE= 21435 exec_prefix_NONE= 21436 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 21437 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 21438 eval ax_define_dir="\"$X11_DATADIR\"" 21439 eval ax_define_dir="\"$ax_define_dir\"" 21440 X11_DATADIR="$ax_define_dir" 21441 21442 21443cat >>confdefs.h <<_ACEOF 21444#define X11_DATADIR "$ax_define_dir" 21445_ACEOF 21446 21447 test "$prefix_NONE" && prefix=NONE 21448 test "$exec_prefix_NONE" && exec_prefix=NONE 21449 21450 21451 21452X11_LIBDIR="${libdir}/X11" 21453 21454 prefix_NONE= 21455 exec_prefix_NONE= 21456 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 21457 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 21458 eval ax_define_dir="\"$X11_LIBDIR\"" 21459 eval ax_define_dir="\"$ax_define_dir\"" 21460 X11_LIBDIR="$ax_define_dir" 21461 21462 21463cat >>confdefs.h <<_ACEOF 21464#define X11_LIBDIR "$ax_define_dir" 21465_ACEOF 21466 21467 test "$prefix_NONE" && prefix=NONE 21468 test "$exec_prefix_NONE" && exec_prefix=NONE 21469 21470 21471 21472 21473pkg_failed=no 21474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5 21475$as_echo_n "checking for X11... " >&6; } 21476 21477if test -n "$X11_CFLAGS"; then 21478 pkg_cv_X11_CFLAGS="$X11_CFLAGS" 21479 elif test -n "$PKG_CONFIG"; then 21480 if test -n "$PKG_CONFIG" && \ 21481 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5 21482 ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5 21483 ac_status=$? 21484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21485 test $ac_status = 0; }; then 21486 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "$X11_REQUIRES" 2>/dev/null` 21487 test "x$?" != "x0" && pkg_failed=yes 21488else 21489 pkg_failed=yes 21490fi 21491 else 21492 pkg_failed=untried 21493fi 21494if test -n "$X11_LIBS"; then 21495 pkg_cv_X11_LIBS="$X11_LIBS" 21496 elif test -n "$PKG_CONFIG"; then 21497 if test -n "$PKG_CONFIG" && \ 21498 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5 21499 ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5 21500 ac_status=$? 21501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21502 test $ac_status = 0; }; then 21503 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "$X11_REQUIRES" 2>/dev/null` 21504 test "x$?" != "x0" && pkg_failed=yes 21505else 21506 pkg_failed=yes 21507fi 21508 else 21509 pkg_failed=untried 21510fi 21511 21512 21513 21514if test $pkg_failed = yes; then 21515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21516$as_echo "no" >&6; } 21517 21518if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21519 _pkg_short_errors_supported=yes 21520else 21521 _pkg_short_errors_supported=no 21522fi 21523 if test $_pkg_short_errors_supported = yes; then 21524 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$X11_REQUIRES" 2>&1` 21525 else 21526 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$X11_REQUIRES" 2>&1` 21527 fi 21528 # Put the nasty error message in config.log where it belongs 21529 echo "$X11_PKG_ERRORS" >&5 21530 21531 as_fn_error $? "Package requirements ($X11_REQUIRES) were not met: 21532 21533$X11_PKG_ERRORS 21534 21535Consider adjusting the PKG_CONFIG_PATH environment variable if you 21536installed software in a non-standard prefix. 21537 21538Alternatively, you may set the environment variables X11_CFLAGS 21539and X11_LIBS to avoid the need to call pkg-config. 21540See the pkg-config man page for more details." "$LINENO" 5 21541elif test $pkg_failed = untried; then 21542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21543$as_echo "no" >&6; } 21544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21545$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21546as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 21547is in your PATH or set the PKG_CONFIG environment variable to the full 21548path to pkg-config. 21549 21550Alternatively, you may set the environment variables X11_CFLAGS 21551and X11_LIBS to avoid the need to call pkg-config. 21552See the pkg-config man page for more details. 21553 21554To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21555See \`config.log' for more details" "$LINENO" 5; } 21556else 21557 X11_CFLAGS=$pkg_cv_X11_CFLAGS 21558 X11_LIBS=$pkg_cv_X11_LIBS 21559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21560$as_echo "yes" >&6; } 21561 21562fi 21563X11_CFLAGS="$X11_CFLAGS $XTHREAD_CFLAGS" 21564 21565# 21566# Yes, it would be nice to put the locale data in 21567# /usr/share, but the locale stuff includes loadable 21568# libraries which must be located in the same directory 21569# as the other locale data, so for now, everything lives 21570# in ${libdir} 21571# 21572 21573X11_LOCALEDATADIR="${X11_DATADIR}/locale" 21574 21575 prefix_NONE= 21576 exec_prefix_NONE= 21577 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 21578 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 21579 eval ax_define_dir="\"$X11_LOCALEDATADIR\"" 21580 eval ax_define_dir="\"$ax_define_dir\"" 21581 XLOCALEDATADIR="$ax_define_dir" 21582 21583 21584cat >>confdefs.h <<_ACEOF 21585#define XLOCALEDATADIR "$ax_define_dir" 21586_ACEOF 21587 21588 test "$prefix_NONE" && prefix=NONE 21589 test "$exec_prefix_NONE" && exec_prefix=NONE 21590 21591 21592 21593 21594# Check whether --with-locale-lib-dir was given. 21595if test "${with_locale_lib_dir+set}" = set; then : 21596 withval=$with_locale_lib_dir; X11_LOCALELIBDIR="$withval" 21597else 21598 X11_LOCALELIBDIR="${X11_LIBDIR}/locale" 21599fi 21600 21601 21602 prefix_NONE= 21603 exec_prefix_NONE= 21604 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 21605 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 21606 eval ax_define_dir="\"$X11_LOCALELIBDIR\"" 21607 eval ax_define_dir="\"$ax_define_dir\"" 21608 XLOCALELIBDIR="$ax_define_dir" 21609 21610 21611cat >>confdefs.h <<_ACEOF 21612#define XLOCALELIBDIR "$ax_define_dir" 21613_ACEOF 21614 21615 test "$prefix_NONE" && prefix=NONE 21616 test "$exec_prefix_NONE" && exec_prefix=NONE 21617 21618 21619 21620X11_LOCALEDIR="${X11_LOCALEDATADIR}" 21621 21622 prefix_NONE= 21623 exec_prefix_NONE= 21624 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 21625 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 21626 eval ax_define_dir="\"$X11_LOCALEDIR\"" 21627 eval ax_define_dir="\"$ax_define_dir\"" 21628 XLOCALEDIR="$ax_define_dir" 21629 21630 21631cat >>confdefs.h <<_ACEOF 21632#define XLOCALEDIR "$ax_define_dir" 21633_ACEOF 21634 21635 test "$prefix_NONE" && prefix=NONE 21636 test "$exec_prefix_NONE" && exec_prefix=NONE 21637 21638 21639 21640locales="\ 21641 am_ET.UTF-8 armscii-8 C cs_CZ.UTF-8 el_GR.UTF-8 en_US.UTF-8 \ 21642 fi_FI.UTF-8 georgian-academy georgian-ps ibm-cp1133 iscii-dev \ 21643 isiri-3342 iso8859-1 iso8859-10 iso8859-11 iso8859-13 iso8859-14 \ 21644 iso8859-15 iso8859-2 iso8859-3 iso8859-4 iso8859-5 iso8859-6 \ 21645 iso8859-7 iso8859-8 iso8859-9 iso8859-9e ja ja.JIS \ 21646 ja_JP.UTF-8 ja.SJIS km_KH.UTF-8 ko koi8-c koi8-r \ 21647 koi8-u ko_KR.UTF-8 microsoft-cp1251 microsoft-cp1255 \ 21648 microsoft-cp1256 mulelao-1 nokhchi-1 pt_BR.UTF-8 pt_PT.UTF-8 \ 21649 ru_RU.UTF-8 sr_CS.UTF-8 tatar-cyr th_TH th_TH.UTF-8 tscii-0 \ 21650 vi_VN.tcvn vi_VN.viscii zh_CN zh_CN.gb18030 \ 21651 zh_CN.gbk zh_CN.UTF-8 zh_HK.big5 zh_HK.big5hkscs zh_HK.UTF-8 \ 21652 zh_TW zh_TW.big5 zh_TW.UTF-8" 21653 21654 21655XKEYSYMDB="${X11_DATADIR}/XKeysymDB" 21656 21657 prefix_NONE= 21658 exec_prefix_NONE= 21659 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 21660 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 21661 eval ax_define_dir="\"$XKEYSYMDB\"" 21662 eval ax_define_dir="\"$ax_define_dir\"" 21663 XKEYSYMDB="$ax_define_dir" 21664 21665 21666cat >>confdefs.h <<_ACEOF 21667#define XKEYSYMDB "$ax_define_dir" 21668_ACEOF 21669 21670 test "$prefix_NONE" && prefix=NONE 21671 test "$exec_prefix_NONE" && exec_prefix=NONE 21672 21673 21674XERRORDB="${X11_DATADIR}/XErrorDB" 21675 21676 prefix_NONE= 21677 exec_prefix_NONE= 21678 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 21679 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 21680 eval ax_define_dir="\"$XERRORDB\"" 21681 eval ax_define_dir="\"$ax_define_dir\"" 21682 XERRORDB="$ax_define_dir" 21683 21684 21685cat >>confdefs.h <<_ACEOF 21686#define XERRORDB "$ax_define_dir" 21687_ACEOF 21688 21689 test "$prefix_NONE" && prefix=NONE 21690 test "$exec_prefix_NONE" && exec_prefix=NONE 21691 21692 21693 21694# Check whether --enable-malloc0returnsnull was given. 21695if test "${enable_malloc0returnsnull+set}" = set; then : 21696 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 21697else 21698 MALLOC_ZERO_RETURNS_NULL=auto 21699fi 21700 21701 21702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5 21703$as_echo_n "checking whether malloc(0) returns NULL... " >&6; } 21704if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 21705if ${xorg_cv_malloc0_returns_null+:} false; then : 21706 $as_echo_n "(cached) " >&6 21707else 21708 if test "$cross_compiling" = yes; then : 21709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21710$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21711as_fn_error $? "cannot run test program while cross compiling 21712See \`config.log' for more details" "$LINENO" 5; } 21713else 21714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21715/* end confdefs.h. */ 21716 21717#include <stdlib.h> 21718 21719int 21720main () 21721{ 21722 21723 char *m0, *r0, *c0, *p; 21724 m0 = malloc(0); 21725 p = malloc(10); 21726 r0 = realloc(p,0); 21727 c0 = calloc(0,10); 21728 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1); 21729 21730 ; 21731 return 0; 21732} 21733_ACEOF 21734if ac_fn_c_try_run "$LINENO"; then : 21735 xorg_cv_malloc0_returns_null=yes 21736else 21737 xorg_cv_malloc0_returns_null=no 21738fi 21739rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21740 conftest.$ac_objext conftest.beam conftest.$ac_ext 21741fi 21742 21743fi 21744 21745MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null 21746fi 21747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 21748$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; } 21749 21750if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 21751 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 21752 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 21753 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 21754else 21755 MALLOC_ZERO_CFLAGS="" 21756 XMALLOC_ZERO_CFLAGS="" 21757 XTMALLOC_ZERO_CFLAGS="" 21758fi 21759 21760 21761 21762 21763 21764 21765ac_config_files="$ac_config_files Makefile include/Makefile man/Makefile man/xkb/Makefile src/Makefile src/util/Makefile src/xcms/Makefile src/xlibi18n/Makefile modules/Makefile modules/im/Makefile modules/im/ximcp/Makefile modules/lc/Makefile modules/lc/def/Makefile modules/lc/gen/Makefile modules/lc/Utf8/Makefile modules/om/Makefile modules/om/generic/Makefile src/xkb/Makefile nls/Makefile specs/Makefile specs/i18n/Makefile specs/i18n/compose/Makefile specs/i18n/framework/Makefile specs/i18n/localedb/Makefile specs/i18n/trans/Makefile specs/libX11/Makefile specs/XIM/Makefile specs/XKB/Makefile x11.pc x11-xcb.pc" 21766 21767cat >confcache <<\_ACEOF 21768# This file is a shell script that caches the results of configure 21769# tests run on this system so they can be shared between configure 21770# scripts and configure runs, see configure's option --config-cache. 21771# It is not useful on other systems. If it contains results you don't 21772# want to keep, you may remove or edit it. 21773# 21774# config.status only pays attention to the cache file if you give it 21775# the --recheck option to rerun configure. 21776# 21777# `ac_cv_env_foo' variables (set or unset) will be overridden when 21778# loading this file, other *unset* `ac_cv_foo' will be assigned the 21779# following values. 21780 21781_ACEOF 21782 21783# The following way of writing the cache mishandles newlines in values, 21784# but we know of no workaround that is simple, portable, and efficient. 21785# So, we kill variables containing newlines. 21786# Ultrix sh set writes to stderr and can't be redirected directly, 21787# and sets the high bit in the cache file unless we assign to the vars. 21788( 21789 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21790 eval ac_val=\$$ac_var 21791 case $ac_val in #( 21792 *${as_nl}*) 21793 case $ac_var in #( 21794 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 21795$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21796 esac 21797 case $ac_var in #( 21798 _ | IFS | as_nl) ;; #( 21799 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21800 *) { eval $ac_var=; unset $ac_var;} ;; 21801 esac ;; 21802 esac 21803 done 21804 21805 (set) 2>&1 | 21806 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21807 *${as_nl}ac_space=\ *) 21808 # `set' does not quote correctly, so add quotes: double-quote 21809 # substitution turns \\\\ into \\, and sed turns \\ into \. 21810 sed -n \ 21811 "s/'/'\\\\''/g; 21812 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21813 ;; #( 21814 *) 21815 # `set' quotes correctly as required by POSIX, so do not add quotes. 21816 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21817 ;; 21818 esac | 21819 sort 21820) | 21821 sed ' 21822 /^ac_cv_env_/b end 21823 t clear 21824 :clear 21825 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21826 t end 21827 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21828 :end' >>confcache 21829if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21830 if test -w "$cache_file"; then 21831 if test "x$cache_file" != "x/dev/null"; then 21832 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 21833$as_echo "$as_me: updating cache $cache_file" >&6;} 21834 if test ! -f "$cache_file" || test -h "$cache_file"; then 21835 cat confcache >"$cache_file" 21836 else 21837 case $cache_file in #( 21838 */* | ?:*) 21839 mv -f confcache "$cache_file"$$ && 21840 mv -f "$cache_file"$$ "$cache_file" ;; #( 21841 *) 21842 mv -f confcache "$cache_file" ;; 21843 esac 21844 fi 21845 fi 21846 else 21847 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 21848$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21849 fi 21850fi 21851rm -f confcache 21852 21853test "x$prefix" = xNONE && prefix=$ac_default_prefix 21854# Let make expand exec_prefix. 21855test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21856 21857DEFS=-DHAVE_CONFIG_H 21858 21859ac_libobjs= 21860ac_ltlibobjs= 21861U= 21862for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21863 # 1. Remove the extension, and $U if already installed. 21864 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21865 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 21866 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21867 # will be set to the directory where LIBOBJS objects are built. 21868 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21869 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 21870done 21871LIBOBJS=$ac_libobjs 21872 21873LTLIBOBJS=$ac_ltlibobjs 21874 21875 21876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 21877$as_echo_n "checking that generated files are newer than configure... " >&6; } 21878 if test -n "$am_sleep_pid"; then 21879 # Hide warnings about reused PIDs. 21880 wait $am_sleep_pid 2>/dev/null 21881 fi 21882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 21883$as_echo "done" >&6; } 21884if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21885 as_fn_error $? "conditional \"AMDEP\" was never defined. 21886Usually this means the macro was only invoked conditionally." "$LINENO" 5 21887fi 21888if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21889 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 21890Usually this means the macro was only invoked conditionally." "$LINENO" 5 21891fi 21892 if test -n "$EXEEXT"; then 21893 am__EXEEXT_TRUE= 21894 am__EXEEXT_FALSE='#' 21895else 21896 am__EXEEXT_TRUE='#' 21897 am__EXEEXT_FALSE= 21898fi 21899 21900if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then 21901 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined. 21902Usually this means the macro was only invoked conditionally." "$LINENO" 5 21903fi 21904if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 21905 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 21906Usually this means the macro was only invoked conditionally." "$LINENO" 5 21907fi 21908if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 21909 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 21910Usually this means the macro was only invoked conditionally." "$LINENO" 5 21911fi 21912if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 21913 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 21914Usually this means the macro was only invoked conditionally." "$LINENO" 5 21915fi 21916if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 21917 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 21918Usually this means the macro was only invoked conditionally." "$LINENO" 5 21919fi 21920if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 21921 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 21922Usually this means the macro was only invoked conditionally." "$LINENO" 5 21923fi 21924if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then 21925 as_fn_error $? "conditional \"HAVE_PERL\" was never defined. 21926Usually this means the macro was only invoked conditionally." "$LINENO" 5 21927fi 21928if test -z "${XLIB_LOADABLE_I18N_TRUE}" && test -z "${XLIB_LOADABLE_I18N_FALSE}"; then 21929 as_fn_error $? "conditional \"XLIB_LOADABLE_I18N\" was never defined. 21930Usually this means the macro was only invoked conditionally." "$LINENO" 5 21931fi 21932if test -z "${OS2_TRUE}" && test -z "${OS2_FALSE}"; then 21933 as_fn_error $? "conditional \"OS2\" was never defined. 21934Usually this means the macro was only invoked conditionally." "$LINENO" 5 21935fi 21936if test -z "${THRSTUBS_TRUE}" && test -z "${THRSTUBS_FALSE}"; then 21937 as_fn_error $? "conditional \"THRSTUBS\" was never defined. 21938Usually this means the macro was only invoked conditionally." "$LINENO" 5 21939fi 21940if test -z "${XCMS_TRUE}" && test -z "${XCMS_FALSE}"; then 21941 as_fn_error $? "conditional \"XCMS\" was never defined. 21942Usually this means the macro was only invoked conditionally." "$LINENO" 5 21943fi 21944if test -z "${XLOCALE_TRUE}" && test -z "${XLOCALE_FALSE}"; then 21945 as_fn_error $? "conditional \"XLOCALE\" was never defined. 21946Usually this means the macro was only invoked conditionally." "$LINENO" 5 21947fi 21948if test -z "${XKB_TRUE}" && test -z "${XKB_FALSE}"; then 21949 as_fn_error $? "conditional \"XKB\" was never defined. 21950Usually this means the macro was only invoked conditionally." "$LINENO" 5 21951fi 21952if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 21953 as_fn_error $? "conditional \"LINT\" was never defined. 21954Usually this means the macro was only invoked conditionally." "$LINENO" 5 21955fi 21956if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 21957 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined. 21958Usually this means the macro was only invoked conditionally." "$LINENO" 5 21959fi 21960 21961: "${CONFIG_STATUS=./config.status}" 21962ac_write_fail=0 21963ac_clean_files_save=$ac_clean_files 21964ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21965{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 21966$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 21967as_write_fail=0 21968cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 21969#! $SHELL 21970# Generated by $as_me. 21971# Run this file to recreate the current configuration. 21972# Compiler output produced by configure, useful for debugging 21973# configure, is in config.log if it exists. 21974 21975debug=false 21976ac_cs_recheck=false 21977ac_cs_silent=false 21978 21979SHELL=\${CONFIG_SHELL-$SHELL} 21980export SHELL 21981_ASEOF 21982cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 21983## -------------------- ## 21984## M4sh Initialization. ## 21985## -------------------- ## 21986 21987# Be more Bourne compatible 21988DUALCASE=1; export DUALCASE # for MKS sh 21989if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 21990 emulate sh 21991 NULLCMD=: 21992 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21993 # is contrary to our usage. Disable this feature. 21994 alias -g '${1+"$@"}'='"$@"' 21995 setopt NO_GLOB_SUBST 21996else 21997 case `(set -o) 2>/dev/null` in #( 21998 *posix*) : 21999 set -o posix ;; #( 22000 *) : 22001 ;; 22002esac 22003fi 22004 22005 22006as_nl=' 22007' 22008export as_nl 22009# Printing a long string crashes Solaris 7 /usr/bin/printf. 22010as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 22011as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 22012as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 22013# Prefer a ksh shell builtin over an external printf program on Solaris, 22014# but without wasting forks for bash or zsh. 22015if test -z "$BASH_VERSION$ZSH_VERSION" \ 22016 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 22017 as_echo='print -r --' 22018 as_echo_n='print -rn --' 22019elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 22020 as_echo='printf %s\n' 22021 as_echo_n='printf %s' 22022else 22023 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 22024 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 22025 as_echo_n='/usr/ucb/echo -n' 22026 else 22027 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 22028 as_echo_n_body='eval 22029 arg=$1; 22030 case $arg in #( 22031 *"$as_nl"*) 22032 expr "X$arg" : "X\\(.*\\)$as_nl"; 22033 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 22034 esac; 22035 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 22036 ' 22037 export as_echo_n_body 22038 as_echo_n='sh -c $as_echo_n_body as_echo' 22039 fi 22040 export as_echo_body 22041 as_echo='sh -c $as_echo_body as_echo' 22042fi 22043 22044# The user is always right. 22045if test "${PATH_SEPARATOR+set}" != set; then 22046 PATH_SEPARATOR=: 22047 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 22048 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 22049 PATH_SEPARATOR=';' 22050 } 22051fi 22052 22053 22054# IFS 22055# We need space, tab and new line, in precisely that order. Quoting is 22056# there to prevent editors from complaining about space-tab. 22057# (If _AS_PATH_WALK were called with IFS unset, it would disable word 22058# splitting by setting IFS to empty value.) 22059IFS=" "" $as_nl" 22060 22061# Find who we are. Look in the path if we contain no directory separator. 22062as_myself= 22063case $0 in #(( 22064 *[\\/]* ) as_myself=$0 ;; 22065 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22066for as_dir in $PATH 22067do 22068 IFS=$as_save_IFS 22069 test -z "$as_dir" && as_dir=. 22070 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22071 done 22072IFS=$as_save_IFS 22073 22074 ;; 22075esac 22076# We did not find ourselves, most probably we were run as `sh COMMAND' 22077# in which case we are not to be found in the path. 22078if test "x$as_myself" = x; then 22079 as_myself=$0 22080fi 22081if test ! -f "$as_myself"; then 22082 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22083 exit 1 22084fi 22085 22086# Unset variables that we do not need and which cause bugs (e.g. in 22087# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 22088# suppresses any "Segmentation fault" message there. '((' could 22089# trigger a bug in pdksh 5.2.14. 22090for as_var in BASH_ENV ENV MAIL MAILPATH 22091do eval test x\${$as_var+set} = xset \ 22092 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 22093done 22094PS1='$ ' 22095PS2='> ' 22096PS4='+ ' 22097 22098# NLS nuisances. 22099LC_ALL=C 22100export LC_ALL 22101LANGUAGE=C 22102export LANGUAGE 22103 22104# CDPATH. 22105(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22106 22107 22108# as_fn_error STATUS ERROR [LINENO LOG_FD] 22109# ---------------------------------------- 22110# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 22111# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 22112# script with STATUS, using 1 if that was 0. 22113as_fn_error () 22114{ 22115 as_status=$1; test $as_status -eq 0 && as_status=1 22116 if test "$4"; then 22117 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 22118 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 22119 fi 22120 $as_echo "$as_me: error: $2" >&2 22121 as_fn_exit $as_status 22122} # as_fn_error 22123 22124 22125# as_fn_set_status STATUS 22126# ----------------------- 22127# Set $? to STATUS, without forking. 22128as_fn_set_status () 22129{ 22130 return $1 22131} # as_fn_set_status 22132 22133# as_fn_exit STATUS 22134# ----------------- 22135# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 22136as_fn_exit () 22137{ 22138 set +e 22139 as_fn_set_status $1 22140 exit $1 22141} # as_fn_exit 22142 22143# as_fn_unset VAR 22144# --------------- 22145# Portably unset VAR. 22146as_fn_unset () 22147{ 22148 { eval $1=; unset $1;} 22149} 22150as_unset=as_fn_unset 22151# as_fn_append VAR VALUE 22152# ---------------------- 22153# Append the text in VALUE to the end of the definition contained in VAR. Take 22154# advantage of any shell optimizations that allow amortized linear growth over 22155# repeated appends, instead of the typical quadratic growth present in naive 22156# implementations. 22157if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 22158 eval 'as_fn_append () 22159 { 22160 eval $1+=\$2 22161 }' 22162else 22163 as_fn_append () 22164 { 22165 eval $1=\$$1\$2 22166 } 22167fi # as_fn_append 22168 22169# as_fn_arith ARG... 22170# ------------------ 22171# Perform arithmetic evaluation on the ARGs, and store the result in the 22172# global $as_val. Take advantage of shells that can avoid forks. The arguments 22173# must be portable across $(()) and expr. 22174if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 22175 eval 'as_fn_arith () 22176 { 22177 as_val=$(( $* )) 22178 }' 22179else 22180 as_fn_arith () 22181 { 22182 as_val=`expr "$@" || test $? -eq 1` 22183 } 22184fi # as_fn_arith 22185 22186 22187if expr a : '\(a\)' >/dev/null 2>&1 && 22188 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22189 as_expr=expr 22190else 22191 as_expr=false 22192fi 22193 22194if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22195 as_basename=basename 22196else 22197 as_basename=false 22198fi 22199 22200if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22201 as_dirname=dirname 22202else 22203 as_dirname=false 22204fi 22205 22206as_me=`$as_basename -- "$0" || 22207$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22208 X"$0" : 'X\(//\)$' \| \ 22209 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22210$as_echo X/"$0" | 22211 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22212 s//\1/ 22213 q 22214 } 22215 /^X\/\(\/\/\)$/{ 22216 s//\1/ 22217 q 22218 } 22219 /^X\/\(\/\).*/{ 22220 s//\1/ 22221 q 22222 } 22223 s/.*/./; q'` 22224 22225# Avoid depending upon Character Ranges. 22226as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22227as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22228as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22229as_cr_digits='0123456789' 22230as_cr_alnum=$as_cr_Letters$as_cr_digits 22231 22232ECHO_C= ECHO_N= ECHO_T= 22233case `echo -n x` in #((((( 22234-n*) 22235 case `echo 'xy\c'` in 22236 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22237 xy) ECHO_C='\c';; 22238 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 22239 ECHO_T=' ';; 22240 esac;; 22241*) 22242 ECHO_N='-n';; 22243esac 22244 22245rm -f conf$$ conf$$.exe conf$$.file 22246if test -d conf$$.dir; then 22247 rm -f conf$$.dir/conf$$.file 22248else 22249 rm -f conf$$.dir 22250 mkdir conf$$.dir 2>/dev/null 22251fi 22252if (echo >conf$$.file) 2>/dev/null; then 22253 if ln -s conf$$.file conf$$ 2>/dev/null; then 22254 as_ln_s='ln -s' 22255 # ... but there are two gotchas: 22256 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22257 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22258 # In both cases, we have to default to `cp -pR'. 22259 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22260 as_ln_s='cp -pR' 22261 elif ln conf$$.file conf$$ 2>/dev/null; then 22262 as_ln_s=ln 22263 else 22264 as_ln_s='cp -pR' 22265 fi 22266else 22267 as_ln_s='cp -pR' 22268fi 22269rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22270rmdir conf$$.dir 2>/dev/null 22271 22272 22273# as_fn_mkdir_p 22274# ------------- 22275# Create "$as_dir" as a directory, including parents if necessary. 22276as_fn_mkdir_p () 22277{ 22278 22279 case $as_dir in #( 22280 -*) as_dir=./$as_dir;; 22281 esac 22282 test -d "$as_dir" || eval $as_mkdir_p || { 22283 as_dirs= 22284 while :; do 22285 case $as_dir in #( 22286 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 22287 *) as_qdir=$as_dir;; 22288 esac 22289 as_dirs="'$as_qdir' $as_dirs" 22290 as_dir=`$as_dirname -- "$as_dir" || 22291$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22292 X"$as_dir" : 'X\(//\)[^/]' \| \ 22293 X"$as_dir" : 'X\(//\)$' \| \ 22294 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22295$as_echo X"$as_dir" | 22296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22297 s//\1/ 22298 q 22299 } 22300 /^X\(\/\/\)[^/].*/{ 22301 s//\1/ 22302 q 22303 } 22304 /^X\(\/\/\)$/{ 22305 s//\1/ 22306 q 22307 } 22308 /^X\(\/\).*/{ 22309 s//\1/ 22310 q 22311 } 22312 s/.*/./; q'` 22313 test -d "$as_dir" && break 22314 done 22315 test -z "$as_dirs" || eval "mkdir $as_dirs" 22316 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 22317 22318 22319} # as_fn_mkdir_p 22320if mkdir -p . 2>/dev/null; then 22321 as_mkdir_p='mkdir -p "$as_dir"' 22322else 22323 test -d ./-p && rmdir ./-p 22324 as_mkdir_p=false 22325fi 22326 22327 22328# as_fn_executable_p FILE 22329# ----------------------- 22330# Test if FILE is an executable regular file. 22331as_fn_executable_p () 22332{ 22333 test -f "$1" && test -x "$1" 22334} # as_fn_executable_p 22335as_test_x='test -x' 22336as_executable_p=as_fn_executable_p 22337 22338# Sed expression to map a string onto a valid CPP name. 22339as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22340 22341# Sed expression to map a string onto a valid variable name. 22342as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22343 22344 22345exec 6>&1 22346## ----------------------------------- ## 22347## Main body of $CONFIG_STATUS script. ## 22348## ----------------------------------- ## 22349_ASEOF 22350test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 22351 22352cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22353# Save the log message, to keep $0 and so on meaningful, and to 22354# report actual input values of CONFIG_FILES etc. instead of their 22355# values after options handling. 22356ac_log=" 22357This file was extended by libX11 $as_me 1.6.10, which was 22358generated by GNU Autoconf 2.69. Invocation command line was 22359 22360 CONFIG_FILES = $CONFIG_FILES 22361 CONFIG_HEADERS = $CONFIG_HEADERS 22362 CONFIG_LINKS = $CONFIG_LINKS 22363 CONFIG_COMMANDS = $CONFIG_COMMANDS 22364 $ $0 $@ 22365 22366on `(hostname || uname -n) 2>/dev/null | sed 1q` 22367" 22368 22369_ACEOF 22370 22371case $ac_config_files in *" 22372"*) set x $ac_config_files; shift; ac_config_files=$*;; 22373esac 22374 22375case $ac_config_headers in *" 22376"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 22377esac 22378 22379 22380cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22381# Files that config.status was made for. 22382config_files="$ac_config_files" 22383config_headers="$ac_config_headers" 22384config_commands="$ac_config_commands" 22385 22386_ACEOF 22387 22388cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22389ac_cs_usage="\ 22390\`$as_me' instantiates files and other configuration actions 22391from templates according to the current configuration. Unless the files 22392and actions are specified as TAGs, all are instantiated by default. 22393 22394Usage: $0 [OPTION]... [TAG]... 22395 22396 -h, --help print this help, then exit 22397 -V, --version print version number and configuration settings, then exit 22398 --config print configuration, then exit 22399 -q, --quiet, --silent 22400 do not print progress messages 22401 -d, --debug don't remove temporary files 22402 --recheck update $as_me by reconfiguring in the same conditions 22403 --file=FILE[:TEMPLATE] 22404 instantiate the configuration file FILE 22405 --header=FILE[:TEMPLATE] 22406 instantiate the configuration header FILE 22407 22408Configuration files: 22409$config_files 22410 22411Configuration headers: 22412$config_headers 22413 22414Configuration commands: 22415$config_commands 22416 22417Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libx11/issues>." 22418 22419_ACEOF 22420cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22421ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 22422ac_cs_version="\\ 22423libX11 config.status 1.6.10 22424configured by $0, generated by GNU Autoconf 2.69, 22425 with options \\"\$ac_cs_config\\" 22426 22427Copyright (C) 2012 Free Software Foundation, Inc. 22428This config.status script is free software; the Free Software Foundation 22429gives unlimited permission to copy, distribute and modify it." 22430 22431ac_pwd='$ac_pwd' 22432srcdir='$srcdir' 22433INSTALL='$INSTALL' 22434MKDIR_P='$MKDIR_P' 22435AWK='$AWK' 22436test -n "\$AWK" || AWK=awk 22437_ACEOF 22438 22439cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22440# The default lists apply if the user does not specify any file. 22441ac_need_defaults=: 22442while test $# != 0 22443do 22444 case $1 in 22445 --*=?*) 22446 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22447 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22448 ac_shift=: 22449 ;; 22450 --*=) 22451 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22452 ac_optarg= 22453 ac_shift=: 22454 ;; 22455 *) 22456 ac_option=$1 22457 ac_optarg=$2 22458 ac_shift=shift 22459 ;; 22460 esac 22461 22462 case $ac_option in 22463 # Handling of the options. 22464 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22465 ac_cs_recheck=: ;; 22466 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22467 $as_echo "$ac_cs_version"; exit ;; 22468 --config | --confi | --conf | --con | --co | --c ) 22469 $as_echo "$ac_cs_config"; exit ;; 22470 --debug | --debu | --deb | --de | --d | -d ) 22471 debug=: ;; 22472 --file | --fil | --fi | --f ) 22473 $ac_shift 22474 case $ac_optarg in 22475 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22476 '') as_fn_error $? "missing file argument" ;; 22477 esac 22478 as_fn_append CONFIG_FILES " '$ac_optarg'" 22479 ac_need_defaults=false;; 22480 --header | --heade | --head | --hea ) 22481 $ac_shift 22482 case $ac_optarg in 22483 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22484 esac 22485 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 22486 ac_need_defaults=false;; 22487 --he | --h) 22488 # Conflict between --help and --header 22489 as_fn_error $? "ambiguous option: \`$1' 22490Try \`$0 --help' for more information.";; 22491 --help | --hel | -h ) 22492 $as_echo "$ac_cs_usage"; exit ;; 22493 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22494 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22495 ac_cs_silent=: ;; 22496 22497 # This is an error. 22498 -*) as_fn_error $? "unrecognized option: \`$1' 22499Try \`$0 --help' for more information." ;; 22500 22501 *) as_fn_append ac_config_targets " $1" 22502 ac_need_defaults=false ;; 22503 22504 esac 22505 shift 22506done 22507 22508ac_configure_extra_args= 22509 22510if $ac_cs_silent; then 22511 exec 6>/dev/null 22512 ac_configure_extra_args="$ac_configure_extra_args --silent" 22513fi 22514 22515_ACEOF 22516cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22517if \$ac_cs_recheck; then 22518 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22519 shift 22520 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 22521 CONFIG_SHELL='$SHELL' 22522 export CONFIG_SHELL 22523 exec "\$@" 22524fi 22525 22526_ACEOF 22527cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22528exec 5>>config.log 22529{ 22530 echo 22531 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22532## Running $as_me. ## 22533_ASBOX 22534 $as_echo "$ac_log" 22535} >&5 22536 22537_ACEOF 22538cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22539# 22540# INIT-COMMANDS 22541# 22542AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 22543 22544 22545# The HP-UX ksh and POSIX shell print the target directory to stdout 22546# if CDPATH is set. 22547(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22548 22549sed_quote_subst='$sed_quote_subst' 22550double_quote_subst='$double_quote_subst' 22551delay_variable_subst='$delay_variable_subst' 22552macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 22553macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 22554enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 22555enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 22556pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 22557enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 22558shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 22559SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 22560ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 22561PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 22562host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 22563host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 22564host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 22565build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 22566build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 22567build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 22568SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 22569Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 22570GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 22571EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 22572FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 22573LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 22574NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 22575LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 22576max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 22577ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 22578exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 22579lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 22580lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 22581lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 22582lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 22583lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 22584reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 22585reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 22586OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 22587deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 22588file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 22589file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 22590want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 22591DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 22592sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 22593AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 22594AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 22595archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 22596STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 22597RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 22598old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22599old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22600old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 22601lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 22602CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 22603CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 22604compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 22605GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 22606lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 22607lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 22608lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 22609lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 22610lt_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"`' 22611lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 22612nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 22613lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 22614lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 22615objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 22616MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 22617lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 22618lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 22619lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 22620lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 22621lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 22622need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 22623MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 22624DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 22625NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 22626LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 22627OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 22628OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 22629libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 22630shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 22631extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22632archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 22633enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 22634export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 22635whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 22636compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 22637old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 22638old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22639archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 22640archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22641module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 22642module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22643with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 22644allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 22645no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 22646hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 22647hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 22648hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 22649hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 22650hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 22651hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 22652hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 22653inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 22654link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 22655always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 22656export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 22657exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 22658include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 22659prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 22660postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 22661file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 22662variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 22663need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 22664need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 22665version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 22666runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 22667shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 22668shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 22669libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 22670library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 22671soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 22672install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 22673postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22674postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22675finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 22676finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 22677hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 22678sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 22679configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 22680configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 22681hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 22682enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 22683enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 22684enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 22685old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 22686striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 22687 22688LTCC='$LTCC' 22689LTCFLAGS='$LTCFLAGS' 22690compiler='$compiler_DEFAULT' 22691 22692# A function that is used when there is no print builtin or printf. 22693func_fallback_echo () 22694{ 22695 eval 'cat <<_LTECHO_EOF 22696\$1 22697_LTECHO_EOF' 22698} 22699 22700# Quote evaled strings. 22701for var in SHELL \ 22702ECHO \ 22703PATH_SEPARATOR \ 22704SED \ 22705GREP \ 22706EGREP \ 22707FGREP \ 22708LD \ 22709NM \ 22710LN_S \ 22711lt_SP2NL \ 22712lt_NL2SP \ 22713reload_flag \ 22714OBJDUMP \ 22715deplibs_check_method \ 22716file_magic_cmd \ 22717file_magic_glob \ 22718want_nocaseglob \ 22719DLLTOOL \ 22720sharedlib_from_linklib_cmd \ 22721AR \ 22722AR_FLAGS \ 22723archiver_list_spec \ 22724STRIP \ 22725RANLIB \ 22726CC \ 22727CFLAGS \ 22728compiler \ 22729lt_cv_sys_global_symbol_pipe \ 22730lt_cv_sys_global_symbol_to_cdecl \ 22731lt_cv_sys_global_symbol_to_import \ 22732lt_cv_sys_global_symbol_to_c_name_address \ 22733lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 22734lt_cv_nm_interface \ 22735nm_file_list_spec \ 22736lt_cv_truncate_bin \ 22737lt_prog_compiler_no_builtin_flag \ 22738lt_prog_compiler_pic \ 22739lt_prog_compiler_wl \ 22740lt_prog_compiler_static \ 22741lt_cv_prog_compiler_c_o \ 22742need_locks \ 22743MANIFEST_TOOL \ 22744DSYMUTIL \ 22745NMEDIT \ 22746LIPO \ 22747OTOOL \ 22748OTOOL64 \ 22749shrext_cmds \ 22750export_dynamic_flag_spec \ 22751whole_archive_flag_spec \ 22752compiler_needs_object \ 22753with_gnu_ld \ 22754allow_undefined_flag \ 22755no_undefined_flag \ 22756hardcode_libdir_flag_spec \ 22757hardcode_libdir_separator \ 22758exclude_expsyms \ 22759include_expsyms \ 22760file_list_spec \ 22761variables_saved_for_relink \ 22762libname_spec \ 22763library_names_spec \ 22764soname_spec \ 22765install_override_mode \ 22766finish_eval \ 22767old_striplib \ 22768striplib; do 22769 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22770 *[\\\\\\\`\\"\\\$]*) 22771 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22772 ;; 22773 *) 22774 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22775 ;; 22776 esac 22777done 22778 22779# Double-quote double-evaled strings. 22780for var in reload_cmds \ 22781old_postinstall_cmds \ 22782old_postuninstall_cmds \ 22783old_archive_cmds \ 22784extract_expsyms_cmds \ 22785old_archive_from_new_cmds \ 22786old_archive_from_expsyms_cmds \ 22787archive_cmds \ 22788archive_expsym_cmds \ 22789module_cmds \ 22790module_expsym_cmds \ 22791export_symbols_cmds \ 22792prelink_cmds \ 22793postlink_cmds \ 22794postinstall_cmds \ 22795postuninstall_cmds \ 22796finish_cmds \ 22797sys_lib_search_path_spec \ 22798configure_time_dlsearch_path \ 22799configure_time_lt_sys_library_path; do 22800 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22801 *[\\\\\\\`\\"\\\$]*) 22802 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22803 ;; 22804 *) 22805 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22806 ;; 22807 esac 22808done 22809 22810ac_aux_dir='$ac_aux_dir' 22811 22812# See if we are running on zsh, and set the options that allow our 22813# commands through without removal of \ escapes INIT. 22814if test -n "\${ZSH_VERSION+set}"; then 22815 setopt NO_GLOB_SUBST 22816fi 22817 22818 22819 PACKAGE='$PACKAGE' 22820 VERSION='$VERSION' 22821 RM='$RM' 22822 ofile='$ofile' 22823 22824 22825 22826 22827_ACEOF 22828 22829cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22830 22831# Handling of arguments. 22832for ac_config_target in $ac_config_targets 22833do 22834 case $ac_config_target in 22835 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 22836 "include/X11/XlibConf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/XlibConf.h" ;; 22837 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22838 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 22839 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22840 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 22841 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 22842 "man/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES man/xkb/Makefile" ;; 22843 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 22844 "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;; 22845 "src/xcms/Makefile") CONFIG_FILES="$CONFIG_FILES src/xcms/Makefile" ;; 22846 "src/xlibi18n/Makefile") CONFIG_FILES="$CONFIG_FILES src/xlibi18n/Makefile" ;; 22847 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; 22848 "modules/im/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/Makefile" ;; 22849 "modules/im/ximcp/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/ximcp/Makefile" ;; 22850 "modules/lc/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Makefile" ;; 22851 "modules/lc/def/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/def/Makefile" ;; 22852 "modules/lc/gen/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/gen/Makefile" ;; 22853 "modules/lc/Utf8/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Utf8/Makefile" ;; 22854 "modules/om/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/Makefile" ;; 22855 "modules/om/generic/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/generic/Makefile" ;; 22856 "src/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES src/xkb/Makefile" ;; 22857 "nls/Makefile") CONFIG_FILES="$CONFIG_FILES nls/Makefile" ;; 22858 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;; 22859 "specs/i18n/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/Makefile" ;; 22860 "specs/i18n/compose/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/compose/Makefile" ;; 22861 "specs/i18n/framework/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/framework/Makefile" ;; 22862 "specs/i18n/localedb/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/localedb/Makefile" ;; 22863 "specs/i18n/trans/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/trans/Makefile" ;; 22864 "specs/libX11/Makefile") CONFIG_FILES="$CONFIG_FILES specs/libX11/Makefile" ;; 22865 "specs/XIM/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XIM/Makefile" ;; 22866 "specs/XKB/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XKB/Makefile" ;; 22867 "x11.pc") CONFIG_FILES="$CONFIG_FILES x11.pc" ;; 22868 "x11-xcb.pc") CONFIG_FILES="$CONFIG_FILES x11-xcb.pc" ;; 22869 22870 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 22871 esac 22872done 22873 22874 22875# If the user did not use the arguments to specify the items to instantiate, 22876# then the envvar interface is used. Set only those that are not. 22877# We use the long form for the default assignment because of an extremely 22878# bizarre bug on SunOS 4.1.3. 22879if $ac_need_defaults; then 22880 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22881 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22882 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22883fi 22884 22885# Have a temporary directory for convenience. Make it in the build tree 22886# simply because there is no reason against having it here, and in addition, 22887# creating and moving files from /tmp can sometimes cause problems. 22888# Hook for its removal unless debugging. 22889# Note that there is a small window in which the directory will not be cleaned: 22890# after its creation but before its name has been assigned to `$tmp'. 22891$debug || 22892{ 22893 tmp= ac_tmp= 22894 trap 'exit_status=$? 22895 : "${ac_tmp:=$tmp}" 22896 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 22897' 0 22898 trap 'as_fn_exit 1' 1 2 13 15 22899} 22900# Create a (secure) tmp directory for tmp files. 22901 22902{ 22903 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22904 test -d "$tmp" 22905} || 22906{ 22907 tmp=./conf$$-$RANDOM 22908 (umask 077 && mkdir "$tmp") 22909} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 22910ac_tmp=$tmp 22911 22912# Set up the scripts for CONFIG_FILES section. 22913# No need to generate them if there are no CONFIG_FILES. 22914# This happens for instance with `./config.status config.h'. 22915if test -n "$CONFIG_FILES"; then 22916 22917 22918ac_cr=`echo X | tr X '\015'` 22919# On cygwin, bash can eat \r inside `` if the user requested igncr. 22920# But we know of no other shell where ac_cr would be empty at this 22921# point, so we can use a bashism as a fallback. 22922if test "x$ac_cr" = x; then 22923 eval ac_cr=\$\'\\r\' 22924fi 22925ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 22926if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 22927 ac_cs_awk_cr='\\r' 22928else 22929 ac_cs_awk_cr=$ac_cr 22930fi 22931 22932echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 22933_ACEOF 22934 22935 22936{ 22937 echo "cat >conf$$subs.awk <<_ACEOF" && 22938 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 22939 echo "_ACEOF" 22940} >conf$$subs.sh || 22941 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22942ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 22943ac_delim='%!_!# ' 22944for ac_last_try in false false false false false :; do 22945 . ./conf$$subs.sh || 22946 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22947 22948 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 22949 if test $ac_delim_n = $ac_delim_num; then 22950 break 22951 elif $ac_last_try; then 22952 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22953 else 22954 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22955 fi 22956done 22957rm -f conf$$subs.sh 22958 22959cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22960cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 22961_ACEOF 22962sed -n ' 22963h 22964s/^/S["/; s/!.*/"]=/ 22965p 22966g 22967s/^[^!]*!// 22968:repl 22969t repl 22970s/'"$ac_delim"'$// 22971t delim 22972:nl 22973h 22974s/\(.\{148\}\)..*/\1/ 22975t more1 22976s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 22977p 22978n 22979b repl 22980:more1 22981s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22982p 22983g 22984s/.\{148\}// 22985t nl 22986:delim 22987h 22988s/\(.\{148\}\)..*/\1/ 22989t more2 22990s/["\\]/\\&/g; s/^/"/; s/$/"/ 22991p 22992b 22993:more2 22994s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22995p 22996g 22997s/.\{148\}// 22998t delim 22999' <conf$$subs.awk | sed ' 23000/^[^""]/{ 23001 N 23002 s/\n// 23003} 23004' >>$CONFIG_STATUS || ac_write_fail=1 23005rm -f conf$$subs.awk 23006cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23007_ACAWK 23008cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 23009 for (key in S) S_is_set[key] = 1 23010 FS = "" 23011 23012} 23013{ 23014 line = $ 0 23015 nfields = split(line, field, "@") 23016 substed = 0 23017 len = length(field[1]) 23018 for (i = 2; i < nfields; i++) { 23019 key = field[i] 23020 keylen = length(key) 23021 if (S_is_set[key]) { 23022 value = S[key] 23023 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 23024 len += length(value) + length(field[++i]) 23025 substed = 1 23026 } else 23027 len += 1 + keylen 23028 } 23029 23030 print line 23031} 23032 23033_ACAWK 23034_ACEOF 23035cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23036if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 23037 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 23038else 23039 cat 23040fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 23041 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 23042_ACEOF 23043 23044# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 23045# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 23046# trailing colons and then remove the whole line if VPATH becomes empty 23047# (actually we leave an empty line to preserve line numbers). 23048if test "x$srcdir" = x.; then 23049 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 23050h 23051s/// 23052s/^/:/ 23053s/[ ]*$/:/ 23054s/:\$(srcdir):/:/g 23055s/:\${srcdir}:/:/g 23056s/:@srcdir@:/:/g 23057s/^:*// 23058s/:*$// 23059x 23060s/\(=[ ]*\).*/\1/ 23061G 23062s/\n// 23063s/^[^=]*=[ ]*$// 23064}' 23065fi 23066 23067cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23068fi # test -n "$CONFIG_FILES" 23069 23070# Set up the scripts for CONFIG_HEADERS section. 23071# No need to generate them if there are no CONFIG_HEADERS. 23072# This happens for instance with `./config.status Makefile'. 23073if test -n "$CONFIG_HEADERS"; then 23074cat >"$ac_tmp/defines.awk" <<\_ACAWK || 23075BEGIN { 23076_ACEOF 23077 23078# Transform confdefs.h into an awk script `defines.awk', embedded as 23079# here-document in config.status, that substitutes the proper values into 23080# config.h.in to produce config.h. 23081 23082# Create a delimiter string that does not exist in confdefs.h, to ease 23083# handling of long lines. 23084ac_delim='%!_!# ' 23085for ac_last_try in false false :; do 23086 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 23087 if test -z "$ac_tt"; then 23088 break 23089 elif $ac_last_try; then 23090 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 23091 else 23092 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23093 fi 23094done 23095 23096# For the awk script, D is an array of macro values keyed by name, 23097# likewise P contains macro parameters if any. Preserve backslash 23098# newline sequences. 23099 23100ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23101sed -n ' 23102s/.\{148\}/&'"$ac_delim"'/g 23103t rset 23104:rset 23105s/^[ ]*#[ ]*define[ ][ ]*/ / 23106t def 23107d 23108:def 23109s/\\$// 23110t bsnl 23111s/["\\]/\\&/g 23112s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23113D["\1"]=" \3"/p 23114s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 23115d 23116:bsnl 23117s/["\\]/\\&/g 23118s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23119D["\1"]=" \3\\\\\\n"\\/p 23120t cont 23121s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 23122t cont 23123d 23124:cont 23125n 23126s/.\{148\}/&'"$ac_delim"'/g 23127t clear 23128:clear 23129s/\\$// 23130t bsnlc 23131s/["\\]/\\&/g; s/^/"/; s/$/"/p 23132d 23133:bsnlc 23134s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 23135b cont 23136' <confdefs.h | sed ' 23137s/'"$ac_delim"'/"\\\ 23138"/g' >>$CONFIG_STATUS || ac_write_fail=1 23139 23140cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23141 for (key in D) D_is_set[key] = 1 23142 FS = "" 23143} 23144/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 23145 line = \$ 0 23146 split(line, arg, " ") 23147 if (arg[1] == "#") { 23148 defundef = arg[2] 23149 mac1 = arg[3] 23150 } else { 23151 defundef = substr(arg[1], 2) 23152 mac1 = arg[2] 23153 } 23154 split(mac1, mac2, "(") #) 23155 macro = mac2[1] 23156 prefix = substr(line, 1, index(line, defundef) - 1) 23157 if (D_is_set[macro]) { 23158 # Preserve the white space surrounding the "#". 23159 print prefix "define", macro P[macro] D[macro] 23160 next 23161 } else { 23162 # Replace #undef with comments. This is necessary, for example, 23163 # in the case of _POSIX_SOURCE, which is predefined and required 23164 # on some systems where configure will not decide to define it. 23165 if (defundef == "undef") { 23166 print "/*", prefix defundef, macro, "*/" 23167 next 23168 } 23169 } 23170} 23171{ print } 23172_ACAWK 23173_ACEOF 23174cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23175 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 23176fi # test -n "$CONFIG_HEADERS" 23177 23178 23179eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 23180shift 23181for ac_tag 23182do 23183 case $ac_tag in 23184 :[FHLC]) ac_mode=$ac_tag; continue;; 23185 esac 23186 case $ac_mode$ac_tag in 23187 :[FHL]*:*);; 23188 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 23189 :[FH]-) ac_tag=-:-;; 23190 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23191 esac 23192 ac_save_IFS=$IFS 23193 IFS=: 23194 set x $ac_tag 23195 IFS=$ac_save_IFS 23196 shift 23197 ac_file=$1 23198 shift 23199 23200 case $ac_mode in 23201 :L) ac_source=$1;; 23202 :[FH]) 23203 ac_file_inputs= 23204 for ac_f 23205 do 23206 case $ac_f in 23207 -) ac_f="$ac_tmp/stdin";; 23208 *) # Look for the file first in the build tree, then in the source tree 23209 # (if the path is not absolute). The absolute path cannot be DOS-style, 23210 # because $ac_f cannot contain `:'. 23211 test -f "$ac_f" || 23212 case $ac_f in 23213 [\\/$]*) false;; 23214 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23215 esac || 23216 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 23217 esac 23218 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 23219 as_fn_append ac_file_inputs " '$ac_f'" 23220 done 23221 23222 # Let's still pretend it is `configure' which instantiates (i.e., don't 23223 # use $as_me), people would be surprised to read: 23224 # /* config.h. Generated by config.status. */ 23225 configure_input='Generated from '` 23226 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 23227 `' by configure.' 23228 if test x"$ac_file" != x-; then 23229 configure_input="$ac_file. $configure_input" 23230 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 23231$as_echo "$as_me: creating $ac_file" >&6;} 23232 fi 23233 # Neutralize special characters interpreted by sed in replacement strings. 23234 case $configure_input in #( 23235 *\&* | *\|* | *\\* ) 23236 ac_sed_conf_input=`$as_echo "$configure_input" | 23237 sed 's/[\\\\&|]/\\\\&/g'`;; #( 23238 *) ac_sed_conf_input=$configure_input;; 23239 esac 23240 23241 case $ac_tag in 23242 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 23243 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 23244 esac 23245 ;; 23246 esac 23247 23248 ac_dir=`$as_dirname -- "$ac_file" || 23249$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23250 X"$ac_file" : 'X\(//\)[^/]' \| \ 23251 X"$ac_file" : 'X\(//\)$' \| \ 23252 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23253$as_echo X"$ac_file" | 23254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23255 s//\1/ 23256 q 23257 } 23258 /^X\(\/\/\)[^/].*/{ 23259 s//\1/ 23260 q 23261 } 23262 /^X\(\/\/\)$/{ 23263 s//\1/ 23264 q 23265 } 23266 /^X\(\/\).*/{ 23267 s//\1/ 23268 q 23269 } 23270 s/.*/./; q'` 23271 as_dir="$ac_dir"; as_fn_mkdir_p 23272 ac_builddir=. 23273 23274case "$ac_dir" in 23275.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23276*) 23277 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 23278 # A ".." for each directory in $ac_dir_suffix. 23279 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 23280 case $ac_top_builddir_sub in 23281 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23282 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23283 esac ;; 23284esac 23285ac_abs_top_builddir=$ac_pwd 23286ac_abs_builddir=$ac_pwd$ac_dir_suffix 23287# for backward compatibility: 23288ac_top_builddir=$ac_top_build_prefix 23289 23290case $srcdir in 23291 .) # We are building in place. 23292 ac_srcdir=. 23293 ac_top_srcdir=$ac_top_builddir_sub 23294 ac_abs_top_srcdir=$ac_pwd ;; 23295 [\\/]* | ?:[\\/]* ) # Absolute name. 23296 ac_srcdir=$srcdir$ac_dir_suffix; 23297 ac_top_srcdir=$srcdir 23298 ac_abs_top_srcdir=$srcdir ;; 23299 *) # Relative name. 23300 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23301 ac_top_srcdir=$ac_top_build_prefix$srcdir 23302 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23303esac 23304ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23305 23306 23307 case $ac_mode in 23308 :F) 23309 # 23310 # CONFIG_FILE 23311 # 23312 23313 case $INSTALL in 23314 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23315 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23316 esac 23317 ac_MKDIR_P=$MKDIR_P 23318 case $MKDIR_P in 23319 [\\/$]* | ?:[\\/]* ) ;; 23320 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 23321 esac 23322_ACEOF 23323 23324cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23325# If the template does not know about datarootdir, expand it. 23326# FIXME: This hack should be removed a few years after 2.60. 23327ac_datarootdir_hack=; ac_datarootdir_seen= 23328ac_sed_dataroot=' 23329/datarootdir/ { 23330 p 23331 q 23332} 23333/@datadir@/p 23334/@docdir@/p 23335/@infodir@/p 23336/@localedir@/p 23337/@mandir@/p' 23338case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 23339*datarootdir*) ac_datarootdir_seen=yes;; 23340*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23342$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23343_ACEOF 23344cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23345 ac_datarootdir_hack=' 23346 s&@datadir@&$datadir&g 23347 s&@docdir@&$docdir&g 23348 s&@infodir@&$infodir&g 23349 s&@localedir@&$localedir&g 23350 s&@mandir@&$mandir&g 23351 s&\\\${datarootdir}&$datarootdir&g' ;; 23352esac 23353_ACEOF 23354 23355# Neutralize VPATH when `$srcdir' = `.'. 23356# Shell code in configure.ac might set extrasub. 23357# FIXME: do we really want to maintain this feature? 23358cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23359ac_sed_extra="$ac_vpsub 23360$extrasub 23361_ACEOF 23362cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23363:t 23364/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23365s|@configure_input@|$ac_sed_conf_input|;t t 23366s&@top_builddir@&$ac_top_builddir_sub&;t t 23367s&@top_build_prefix@&$ac_top_build_prefix&;t t 23368s&@srcdir@&$ac_srcdir&;t t 23369s&@abs_srcdir@&$ac_abs_srcdir&;t t 23370s&@top_srcdir@&$ac_top_srcdir&;t t 23371s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23372s&@builddir@&$ac_builddir&;t t 23373s&@abs_builddir@&$ac_abs_builddir&;t t 23374s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23375s&@INSTALL@&$ac_INSTALL&;t t 23376s&@MKDIR_P@&$ac_MKDIR_P&;t t 23377$ac_datarootdir_hack 23378" 23379eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 23380 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23381 23382test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23383 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 23384 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 23385 "$ac_tmp/out"`; test -z "$ac_out"; } && 23386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23387which seems to be undefined. Please make sure it is defined" >&5 23388$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23389which seems to be undefined. Please make sure it is defined" >&2;} 23390 23391 rm -f "$ac_tmp/stdin" 23392 case $ac_file in 23393 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 23394 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 23395 esac \ 23396 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23397 ;; 23398 :H) 23399 # 23400 # CONFIG_HEADER 23401 # 23402 if test x"$ac_file" != x-; then 23403 { 23404 $as_echo "/* $configure_input */" \ 23405 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 23406 } >"$ac_tmp/config.h" \ 23407 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23408 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 23409 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 23410$as_echo "$as_me: $ac_file is unchanged" >&6;} 23411 else 23412 rm -f "$ac_file" 23413 mv "$ac_tmp/config.h" "$ac_file" \ 23414 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23415 fi 23416 else 23417 $as_echo "/* $configure_input */" \ 23418 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 23419 || as_fn_error $? "could not create -" "$LINENO" 5 23420 fi 23421# Compute "$ac_file"'s index in $config_headers. 23422_am_arg="$ac_file" 23423_am_stamp_count=1 23424for _am_header in $config_headers :; do 23425 case $_am_header in 23426 $_am_arg | $_am_arg:* ) 23427 break ;; 23428 * ) 23429 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23430 esac 23431done 23432echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 23433$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23434 X"$_am_arg" : 'X\(//\)[^/]' \| \ 23435 X"$_am_arg" : 'X\(//\)$' \| \ 23436 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 23437$as_echo X"$_am_arg" | 23438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23439 s//\1/ 23440 q 23441 } 23442 /^X\(\/\/\)[^/].*/{ 23443 s//\1/ 23444 q 23445 } 23446 /^X\(\/\/\)$/{ 23447 s//\1/ 23448 q 23449 } 23450 /^X\(\/\).*/{ 23451 s//\1/ 23452 q 23453 } 23454 s/.*/./; q'`/stamp-h$_am_stamp_count 23455 ;; 23456 23457 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 23458$as_echo "$as_me: executing $ac_file commands" >&6;} 23459 ;; 23460 esac 23461 23462 23463 case $ac_file$ac_mode in 23464 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 23465 # Older Autoconf quotes --file arguments for eval, but not when files 23466 # are listed without --file. Let's play safe and only enable the eval 23467 # if we detect the quoting. 23468 case $CONFIG_FILES in 23469 *\'*) eval set x "$CONFIG_FILES" ;; 23470 *) set x $CONFIG_FILES ;; 23471 esac 23472 shift 23473 for mf 23474 do 23475 # Strip MF so we end up with the name of the file. 23476 mf=`echo "$mf" | sed -e 's/:.*$//'` 23477 # Check whether this is an Automake generated Makefile or not. 23478 # We used to match only the files named 'Makefile.in', but 23479 # some people rename them; so instead we look at the file content. 23480 # Grep'ing the first line is not enough: some people post-process 23481 # each Makefile.in and add a new line on top of each file to say so. 23482 # Grep'ing the whole file is not good either: AIX grep has a line 23483 # limit of 2048, but all sed's we know have understand at least 4000. 23484 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 23485 dirpart=`$as_dirname -- "$mf" || 23486$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23487 X"$mf" : 'X\(//\)[^/]' \| \ 23488 X"$mf" : 'X\(//\)$' \| \ 23489 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 23490$as_echo X"$mf" | 23491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23492 s//\1/ 23493 q 23494 } 23495 /^X\(\/\/\)[^/].*/{ 23496 s//\1/ 23497 q 23498 } 23499 /^X\(\/\/\)$/{ 23500 s//\1/ 23501 q 23502 } 23503 /^X\(\/\).*/{ 23504 s//\1/ 23505 q 23506 } 23507 s/.*/./; q'` 23508 else 23509 continue 23510 fi 23511 # Extract the definition of DEPDIR, am__include, and am__quote 23512 # from the Makefile without running 'make'. 23513 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 23514 test -z "$DEPDIR" && continue 23515 am__include=`sed -n 's/^am__include = //p' < "$mf"` 23516 test -z "$am__include" && continue 23517 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 23518 # Find all dependency output files, they are included files with 23519 # $(DEPDIR) in their names. We invoke sed twice because it is the 23520 # simplest approach to changing $(DEPDIR) to its actual value in the 23521 # expansion. 23522 for file in `sed -n " 23523 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 23524 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 23525 # Make sure the directory exists. 23526 test -f "$dirpart/$file" && continue 23527 fdir=`$as_dirname -- "$file" || 23528$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23529 X"$file" : 'X\(//\)[^/]' \| \ 23530 X"$file" : 'X\(//\)$' \| \ 23531 X"$file" : 'X\(/\)' \| . 2>/dev/null || 23532$as_echo X"$file" | 23533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23534 s//\1/ 23535 q 23536 } 23537 /^X\(\/\/\)[^/].*/{ 23538 s//\1/ 23539 q 23540 } 23541 /^X\(\/\/\)$/{ 23542 s//\1/ 23543 q 23544 } 23545 /^X\(\/\).*/{ 23546 s//\1/ 23547 q 23548 } 23549 s/.*/./; q'` 23550 as_dir=$dirpart/$fdir; as_fn_mkdir_p 23551 # echo "creating $dirpart/$file" 23552 echo '# dummy' > "$dirpart/$file" 23553 done 23554 done 23555} 23556 ;; 23557 "libtool":C) 23558 23559 # See if we are running on zsh, and set the options that allow our 23560 # commands through without removal of \ escapes. 23561 if test -n "${ZSH_VERSION+set}"; then 23562 setopt NO_GLOB_SUBST 23563 fi 23564 23565 cfgfile=${ofile}T 23566 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 23567 $RM "$cfgfile" 23568 23569 cat <<_LT_EOF >> "$cfgfile" 23570#! $SHELL 23571# Generated automatically by $as_me ($PACKAGE) $VERSION 23572# NOTE: Changes made to this file will be lost: look at ltmain.sh. 23573 23574# Provide generalized library-building support services. 23575# Written by Gordon Matzigkeit, 1996 23576 23577# Copyright (C) 2014 Free Software Foundation, Inc. 23578# This is free software; see the source for copying conditions. There is NO 23579# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 23580 23581# GNU Libtool is free software; you can redistribute it and/or modify 23582# it under the terms of the GNU General Public License as published by 23583# the Free Software Foundation; either version 2 of of the License, or 23584# (at your option) any later version. 23585# 23586# As a special exception to the GNU General Public License, if you 23587# distribute this file as part of a program or library that is built 23588# using GNU Libtool, you may include this file under the same 23589# distribution terms that you use for the rest of that program. 23590# 23591# GNU Libtool is distributed in the hope that it will be useful, but 23592# WITHOUT ANY WARRANTY; without even the implied warranty of 23593# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23594# GNU General Public License for more details. 23595# 23596# You should have received a copy of the GNU General Public License 23597# along with this program. If not, see <http://www.gnu.org/licenses/>. 23598 23599 23600# The names of the tagged configurations supported by this script. 23601available_tags='' 23602 23603# Configured defaults for sys_lib_dlsearch_path munging. 23604: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 23605 23606# ### BEGIN LIBTOOL CONFIG 23607 23608# Which release of libtool.m4 was used? 23609macro_version=$macro_version 23610macro_revision=$macro_revision 23611 23612# Whether or not to build shared libraries. 23613build_libtool_libs=$enable_shared 23614 23615# Whether or not to build static libraries. 23616build_old_libs=$enable_static 23617 23618# What type of objects to build. 23619pic_mode=$pic_mode 23620 23621# Whether or not to optimize for fast installation. 23622fast_install=$enable_fast_install 23623 23624# Shared archive member basename,for filename based shared library versioning on AIX. 23625shared_archive_member_spec=$shared_archive_member_spec 23626 23627# Shell to use when invoking shell scripts. 23628SHELL=$lt_SHELL 23629 23630# An echo program that protects backslashes. 23631ECHO=$lt_ECHO 23632 23633# The PATH separator for the build system. 23634PATH_SEPARATOR=$lt_PATH_SEPARATOR 23635 23636# The host system. 23637host_alias=$host_alias 23638host=$host 23639host_os=$host_os 23640 23641# The build system. 23642build_alias=$build_alias 23643build=$build 23644build_os=$build_os 23645 23646# A sed program that does not truncate output. 23647SED=$lt_SED 23648 23649# Sed that helps us avoid accidentally triggering echo(1) options like -n. 23650Xsed="\$SED -e 1s/^X//" 23651 23652# A grep program that handles long lines. 23653GREP=$lt_GREP 23654 23655# An ERE matcher. 23656EGREP=$lt_EGREP 23657 23658# A literal string matcher. 23659FGREP=$lt_FGREP 23660 23661# A BSD- or MS-compatible name lister. 23662NM=$lt_NM 23663 23664# Whether we need soft or hard links. 23665LN_S=$lt_LN_S 23666 23667# What is the maximum length of a command? 23668max_cmd_len=$max_cmd_len 23669 23670# Object file suffix (normally "o"). 23671objext=$ac_objext 23672 23673# Executable file suffix (normally ""). 23674exeext=$exeext 23675 23676# whether the shell understands "unset". 23677lt_unset=$lt_unset 23678 23679# turn spaces into newlines. 23680SP2NL=$lt_lt_SP2NL 23681 23682# turn newlines into spaces. 23683NL2SP=$lt_lt_NL2SP 23684 23685# convert \$build file names to \$host format. 23686to_host_file_cmd=$lt_cv_to_host_file_cmd 23687 23688# convert \$build files to toolchain format. 23689to_tool_file_cmd=$lt_cv_to_tool_file_cmd 23690 23691# An object symbol dumper. 23692OBJDUMP=$lt_OBJDUMP 23693 23694# Method to check whether dependent libraries are shared objects. 23695deplibs_check_method=$lt_deplibs_check_method 23696 23697# Command to use when deplibs_check_method = "file_magic". 23698file_magic_cmd=$lt_file_magic_cmd 23699 23700# How to find potential files when deplibs_check_method = "file_magic". 23701file_magic_glob=$lt_file_magic_glob 23702 23703# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 23704want_nocaseglob=$lt_want_nocaseglob 23705 23706# DLL creation program. 23707DLLTOOL=$lt_DLLTOOL 23708 23709# Command to associate shared and link libraries. 23710sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 23711 23712# The archiver. 23713AR=$lt_AR 23714 23715# Flags to create an archive. 23716AR_FLAGS=$lt_AR_FLAGS 23717 23718# How to feed a file listing to the archiver. 23719archiver_list_spec=$lt_archiver_list_spec 23720 23721# A symbol stripping program. 23722STRIP=$lt_STRIP 23723 23724# Commands used to install an old-style archive. 23725RANLIB=$lt_RANLIB 23726old_postinstall_cmds=$lt_old_postinstall_cmds 23727old_postuninstall_cmds=$lt_old_postuninstall_cmds 23728 23729# Whether to use a lock for old archive extraction. 23730lock_old_archive_extraction=$lock_old_archive_extraction 23731 23732# A C compiler. 23733LTCC=$lt_CC 23734 23735# LTCC compiler flags. 23736LTCFLAGS=$lt_CFLAGS 23737 23738# Take the output of nm and produce a listing of raw symbols and C names. 23739global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 23740 23741# Transform the output of nm in a proper C declaration. 23742global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 23743 23744# Transform the output of nm into a list of symbols to manually relocate. 23745global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 23746 23747# Transform the output of nm in a C name address pair. 23748global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 23749 23750# Transform the output of nm in a C name address pair when lib prefix is needed. 23751global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 23752 23753# The name lister interface. 23754nm_interface=$lt_lt_cv_nm_interface 23755 23756# Specify filename containing input files for \$NM. 23757nm_file_list_spec=$lt_nm_file_list_spec 23758 23759# The root where to search for dependent libraries,and where our libraries should be installed. 23760lt_sysroot=$lt_sysroot 23761 23762# Command to truncate a binary pipe. 23763lt_truncate_bin=$lt_lt_cv_truncate_bin 23764 23765# The name of the directory that contains temporary libtool files. 23766objdir=$objdir 23767 23768# Used to examine libraries when file_magic_cmd begins with "file". 23769MAGIC_CMD=$MAGIC_CMD 23770 23771# Must we lock files when doing compilation? 23772need_locks=$lt_need_locks 23773 23774# Manifest tool. 23775MANIFEST_TOOL=$lt_MANIFEST_TOOL 23776 23777# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 23778DSYMUTIL=$lt_DSYMUTIL 23779 23780# Tool to change global to local symbols on Mac OS X. 23781NMEDIT=$lt_NMEDIT 23782 23783# Tool to manipulate fat objects and archives on Mac OS X. 23784LIPO=$lt_LIPO 23785 23786# ldd/readelf like tool for Mach-O binaries on Mac OS X. 23787OTOOL=$lt_OTOOL 23788 23789# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 23790OTOOL64=$lt_OTOOL64 23791 23792# Old archive suffix (normally "a"). 23793libext=$libext 23794 23795# Shared library suffix (normally ".so"). 23796shrext_cmds=$lt_shrext_cmds 23797 23798# The commands to extract the exported symbol list from a shared archive. 23799extract_expsyms_cmds=$lt_extract_expsyms_cmds 23800 23801# Variables whose values should be saved in libtool wrapper scripts and 23802# restored at link time. 23803variables_saved_for_relink=$lt_variables_saved_for_relink 23804 23805# Do we need the "lib" prefix for modules? 23806need_lib_prefix=$need_lib_prefix 23807 23808# Do we need a version for libraries? 23809need_version=$need_version 23810 23811# Library versioning type. 23812version_type=$version_type 23813 23814# Shared library runtime path variable. 23815runpath_var=$runpath_var 23816 23817# Shared library path variable. 23818shlibpath_var=$shlibpath_var 23819 23820# Is shlibpath searched before the hard-coded library search path? 23821shlibpath_overrides_runpath=$shlibpath_overrides_runpath 23822 23823# Format of library name prefix. 23824libname_spec=$lt_libname_spec 23825 23826# List of archive names. First name is the real one, the rest are links. 23827# The last name is the one that the linker finds with -lNAME 23828library_names_spec=$lt_library_names_spec 23829 23830# The coded name of the library, if different from the real name. 23831soname_spec=$lt_soname_spec 23832 23833# Permission mode override for installation of shared libraries. 23834install_override_mode=$lt_install_override_mode 23835 23836# Command to use after installation of a shared archive. 23837postinstall_cmds=$lt_postinstall_cmds 23838 23839# Command to use after uninstallation of a shared archive. 23840postuninstall_cmds=$lt_postuninstall_cmds 23841 23842# Commands used to finish a libtool library installation in a directory. 23843finish_cmds=$lt_finish_cmds 23844 23845# As "finish_cmds", except a single script fragment to be evaled but 23846# not shown. 23847finish_eval=$lt_finish_eval 23848 23849# Whether we should hardcode library paths into libraries. 23850hardcode_into_libs=$hardcode_into_libs 23851 23852# Compile-time system search path for libraries. 23853sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 23854 23855# Detected run-time system search path for libraries. 23856sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 23857 23858# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 23859configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 23860 23861# Whether dlopen is supported. 23862dlopen_support=$enable_dlopen 23863 23864# Whether dlopen of programs is supported. 23865dlopen_self=$enable_dlopen_self 23866 23867# Whether dlopen of statically linked programs is supported. 23868dlopen_self_static=$enable_dlopen_self_static 23869 23870# Commands to strip libraries. 23871old_striplib=$lt_old_striplib 23872striplib=$lt_striplib 23873 23874 23875# The linker used to build libraries. 23876LD=$lt_LD 23877 23878# How to create reloadable object files. 23879reload_flag=$lt_reload_flag 23880reload_cmds=$lt_reload_cmds 23881 23882# Commands used to build an old-style archive. 23883old_archive_cmds=$lt_old_archive_cmds 23884 23885# A language specific compiler. 23886CC=$lt_compiler 23887 23888# Is the compiler the GNU compiler? 23889with_gcc=$GCC 23890 23891# Compiler flag to turn off builtin functions. 23892no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 23893 23894# Additional compiler flags for building library objects. 23895pic_flag=$lt_lt_prog_compiler_pic 23896 23897# How to pass a linker flag through the compiler. 23898wl=$lt_lt_prog_compiler_wl 23899 23900# Compiler flag to prevent dynamic linking. 23901link_static_flag=$lt_lt_prog_compiler_static 23902 23903# Does compiler simultaneously support -c and -o options? 23904compiler_c_o=$lt_lt_cv_prog_compiler_c_o 23905 23906# Whether or not to add -lc for building shared libraries. 23907build_libtool_need_lc=$archive_cmds_need_lc 23908 23909# Whether or not to disallow shared libs when runtime libs are static. 23910allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 23911 23912# Compiler flag to allow reflexive dlopens. 23913export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 23914 23915# Compiler flag to generate shared objects directly from archives. 23916whole_archive_flag_spec=$lt_whole_archive_flag_spec 23917 23918# Whether the compiler copes with passing no objects directly. 23919compiler_needs_object=$lt_compiler_needs_object 23920 23921# Create an old-style archive from a shared archive. 23922old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 23923 23924# Create a temporary old-style archive to link instead of a shared archive. 23925old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 23926 23927# Commands used to build a shared archive. 23928archive_cmds=$lt_archive_cmds 23929archive_expsym_cmds=$lt_archive_expsym_cmds 23930 23931# Commands used to build a loadable module if different from building 23932# a shared archive. 23933module_cmds=$lt_module_cmds 23934module_expsym_cmds=$lt_module_expsym_cmds 23935 23936# Whether we are building with GNU ld or not. 23937with_gnu_ld=$lt_with_gnu_ld 23938 23939# Flag that allows shared libraries with undefined symbols to be built. 23940allow_undefined_flag=$lt_allow_undefined_flag 23941 23942# Flag that enforces no undefined symbols. 23943no_undefined_flag=$lt_no_undefined_flag 23944 23945# Flag to hardcode \$libdir into a binary during linking. 23946# This must work even if \$libdir does not exist 23947hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 23948 23949# Whether we need a single "-rpath" flag with a separated argument. 23950hardcode_libdir_separator=$lt_hardcode_libdir_separator 23951 23952# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23953# DIR into the resulting binary. 23954hardcode_direct=$hardcode_direct 23955 23956# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23957# DIR into the resulting binary and the resulting library dependency is 23958# "absolute",i.e impossible to change by setting \$shlibpath_var if the 23959# library is relocated. 23960hardcode_direct_absolute=$hardcode_direct_absolute 23961 23962# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23963# into the resulting binary. 23964hardcode_minus_L=$hardcode_minus_L 23965 23966# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23967# into the resulting binary. 23968hardcode_shlibpath_var=$hardcode_shlibpath_var 23969 23970# Set to "yes" if building a shared library automatically hardcodes DIR 23971# into the library and all subsequent libraries and executables linked 23972# against it. 23973hardcode_automatic=$hardcode_automatic 23974 23975# Set to yes if linker adds runtime paths of dependent libraries 23976# to runtime path list. 23977inherit_rpath=$inherit_rpath 23978 23979# Whether libtool must link a program against all its dependency libraries. 23980link_all_deplibs=$link_all_deplibs 23981 23982# Set to "yes" if exported symbols are required. 23983always_export_symbols=$always_export_symbols 23984 23985# The commands to list exported symbols. 23986export_symbols_cmds=$lt_export_symbols_cmds 23987 23988# Symbols that should not be listed in the preloaded symbols. 23989exclude_expsyms=$lt_exclude_expsyms 23990 23991# Symbols that must always be exported. 23992include_expsyms=$lt_include_expsyms 23993 23994# Commands necessary for linking programs (against libraries) with templates. 23995prelink_cmds=$lt_prelink_cmds 23996 23997# Commands necessary for finishing linking programs. 23998postlink_cmds=$lt_postlink_cmds 23999 24000# Specify filename containing input files. 24001file_list_spec=$lt_file_list_spec 24002 24003# How to hardcode a shared library path into an executable. 24004hardcode_action=$hardcode_action 24005 24006# ### END LIBTOOL CONFIG 24007 24008_LT_EOF 24009 24010 cat <<'_LT_EOF' >> "$cfgfile" 24011 24012# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 24013 24014# func_munge_path_list VARIABLE PATH 24015# ----------------------------------- 24016# VARIABLE is name of variable containing _space_ separated list of 24017# directories to be munged by the contents of PATH, which is string 24018# having a format: 24019# "DIR[:DIR]:" 24020# string "DIR[ DIR]" will be prepended to VARIABLE 24021# ":DIR[:DIR]" 24022# string "DIR[ DIR]" will be appended to VARIABLE 24023# "DIRP[:DIRP]::[DIRA:]DIRA" 24024# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 24025# "DIRA[ DIRA]" will be appended to VARIABLE 24026# "DIR[:DIR]" 24027# VARIABLE will be replaced by "DIR[ DIR]" 24028func_munge_path_list () 24029{ 24030 case x$2 in 24031 x) 24032 ;; 24033 *:) 24034 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 24035 ;; 24036 x:*) 24037 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 24038 ;; 24039 *::*) 24040 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 24041 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 24042 ;; 24043 *) 24044 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 24045 ;; 24046 esac 24047} 24048 24049 24050# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 24051func_cc_basename () 24052{ 24053 for cc_temp in $*""; do 24054 case $cc_temp in 24055 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 24056 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 24057 \-*) ;; 24058 *) break;; 24059 esac 24060 done 24061 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 24062} 24063 24064 24065# ### END FUNCTIONS SHARED WITH CONFIGURE 24066 24067_LT_EOF 24068 24069 case $host_os in 24070 aix3*) 24071 cat <<\_LT_EOF >> "$cfgfile" 24072# AIX sometimes has problems with the GCC collect2 program. For some 24073# reason, if we set the COLLECT_NAMES environment variable, the problems 24074# vanish in a puff of smoke. 24075if test set != "${COLLECT_NAMES+set}"; then 24076 COLLECT_NAMES= 24077 export COLLECT_NAMES 24078fi 24079_LT_EOF 24080 ;; 24081 esac 24082 24083 24084ltmain=$ac_aux_dir/ltmain.sh 24085 24086 24087 # We use sed instead of cat because bash on DJGPP gets confused if 24088 # if finds mixed CR/LF and LF-only lines. Since sed operates in 24089 # text mode, it properly converts lines to CR/LF. This bash problem 24090 # is reportedly fixed, but why not run on old versions too? 24091 sed '$q' "$ltmain" >> "$cfgfile" \ 24092 || (rm -f "$cfgfile"; exit 1) 24093 24094 mv -f "$cfgfile" "$ofile" || 24095 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 24096 chmod +x "$ofile" 24097 24098 ;; 24099 24100 esac 24101done # for ac_tag 24102 24103 24104as_fn_exit 0 24105_ACEOF 24106ac_clean_files=$ac_clean_files_save 24107 24108test $ac_write_fail = 0 || 24109 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 24110 24111 24112# configure is writing to config.log, and then calls config.status. 24113# config.status does its own redirection, appending to config.log. 24114# Unfortunately, on DOS this fails, as config.log is still kept open 24115# by configure, so config.status won't be able to write to it; its 24116# output is simply discarded. So we exec the FD to /dev/null, 24117# effectively closing config.log, so it can be properly (re)opened and 24118# appended to by config.status. When coming back to configure, we 24119# need to make the FD available again. 24120if test "$no_create" != yes; then 24121 ac_cs_success=: 24122 ac_config_status_args= 24123 test "$silent" = yes && 24124 ac_config_status_args="$ac_config_status_args --quiet" 24125 exec 5>/dev/null 24126 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24127 exec 5>>config.log 24128 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24129 # would make configure fail if this is the last instruction. 24130 $ac_cs_success || as_fn_exit 1 24131fi 24132if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 24133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 24134$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 24135fi 24136 24137 24138echo "" 24139echo "X11 will be built with the following settings:" 24140echo " Loadable i18n module support: "$XLIB_LOADABLE_I18N 24141echo " Loadable xcursor library support: "$XLIB_LOADABLE_XCURSOR 24142echo " Threading support: "$xthreads 24143echo " Use Threads safe API: "$mtsafeapi 24144echo " Threads stubs in libX11: "$thrstubs 24145echo " XCMS: "$XCMS 24146echo " Internationalization support: "$XLOCALE 24147echo " XF86BigFont support: "$XF86BIGFONT 24148echo " XKB support: "$XKB 24149echo " XLOCALEDIR environment variable support: "$ENABLE_XLOCALEDIR 24150echo " Compose table cache enabled: "$COMPOSECACHE 24151echo " Functional specs building enabled: "$build_specs 24152echo "" 24153