configure revision 0f8248bf
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libX11 1.6.3. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 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://bugs.freedesktop.org/enter_bug.cgi?product=xorg 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.3' 655PACKAGE_STRING='libX11 1.6.3' 656PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 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 700LIBOBJS 701XTMALLOC_ZERO_CFLAGS 702XMALLOC_ZERO_CFLAGS 703MALLOC_ZERO_CFLAGS 704XERRORDB 705XKEYSYMDB 706locales 707X11_LOCALEDIR 708XLOCALEDIR 709X11_LOCALELIBDIR 710XLOCALELIBDIR 711X11_LOCALEDATADIR 712XLOCALEDATADIR 713X11_LIBS 714X11_CFLAGS 715X11_LIBDIR 716X11_DATADIR 717MAKE_LINT_LIB_FALSE 718MAKE_LINT_LIB_TRUE 719LINTLIB 720LINT_FALSE 721LINT_TRUE 722LINT_FLAGS 723LINT 724XKBPROTO_REQUIRES 725XKB_FALSE 726XKB_TRUE 727BIGFONT_LIBS 728BIGFONT_CFLAGS 729XLOCALE_FALSE 730XLOCALE_TRUE 731XCMS_FALSE 732XCMS_TRUE 733KEYSYMDEFS 734XTHREAD_CFLAGS 735XTHREADLIB 736THRSTUBS_FALSE 737THRSTUBS_TRUE 738LAUNCHD 739OS2_FALSE 740OS2_TRUE 741WCHAR32 742XLIB_LOADABLE_I18N_FALSE 743XLIB_LOADABLE_I18N_TRUE 744I18N_MODULE_LIBS 745X11_EXTRA_DEPS 746LDFLAGS_FOR_BUILD 747CFLAGS_FOR_BUILD 748CPPFLAGS_FOR_BUILD 749CC_FOR_BUILD 750HAVE_PERL_FALSE 751HAVE_PERL_TRUE 752PERL 753TRADITIONALCPPFLAGS 754RAWCPPFLAGS 755RAWCPP 756HAVE_STYLESHEETS_FALSE 757HAVE_STYLESHEETS_TRUE 758XSL_STYLESHEET 759STYLESHEET_SRCDIR 760XORG_SGML_PATH 761HAVE_XSLTPROC_FALSE 762HAVE_XSLTPROC_TRUE 763XSLTPROC 764HAVE_FOP_FALSE 765HAVE_FOP_TRUE 766FOP 767HAVE_XMLTO_FALSE 768HAVE_XMLTO_TRUE 769HAVE_XMLTO_TEXT_FALSE 770HAVE_XMLTO_TEXT_TRUE 771XMLTO 772ENABLE_SPECS_FALSE 773ENABLE_SPECS_TRUE 774MAN_SUBSTS 775XORG_MAN_PAGE 776ADMIN_MAN_DIR 777DRIVER_MAN_DIR 778MISC_MAN_DIR 779FILE_MAN_DIR 780LIB_MAN_DIR 781APP_MAN_DIR 782ADMIN_MAN_SUFFIX 783DRIVER_MAN_SUFFIX 784MISC_MAN_SUFFIX 785FILE_MAN_SUFFIX 786LIB_MAN_SUFFIX 787APP_MAN_SUFFIX 788INSTALL_CMD 789PKG_CONFIG 790CHANGELOG_CMD 791STRICT_CFLAGS 792CWARNFLAGS 793BASE_CFLAGS 794OTOOL64 795OTOOL 796LIPO 797NMEDIT 798DSYMUTIL 799MANIFEST_TOOL 800RANLIB 801ac_ct_AR 802AR 803DLLTOOL 804OBJDUMP 805LN_S 806NM 807ac_ct_DUMPBIN 808DUMPBIN 809LD 810FGREP 811SED 812LIBTOOL 813AM_BACKSLASH 814AM_DEFAULT_VERBOSITY 815AM_DEFAULT_V 816AM_V 817am__fastdepCC_FALSE 818am__fastdepCC_TRUE 819CCDEPMODE 820am__nodep 821AMDEPBACKSLASH 822AMDEP_FALSE 823AMDEP_TRUE 824am__quote 825am__include 826DEPDIR 827am__untar 828am__tar 829AMTAR 830am__leading_dot 831SET_MAKE 832AWK 833mkdir_p 834MKDIR_P 835INSTALL_STRIP_PROGRAM 836STRIP 837install_sh 838MAKEINFO 839AUTOHEADER 840AUTOMAKE 841AUTOCONF 842ACLOCAL 843VERSION 844PACKAGE 845CYGPATH_W 846am__isrc 847INSTALL_DATA 848INSTALL_SCRIPT 849INSTALL_PROGRAM 850EGREP 851GREP 852CPP 853OBJEXT 854EXEEXT 855ac_ct_CC 856CPPFLAGS 857LDFLAGS 858CFLAGS 859CC 860host_os 861host_vendor 862host_cpu 863host 864build_os 865build_vendor 866build_cpu 867build 868target_alias 869host_alias 870build_alias 871LIBS 872ECHO_T 873ECHO_N 874ECHO_C 875DEFS 876mandir 877localedir 878libdir 879psdir 880pdfdir 881dvidir 882htmldir 883infodir 884docdir 885oldincludedir 886includedir 887localstatedir 888sharedstatedir 889sysconfdir 890datadir 891datarootdir 892libexecdir 893sbindir 894bindir 895program_transform_name 896prefix 897exec_prefix 898PACKAGE_URL 899PACKAGE_BUGREPORT 900PACKAGE_STRING 901PACKAGE_VERSION 902PACKAGE_TARNAME 903PACKAGE_NAME 904PATH_SEPARATOR 905SHELL' 906ac_subst_files='' 907ac_user_opts=' 908enable_option_checking 909enable_dependency_tracking 910enable_silent_rules 911enable_shared 912enable_static 913with_pic 914enable_fast_install 915with_gnu_ld 916with_sysroot 917enable_libtool_lock 918enable_selective_werror 919enable_strict_compilation 920enable_specs 921with_xmlto 922with_fop 923with_xsltproc 924with_perl 925enable_unix_transport 926enable_tcp_transport 927enable_ipv6 928enable_local_transport 929enable_secure_rpc 930with_local_transport_order 931enable_loadable_i18n 932enable_loadable_xcursor 933with_launchd 934enable_xthreads 935with_keysymdefdir 936enable_xcms 937enable_xlocale 938enable_xlocaledir 939enable_xf86bigfont 940enable_xkb 941enable_composecache 942with_lint 943enable_lint_library 944with_locale_lib_dir 945enable_malloc0returnsnull 946' 947 ac_precious_vars='build_alias 948host_alias 949target_alias 950CC 951CFLAGS 952LDFLAGS 953LIBS 954CPPFLAGS 955CPP 956PKG_CONFIG 957XMLTO 958FOP 959XSLTPROC 960PERL 961BIGFONT_CFLAGS 962BIGFONT_LIBS 963LINT 964LINT_FLAGS 965X11_CFLAGS 966X11_LIBS' 967 968 969# Initialize some variables set by options. 970ac_init_help= 971ac_init_version=false 972ac_unrecognized_opts= 973ac_unrecognized_sep= 974# The variables have the same names as the options, with 975# dashes changed to underlines. 976cache_file=/dev/null 977exec_prefix=NONE 978no_create= 979no_recursion= 980prefix=NONE 981program_prefix=NONE 982program_suffix=NONE 983program_transform_name=s,x,x, 984silent= 985site= 986srcdir= 987verbose= 988x_includes=NONE 989x_libraries=NONE 990 991# Installation directory options. 992# These are left unexpanded so users can "make install exec_prefix=/foo" 993# and all the variables that are supposed to be based on exec_prefix 994# by default will actually change. 995# Use braces instead of parens because sh, perl, etc. also accept them. 996# (The list follows the same order as the GNU Coding Standards.) 997bindir='${exec_prefix}/bin' 998sbindir='${exec_prefix}/sbin' 999libexecdir='${exec_prefix}/libexec' 1000datarootdir='${prefix}/share' 1001datadir='${datarootdir}' 1002sysconfdir='${prefix}/etc' 1003sharedstatedir='${prefix}/com' 1004localstatedir='${prefix}/var' 1005includedir='${prefix}/include' 1006oldincludedir='/usr/include' 1007docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1008infodir='${datarootdir}/info' 1009htmldir='${docdir}' 1010dvidir='${docdir}' 1011pdfdir='${docdir}' 1012psdir='${docdir}' 1013libdir='${exec_prefix}/lib' 1014localedir='${datarootdir}/locale' 1015mandir='${datarootdir}/man' 1016 1017ac_prev= 1018ac_dashdash= 1019for ac_option 1020do 1021 # If the previous option needs an argument, assign it. 1022 if test -n "$ac_prev"; then 1023 eval $ac_prev=\$ac_option 1024 ac_prev= 1025 continue 1026 fi 1027 1028 case $ac_option in 1029 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1030 *=) ac_optarg= ;; 1031 *) ac_optarg=yes ;; 1032 esac 1033 1034 # Accept the important Cygnus configure options, so we can diagnose typos. 1035 1036 case $ac_dashdash$ac_option in 1037 --) 1038 ac_dashdash=yes ;; 1039 1040 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1041 ac_prev=bindir ;; 1042 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1043 bindir=$ac_optarg ;; 1044 1045 -build | --build | --buil | --bui | --bu) 1046 ac_prev=build_alias ;; 1047 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1048 build_alias=$ac_optarg ;; 1049 1050 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1051 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1052 ac_prev=cache_file ;; 1053 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1054 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1055 cache_file=$ac_optarg ;; 1056 1057 --config-cache | -C) 1058 cache_file=config.cache ;; 1059 1060 -datadir | --datadir | --datadi | --datad) 1061 ac_prev=datadir ;; 1062 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1063 datadir=$ac_optarg ;; 1064 1065 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1066 | --dataroo | --dataro | --datar) 1067 ac_prev=datarootdir ;; 1068 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1069 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1070 datarootdir=$ac_optarg ;; 1071 1072 -disable-* | --disable-*) 1073 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1074 # Reject names that are not valid shell variable names. 1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1076 as_fn_error $? "invalid feature name: $ac_useropt" 1077 ac_useropt_orig=$ac_useropt 1078 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1079 case $ac_user_opts in 1080 *" 1081"enable_$ac_useropt" 1082"*) ;; 1083 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1084 ac_unrecognized_sep=', ';; 1085 esac 1086 eval enable_$ac_useropt=no ;; 1087 1088 -docdir | --docdir | --docdi | --doc | --do) 1089 ac_prev=docdir ;; 1090 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1091 docdir=$ac_optarg ;; 1092 1093 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1094 ac_prev=dvidir ;; 1095 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1096 dvidir=$ac_optarg ;; 1097 1098 -enable-* | --enable-*) 1099 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1100 # Reject names that are not valid shell variable names. 1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1102 as_fn_error $? "invalid feature name: $ac_useropt" 1103 ac_useropt_orig=$ac_useropt 1104 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1105 case $ac_user_opts in 1106 *" 1107"enable_$ac_useropt" 1108"*) ;; 1109 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1110 ac_unrecognized_sep=', ';; 1111 esac 1112 eval enable_$ac_useropt=\$ac_optarg ;; 1113 1114 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1115 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1116 | --exec | --exe | --ex) 1117 ac_prev=exec_prefix ;; 1118 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1119 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1120 | --exec=* | --exe=* | --ex=*) 1121 exec_prefix=$ac_optarg ;; 1122 1123 -gas | --gas | --ga | --g) 1124 # Obsolete; use --with-gas. 1125 with_gas=yes ;; 1126 1127 -help | --help | --hel | --he | -h) 1128 ac_init_help=long ;; 1129 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1130 ac_init_help=recursive ;; 1131 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1132 ac_init_help=short ;; 1133 1134 -host | --host | --hos | --ho) 1135 ac_prev=host_alias ;; 1136 -host=* | --host=* | --hos=* | --ho=*) 1137 host_alias=$ac_optarg ;; 1138 1139 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1140 ac_prev=htmldir ;; 1141 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1142 | --ht=*) 1143 htmldir=$ac_optarg ;; 1144 1145 -includedir | --includedir | --includedi | --included | --include \ 1146 | --includ | --inclu | --incl | --inc) 1147 ac_prev=includedir ;; 1148 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1149 | --includ=* | --inclu=* | --incl=* | --inc=*) 1150 includedir=$ac_optarg ;; 1151 1152 -infodir | --infodir | --infodi | --infod | --info | --inf) 1153 ac_prev=infodir ;; 1154 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1155 infodir=$ac_optarg ;; 1156 1157 -libdir | --libdir | --libdi | --libd) 1158 ac_prev=libdir ;; 1159 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1160 libdir=$ac_optarg ;; 1161 1162 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1163 | --libexe | --libex | --libe) 1164 ac_prev=libexecdir ;; 1165 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1166 | --libexe=* | --libex=* | --libe=*) 1167 libexecdir=$ac_optarg ;; 1168 1169 -localedir | --localedir | --localedi | --localed | --locale) 1170 ac_prev=localedir ;; 1171 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1172 localedir=$ac_optarg ;; 1173 1174 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1175 | --localstate | --localstat | --localsta | --localst | --locals) 1176 ac_prev=localstatedir ;; 1177 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1178 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1179 localstatedir=$ac_optarg ;; 1180 1181 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1182 ac_prev=mandir ;; 1183 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1184 mandir=$ac_optarg ;; 1185 1186 -nfp | --nfp | --nf) 1187 # Obsolete; use --without-fp. 1188 with_fp=no ;; 1189 1190 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1191 | --no-cr | --no-c | -n) 1192 no_create=yes ;; 1193 1194 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1195 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1196 no_recursion=yes ;; 1197 1198 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1199 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1200 | --oldin | --oldi | --old | --ol | --o) 1201 ac_prev=oldincludedir ;; 1202 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1203 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1204 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1205 oldincludedir=$ac_optarg ;; 1206 1207 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1208 ac_prev=prefix ;; 1209 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1210 prefix=$ac_optarg ;; 1211 1212 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1213 | --program-pre | --program-pr | --program-p) 1214 ac_prev=program_prefix ;; 1215 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1216 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1217 program_prefix=$ac_optarg ;; 1218 1219 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1220 | --program-suf | --program-su | --program-s) 1221 ac_prev=program_suffix ;; 1222 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1223 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1224 program_suffix=$ac_optarg ;; 1225 1226 -program-transform-name | --program-transform-name \ 1227 | --program-transform-nam | --program-transform-na \ 1228 | --program-transform-n | --program-transform- \ 1229 | --program-transform | --program-transfor \ 1230 | --program-transfo | --program-transf \ 1231 | --program-trans | --program-tran \ 1232 | --progr-tra | --program-tr | --program-t) 1233 ac_prev=program_transform_name ;; 1234 -program-transform-name=* | --program-transform-name=* \ 1235 | --program-transform-nam=* | --program-transform-na=* \ 1236 | --program-transform-n=* | --program-transform-=* \ 1237 | --program-transform=* | --program-transfor=* \ 1238 | --program-transfo=* | --program-transf=* \ 1239 | --program-trans=* | --program-tran=* \ 1240 | --progr-tra=* | --program-tr=* | --program-t=*) 1241 program_transform_name=$ac_optarg ;; 1242 1243 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1244 ac_prev=pdfdir ;; 1245 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1246 pdfdir=$ac_optarg ;; 1247 1248 -psdir | --psdir | --psdi | --psd | --ps) 1249 ac_prev=psdir ;; 1250 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1251 psdir=$ac_optarg ;; 1252 1253 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1254 | -silent | --silent | --silen | --sile | --sil) 1255 silent=yes ;; 1256 1257 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1258 ac_prev=sbindir ;; 1259 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1260 | --sbi=* | --sb=*) 1261 sbindir=$ac_optarg ;; 1262 1263 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1264 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1265 | --sharedst | --shareds | --shared | --share | --shar \ 1266 | --sha | --sh) 1267 ac_prev=sharedstatedir ;; 1268 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1269 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1270 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1271 | --sha=* | --sh=*) 1272 sharedstatedir=$ac_optarg ;; 1273 1274 -site | --site | --sit) 1275 ac_prev=site ;; 1276 -site=* | --site=* | --sit=*) 1277 site=$ac_optarg ;; 1278 1279 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1280 ac_prev=srcdir ;; 1281 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1282 srcdir=$ac_optarg ;; 1283 1284 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1285 | --syscon | --sysco | --sysc | --sys | --sy) 1286 ac_prev=sysconfdir ;; 1287 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1288 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1289 sysconfdir=$ac_optarg ;; 1290 1291 -target | --target | --targe | --targ | --tar | --ta | --t) 1292 ac_prev=target_alias ;; 1293 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1294 target_alias=$ac_optarg ;; 1295 1296 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1297 verbose=yes ;; 1298 1299 -version | --version | --versio | --versi | --vers | -V) 1300 ac_init_version=: ;; 1301 1302 -with-* | --with-*) 1303 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1304 # Reject names that are not valid shell variable names. 1305 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1306 as_fn_error $? "invalid package name: $ac_useropt" 1307 ac_useropt_orig=$ac_useropt 1308 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1309 case $ac_user_opts in 1310 *" 1311"with_$ac_useropt" 1312"*) ;; 1313 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1314 ac_unrecognized_sep=', ';; 1315 esac 1316 eval with_$ac_useropt=\$ac_optarg ;; 1317 1318 -without-* | --without-*) 1319 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1320 # Reject names that are not valid shell variable names. 1321 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1322 as_fn_error $? "invalid package name: $ac_useropt" 1323 ac_useropt_orig=$ac_useropt 1324 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1325 case $ac_user_opts in 1326 *" 1327"with_$ac_useropt" 1328"*) ;; 1329 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1330 ac_unrecognized_sep=', ';; 1331 esac 1332 eval with_$ac_useropt=no ;; 1333 1334 --x) 1335 # Obsolete; use --with-x. 1336 with_x=yes ;; 1337 1338 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1339 | --x-incl | --x-inc | --x-in | --x-i) 1340 ac_prev=x_includes ;; 1341 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1342 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1343 x_includes=$ac_optarg ;; 1344 1345 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1346 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1347 ac_prev=x_libraries ;; 1348 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1349 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1350 x_libraries=$ac_optarg ;; 1351 1352 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1353Try \`$0 --help' for more information" 1354 ;; 1355 1356 *=*) 1357 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1358 # Reject names that are not valid shell variable names. 1359 case $ac_envvar in #( 1360 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1361 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1362 esac 1363 eval $ac_envvar=\$ac_optarg 1364 export $ac_envvar ;; 1365 1366 *) 1367 # FIXME: should be removed in autoconf 3.0. 1368 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1369 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1370 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1371 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1372 ;; 1373 1374 esac 1375done 1376 1377if test -n "$ac_prev"; then 1378 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1379 as_fn_error $? "missing argument to $ac_option" 1380fi 1381 1382if test -n "$ac_unrecognized_opts"; then 1383 case $enable_option_checking in 1384 no) ;; 1385 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1386 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1387 esac 1388fi 1389 1390# Check all directory arguments for consistency. 1391for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1392 datadir sysconfdir sharedstatedir localstatedir includedir \ 1393 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1394 libdir localedir mandir 1395do 1396 eval ac_val=\$$ac_var 1397 # Remove trailing slashes. 1398 case $ac_val in 1399 */ ) 1400 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1401 eval $ac_var=\$ac_val;; 1402 esac 1403 # Be sure to have absolute directory names. 1404 case $ac_val in 1405 [\\/$]* | ?:[\\/]* ) continue;; 1406 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1407 esac 1408 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1409done 1410 1411# There might be people who depend on the old broken behavior: `$host' 1412# used to hold the argument of --host etc. 1413# FIXME: To remove some day. 1414build=$build_alias 1415host=$host_alias 1416target=$target_alias 1417 1418# FIXME: To remove some day. 1419if test "x$host_alias" != x; then 1420 if test "x$build_alias" = x; then 1421 cross_compiling=maybe 1422 elif test "x$build_alias" != "x$host_alias"; then 1423 cross_compiling=yes 1424 fi 1425fi 1426 1427ac_tool_prefix= 1428test -n "$host_alias" && ac_tool_prefix=$host_alias- 1429 1430test "$silent" = yes && exec 6>/dev/null 1431 1432 1433ac_pwd=`pwd` && test -n "$ac_pwd" && 1434ac_ls_di=`ls -di .` && 1435ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1436 as_fn_error $? "working directory cannot be determined" 1437test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1438 as_fn_error $? "pwd does not report name of working directory" 1439 1440 1441# Find the source files, if location was not specified. 1442if test -z "$srcdir"; then 1443 ac_srcdir_defaulted=yes 1444 # Try the directory containing this script, then the parent directory. 1445 ac_confdir=`$as_dirname -- "$as_myself" || 1446$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1447 X"$as_myself" : 'X\(//\)[^/]' \| \ 1448 X"$as_myself" : 'X\(//\)$' \| \ 1449 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1450$as_echo X"$as_myself" | 1451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1452 s//\1/ 1453 q 1454 } 1455 /^X\(\/\/\)[^/].*/{ 1456 s//\1/ 1457 q 1458 } 1459 /^X\(\/\/\)$/{ 1460 s//\1/ 1461 q 1462 } 1463 /^X\(\/\).*/{ 1464 s//\1/ 1465 q 1466 } 1467 s/.*/./; q'` 1468 srcdir=$ac_confdir 1469 if test ! -r "$srcdir/$ac_unique_file"; then 1470 srcdir=.. 1471 fi 1472else 1473 ac_srcdir_defaulted=no 1474fi 1475if test ! -r "$srcdir/$ac_unique_file"; then 1476 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1477 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1478fi 1479ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1480ac_abs_confdir=`( 1481 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1482 pwd)` 1483# When building in place, set srcdir=. 1484if test "$ac_abs_confdir" = "$ac_pwd"; then 1485 srcdir=. 1486fi 1487# Remove unnecessary trailing slashes from srcdir. 1488# Double slashes in file names in object file debugging info 1489# mess up M-x gdb in Emacs. 1490case $srcdir in 1491*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1492esac 1493for ac_var in $ac_precious_vars; do 1494 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1495 eval ac_env_${ac_var}_value=\$${ac_var} 1496 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1497 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1498done 1499 1500# 1501# Report the --help message. 1502# 1503if test "$ac_init_help" = "long"; then 1504 # Omit some internal or obsolete options to make the list less imposing. 1505 # This message is too long to be a string in the A/UX 3.1 sh. 1506 cat <<_ACEOF 1507\`configure' configures libX11 1.6.3 to adapt to many kinds of systems. 1508 1509Usage: $0 [OPTION]... [VAR=VALUE]... 1510 1511To assign environment variables (e.g., CC, CFLAGS...), specify them as 1512VAR=VALUE. See below for descriptions of some of the useful variables. 1513 1514Defaults for the options are specified in brackets. 1515 1516Configuration: 1517 -h, --help display this help and exit 1518 --help=short display options specific to this package 1519 --help=recursive display the short help of all the included packages 1520 -V, --version display version information and exit 1521 -q, --quiet, --silent do not print \`checking ...' messages 1522 --cache-file=FILE cache test results in FILE [disabled] 1523 -C, --config-cache alias for \`--cache-file=config.cache' 1524 -n, --no-create do not create output files 1525 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1526 1527Installation directories: 1528 --prefix=PREFIX install architecture-independent files in PREFIX 1529 [$ac_default_prefix] 1530 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1531 [PREFIX] 1532 1533By default, \`make install' will install all the files in 1534\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1535an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1536for instance \`--prefix=\$HOME'. 1537 1538For better control, use the options below. 1539 1540Fine tuning of the installation directories: 1541 --bindir=DIR user executables [EPREFIX/bin] 1542 --sbindir=DIR system admin executables [EPREFIX/sbin] 1543 --libexecdir=DIR program executables [EPREFIX/libexec] 1544 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1545 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1546 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1547 --libdir=DIR object code libraries [EPREFIX/lib] 1548 --includedir=DIR C header files [PREFIX/include] 1549 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1550 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1551 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1552 --infodir=DIR info documentation [DATAROOTDIR/info] 1553 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1554 --mandir=DIR man documentation [DATAROOTDIR/man] 1555 --docdir=DIR documentation root [DATAROOTDIR/doc/libX11] 1556 --htmldir=DIR html documentation [DOCDIR] 1557 --dvidir=DIR dvi documentation [DOCDIR] 1558 --pdfdir=DIR pdf documentation [DOCDIR] 1559 --psdir=DIR ps documentation [DOCDIR] 1560_ACEOF 1561 1562 cat <<\_ACEOF 1563 1564Program names: 1565 --program-prefix=PREFIX prepend PREFIX to installed program names 1566 --program-suffix=SUFFIX append SUFFIX to installed program names 1567 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1568 1569System types: 1570 --build=BUILD configure for building on BUILD [guessed] 1571 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1572_ACEOF 1573fi 1574 1575if test -n "$ac_init_help"; then 1576 case $ac_init_help in 1577 short | recursive ) echo "Configuration of libX11 1.6.3:";; 1578 esac 1579 cat <<\_ACEOF 1580 1581Optional Features: 1582 --disable-option-checking ignore unrecognized --enable/--with options 1583 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1584 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1585 --enable-dependency-tracking 1586 do not reject slow dependency extractors 1587 --disable-dependency-tracking 1588 speeds up one-time build 1589 --enable-silent-rules less verbose build output (undo: "make V=1") 1590 --disable-silent-rules verbose build output (undo: "make V=0") 1591 --enable-shared[=PKGS] build shared libraries [default=yes] 1592 --enable-static[=PKGS] build static libraries [default=yes] 1593 --enable-fast-install[=PKGS] 1594 optimize for fast installation [default=yes] 1595 --disable-libtool-lock avoid locking (might break parallel builds) 1596 --disable-selective-werror 1597 Turn off selective compiler errors. (default: 1598 enabled) 1599 --enable-strict-compilation 1600 Enable all warnings from compiler and make them 1601 errors (default: disabled) 1602 --enable-specs Enable building the specs (default: yes) 1603 --enable-unix-transport Enable UNIX domain socket transport 1604 --enable-tcp-transport Enable TCP socket transport 1605 --enable-ipv6 Enable IPv6 support 1606 --enable-local-transport 1607 Enable os-specific local transport 1608 --enable-secure-rpc Enable Secure RPC 1609 --enable-loadable-i18n Controls loadable i18n module support 1610 --disable-loadable-xcursor 1611 Controls loadable xcursor library support 1612 --disable-xthreads Disable Xlib support for Multithreading 1613 --disable-xcms Disable Xlib support for CMS *EXPERIMENTAL* 1614 --disable-xlocale Disable Xlib locale implementation *EXPERIMENTAL* 1615 --enable-xlocaledir Enable XLOCALEDIR environment variable support 1616 --disable-xf86bigfont Disable XF86BigFont extension support 1617 --disable-xkb Disable XKB support *EXPERIMENTAL* 1618 --disable-composecache Disable compose table cache support 1619 --enable-lint-library Create lint library (default: disabled) 1620 --enable-malloc0returnsnull 1621 malloc(0) returns NULL (default: auto) 1622 1623Optional Packages: 1624 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1625 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1626 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1627 both] 1628 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1629 --with-sysroot=DIR Search for dependent libraries within DIR 1630 (or the compiler's sysroot if not specified). 1631 --with-xmlto Use xmlto to regenerate documentation (default: 1632 auto) 1633 --with-fop Use fop to regenerate documentation (default: no) 1634 --with-xsltproc Use xsltproc for the transformation of XML documents 1635 (default: auto) 1636 --with-perl Use perl for extracting information from files 1637 (default: auto) 1638 --with-local-transport-order=LIST 1639 preference sorted list of transport types to try for 1640 local connections 1641 --with-launchd Build with support for Apple's launchd (default: 1642 auto) 1643 --with-keysymdefdir=DIR The location of keysymdef.h (defaults to xproto 1644 include dir) 1645 --with-lint Use a lint-style source code checker (default: 1646 disabled) 1647 --with-locale-lib-dir=DIR 1648 Directory where locale libraries files are installed 1649 (default: $libdir/X11/locale) 1650 1651Some influential environment variables: 1652 CC C compiler command 1653 CFLAGS C compiler flags 1654 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1655 nonstandard directory <lib dir> 1656 LIBS libraries to pass to the linker, e.g. -l<library> 1657 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1658 you have headers in a nonstandard directory <include dir> 1659 CPP C preprocessor 1660 PKG_CONFIG path to pkg-config utility 1661 XMLTO Path to xmlto command 1662 FOP Path to fop command 1663 XSLTPROC Path to xsltproc command 1664 PERL Path to perl command 1665 BIGFONT_CFLAGS 1666 C compiler flags for BIGFONT, overriding pkg-config 1667 BIGFONT_LIBS 1668 linker flags for BIGFONT, overriding pkg-config 1669 LINT Path to a lint-style command 1670 LINT_FLAGS Flags for the lint-style command 1671 X11_CFLAGS C compiler flags for X11, overriding pkg-config 1672 X11_LIBS linker flags for X11, overriding pkg-config 1673 1674Use these variables to override the choices made by `configure' or to help 1675it to find libraries and programs with nonstandard names/locations. 1676 1677Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1678_ACEOF 1679ac_status=$? 1680fi 1681 1682if test "$ac_init_help" = "recursive"; then 1683 # If there are subdirs, report their specific --help. 1684 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1685 test -d "$ac_dir" || 1686 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1687 continue 1688 ac_builddir=. 1689 1690case "$ac_dir" in 1691.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1692*) 1693 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1694 # A ".." for each directory in $ac_dir_suffix. 1695 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1696 case $ac_top_builddir_sub in 1697 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1698 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1699 esac ;; 1700esac 1701ac_abs_top_builddir=$ac_pwd 1702ac_abs_builddir=$ac_pwd$ac_dir_suffix 1703# for backward compatibility: 1704ac_top_builddir=$ac_top_build_prefix 1705 1706case $srcdir in 1707 .) # We are building in place. 1708 ac_srcdir=. 1709 ac_top_srcdir=$ac_top_builddir_sub 1710 ac_abs_top_srcdir=$ac_pwd ;; 1711 [\\/]* | ?:[\\/]* ) # Absolute name. 1712 ac_srcdir=$srcdir$ac_dir_suffix; 1713 ac_top_srcdir=$srcdir 1714 ac_abs_top_srcdir=$srcdir ;; 1715 *) # Relative name. 1716 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1717 ac_top_srcdir=$ac_top_build_prefix$srcdir 1718 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1719esac 1720ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1721 1722 cd "$ac_dir" || { ac_status=$?; continue; } 1723 # Check for guested configure. 1724 if test -f "$ac_srcdir/configure.gnu"; then 1725 echo && 1726 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1727 elif test -f "$ac_srcdir/configure"; then 1728 echo && 1729 $SHELL "$ac_srcdir/configure" --help=recursive 1730 else 1731 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1732 fi || ac_status=$? 1733 cd "$ac_pwd" || { ac_status=$?; break; } 1734 done 1735fi 1736 1737test -n "$ac_init_help" && exit $ac_status 1738if $ac_init_version; then 1739 cat <<\_ACEOF 1740libX11 configure 1.6.3 1741generated by GNU Autoconf 2.69 1742 1743Copyright (C) 2012 Free Software Foundation, Inc. 1744This configure script is free software; the Free Software Foundation 1745gives unlimited permission to copy, distribute and modify it. 1746_ACEOF 1747 exit 1748fi 1749 1750## ------------------------ ## 1751## Autoconf initialization. ## 1752## ------------------------ ## 1753 1754# ac_fn_c_try_compile LINENO 1755# -------------------------- 1756# Try to compile conftest.$ac_ext, and return whether this succeeded. 1757ac_fn_c_try_compile () 1758{ 1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1760 rm -f conftest.$ac_objext 1761 if { { ac_try="$ac_compile" 1762case "(($ac_try" in 1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1764 *) ac_try_echo=$ac_try;; 1765esac 1766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1767$as_echo "$ac_try_echo"; } >&5 1768 (eval "$ac_compile") 2>conftest.err 1769 ac_status=$? 1770 if test -s conftest.err; then 1771 grep -v '^ *+' conftest.err >conftest.er1 1772 cat conftest.er1 >&5 1773 mv -f conftest.er1 conftest.err 1774 fi 1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1776 test $ac_status = 0; } && { 1777 test -z "$ac_c_werror_flag" || 1778 test ! -s conftest.err 1779 } && test -s conftest.$ac_objext; then : 1780 ac_retval=0 1781else 1782 $as_echo "$as_me: failed program was:" >&5 1783sed 's/^/| /' conftest.$ac_ext >&5 1784 1785 ac_retval=1 1786fi 1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1788 as_fn_set_status $ac_retval 1789 1790} # ac_fn_c_try_compile 1791 1792# ac_fn_c_try_cpp LINENO 1793# ---------------------- 1794# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1795ac_fn_c_try_cpp () 1796{ 1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1798 if { { ac_try="$ac_cpp conftest.$ac_ext" 1799case "(($ac_try" in 1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1801 *) ac_try_echo=$ac_try;; 1802esac 1803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1804$as_echo "$ac_try_echo"; } >&5 1805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1806 ac_status=$? 1807 if test -s conftest.err; then 1808 grep -v '^ *+' conftest.err >conftest.er1 1809 cat conftest.er1 >&5 1810 mv -f conftest.er1 conftest.err 1811 fi 1812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1813 test $ac_status = 0; } > conftest.i && { 1814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1815 test ! -s conftest.err 1816 }; then : 1817 ac_retval=0 1818else 1819 $as_echo "$as_me: failed program was:" >&5 1820sed 's/^/| /' conftest.$ac_ext >&5 1821 1822 ac_retval=1 1823fi 1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1825 as_fn_set_status $ac_retval 1826 1827} # ac_fn_c_try_cpp 1828 1829# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1830# ------------------------------------------------------- 1831# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1832# the include files in INCLUDES and setting the cache variable VAR 1833# accordingly. 1834ac_fn_c_check_header_mongrel () 1835{ 1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1837 if eval \${$3+:} false; then : 1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1839$as_echo_n "checking for $2... " >&6; } 1840if eval \${$3+:} false; then : 1841 $as_echo_n "(cached) " >&6 1842fi 1843eval ac_res=\$$3 1844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1845$as_echo "$ac_res" >&6; } 1846else 1847 # Is the header compilable? 1848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1849$as_echo_n "checking $2 usability... " >&6; } 1850cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1851/* end confdefs.h. */ 1852$4 1853#include <$2> 1854_ACEOF 1855if ac_fn_c_try_compile "$LINENO"; then : 1856 ac_header_compiler=yes 1857else 1858 ac_header_compiler=no 1859fi 1860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1862$as_echo "$ac_header_compiler" >&6; } 1863 1864# Is the header present? 1865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1866$as_echo_n "checking $2 presence... " >&6; } 1867cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1868/* end confdefs.h. */ 1869#include <$2> 1870_ACEOF 1871if ac_fn_c_try_cpp "$LINENO"; then : 1872 ac_header_preproc=yes 1873else 1874 ac_header_preproc=no 1875fi 1876rm -f conftest.err conftest.i conftest.$ac_ext 1877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1878$as_echo "$ac_header_preproc" >&6; } 1879 1880# So? What about this header? 1881case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1882 yes:no: ) 1883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1884$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1886$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1887 ;; 1888 no:yes:* ) 1889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1890$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1892$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1894$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1896$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1898$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1899( $as_echo "## ---------------------------------------------------------------------- ## 1900## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1901## ---------------------------------------------------------------------- ##" 1902 ) | sed "s/^/$as_me: WARNING: /" >&2 1903 ;; 1904esac 1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1906$as_echo_n "checking for $2... " >&6; } 1907if eval \${$3+:} false; then : 1908 $as_echo_n "(cached) " >&6 1909else 1910 eval "$3=\$ac_header_compiler" 1911fi 1912eval ac_res=\$$3 1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1914$as_echo "$ac_res" >&6; } 1915fi 1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1917 1918} # ac_fn_c_check_header_mongrel 1919 1920# ac_fn_c_try_run LINENO 1921# ---------------------- 1922# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1923# that executables *can* be run. 1924ac_fn_c_try_run () 1925{ 1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1927 if { { ac_try="$ac_link" 1928case "(($ac_try" in 1929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1930 *) ac_try_echo=$ac_try;; 1931esac 1932eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1933$as_echo "$ac_try_echo"; } >&5 1934 (eval "$ac_link") 2>&5 1935 ac_status=$? 1936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1937 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1938 { { case "(($ac_try" in 1939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1940 *) ac_try_echo=$ac_try;; 1941esac 1942eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1943$as_echo "$ac_try_echo"; } >&5 1944 (eval "$ac_try") 2>&5 1945 ac_status=$? 1946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1947 test $ac_status = 0; }; }; then : 1948 ac_retval=0 1949else 1950 $as_echo "$as_me: program exited with status $ac_status" >&5 1951 $as_echo "$as_me: failed program was:" >&5 1952sed 's/^/| /' conftest.$ac_ext >&5 1953 1954 ac_retval=$ac_status 1955fi 1956 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1957 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1958 as_fn_set_status $ac_retval 1959 1960} # ac_fn_c_try_run 1961 1962# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1963# ------------------------------------------------------- 1964# Tests whether HEADER exists and can be compiled using the include files in 1965# INCLUDES, setting the cache variable VAR accordingly. 1966ac_fn_c_check_header_compile () 1967{ 1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1970$as_echo_n "checking for $2... " >&6; } 1971if eval \${$3+:} false; then : 1972 $as_echo_n "(cached) " >&6 1973else 1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1975/* end confdefs.h. */ 1976$4 1977#include <$2> 1978_ACEOF 1979if ac_fn_c_try_compile "$LINENO"; then : 1980 eval "$3=yes" 1981else 1982 eval "$3=no" 1983fi 1984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1985fi 1986eval ac_res=\$$3 1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1988$as_echo "$ac_res" >&6; } 1989 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1990 1991} # ac_fn_c_check_header_compile 1992 1993# ac_fn_c_try_link LINENO 1994# ----------------------- 1995# Try to link conftest.$ac_ext, and return whether this succeeded. 1996ac_fn_c_try_link () 1997{ 1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1999 rm -f conftest.$ac_objext conftest$ac_exeext 2000 if { { ac_try="$ac_link" 2001case "(($ac_try" in 2002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2003 *) ac_try_echo=$ac_try;; 2004esac 2005eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2006$as_echo "$ac_try_echo"; } >&5 2007 (eval "$ac_link") 2>conftest.err 2008 ac_status=$? 2009 if test -s conftest.err; then 2010 grep -v '^ *+' conftest.err >conftest.er1 2011 cat conftest.er1 >&5 2012 mv -f conftest.er1 conftest.err 2013 fi 2014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2015 test $ac_status = 0; } && { 2016 test -z "$ac_c_werror_flag" || 2017 test ! -s conftest.err 2018 } && test -s conftest$ac_exeext && { 2019 test "$cross_compiling" = yes || 2020 test -x conftest$ac_exeext 2021 }; then : 2022 ac_retval=0 2023else 2024 $as_echo "$as_me: failed program was:" >&5 2025sed 's/^/| /' conftest.$ac_ext >&5 2026 2027 ac_retval=1 2028fi 2029 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2030 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2031 # interfere with the next link command; also delete a directory that is 2032 # left behind by Apple's compiler. We do this before executing the actions. 2033 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2034 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2035 as_fn_set_status $ac_retval 2036 2037} # ac_fn_c_try_link 2038 2039# ac_fn_c_check_func LINENO FUNC VAR 2040# ---------------------------------- 2041# Tests whether FUNC exists, setting the cache variable VAR accordingly 2042ac_fn_c_check_func () 2043{ 2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2046$as_echo_n "checking for $2... " >&6; } 2047if eval \${$3+:} false; then : 2048 $as_echo_n "(cached) " >&6 2049else 2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2051/* end confdefs.h. */ 2052/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2053 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2054#define $2 innocuous_$2 2055 2056/* System header to define __stub macros and hopefully few prototypes, 2057 which can conflict with char $2 (); below. 2058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2059 <limits.h> exists even on freestanding compilers. */ 2060 2061#ifdef __STDC__ 2062# include <limits.h> 2063#else 2064# include <assert.h> 2065#endif 2066 2067#undef $2 2068 2069/* Override any GCC internal prototype to avoid an error. 2070 Use char because int might match the return type of a GCC 2071 builtin and then its argument prototype would still apply. */ 2072#ifdef __cplusplus 2073extern "C" 2074#endif 2075char $2 (); 2076/* The GNU C library defines this for functions which it implements 2077 to always fail with ENOSYS. Some functions are actually named 2078 something starting with __ and the normal name is an alias. */ 2079#if defined __stub_$2 || defined __stub___$2 2080choke me 2081#endif 2082 2083int 2084main () 2085{ 2086return $2 (); 2087 ; 2088 return 0; 2089} 2090_ACEOF 2091if ac_fn_c_try_link "$LINENO"; then : 2092 eval "$3=yes" 2093else 2094 eval "$3=no" 2095fi 2096rm -f core conftest.err conftest.$ac_objext \ 2097 conftest$ac_exeext conftest.$ac_ext 2098fi 2099eval ac_res=\$$3 2100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2101$as_echo "$ac_res" >&6; } 2102 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2103 2104} # ac_fn_c_check_func 2105 2106# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2107# --------------------------------------------- 2108# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2109# accordingly. 2110ac_fn_c_check_decl () 2111{ 2112 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2113 as_decl_name=`echo $2|sed 's/ *(.*//'` 2114 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2116$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2117if eval \${$3+:} false; then : 2118 $as_echo_n "(cached) " >&6 2119else 2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2121/* end confdefs.h. */ 2122$4 2123int 2124main () 2125{ 2126#ifndef $as_decl_name 2127#ifdef __cplusplus 2128 (void) $as_decl_use; 2129#else 2130 (void) $as_decl_name; 2131#endif 2132#endif 2133 2134 ; 2135 return 0; 2136} 2137_ACEOF 2138if ac_fn_c_try_compile "$LINENO"; then : 2139 eval "$3=yes" 2140else 2141 eval "$3=no" 2142fi 2143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2144fi 2145eval ac_res=\$$3 2146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2147$as_echo "$ac_res" >&6; } 2148 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2149 2150} # ac_fn_c_check_decl 2151 2152# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2153# ---------------------------------------------------- 2154# Tries to find if the field MEMBER exists in type AGGR, after including 2155# INCLUDES, setting cache variable VAR accordingly. 2156ac_fn_c_check_member () 2157{ 2158 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2160$as_echo_n "checking for $2.$3... " >&6; } 2161if eval \${$4+:} false; then : 2162 $as_echo_n "(cached) " >&6 2163else 2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2165/* end confdefs.h. */ 2166$5 2167int 2168main () 2169{ 2170static $2 ac_aggr; 2171if (ac_aggr.$3) 2172return 0; 2173 ; 2174 return 0; 2175} 2176_ACEOF 2177if ac_fn_c_try_compile "$LINENO"; then : 2178 eval "$4=yes" 2179else 2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2181/* end confdefs.h. */ 2182$5 2183int 2184main () 2185{ 2186static $2 ac_aggr; 2187if (sizeof ac_aggr.$3) 2188return 0; 2189 ; 2190 return 0; 2191} 2192_ACEOF 2193if ac_fn_c_try_compile "$LINENO"; then : 2194 eval "$4=yes" 2195else 2196 eval "$4=no" 2197fi 2198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2199fi 2200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2201fi 2202eval ac_res=\$$4 2203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2204$as_echo "$ac_res" >&6; } 2205 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2206 2207} # ac_fn_c_check_member 2208 2209# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2210# ------------------------------------------- 2211# Tests whether TYPE exists after having included INCLUDES, setting cache 2212# variable VAR accordingly. 2213ac_fn_c_check_type () 2214{ 2215 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2217$as_echo_n "checking for $2... " >&6; } 2218if eval \${$3+:} false; then : 2219 $as_echo_n "(cached) " >&6 2220else 2221 eval "$3=no" 2222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2223/* end confdefs.h. */ 2224$4 2225int 2226main () 2227{ 2228if (sizeof ($2)) 2229 return 0; 2230 ; 2231 return 0; 2232} 2233_ACEOF 2234if ac_fn_c_try_compile "$LINENO"; then : 2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2236/* end confdefs.h. */ 2237$4 2238int 2239main () 2240{ 2241if (sizeof (($2))) 2242 return 0; 2243 ; 2244 return 0; 2245} 2246_ACEOF 2247if ac_fn_c_try_compile "$LINENO"; then : 2248 2249else 2250 eval "$3=yes" 2251fi 2252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2253fi 2254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2255fi 2256eval ac_res=\$$3 2257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2258$as_echo "$ac_res" >&6; } 2259 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2260 2261} # ac_fn_c_check_type 2262cat >config.log <<_ACEOF 2263This file contains any messages produced by compilers while 2264running configure, to aid debugging if configure makes a mistake. 2265 2266It was created by libX11 $as_me 1.6.3, which was 2267generated by GNU Autoconf 2.69. Invocation command line was 2268 2269 $ $0 $@ 2270 2271_ACEOF 2272exec 5>>config.log 2273{ 2274cat <<_ASUNAME 2275## --------- ## 2276## Platform. ## 2277## --------- ## 2278 2279hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2280uname -m = `(uname -m) 2>/dev/null || echo unknown` 2281uname -r = `(uname -r) 2>/dev/null || echo unknown` 2282uname -s = `(uname -s) 2>/dev/null || echo unknown` 2283uname -v = `(uname -v) 2>/dev/null || echo unknown` 2284 2285/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2286/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2287 2288/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2289/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2290/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2291/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2292/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2293/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2294/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2295 2296_ASUNAME 2297 2298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2299for as_dir in $PATH 2300do 2301 IFS=$as_save_IFS 2302 test -z "$as_dir" && as_dir=. 2303 $as_echo "PATH: $as_dir" 2304 done 2305IFS=$as_save_IFS 2306 2307} >&5 2308 2309cat >&5 <<_ACEOF 2310 2311 2312## ----------- ## 2313## Core tests. ## 2314## ----------- ## 2315 2316_ACEOF 2317 2318 2319# Keep a trace of the command line. 2320# Strip out --no-create and --no-recursion so they do not pile up. 2321# Strip out --silent because we don't want to record it for future runs. 2322# Also quote any args containing shell meta-characters. 2323# Make two passes to allow for proper duplicate-argument suppression. 2324ac_configure_args= 2325ac_configure_args0= 2326ac_configure_args1= 2327ac_must_keep_next=false 2328for ac_pass in 1 2 2329do 2330 for ac_arg 2331 do 2332 case $ac_arg in 2333 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2334 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2335 | -silent | --silent | --silen | --sile | --sil) 2336 continue ;; 2337 *\'*) 2338 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2339 esac 2340 case $ac_pass in 2341 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2342 2) 2343 as_fn_append ac_configure_args1 " '$ac_arg'" 2344 if test $ac_must_keep_next = true; then 2345 ac_must_keep_next=false # Got value, back to normal. 2346 else 2347 case $ac_arg in 2348 *=* | --config-cache | -C | -disable-* | --disable-* \ 2349 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2350 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2351 | -with-* | --with-* | -without-* | --without-* | --x) 2352 case "$ac_configure_args0 " in 2353 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2354 esac 2355 ;; 2356 -* ) ac_must_keep_next=true ;; 2357 esac 2358 fi 2359 as_fn_append ac_configure_args " '$ac_arg'" 2360 ;; 2361 esac 2362 done 2363done 2364{ ac_configure_args0=; unset ac_configure_args0;} 2365{ ac_configure_args1=; unset ac_configure_args1;} 2366 2367# When interrupted or exit'd, cleanup temporary files, and complete 2368# config.log. We remove comments because anyway the quotes in there 2369# would cause problems or look ugly. 2370# WARNING: Use '\'' to represent an apostrophe within the trap. 2371# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2372trap 'exit_status=$? 2373 # Save into config.log some information that might help in debugging. 2374 { 2375 echo 2376 2377 $as_echo "## ---------------- ## 2378## Cache variables. ## 2379## ---------------- ##" 2380 echo 2381 # The following way of writing the cache mishandles newlines in values, 2382( 2383 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2384 eval ac_val=\$$ac_var 2385 case $ac_val in #( 2386 *${as_nl}*) 2387 case $ac_var in #( 2388 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2389$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2390 esac 2391 case $ac_var in #( 2392 _ | IFS | as_nl) ;; #( 2393 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2394 *) { eval $ac_var=; unset $ac_var;} ;; 2395 esac ;; 2396 esac 2397 done 2398 (set) 2>&1 | 2399 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2400 *${as_nl}ac_space=\ *) 2401 sed -n \ 2402 "s/'\''/'\''\\\\'\'''\''/g; 2403 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2404 ;; #( 2405 *) 2406 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2407 ;; 2408 esac | 2409 sort 2410) 2411 echo 2412 2413 $as_echo "## ----------------- ## 2414## Output variables. ## 2415## ----------------- ##" 2416 echo 2417 for ac_var in $ac_subst_vars 2418 do 2419 eval ac_val=\$$ac_var 2420 case $ac_val in 2421 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2422 esac 2423 $as_echo "$ac_var='\''$ac_val'\''" 2424 done | sort 2425 echo 2426 2427 if test -n "$ac_subst_files"; then 2428 $as_echo "## ------------------- ## 2429## File substitutions. ## 2430## ------------------- ##" 2431 echo 2432 for ac_var in $ac_subst_files 2433 do 2434 eval ac_val=\$$ac_var 2435 case $ac_val in 2436 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2437 esac 2438 $as_echo "$ac_var='\''$ac_val'\''" 2439 done | sort 2440 echo 2441 fi 2442 2443 if test -s confdefs.h; then 2444 $as_echo "## ----------- ## 2445## confdefs.h. ## 2446## ----------- ##" 2447 echo 2448 cat confdefs.h 2449 echo 2450 fi 2451 test "$ac_signal" != 0 && 2452 $as_echo "$as_me: caught signal $ac_signal" 2453 $as_echo "$as_me: exit $exit_status" 2454 } >&5 2455 rm -f core *.core core.conftest.* && 2456 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2457 exit $exit_status 2458' 0 2459for ac_signal in 1 2 13 15; do 2460 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2461done 2462ac_signal=0 2463 2464# confdefs.h avoids OS command line length limits that DEFS can exceed. 2465rm -f -r conftest* confdefs.h 2466 2467$as_echo "/* confdefs.h */" > confdefs.h 2468 2469# Predefined preprocessor variables. 2470 2471cat >>confdefs.h <<_ACEOF 2472#define PACKAGE_NAME "$PACKAGE_NAME" 2473_ACEOF 2474 2475cat >>confdefs.h <<_ACEOF 2476#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2477_ACEOF 2478 2479cat >>confdefs.h <<_ACEOF 2480#define PACKAGE_VERSION "$PACKAGE_VERSION" 2481_ACEOF 2482 2483cat >>confdefs.h <<_ACEOF 2484#define PACKAGE_STRING "$PACKAGE_STRING" 2485_ACEOF 2486 2487cat >>confdefs.h <<_ACEOF 2488#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2489_ACEOF 2490 2491cat >>confdefs.h <<_ACEOF 2492#define PACKAGE_URL "$PACKAGE_URL" 2493_ACEOF 2494 2495 2496# Let the site file select an alternate cache file if it wants to. 2497# Prefer an explicitly selected file to automatically selected ones. 2498ac_site_file1=NONE 2499ac_site_file2=NONE 2500if test -n "$CONFIG_SITE"; then 2501 # We do not want a PATH search for config.site. 2502 case $CONFIG_SITE in #(( 2503 -*) ac_site_file1=./$CONFIG_SITE;; 2504 */*) ac_site_file1=$CONFIG_SITE;; 2505 *) ac_site_file1=./$CONFIG_SITE;; 2506 esac 2507elif test "x$prefix" != xNONE; then 2508 ac_site_file1=$prefix/share/config.site 2509 ac_site_file2=$prefix/etc/config.site 2510else 2511 ac_site_file1=$ac_default_prefix/share/config.site 2512 ac_site_file2=$ac_default_prefix/etc/config.site 2513fi 2514for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2515do 2516 test "x$ac_site_file" = xNONE && continue 2517 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2518 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2519$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2520 sed 's/^/| /' "$ac_site_file" >&5 2521 . "$ac_site_file" \ 2522 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2523$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2524as_fn_error $? "failed to load site script $ac_site_file 2525See \`config.log' for more details" "$LINENO" 5; } 2526 fi 2527done 2528 2529if test -r "$cache_file"; then 2530 # Some versions of bash will fail to source /dev/null (special files 2531 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2532 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2533 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2534$as_echo "$as_me: loading cache $cache_file" >&6;} 2535 case $cache_file in 2536 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2537 *) . "./$cache_file";; 2538 esac 2539 fi 2540else 2541 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2542$as_echo "$as_me: creating cache $cache_file" >&6;} 2543 >$cache_file 2544fi 2545 2546as_fn_append ac_header_list " stdlib.h" 2547as_fn_append ac_header_list " unistd.h" 2548as_fn_append ac_header_list " sys/param.h" 2549# Check that the precious variables saved in the cache have kept the same 2550# value. 2551ac_cache_corrupted=false 2552for ac_var in $ac_precious_vars; do 2553 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2554 eval ac_new_set=\$ac_env_${ac_var}_set 2555 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2556 eval ac_new_val=\$ac_env_${ac_var}_value 2557 case $ac_old_set,$ac_new_set in 2558 set,) 2559 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2560$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2561 ac_cache_corrupted=: ;; 2562 ,set) 2563 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2564$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2565 ac_cache_corrupted=: ;; 2566 ,);; 2567 *) 2568 if test "x$ac_old_val" != "x$ac_new_val"; then 2569 # differences in whitespace do not lead to failure. 2570 ac_old_val_w=`echo x $ac_old_val` 2571 ac_new_val_w=`echo x $ac_new_val` 2572 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2573 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2574$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2575 ac_cache_corrupted=: 2576 else 2577 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2578$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2579 eval $ac_var=\$ac_old_val 2580 fi 2581 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2582$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2583 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2584$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2585 fi;; 2586 esac 2587 # Pass precious variables to config.status. 2588 if test "$ac_new_set" = set; then 2589 case $ac_new_val in 2590 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2591 *) ac_arg=$ac_var=$ac_new_val ;; 2592 esac 2593 case " $ac_configure_args " in 2594 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2595 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2596 esac 2597 fi 2598done 2599if $ac_cache_corrupted; then 2600 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2601$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2602 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2603$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2604 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2605fi 2606## -------------------- ## 2607## Main body of script. ## 2608## -------------------- ## 2609 2610ac_ext=c 2611ac_cpp='$CPP $CPPFLAGS' 2612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2614ac_compiler_gnu=$ac_cv_c_compiler_gnu 2615 2616 2617 2618ac_config_headers="$ac_config_headers src/config.h include/X11/XlibConf.h" 2619 2620 2621ac_aux_dir= 2622for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2623 if test -f "$ac_dir/install-sh"; then 2624 ac_aux_dir=$ac_dir 2625 ac_install_sh="$ac_aux_dir/install-sh -c" 2626 break 2627 elif test -f "$ac_dir/install.sh"; then 2628 ac_aux_dir=$ac_dir 2629 ac_install_sh="$ac_aux_dir/install.sh -c" 2630 break 2631 elif test -f "$ac_dir/shtool"; then 2632 ac_aux_dir=$ac_dir 2633 ac_install_sh="$ac_aux_dir/shtool install -c" 2634 break 2635 fi 2636done 2637if test -z "$ac_aux_dir"; then 2638 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2639fi 2640 2641# These three variables are undocumented and unsupported, 2642# and are intended to be withdrawn in a future Autoconf release. 2643# They can cause serious problems if a builder's source tree is in a directory 2644# whose full name contains unusual characters. 2645ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2646ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2647ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2648 2649 2650# Make sure we can run config.sub. 2651$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2652 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2653 2654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2655$as_echo_n "checking build system type... " >&6; } 2656if ${ac_cv_build+:} false; then : 2657 $as_echo_n "(cached) " >&6 2658else 2659 ac_build_alias=$build_alias 2660test "x$ac_build_alias" = x && 2661 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2662test "x$ac_build_alias" = x && 2663 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2664ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2665 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2666 2667fi 2668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2669$as_echo "$ac_cv_build" >&6; } 2670case $ac_cv_build in 2671*-*-*) ;; 2672*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2673esac 2674build=$ac_cv_build 2675ac_save_IFS=$IFS; IFS='-' 2676set x $ac_cv_build 2677shift 2678build_cpu=$1 2679build_vendor=$2 2680shift; shift 2681# Remember, the first character of IFS is used to create $*, 2682# except with old shells: 2683build_os=$* 2684IFS=$ac_save_IFS 2685case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2686 2687 2688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2689$as_echo_n "checking host system type... " >&6; } 2690if ${ac_cv_host+:} false; then : 2691 $as_echo_n "(cached) " >&6 2692else 2693 if test "x$host_alias" = x; then 2694 ac_cv_host=$ac_cv_build 2695else 2696 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2697 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2698fi 2699 2700fi 2701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2702$as_echo "$ac_cv_host" >&6; } 2703case $ac_cv_host in 2704*-*-*) ;; 2705*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2706esac 2707host=$ac_cv_host 2708ac_save_IFS=$IFS; IFS='-' 2709set x $ac_cv_host 2710shift 2711host_cpu=$1 2712host_vendor=$2 2713shift; shift 2714# Remember, the first character of IFS is used to create $*, 2715# except with old shells: 2716host_os=$* 2717IFS=$ac_save_IFS 2718case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2719 2720 2721# Set common system defines for POSIX extensions, such as _GNU_SOURCE 2722# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL) 2723# to avoid autoconf errors. 2724# Expand $ac_aux_dir to an absolute path. 2725am_aux_dir=`cd "$ac_aux_dir" && pwd` 2726 2727ac_ext=c 2728ac_cpp='$CPP $CPPFLAGS' 2729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2731ac_compiler_gnu=$ac_cv_c_compiler_gnu 2732if test -n "$ac_tool_prefix"; then 2733 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2734set dummy ${ac_tool_prefix}gcc; ac_word=$2 2735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2736$as_echo_n "checking for $ac_word... " >&6; } 2737if ${ac_cv_prog_CC+:} false; then : 2738 $as_echo_n "(cached) " >&6 2739else 2740 if test -n "$CC"; then 2741 ac_cv_prog_CC="$CC" # Let the user override the test. 2742else 2743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2744for as_dir in $PATH 2745do 2746 IFS=$as_save_IFS 2747 test -z "$as_dir" && as_dir=. 2748 for ac_exec_ext in '' $ac_executable_extensions; do 2749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2750 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2752 break 2 2753 fi 2754done 2755 done 2756IFS=$as_save_IFS 2757 2758fi 2759fi 2760CC=$ac_cv_prog_CC 2761if test -n "$CC"; then 2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2763$as_echo "$CC" >&6; } 2764else 2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2766$as_echo "no" >&6; } 2767fi 2768 2769 2770fi 2771if test -z "$ac_cv_prog_CC"; then 2772 ac_ct_CC=$CC 2773 # Extract the first word of "gcc", so it can be a program name with args. 2774set dummy gcc; ac_word=$2 2775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2776$as_echo_n "checking for $ac_word... " >&6; } 2777if ${ac_cv_prog_ac_ct_CC+:} false; then : 2778 $as_echo_n "(cached) " >&6 2779else 2780 if test -n "$ac_ct_CC"; then 2781 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2782else 2783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2784for as_dir in $PATH 2785do 2786 IFS=$as_save_IFS 2787 test -z "$as_dir" && as_dir=. 2788 for ac_exec_ext in '' $ac_executable_extensions; do 2789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2790 ac_cv_prog_ac_ct_CC="gcc" 2791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2792 break 2 2793 fi 2794done 2795 done 2796IFS=$as_save_IFS 2797 2798fi 2799fi 2800ac_ct_CC=$ac_cv_prog_ac_ct_CC 2801if test -n "$ac_ct_CC"; then 2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2803$as_echo "$ac_ct_CC" >&6; } 2804else 2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2806$as_echo "no" >&6; } 2807fi 2808 2809 if test "x$ac_ct_CC" = x; then 2810 CC="" 2811 else 2812 case $cross_compiling:$ac_tool_warned in 2813yes:) 2814{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2815$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2816ac_tool_warned=yes ;; 2817esac 2818 CC=$ac_ct_CC 2819 fi 2820else 2821 CC="$ac_cv_prog_CC" 2822fi 2823 2824if test -z "$CC"; then 2825 if test -n "$ac_tool_prefix"; then 2826 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2827set dummy ${ac_tool_prefix}cc; ac_word=$2 2828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2829$as_echo_n "checking for $ac_word... " >&6; } 2830if ${ac_cv_prog_CC+:} false; then : 2831 $as_echo_n "(cached) " >&6 2832else 2833 if test -n "$CC"; then 2834 ac_cv_prog_CC="$CC" # Let the user override the test. 2835else 2836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2837for as_dir in $PATH 2838do 2839 IFS=$as_save_IFS 2840 test -z "$as_dir" && as_dir=. 2841 for ac_exec_ext in '' $ac_executable_extensions; do 2842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2843 ac_cv_prog_CC="${ac_tool_prefix}cc" 2844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2845 break 2 2846 fi 2847done 2848 done 2849IFS=$as_save_IFS 2850 2851fi 2852fi 2853CC=$ac_cv_prog_CC 2854if test -n "$CC"; then 2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2856$as_echo "$CC" >&6; } 2857else 2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2859$as_echo "no" >&6; } 2860fi 2861 2862 2863 fi 2864fi 2865if test -z "$CC"; then 2866 # Extract the first word of "cc", so it can be a program name with args. 2867set dummy cc; ac_word=$2 2868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2869$as_echo_n "checking for $ac_word... " >&6; } 2870if ${ac_cv_prog_CC+:} false; then : 2871 $as_echo_n "(cached) " >&6 2872else 2873 if test -n "$CC"; then 2874 ac_cv_prog_CC="$CC" # Let the user override the test. 2875else 2876 ac_prog_rejected=no 2877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2878for as_dir in $PATH 2879do 2880 IFS=$as_save_IFS 2881 test -z "$as_dir" && as_dir=. 2882 for ac_exec_ext in '' $ac_executable_extensions; do 2883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2884 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2885 ac_prog_rejected=yes 2886 continue 2887 fi 2888 ac_cv_prog_CC="cc" 2889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2890 break 2 2891 fi 2892done 2893 done 2894IFS=$as_save_IFS 2895 2896if test $ac_prog_rejected = yes; then 2897 # We found a bogon in the path, so make sure we never use it. 2898 set dummy $ac_cv_prog_CC 2899 shift 2900 if test $# != 0; then 2901 # We chose a different compiler from the bogus one. 2902 # However, it has the same basename, so the bogon will be chosen 2903 # first if we set CC to just the basename; use the full file name. 2904 shift 2905 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2906 fi 2907fi 2908fi 2909fi 2910CC=$ac_cv_prog_CC 2911if test -n "$CC"; then 2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2913$as_echo "$CC" >&6; } 2914else 2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2916$as_echo "no" >&6; } 2917fi 2918 2919 2920fi 2921if test -z "$CC"; then 2922 if test -n "$ac_tool_prefix"; then 2923 for ac_prog in cl.exe 2924 do 2925 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2926set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2928$as_echo_n "checking for $ac_word... " >&6; } 2929if ${ac_cv_prog_CC+:} false; then : 2930 $as_echo_n "(cached) " >&6 2931else 2932 if test -n "$CC"; then 2933 ac_cv_prog_CC="$CC" # Let the user override the test. 2934else 2935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2936for as_dir in $PATH 2937do 2938 IFS=$as_save_IFS 2939 test -z "$as_dir" && as_dir=. 2940 for ac_exec_ext in '' $ac_executable_extensions; do 2941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2942 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2944 break 2 2945 fi 2946done 2947 done 2948IFS=$as_save_IFS 2949 2950fi 2951fi 2952CC=$ac_cv_prog_CC 2953if test -n "$CC"; then 2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2955$as_echo "$CC" >&6; } 2956else 2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2958$as_echo "no" >&6; } 2959fi 2960 2961 2962 test -n "$CC" && break 2963 done 2964fi 2965if test -z "$CC"; then 2966 ac_ct_CC=$CC 2967 for ac_prog in cl.exe 2968do 2969 # Extract the first word of "$ac_prog", so it can be a program name with args. 2970set dummy $ac_prog; ac_word=$2 2971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2972$as_echo_n "checking for $ac_word... " >&6; } 2973if ${ac_cv_prog_ac_ct_CC+:} false; then : 2974 $as_echo_n "(cached) " >&6 2975else 2976 if test -n "$ac_ct_CC"; then 2977 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2978else 2979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2980for as_dir in $PATH 2981do 2982 IFS=$as_save_IFS 2983 test -z "$as_dir" && as_dir=. 2984 for ac_exec_ext in '' $ac_executable_extensions; do 2985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2986 ac_cv_prog_ac_ct_CC="$ac_prog" 2987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2988 break 2 2989 fi 2990done 2991 done 2992IFS=$as_save_IFS 2993 2994fi 2995fi 2996ac_ct_CC=$ac_cv_prog_ac_ct_CC 2997if test -n "$ac_ct_CC"; then 2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2999$as_echo "$ac_ct_CC" >&6; } 3000else 3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3002$as_echo "no" >&6; } 3003fi 3004 3005 3006 test -n "$ac_ct_CC" && break 3007done 3008 3009 if test "x$ac_ct_CC" = x; then 3010 CC="" 3011 else 3012 case $cross_compiling:$ac_tool_warned in 3013yes:) 3014{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3015$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3016ac_tool_warned=yes ;; 3017esac 3018 CC=$ac_ct_CC 3019 fi 3020fi 3021 3022fi 3023 3024 3025test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3026$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3027as_fn_error $? "no acceptable C compiler found in \$PATH 3028See \`config.log' for more details" "$LINENO" 5; } 3029 3030# Provide some information about the compiler. 3031$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3032set X $ac_compile 3033ac_compiler=$2 3034for ac_option in --version -v -V -qversion; do 3035 { { ac_try="$ac_compiler $ac_option >&5" 3036case "(($ac_try" in 3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3038 *) ac_try_echo=$ac_try;; 3039esac 3040eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3041$as_echo "$ac_try_echo"; } >&5 3042 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3043 ac_status=$? 3044 if test -s conftest.err; then 3045 sed '10a\ 3046... rest of stderr output deleted ... 3047 10q' conftest.err >conftest.er1 3048 cat conftest.er1 >&5 3049 fi 3050 rm -f conftest.er1 conftest.err 3051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3052 test $ac_status = 0; } 3053done 3054 3055cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3056/* end confdefs.h. */ 3057 3058int 3059main () 3060{ 3061 3062 ; 3063 return 0; 3064} 3065_ACEOF 3066ac_clean_files_save=$ac_clean_files 3067ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3068# Try to create an executable without -o first, disregard a.out. 3069# It will help us diagnose broken compilers, and finding out an intuition 3070# of exeext. 3071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3072$as_echo_n "checking whether the C compiler works... " >&6; } 3073ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3074 3075# The possible output files: 3076ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3077 3078ac_rmfiles= 3079for ac_file in $ac_files 3080do 3081 case $ac_file in 3082 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3083 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3084 esac 3085done 3086rm -f $ac_rmfiles 3087 3088if { { ac_try="$ac_link_default" 3089case "(($ac_try" in 3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3091 *) ac_try_echo=$ac_try;; 3092esac 3093eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3094$as_echo "$ac_try_echo"; } >&5 3095 (eval "$ac_link_default") 2>&5 3096 ac_status=$? 3097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3098 test $ac_status = 0; }; then : 3099 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3100# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3101# in a Makefile. We should not override ac_cv_exeext if it was cached, 3102# so that the user can short-circuit this test for compilers unknown to 3103# Autoconf. 3104for ac_file in $ac_files '' 3105do 3106 test -f "$ac_file" || continue 3107 case $ac_file in 3108 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3109 ;; 3110 [ab].out ) 3111 # We found the default executable, but exeext='' is most 3112 # certainly right. 3113 break;; 3114 *.* ) 3115 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3116 then :; else 3117 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3118 fi 3119 # We set ac_cv_exeext here because the later test for it is not 3120 # safe: cross compilers may not add the suffix if given an `-o' 3121 # argument, so we may need to know it at that point already. 3122 # Even if this section looks crufty: it has the advantage of 3123 # actually working. 3124 break;; 3125 * ) 3126 break;; 3127 esac 3128done 3129test "$ac_cv_exeext" = no && ac_cv_exeext= 3130 3131else 3132 ac_file='' 3133fi 3134if test -z "$ac_file"; then : 3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3136$as_echo "no" >&6; } 3137$as_echo "$as_me: failed program was:" >&5 3138sed 's/^/| /' conftest.$ac_ext >&5 3139 3140{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3141$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3142as_fn_error 77 "C compiler cannot create executables 3143See \`config.log' for more details" "$LINENO" 5; } 3144else 3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3146$as_echo "yes" >&6; } 3147fi 3148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3149$as_echo_n "checking for C compiler default output file name... " >&6; } 3150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3151$as_echo "$ac_file" >&6; } 3152ac_exeext=$ac_cv_exeext 3153 3154rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3155ac_clean_files=$ac_clean_files_save 3156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3157$as_echo_n "checking for suffix of executables... " >&6; } 3158if { { ac_try="$ac_link" 3159case "(($ac_try" in 3160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3161 *) ac_try_echo=$ac_try;; 3162esac 3163eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3164$as_echo "$ac_try_echo"; } >&5 3165 (eval "$ac_link") 2>&5 3166 ac_status=$? 3167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3168 test $ac_status = 0; }; then : 3169 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3170# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3171# work properly (i.e., refer to `conftest.exe'), while it won't with 3172# `rm'. 3173for ac_file in conftest.exe conftest conftest.*; do 3174 test -f "$ac_file" || continue 3175 case $ac_file in 3176 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3177 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3178 break;; 3179 * ) break;; 3180 esac 3181done 3182else 3183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3185as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3186See \`config.log' for more details" "$LINENO" 5; } 3187fi 3188rm -f conftest conftest$ac_cv_exeext 3189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3190$as_echo "$ac_cv_exeext" >&6; } 3191 3192rm -f conftest.$ac_ext 3193EXEEXT=$ac_cv_exeext 3194ac_exeext=$EXEEXT 3195cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3196/* end confdefs.h. */ 3197#include <stdio.h> 3198int 3199main () 3200{ 3201FILE *f = fopen ("conftest.out", "w"); 3202 return ferror (f) || fclose (f) != 0; 3203 3204 ; 3205 return 0; 3206} 3207_ACEOF 3208ac_clean_files="$ac_clean_files conftest.out" 3209# Check that the compiler produces executables we can run. If not, either 3210# the compiler is broken, or we cross compile. 3211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3212$as_echo_n "checking whether we are cross compiling... " >&6; } 3213if test "$cross_compiling" != yes; then 3214 { { ac_try="$ac_link" 3215case "(($ac_try" in 3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3217 *) ac_try_echo=$ac_try;; 3218esac 3219eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3220$as_echo "$ac_try_echo"; } >&5 3221 (eval "$ac_link") 2>&5 3222 ac_status=$? 3223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3224 test $ac_status = 0; } 3225 if { ac_try='./conftest$ac_cv_exeext' 3226 { { case "(($ac_try" in 3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3228 *) ac_try_echo=$ac_try;; 3229esac 3230eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3231$as_echo "$ac_try_echo"; } >&5 3232 (eval "$ac_try") 2>&5 3233 ac_status=$? 3234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3235 test $ac_status = 0; }; }; then 3236 cross_compiling=no 3237 else 3238 if test "$cross_compiling" = maybe; then 3239 cross_compiling=yes 3240 else 3241 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3243as_fn_error $? "cannot run C compiled programs. 3244If you meant to cross compile, use \`--host'. 3245See \`config.log' for more details" "$LINENO" 5; } 3246 fi 3247 fi 3248fi 3249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3250$as_echo "$cross_compiling" >&6; } 3251 3252rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3253ac_clean_files=$ac_clean_files_save 3254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3255$as_echo_n "checking for suffix of object files... " >&6; } 3256if ${ac_cv_objext+:} false; then : 3257 $as_echo_n "(cached) " >&6 3258else 3259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3260/* end confdefs.h. */ 3261 3262int 3263main () 3264{ 3265 3266 ; 3267 return 0; 3268} 3269_ACEOF 3270rm -f conftest.o conftest.obj 3271if { { ac_try="$ac_compile" 3272case "(($ac_try" in 3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3274 *) ac_try_echo=$ac_try;; 3275esac 3276eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3277$as_echo "$ac_try_echo"; } >&5 3278 (eval "$ac_compile") 2>&5 3279 ac_status=$? 3280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3281 test $ac_status = 0; }; then : 3282 for ac_file in conftest.o conftest.obj conftest.*; do 3283 test -f "$ac_file" || continue; 3284 case $ac_file in 3285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3286 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3287 break;; 3288 esac 3289done 3290else 3291 $as_echo "$as_me: failed program was:" >&5 3292sed 's/^/| /' conftest.$ac_ext >&5 3293 3294{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3295$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3296as_fn_error $? "cannot compute suffix of object files: cannot compile 3297See \`config.log' for more details" "$LINENO" 5; } 3298fi 3299rm -f conftest.$ac_cv_objext conftest.$ac_ext 3300fi 3301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3302$as_echo "$ac_cv_objext" >&6; } 3303OBJEXT=$ac_cv_objext 3304ac_objext=$OBJEXT 3305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3306$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3307if ${ac_cv_c_compiler_gnu+:} false; then : 3308 $as_echo_n "(cached) " >&6 3309else 3310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3311/* end confdefs.h. */ 3312 3313int 3314main () 3315{ 3316#ifndef __GNUC__ 3317 choke me 3318#endif 3319 3320 ; 3321 return 0; 3322} 3323_ACEOF 3324if ac_fn_c_try_compile "$LINENO"; then : 3325 ac_compiler_gnu=yes 3326else 3327 ac_compiler_gnu=no 3328fi 3329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3330ac_cv_c_compiler_gnu=$ac_compiler_gnu 3331 3332fi 3333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3334$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3335if test $ac_compiler_gnu = yes; then 3336 GCC=yes 3337else 3338 GCC= 3339fi 3340ac_test_CFLAGS=${CFLAGS+set} 3341ac_save_CFLAGS=$CFLAGS 3342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3343$as_echo_n "checking whether $CC accepts -g... " >&6; } 3344if ${ac_cv_prog_cc_g+:} false; then : 3345 $as_echo_n "(cached) " >&6 3346else 3347 ac_save_c_werror_flag=$ac_c_werror_flag 3348 ac_c_werror_flag=yes 3349 ac_cv_prog_cc_g=no 3350 CFLAGS="-g" 3351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3352/* end confdefs.h. */ 3353 3354int 3355main () 3356{ 3357 3358 ; 3359 return 0; 3360} 3361_ACEOF 3362if ac_fn_c_try_compile "$LINENO"; then : 3363 ac_cv_prog_cc_g=yes 3364else 3365 CFLAGS="" 3366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3367/* end confdefs.h. */ 3368 3369int 3370main () 3371{ 3372 3373 ; 3374 return 0; 3375} 3376_ACEOF 3377if ac_fn_c_try_compile "$LINENO"; then : 3378 3379else 3380 ac_c_werror_flag=$ac_save_c_werror_flag 3381 CFLAGS="-g" 3382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3383/* end confdefs.h. */ 3384 3385int 3386main () 3387{ 3388 3389 ; 3390 return 0; 3391} 3392_ACEOF 3393if ac_fn_c_try_compile "$LINENO"; then : 3394 ac_cv_prog_cc_g=yes 3395fi 3396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3397fi 3398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3399fi 3400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3401 ac_c_werror_flag=$ac_save_c_werror_flag 3402fi 3403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3404$as_echo "$ac_cv_prog_cc_g" >&6; } 3405if test "$ac_test_CFLAGS" = set; then 3406 CFLAGS=$ac_save_CFLAGS 3407elif test $ac_cv_prog_cc_g = yes; then 3408 if test "$GCC" = yes; then 3409 CFLAGS="-g -O2" 3410 else 3411 CFLAGS="-g" 3412 fi 3413else 3414 if test "$GCC" = yes; then 3415 CFLAGS="-O2" 3416 else 3417 CFLAGS= 3418 fi 3419fi 3420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3421$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3422if ${ac_cv_prog_cc_c89+:} false; then : 3423 $as_echo_n "(cached) " >&6 3424else 3425 ac_cv_prog_cc_c89=no 3426ac_save_CC=$CC 3427cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3428/* end confdefs.h. */ 3429#include <stdarg.h> 3430#include <stdio.h> 3431struct stat; 3432/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3433struct buf { int x; }; 3434FILE * (*rcsopen) (struct buf *, struct stat *, int); 3435static char *e (p, i) 3436 char **p; 3437 int i; 3438{ 3439 return p[i]; 3440} 3441static char *f (char * (*g) (char **, int), char **p, ...) 3442{ 3443 char *s; 3444 va_list v; 3445 va_start (v,p); 3446 s = g (p, va_arg (v,int)); 3447 va_end (v); 3448 return s; 3449} 3450 3451/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3452 function prototypes and stuff, but not '\xHH' hex character constants. 3453 These don't provoke an error unfortunately, instead are silently treated 3454 as 'x'. The following induces an error, until -std is added to get 3455 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3456 array size at least. It's necessary to write '\x00'==0 to get something 3457 that's true only with -std. */ 3458int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3459 3460/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3461 inside strings and character constants. */ 3462#define FOO(x) 'x' 3463int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3464 3465int test (int i, double x); 3466struct s1 {int (*f) (int a);}; 3467struct s2 {int (*f) (double a);}; 3468int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3469int argc; 3470char **argv; 3471int 3472main () 3473{ 3474return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3475 ; 3476 return 0; 3477} 3478_ACEOF 3479for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3480 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3481do 3482 CC="$ac_save_CC $ac_arg" 3483 if ac_fn_c_try_compile "$LINENO"; then : 3484 ac_cv_prog_cc_c89=$ac_arg 3485fi 3486rm -f core conftest.err conftest.$ac_objext 3487 test "x$ac_cv_prog_cc_c89" != "xno" && break 3488done 3489rm -f conftest.$ac_ext 3490CC=$ac_save_CC 3491 3492fi 3493# AC_CACHE_VAL 3494case "x$ac_cv_prog_cc_c89" in 3495 x) 3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3497$as_echo "none needed" >&6; } ;; 3498 xno) 3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3500$as_echo "unsupported" >&6; } ;; 3501 *) 3502 CC="$CC $ac_cv_prog_cc_c89" 3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3504$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3505esac 3506if test "x$ac_cv_prog_cc_c89" != xno; then : 3507 3508fi 3509 3510ac_ext=c 3511ac_cpp='$CPP $CPPFLAGS' 3512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3514ac_compiler_gnu=$ac_cv_c_compiler_gnu 3515 3516ac_ext=c 3517ac_cpp='$CPP $CPPFLAGS' 3518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3520ac_compiler_gnu=$ac_cv_c_compiler_gnu 3521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3522$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3523if ${am_cv_prog_cc_c_o+:} false; then : 3524 $as_echo_n "(cached) " >&6 3525else 3526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3527/* end confdefs.h. */ 3528 3529int 3530main () 3531{ 3532 3533 ; 3534 return 0; 3535} 3536_ACEOF 3537 # Make sure it works both with $CC and with simple cc. 3538 # Following AC_PROG_CC_C_O, we do the test twice because some 3539 # compilers refuse to overwrite an existing .o file with -o, 3540 # though they will create one. 3541 am_cv_prog_cc_c_o=yes 3542 for am_i in 1 2; do 3543 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3544 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3545 ac_status=$? 3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3547 (exit $ac_status); } \ 3548 && test -f conftest2.$ac_objext; then 3549 : OK 3550 else 3551 am_cv_prog_cc_c_o=no 3552 break 3553 fi 3554 done 3555 rm -f core conftest* 3556 unset am_i 3557fi 3558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3559$as_echo "$am_cv_prog_cc_c_o" >&6; } 3560if test "$am_cv_prog_cc_c_o" != yes; then 3561 # Losing compiler, so override with the script. 3562 # FIXME: It is wrong to rewrite CC. 3563 # But if we don't then we get into trouble of one sort or another. 3564 # A longer-term fix would be to have automake use am__CC in this case, 3565 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3566 CC="$am_aux_dir/compile $CC" 3567fi 3568ac_ext=c 3569ac_cpp='$CPP $CPPFLAGS' 3570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3572ac_compiler_gnu=$ac_cv_c_compiler_gnu 3573 3574 3575 3576ac_ext=c 3577ac_cpp='$CPP $CPPFLAGS' 3578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3580ac_compiler_gnu=$ac_cv_c_compiler_gnu 3581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3582$as_echo_n "checking how to run the C preprocessor... " >&6; } 3583# On Suns, sometimes $CPP names a directory. 3584if test -n "$CPP" && test -d "$CPP"; then 3585 CPP= 3586fi 3587if test -z "$CPP"; then 3588 if ${ac_cv_prog_CPP+:} false; then : 3589 $as_echo_n "(cached) " >&6 3590else 3591 # Double quotes because CPP needs to be expanded 3592 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3593 do 3594 ac_preproc_ok=false 3595for ac_c_preproc_warn_flag in '' yes 3596do 3597 # Use a header file that comes with gcc, so configuring glibc 3598 # with a fresh cross-compiler works. 3599 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3600 # <limits.h> exists even on freestanding compilers. 3601 # On the NeXT, cc -E runs the code through the compiler's parser, 3602 # not just through cpp. "Syntax error" is here to catch this case. 3603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3604/* end confdefs.h. */ 3605#ifdef __STDC__ 3606# include <limits.h> 3607#else 3608# include <assert.h> 3609#endif 3610 Syntax error 3611_ACEOF 3612if ac_fn_c_try_cpp "$LINENO"; then : 3613 3614else 3615 # Broken: fails on valid input. 3616continue 3617fi 3618rm -f conftest.err conftest.i conftest.$ac_ext 3619 3620 # OK, works on sane cases. Now check whether nonexistent headers 3621 # can be detected and how. 3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3623/* end confdefs.h. */ 3624#include <ac_nonexistent.h> 3625_ACEOF 3626if ac_fn_c_try_cpp "$LINENO"; then : 3627 # Broken: success on invalid input. 3628continue 3629else 3630 # Passes both tests. 3631ac_preproc_ok=: 3632break 3633fi 3634rm -f conftest.err conftest.i conftest.$ac_ext 3635 3636done 3637# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3638rm -f conftest.i conftest.err conftest.$ac_ext 3639if $ac_preproc_ok; then : 3640 break 3641fi 3642 3643 done 3644 ac_cv_prog_CPP=$CPP 3645 3646fi 3647 CPP=$ac_cv_prog_CPP 3648else 3649 ac_cv_prog_CPP=$CPP 3650fi 3651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3652$as_echo "$CPP" >&6; } 3653ac_preproc_ok=false 3654for ac_c_preproc_warn_flag in '' yes 3655do 3656 # Use a header file that comes with gcc, so configuring glibc 3657 # with a fresh cross-compiler works. 3658 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3659 # <limits.h> exists even on freestanding compilers. 3660 # On the NeXT, cc -E runs the code through the compiler's parser, 3661 # not just through cpp. "Syntax error" is here to catch this case. 3662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3663/* end confdefs.h. */ 3664#ifdef __STDC__ 3665# include <limits.h> 3666#else 3667# include <assert.h> 3668#endif 3669 Syntax error 3670_ACEOF 3671if ac_fn_c_try_cpp "$LINENO"; then : 3672 3673else 3674 # Broken: fails on valid input. 3675continue 3676fi 3677rm -f conftest.err conftest.i conftest.$ac_ext 3678 3679 # OK, works on sane cases. Now check whether nonexistent headers 3680 # can be detected and how. 3681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3682/* end confdefs.h. */ 3683#include <ac_nonexistent.h> 3684_ACEOF 3685if ac_fn_c_try_cpp "$LINENO"; then : 3686 # Broken: success on invalid input. 3687continue 3688else 3689 # Passes both tests. 3690ac_preproc_ok=: 3691break 3692fi 3693rm -f conftest.err conftest.i conftest.$ac_ext 3694 3695done 3696# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3697rm -f conftest.i conftest.err conftest.$ac_ext 3698if $ac_preproc_ok; then : 3699 3700else 3701 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3702$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3703as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3704See \`config.log' for more details" "$LINENO" 5; } 3705fi 3706 3707ac_ext=c 3708ac_cpp='$CPP $CPPFLAGS' 3709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3711ac_compiler_gnu=$ac_cv_c_compiler_gnu 3712 3713 3714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3715$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3716if ${ac_cv_path_GREP+:} false; then : 3717 $as_echo_n "(cached) " >&6 3718else 3719 if test -z "$GREP"; then 3720 ac_path_GREP_found=false 3721 # Loop through the user's path and test for each of PROGNAME-LIST 3722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3723for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3724do 3725 IFS=$as_save_IFS 3726 test -z "$as_dir" && as_dir=. 3727 for ac_prog in grep ggrep; do 3728 for ac_exec_ext in '' $ac_executable_extensions; do 3729 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3730 as_fn_executable_p "$ac_path_GREP" || continue 3731# Check for GNU ac_path_GREP and select it if it is found. 3732 # Check for GNU $ac_path_GREP 3733case `"$ac_path_GREP" --version 2>&1` in 3734*GNU*) 3735 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3736*) 3737 ac_count=0 3738 $as_echo_n 0123456789 >"conftest.in" 3739 while : 3740 do 3741 cat "conftest.in" "conftest.in" >"conftest.tmp" 3742 mv "conftest.tmp" "conftest.in" 3743 cp "conftest.in" "conftest.nl" 3744 $as_echo 'GREP' >> "conftest.nl" 3745 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3746 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3747 as_fn_arith $ac_count + 1 && ac_count=$as_val 3748 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3749 # Best one so far, save it but keep looking for a better one 3750 ac_cv_path_GREP="$ac_path_GREP" 3751 ac_path_GREP_max=$ac_count 3752 fi 3753 # 10*(2^10) chars as input seems more than enough 3754 test $ac_count -gt 10 && break 3755 done 3756 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3757esac 3758 3759 $ac_path_GREP_found && break 3 3760 done 3761 done 3762 done 3763IFS=$as_save_IFS 3764 if test -z "$ac_cv_path_GREP"; then 3765 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3766 fi 3767else 3768 ac_cv_path_GREP=$GREP 3769fi 3770 3771fi 3772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3773$as_echo "$ac_cv_path_GREP" >&6; } 3774 GREP="$ac_cv_path_GREP" 3775 3776 3777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3778$as_echo_n "checking for egrep... " >&6; } 3779if ${ac_cv_path_EGREP+:} false; then : 3780 $as_echo_n "(cached) " >&6 3781else 3782 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3783 then ac_cv_path_EGREP="$GREP -E" 3784 else 3785 if test -z "$EGREP"; then 3786 ac_path_EGREP_found=false 3787 # Loop through the user's path and test for each of PROGNAME-LIST 3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3789for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3790do 3791 IFS=$as_save_IFS 3792 test -z "$as_dir" && as_dir=. 3793 for ac_prog in egrep; do 3794 for ac_exec_ext in '' $ac_executable_extensions; do 3795 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3796 as_fn_executable_p "$ac_path_EGREP" || continue 3797# Check for GNU ac_path_EGREP and select it if it is found. 3798 # Check for GNU $ac_path_EGREP 3799case `"$ac_path_EGREP" --version 2>&1` in 3800*GNU*) 3801 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3802*) 3803 ac_count=0 3804 $as_echo_n 0123456789 >"conftest.in" 3805 while : 3806 do 3807 cat "conftest.in" "conftest.in" >"conftest.tmp" 3808 mv "conftest.tmp" "conftest.in" 3809 cp "conftest.in" "conftest.nl" 3810 $as_echo 'EGREP' >> "conftest.nl" 3811 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3812 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3813 as_fn_arith $ac_count + 1 && ac_count=$as_val 3814 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3815 # Best one so far, save it but keep looking for a better one 3816 ac_cv_path_EGREP="$ac_path_EGREP" 3817 ac_path_EGREP_max=$ac_count 3818 fi 3819 # 10*(2^10) chars as input seems more than enough 3820 test $ac_count -gt 10 && break 3821 done 3822 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3823esac 3824 3825 $ac_path_EGREP_found && break 3 3826 done 3827 done 3828 done 3829IFS=$as_save_IFS 3830 if test -z "$ac_cv_path_EGREP"; then 3831 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3832 fi 3833else 3834 ac_cv_path_EGREP=$EGREP 3835fi 3836 3837 fi 3838fi 3839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3840$as_echo "$ac_cv_path_EGREP" >&6; } 3841 EGREP="$ac_cv_path_EGREP" 3842 3843 3844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3845$as_echo_n "checking for ANSI C header files... " >&6; } 3846if ${ac_cv_header_stdc+:} false; then : 3847 $as_echo_n "(cached) " >&6 3848else 3849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3850/* end confdefs.h. */ 3851#include <stdlib.h> 3852#include <stdarg.h> 3853#include <string.h> 3854#include <float.h> 3855 3856int 3857main () 3858{ 3859 3860 ; 3861 return 0; 3862} 3863_ACEOF 3864if ac_fn_c_try_compile "$LINENO"; then : 3865 ac_cv_header_stdc=yes 3866else 3867 ac_cv_header_stdc=no 3868fi 3869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3870 3871if test $ac_cv_header_stdc = yes; then 3872 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3874/* end confdefs.h. */ 3875#include <string.h> 3876 3877_ACEOF 3878if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3879 $EGREP "memchr" >/dev/null 2>&1; then : 3880 3881else 3882 ac_cv_header_stdc=no 3883fi 3884rm -f conftest* 3885 3886fi 3887 3888if test $ac_cv_header_stdc = yes; then 3889 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3891/* end confdefs.h. */ 3892#include <stdlib.h> 3893 3894_ACEOF 3895if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3896 $EGREP "free" >/dev/null 2>&1; then : 3897 3898else 3899 ac_cv_header_stdc=no 3900fi 3901rm -f conftest* 3902 3903fi 3904 3905if test $ac_cv_header_stdc = yes; then 3906 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3907 if test "$cross_compiling" = yes; then : 3908 : 3909else 3910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3911/* end confdefs.h. */ 3912#include <ctype.h> 3913#include <stdlib.h> 3914#if ((' ' & 0x0FF) == 0x020) 3915# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3916# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3917#else 3918# define ISLOWER(c) \ 3919 (('a' <= (c) && (c) <= 'i') \ 3920 || ('j' <= (c) && (c) <= 'r') \ 3921 || ('s' <= (c) && (c) <= 'z')) 3922# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3923#endif 3924 3925#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3926int 3927main () 3928{ 3929 int i; 3930 for (i = 0; i < 256; i++) 3931 if (XOR (islower (i), ISLOWER (i)) 3932 || toupper (i) != TOUPPER (i)) 3933 return 2; 3934 return 0; 3935} 3936_ACEOF 3937if ac_fn_c_try_run "$LINENO"; then : 3938 3939else 3940 ac_cv_header_stdc=no 3941fi 3942rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3943 conftest.$ac_objext conftest.beam conftest.$ac_ext 3944fi 3945 3946fi 3947fi 3948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3949$as_echo "$ac_cv_header_stdc" >&6; } 3950if test $ac_cv_header_stdc = yes; then 3951 3952$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3953 3954fi 3955 3956# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3957for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3958 inttypes.h stdint.h unistd.h 3959do : 3960 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3961ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3962" 3963if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3964 cat >>confdefs.h <<_ACEOF 3965#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3966_ACEOF 3967 3968fi 3969 3970done 3971 3972 3973 3974 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3975if test "x$ac_cv_header_minix_config_h" = xyes; then : 3976 MINIX=yes 3977else 3978 MINIX= 3979fi 3980 3981 3982 if test "$MINIX" = yes; then 3983 3984$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3985 3986 3987$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3988 3989 3990$as_echo "#define _MINIX 1" >>confdefs.h 3991 3992 fi 3993 3994 3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3996$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3997if ${ac_cv_safe_to_define___extensions__+:} false; then : 3998 $as_echo_n "(cached) " >&6 3999else 4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4001/* end confdefs.h. */ 4002 4003# define __EXTENSIONS__ 1 4004 $ac_includes_default 4005int 4006main () 4007{ 4008 4009 ; 4010 return 0; 4011} 4012_ACEOF 4013if ac_fn_c_try_compile "$LINENO"; then : 4014 ac_cv_safe_to_define___extensions__=yes 4015else 4016 ac_cv_safe_to_define___extensions__=no 4017fi 4018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4019fi 4020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4021$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4022 test $ac_cv_safe_to_define___extensions__ = yes && 4023 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4024 4025 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4026 4027 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4028 4029 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4030 4031 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4032 4033 4034 4035# Initialize Automake 4036am__api_version='1.15' 4037 4038# Find a good install program. We prefer a C program (faster), 4039# so one script is as good as another. But avoid the broken or 4040# incompatible versions: 4041# SysV /etc/install, /usr/sbin/install 4042# SunOS /usr/etc/install 4043# IRIX /sbin/install 4044# AIX /bin/install 4045# AmigaOS /C/install, which installs bootblocks on floppy discs 4046# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4047# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4048# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4049# OS/2's system install, which has a completely different semantic 4050# ./install, which can be erroneously created by make from ./install.sh. 4051# Reject install programs that cannot install multiple files. 4052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4053$as_echo_n "checking for a BSD-compatible install... " >&6; } 4054if test -z "$INSTALL"; then 4055if ${ac_cv_path_install+:} false; then : 4056 $as_echo_n "(cached) " >&6 4057else 4058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4059for as_dir in $PATH 4060do 4061 IFS=$as_save_IFS 4062 test -z "$as_dir" && as_dir=. 4063 # Account for people who put trailing slashes in PATH elements. 4064case $as_dir/ in #(( 4065 ./ | .// | /[cC]/* | \ 4066 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4067 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4068 /usr/ucb/* ) ;; 4069 *) 4070 # OSF1 and SCO ODT 3.0 have their own names for install. 4071 # Don't use installbsd from OSF since it installs stuff as root 4072 # by default. 4073 for ac_prog in ginstall scoinst install; do 4074 for ac_exec_ext in '' $ac_executable_extensions; do 4075 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 4076 if test $ac_prog = install && 4077 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4078 # AIX install. It has an incompatible calling convention. 4079 : 4080 elif test $ac_prog = install && 4081 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4082 # program-specific install script used by HP pwplus--don't use. 4083 : 4084 else 4085 rm -rf conftest.one conftest.two conftest.dir 4086 echo one > conftest.one 4087 echo two > conftest.two 4088 mkdir conftest.dir 4089 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 4090 test -s conftest.one && test -s conftest.two && 4091 test -s conftest.dir/conftest.one && 4092 test -s conftest.dir/conftest.two 4093 then 4094 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4095 break 3 4096 fi 4097 fi 4098 fi 4099 done 4100 done 4101 ;; 4102esac 4103 4104 done 4105IFS=$as_save_IFS 4106 4107rm -rf conftest.one conftest.two conftest.dir 4108 4109fi 4110 if test "${ac_cv_path_install+set}" = set; then 4111 INSTALL=$ac_cv_path_install 4112 else 4113 # As a last resort, use the slow shell script. Don't cache a 4114 # value for INSTALL within a source directory, because that will 4115 # break other packages using the cache if that directory is 4116 # removed, or if the value is a relative name. 4117 INSTALL=$ac_install_sh 4118 fi 4119fi 4120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4121$as_echo "$INSTALL" >&6; } 4122 4123# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4124# It thinks the first close brace ends the variable substitution. 4125test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4126 4127test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4128 4129test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4130 4131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4132$as_echo_n "checking whether build environment is sane... " >&6; } 4133# Reject unsafe characters in $srcdir or the absolute working directory 4134# name. Accept space and tab only in the latter. 4135am_lf=' 4136' 4137case `pwd` in 4138 *[\\\"\#\$\&\'\`$am_lf]*) 4139 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4140esac 4141case $srcdir in 4142 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4143 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4144esac 4145 4146# Do 'set' in a subshell so we don't clobber the current shell's 4147# arguments. Must try -L first in case configure is actually a 4148# symlink; some systems play weird games with the mod time of symlinks 4149# (eg FreeBSD returns the mod time of the symlink's containing 4150# directory). 4151if ( 4152 am_has_slept=no 4153 for am_try in 1 2; do 4154 echo "timestamp, slept: $am_has_slept" > conftest.file 4155 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4156 if test "$*" = "X"; then 4157 # -L didn't work. 4158 set X `ls -t "$srcdir/configure" conftest.file` 4159 fi 4160 if test "$*" != "X $srcdir/configure conftest.file" \ 4161 && test "$*" != "X conftest.file $srcdir/configure"; then 4162 4163 # If neither matched, then we have a broken ls. This can happen 4164 # if, for instance, CONFIG_SHELL is bash and it inherits a 4165 # broken ls alias from the environment. This has actually 4166 # happened. Such a system could not be considered "sane". 4167 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 4168 alias in your environment" "$LINENO" 5 4169 fi 4170 if test "$2" = conftest.file || test $am_try -eq 2; then 4171 break 4172 fi 4173 # Just in case. 4174 sleep 1 4175 am_has_slept=yes 4176 done 4177 test "$2" = conftest.file 4178 ) 4179then 4180 # Ok. 4181 : 4182else 4183 as_fn_error $? "newly created file is older than distributed files! 4184Check your system clock" "$LINENO" 5 4185fi 4186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4187$as_echo "yes" >&6; } 4188# If we didn't sleep, we still need to ensure time stamps of config.status and 4189# generated files are strictly newer. 4190am_sleep_pid= 4191if grep 'slept: no' conftest.file >/dev/null 2>&1; then 4192 ( sleep 1 ) & 4193 am_sleep_pid=$! 4194fi 4195 4196rm -f conftest.file 4197 4198test "$program_prefix" != NONE && 4199 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4200# Use a double $ so make ignores it. 4201test "$program_suffix" != NONE && 4202 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4203# Double any \ or $. 4204# By default was `s,x,x', remove it if useless. 4205ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4206program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 4207 4208if test x"${MISSING+set}" != xset; then 4209 case $am_aux_dir in 4210 *\ * | *\ *) 4211 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 4212 *) 4213 MISSING="\${SHELL} $am_aux_dir/missing" ;; 4214 esac 4215fi 4216# Use eval to expand $SHELL 4217if eval "$MISSING --is-lightweight"; then 4218 am_missing_run="$MISSING " 4219else 4220 am_missing_run= 4221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4222$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4223fi 4224 4225if test x"${install_sh+set}" != xset; then 4226 case $am_aux_dir in 4227 *\ * | *\ *) 4228 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4229 *) 4230 install_sh="\${SHELL} $am_aux_dir/install-sh" 4231 esac 4232fi 4233 4234# Installed binaries are usually stripped using 'strip' when the user 4235# run "make install-strip". However 'strip' might not be the right 4236# tool to use in cross-compilation environments, therefore Automake 4237# will honor the 'STRIP' environment variable to overrule this program. 4238if test "$cross_compiling" != no; then 4239 if test -n "$ac_tool_prefix"; then 4240 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4241set dummy ${ac_tool_prefix}strip; ac_word=$2 4242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4243$as_echo_n "checking for $ac_word... " >&6; } 4244if ${ac_cv_prog_STRIP+:} false; then : 4245 $as_echo_n "(cached) " >&6 4246else 4247 if test -n "$STRIP"; then 4248 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4249else 4250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4251for as_dir in $PATH 4252do 4253 IFS=$as_save_IFS 4254 test -z "$as_dir" && as_dir=. 4255 for ac_exec_ext in '' $ac_executable_extensions; do 4256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4257 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4259 break 2 4260 fi 4261done 4262 done 4263IFS=$as_save_IFS 4264 4265fi 4266fi 4267STRIP=$ac_cv_prog_STRIP 4268if test -n "$STRIP"; then 4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4270$as_echo "$STRIP" >&6; } 4271else 4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4273$as_echo "no" >&6; } 4274fi 4275 4276 4277fi 4278if test -z "$ac_cv_prog_STRIP"; then 4279 ac_ct_STRIP=$STRIP 4280 # Extract the first word of "strip", so it can be a program name with args. 4281set dummy strip; ac_word=$2 4282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4283$as_echo_n "checking for $ac_word... " >&6; } 4284if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 4285 $as_echo_n "(cached) " >&6 4286else 4287 if test -n "$ac_ct_STRIP"; then 4288 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4289else 4290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4291for as_dir in $PATH 4292do 4293 IFS=$as_save_IFS 4294 test -z "$as_dir" && as_dir=. 4295 for ac_exec_ext in '' $ac_executable_extensions; do 4296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4297 ac_cv_prog_ac_ct_STRIP="strip" 4298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4299 break 2 4300 fi 4301done 4302 done 4303IFS=$as_save_IFS 4304 4305fi 4306fi 4307ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4308if test -n "$ac_ct_STRIP"; then 4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4310$as_echo "$ac_ct_STRIP" >&6; } 4311else 4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4313$as_echo "no" >&6; } 4314fi 4315 4316 if test "x$ac_ct_STRIP" = x; then 4317 STRIP=":" 4318 else 4319 case $cross_compiling:$ac_tool_warned in 4320yes:) 4321{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4322$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4323ac_tool_warned=yes ;; 4324esac 4325 STRIP=$ac_ct_STRIP 4326 fi 4327else 4328 STRIP="$ac_cv_prog_STRIP" 4329fi 4330 4331fi 4332INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4333 4334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 4335$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 4336if test -z "$MKDIR_P"; then 4337 if ${ac_cv_path_mkdir+:} false; then : 4338 $as_echo_n "(cached) " >&6 4339else 4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4341for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4342do 4343 IFS=$as_save_IFS 4344 test -z "$as_dir" && as_dir=. 4345 for ac_prog in mkdir gmkdir; do 4346 for ac_exec_ext in '' $ac_executable_extensions; do 4347 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 4348 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 4349 'mkdir (GNU coreutils) '* | \ 4350 'mkdir (coreutils) '* | \ 4351 'mkdir (fileutils) '4.1*) 4352 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 4353 break 3;; 4354 esac 4355 done 4356 done 4357 done 4358IFS=$as_save_IFS 4359 4360fi 4361 4362 test -d ./--version && rmdir ./--version 4363 if test "${ac_cv_path_mkdir+set}" = set; then 4364 MKDIR_P="$ac_cv_path_mkdir -p" 4365 else 4366 # As a last resort, use the slow shell script. Don't cache a 4367 # value for MKDIR_P within a source directory, because that will 4368 # break other packages using the cache if that directory is 4369 # removed, or if the value is a relative name. 4370 MKDIR_P="$ac_install_sh -d" 4371 fi 4372fi 4373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4374$as_echo "$MKDIR_P" >&6; } 4375 4376for ac_prog in gawk mawk nawk awk 4377do 4378 # Extract the first word of "$ac_prog", so it can be a program name with args. 4379set dummy $ac_prog; ac_word=$2 4380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4381$as_echo_n "checking for $ac_word... " >&6; } 4382if ${ac_cv_prog_AWK+:} false; then : 4383 $as_echo_n "(cached) " >&6 4384else 4385 if test -n "$AWK"; then 4386 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4387else 4388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4389for as_dir in $PATH 4390do 4391 IFS=$as_save_IFS 4392 test -z "$as_dir" && as_dir=. 4393 for ac_exec_ext in '' $ac_executable_extensions; do 4394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4395 ac_cv_prog_AWK="$ac_prog" 4396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4397 break 2 4398 fi 4399done 4400 done 4401IFS=$as_save_IFS 4402 4403fi 4404fi 4405AWK=$ac_cv_prog_AWK 4406if test -n "$AWK"; then 4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4408$as_echo "$AWK" >&6; } 4409else 4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4411$as_echo "no" >&6; } 4412fi 4413 4414 4415 test -n "$AWK" && break 4416done 4417 4418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4419$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4420set x ${MAKE-make} 4421ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4422if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4423 $as_echo_n "(cached) " >&6 4424else 4425 cat >conftest.make <<\_ACEOF 4426SHELL = /bin/sh 4427all: 4428 @echo '@@@%%%=$(MAKE)=@@@%%%' 4429_ACEOF 4430# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4431case `${MAKE-make} -f conftest.make 2>/dev/null` in 4432 *@@@%%%=?*=@@@%%%*) 4433 eval ac_cv_prog_make_${ac_make}_set=yes;; 4434 *) 4435 eval ac_cv_prog_make_${ac_make}_set=no;; 4436esac 4437rm -f conftest.make 4438fi 4439if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4441$as_echo "yes" >&6; } 4442 SET_MAKE= 4443else 4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4445$as_echo "no" >&6; } 4446 SET_MAKE="MAKE=${MAKE-make}" 4447fi 4448 4449rm -rf .tst 2>/dev/null 4450mkdir .tst 2>/dev/null 4451if test -d .tst; then 4452 am__leading_dot=. 4453else 4454 am__leading_dot=_ 4455fi 4456rmdir .tst 2>/dev/null 4457 4458DEPDIR="${am__leading_dot}deps" 4459 4460ac_config_commands="$ac_config_commands depfiles" 4461 4462 4463am_make=${MAKE-make} 4464cat > confinc << 'END' 4465am__doit: 4466 @echo this is the am__doit target 4467.PHONY: am__doit 4468END 4469# If we don't find an include directive, just comment out the code. 4470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4471$as_echo_n "checking for style of include used by $am_make... " >&6; } 4472am__include="#" 4473am__quote= 4474_am_result=none 4475# First try GNU make style include. 4476echo "include confinc" > confmf 4477# Ignore all kinds of additional output from 'make'. 4478case `$am_make -s -f confmf 2> /dev/null` in #( 4479*the\ am__doit\ target*) 4480 am__include=include 4481 am__quote= 4482 _am_result=GNU 4483 ;; 4484esac 4485# Now try BSD make style include. 4486if test "$am__include" = "#"; then 4487 echo '.include "confinc"' > confmf 4488 case `$am_make -s -f confmf 2> /dev/null` in #( 4489 *the\ am__doit\ target*) 4490 am__include=.include 4491 am__quote="\"" 4492 _am_result=BSD 4493 ;; 4494 esac 4495fi 4496 4497 4498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4499$as_echo "$_am_result" >&6; } 4500rm -f confinc confmf 4501 4502# Check whether --enable-dependency-tracking was given. 4503if test "${enable_dependency_tracking+set}" = set; then : 4504 enableval=$enable_dependency_tracking; 4505fi 4506 4507if test "x$enable_dependency_tracking" != xno; then 4508 am_depcomp="$ac_aux_dir/depcomp" 4509 AMDEPBACKSLASH='\' 4510 am__nodep='_no' 4511fi 4512 if test "x$enable_dependency_tracking" != xno; then 4513 AMDEP_TRUE= 4514 AMDEP_FALSE='#' 4515else 4516 AMDEP_TRUE='#' 4517 AMDEP_FALSE= 4518fi 4519 4520 4521# Check whether --enable-silent-rules was given. 4522if test "${enable_silent_rules+set}" = set; then : 4523 enableval=$enable_silent_rules; 4524fi 4525 4526case $enable_silent_rules in # ((( 4527 yes) AM_DEFAULT_VERBOSITY=0;; 4528 no) AM_DEFAULT_VERBOSITY=1;; 4529 *) AM_DEFAULT_VERBOSITY=1;; 4530esac 4531am_make=${MAKE-make} 4532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4533$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4534if ${am_cv_make_support_nested_variables+:} false; then : 4535 $as_echo_n "(cached) " >&6 4536else 4537 if $as_echo 'TRUE=$(BAR$(V)) 4538BAR0=false 4539BAR1=true 4540V=1 4541am__doit: 4542 @$(TRUE) 4543.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4544 am_cv_make_support_nested_variables=yes 4545else 4546 am_cv_make_support_nested_variables=no 4547fi 4548fi 4549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4550$as_echo "$am_cv_make_support_nested_variables" >&6; } 4551if test $am_cv_make_support_nested_variables = yes; then 4552 AM_V='$(V)' 4553 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4554else 4555 AM_V=$AM_DEFAULT_VERBOSITY 4556 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4557fi 4558AM_BACKSLASH='\' 4559 4560if test "`cd $srcdir && pwd`" != "`pwd`"; then 4561 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4562 # is not polluted with repeated "-I." 4563 am__isrc=' -I$(srcdir)' 4564 # test to see if srcdir already configured 4565 if test -f $srcdir/config.status; then 4566 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4567 fi 4568fi 4569 4570# test whether we have cygpath 4571if test -z "$CYGPATH_W"; then 4572 if (cygpath --version) >/dev/null 2>/dev/null; then 4573 CYGPATH_W='cygpath -w' 4574 else 4575 CYGPATH_W=echo 4576 fi 4577fi 4578 4579 4580# Define the identity of the package. 4581 PACKAGE='libX11' 4582 VERSION='1.6.3' 4583 4584 4585cat >>confdefs.h <<_ACEOF 4586#define PACKAGE "$PACKAGE" 4587_ACEOF 4588 4589 4590cat >>confdefs.h <<_ACEOF 4591#define VERSION "$VERSION" 4592_ACEOF 4593 4594# Some tools Automake needs. 4595 4596ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4597 4598 4599AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4600 4601 4602AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4603 4604 4605AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4606 4607 4608MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4609 4610# For better backward compatibility. To be removed once Automake 1.9.x 4611# dies out for good. For more background, see: 4612# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4613# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4614mkdir_p='$(MKDIR_P)' 4615 4616# We need awk for the "check" target (and possibly the TAP driver). The 4617# system "awk" is bad on some platforms. 4618# Always define AMTAR for backward compatibility. Yes, it's still used 4619# in the wild :-( We should find a proper way to deprecate it ... 4620AMTAR='$${TAR-tar}' 4621 4622 4623# We'll loop over all known methods to create a tar archive until one works. 4624_am_tools='gnutar pax cpio none' 4625 4626am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4627 4628 4629 4630 4631 4632depcc="$CC" am_compiler_list= 4633 4634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4635$as_echo_n "checking dependency style of $depcc... " >&6; } 4636if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4637 $as_echo_n "(cached) " >&6 4638else 4639 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4640 # We make a subdir and do the tests there. Otherwise we can end up 4641 # making bogus files that we don't know about and never remove. For 4642 # instance it was reported that on HP-UX the gcc test will end up 4643 # making a dummy file named 'D' -- because '-MD' means "put the output 4644 # in D". 4645 rm -rf conftest.dir 4646 mkdir conftest.dir 4647 # Copy depcomp to subdir because otherwise we won't find it if we're 4648 # using a relative directory. 4649 cp "$am_depcomp" conftest.dir 4650 cd conftest.dir 4651 # We will build objects and dependencies in a subdirectory because 4652 # it helps to detect inapplicable dependency modes. For instance 4653 # both Tru64's cc and ICC support -MD to output dependencies as a 4654 # side effect of compilation, but ICC will put the dependencies in 4655 # the current directory while Tru64 will put them in the object 4656 # directory. 4657 mkdir sub 4658 4659 am_cv_CC_dependencies_compiler_type=none 4660 if test "$am_compiler_list" = ""; then 4661 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4662 fi 4663 am__universal=false 4664 case " $depcc " in #( 4665 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4666 esac 4667 4668 for depmode in $am_compiler_list; do 4669 # Setup a source with many dependencies, because some compilers 4670 # like to wrap large dependency lists on column 80 (with \), and 4671 # we should not choose a depcomp mode which is confused by this. 4672 # 4673 # We need to recreate these files for each test, as the compiler may 4674 # overwrite some of them when testing with obscure command lines. 4675 # This happens at least with the AIX C compiler. 4676 : > sub/conftest.c 4677 for i in 1 2 3 4 5 6; do 4678 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4679 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4680 # Solaris 10 /bin/sh. 4681 echo '/* dummy */' > sub/conftst$i.h 4682 done 4683 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4684 4685 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4686 # mode. It turns out that the SunPro C++ compiler does not properly 4687 # handle '-M -o', and we need to detect this. Also, some Intel 4688 # versions had trouble with output in subdirs. 4689 am__obj=sub/conftest.${OBJEXT-o} 4690 am__minus_obj="-o $am__obj" 4691 case $depmode in 4692 gcc) 4693 # This depmode causes a compiler race in universal mode. 4694 test "$am__universal" = false || continue 4695 ;; 4696 nosideeffect) 4697 # After this tag, mechanisms are not by side-effect, so they'll 4698 # only be used when explicitly requested. 4699 if test "x$enable_dependency_tracking" = xyes; then 4700 continue 4701 else 4702 break 4703 fi 4704 ;; 4705 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4706 # This compiler won't grok '-c -o', but also, the minuso test has 4707 # not run yet. These depmodes are late enough in the game, and 4708 # so weak that their functioning should not be impacted. 4709 am__obj=conftest.${OBJEXT-o} 4710 am__minus_obj= 4711 ;; 4712 none) break ;; 4713 esac 4714 if depmode=$depmode \ 4715 source=sub/conftest.c object=$am__obj \ 4716 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4717 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4718 >/dev/null 2>conftest.err && 4719 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4720 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4721 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4722 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4723 # icc doesn't choke on unknown options, it will just issue warnings 4724 # or remarks (even with -Werror). So we grep stderr for any message 4725 # that says an option was ignored or not supported. 4726 # When given -MP, icc 7.0 and 7.1 complain thusly: 4727 # icc: Command line warning: ignoring option '-M'; no argument required 4728 # The diagnosis changed in icc 8.0: 4729 # icc: Command line remark: option '-MP' not supported 4730 if (grep 'ignoring option' conftest.err || 4731 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4732 am_cv_CC_dependencies_compiler_type=$depmode 4733 break 4734 fi 4735 fi 4736 done 4737 4738 cd .. 4739 rm -rf conftest.dir 4740else 4741 am_cv_CC_dependencies_compiler_type=none 4742fi 4743 4744fi 4745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4746$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4747CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4748 4749 if 4750 test "x$enable_dependency_tracking" != xno \ 4751 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4752 am__fastdepCC_TRUE= 4753 am__fastdepCC_FALSE='#' 4754else 4755 am__fastdepCC_TRUE='#' 4756 am__fastdepCC_FALSE= 4757fi 4758 4759 4760 4761# POSIX will say in a future version that running "rm -f" with no argument 4762# is OK; and we want to be able to make that assumption in our Makefile 4763# recipes. So use an aggressive probe to check that the usage we want is 4764# actually supported "in the wild" to an acceptable degree. 4765# See automake bug#10828. 4766# To make any issue more visible, cause the running configure to be aborted 4767# by default if the 'rm' program in use doesn't match our expectations; the 4768# user can still override this though. 4769if rm -f && rm -fr && rm -rf; then : OK; else 4770 cat >&2 <<'END' 4771Oops! 4772 4773Your 'rm' program seems unable to run without file operands specified 4774on the command line, even when the '-f' option is present. This is contrary 4775to the behaviour of most rm programs out there, and not conforming with 4776the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4777 4778Please tell bug-automake@gnu.org about your system, including the value 4779of your $PATH and any error possibly output before this message. This 4780can help us improve future automake versions. 4781 4782END 4783 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4784 echo 'Configuration will proceed anyway, since you have set the' >&2 4785 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4786 echo >&2 4787 else 4788 cat >&2 <<'END' 4789Aborting the configuration process, to ensure you take notice of the issue. 4790 4791You can download and install GNU coreutils to get an 'rm' implementation 4792that behaves properly: <http://www.gnu.org/software/coreutils/>. 4793 4794If you want to complete the configuration process using your problematic 4795'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4796to "yes", and re-run configure. 4797 4798END 4799 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4800 fi 4801fi 4802 4803 4804# Initialize libtool 4805case `pwd` in 4806 *\ * | *\ *) 4807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4808$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4809esac 4810 4811 4812 4813macro_version='2.4.2' 4814macro_revision='1.3337' 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828ltmain="$ac_aux_dir/ltmain.sh" 4829 4830# Backslashify metacharacters that are still active within 4831# double-quoted strings. 4832sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4833 4834# Same as above, but do not quote variable references. 4835double_quote_subst='s/\(["`\\]\)/\\\1/g' 4836 4837# Sed substitution to delay expansion of an escaped shell variable in a 4838# double_quote_subst'ed string. 4839delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4840 4841# Sed substitution to delay expansion of an escaped single quote. 4842delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4843 4844# Sed substitution to avoid accidental globbing in evaled expressions 4845no_glob_subst='s/\*/\\\*/g' 4846 4847ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4848ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4849ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4850 4851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4852$as_echo_n "checking how to print strings... " >&6; } 4853# Test print first, because it will be a builtin if present. 4854if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4855 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4856 ECHO='print -r --' 4857elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4858 ECHO='printf %s\n' 4859else 4860 # Use this function as a fallback that always works. 4861 func_fallback_echo () 4862 { 4863 eval 'cat <<_LTECHO_EOF 4864$1 4865_LTECHO_EOF' 4866 } 4867 ECHO='func_fallback_echo' 4868fi 4869 4870# func_echo_all arg... 4871# Invoke $ECHO with all args, space-separated. 4872func_echo_all () 4873{ 4874 $ECHO "" 4875} 4876 4877case "$ECHO" in 4878 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4879$as_echo "printf" >&6; } ;; 4880 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4881$as_echo "print -r" >&6; } ;; 4882 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4883$as_echo "cat" >&6; } ;; 4884esac 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4900$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4901if ${ac_cv_path_SED+:} false; then : 4902 $as_echo_n "(cached) " >&6 4903else 4904 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4905 for ac_i in 1 2 3 4 5 6 7; do 4906 ac_script="$ac_script$as_nl$ac_script" 4907 done 4908 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4909 { ac_script=; unset ac_script;} 4910 if test -z "$SED"; then 4911 ac_path_SED_found=false 4912 # Loop through the user's path and test for each of PROGNAME-LIST 4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4914for as_dir in $PATH 4915do 4916 IFS=$as_save_IFS 4917 test -z "$as_dir" && as_dir=. 4918 for ac_prog in sed gsed; do 4919 for ac_exec_ext in '' $ac_executable_extensions; do 4920 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4921 as_fn_executable_p "$ac_path_SED" || continue 4922# Check for GNU ac_path_SED and select it if it is found. 4923 # Check for GNU $ac_path_SED 4924case `"$ac_path_SED" --version 2>&1` in 4925*GNU*) 4926 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4927*) 4928 ac_count=0 4929 $as_echo_n 0123456789 >"conftest.in" 4930 while : 4931 do 4932 cat "conftest.in" "conftest.in" >"conftest.tmp" 4933 mv "conftest.tmp" "conftest.in" 4934 cp "conftest.in" "conftest.nl" 4935 $as_echo '' >> "conftest.nl" 4936 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4937 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4938 as_fn_arith $ac_count + 1 && ac_count=$as_val 4939 if test $ac_count -gt ${ac_path_SED_max-0}; then 4940 # Best one so far, save it but keep looking for a better one 4941 ac_cv_path_SED="$ac_path_SED" 4942 ac_path_SED_max=$ac_count 4943 fi 4944 # 10*(2^10) chars as input seems more than enough 4945 test $ac_count -gt 10 && break 4946 done 4947 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4948esac 4949 4950 $ac_path_SED_found && break 3 4951 done 4952 done 4953 done 4954IFS=$as_save_IFS 4955 if test -z "$ac_cv_path_SED"; then 4956 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4957 fi 4958else 4959 ac_cv_path_SED=$SED 4960fi 4961 4962fi 4963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4964$as_echo "$ac_cv_path_SED" >&6; } 4965 SED="$ac_cv_path_SED" 4966 rm -f conftest.sed 4967 4968test -z "$SED" && SED=sed 4969Xsed="$SED -e 1s/^X//" 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4982$as_echo_n "checking for fgrep... " >&6; } 4983if ${ac_cv_path_FGREP+:} false; then : 4984 $as_echo_n "(cached) " >&6 4985else 4986 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4987 then ac_cv_path_FGREP="$GREP -F" 4988 else 4989 if test -z "$FGREP"; then 4990 ac_path_FGREP_found=false 4991 # Loop through the user's path and test for each of PROGNAME-LIST 4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4993for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4994do 4995 IFS=$as_save_IFS 4996 test -z "$as_dir" && as_dir=. 4997 for ac_prog in fgrep; do 4998 for ac_exec_ext in '' $ac_executable_extensions; do 4999 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5000 as_fn_executable_p "$ac_path_FGREP" || continue 5001# Check for GNU ac_path_FGREP and select it if it is found. 5002 # Check for GNU $ac_path_FGREP 5003case `"$ac_path_FGREP" --version 2>&1` in 5004*GNU*) 5005 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5006*) 5007 ac_count=0 5008 $as_echo_n 0123456789 >"conftest.in" 5009 while : 5010 do 5011 cat "conftest.in" "conftest.in" >"conftest.tmp" 5012 mv "conftest.tmp" "conftest.in" 5013 cp "conftest.in" "conftest.nl" 5014 $as_echo 'FGREP' >> "conftest.nl" 5015 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5016 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5017 as_fn_arith $ac_count + 1 && ac_count=$as_val 5018 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5019 # Best one so far, save it but keep looking for a better one 5020 ac_cv_path_FGREP="$ac_path_FGREP" 5021 ac_path_FGREP_max=$ac_count 5022 fi 5023 # 10*(2^10) chars as input seems more than enough 5024 test $ac_count -gt 10 && break 5025 done 5026 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5027esac 5028 5029 $ac_path_FGREP_found && break 3 5030 done 5031 done 5032 done 5033IFS=$as_save_IFS 5034 if test -z "$ac_cv_path_FGREP"; then 5035 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5036 fi 5037else 5038 ac_cv_path_FGREP=$FGREP 5039fi 5040 5041 fi 5042fi 5043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5044$as_echo "$ac_cv_path_FGREP" >&6; } 5045 FGREP="$ac_cv_path_FGREP" 5046 5047 5048test -z "$GREP" && GREP=grep 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068# Check whether --with-gnu-ld was given. 5069if test "${with_gnu_ld+set}" = set; then : 5070 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5071else 5072 with_gnu_ld=no 5073fi 5074 5075ac_prog=ld 5076if test "$GCC" = yes; then 5077 # Check if gcc -print-prog-name=ld gives a path. 5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5079$as_echo_n "checking for ld used by $CC... " >&6; } 5080 case $host in 5081 *-*-mingw*) 5082 # gcc leaves a trailing carriage return which upsets mingw 5083 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5084 *) 5085 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5086 esac 5087 case $ac_prog in 5088 # Accept absolute paths. 5089 [\\/]* | ?:[\\/]*) 5090 re_direlt='/[^/][^/]*/\.\./' 5091 # Canonicalize the pathname of ld 5092 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5093 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5094 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5095 done 5096 test -z "$LD" && LD="$ac_prog" 5097 ;; 5098 "") 5099 # If it fails, then pretend we aren't using GCC. 5100 ac_prog=ld 5101 ;; 5102 *) 5103 # If it is relative, then search for the first ld in PATH. 5104 with_gnu_ld=unknown 5105 ;; 5106 esac 5107elif test "$with_gnu_ld" = yes; then 5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5109$as_echo_n "checking for GNU ld... " >&6; } 5110else 5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5112$as_echo_n "checking for non-GNU ld... " >&6; } 5113fi 5114if ${lt_cv_path_LD+:} false; then : 5115 $as_echo_n "(cached) " >&6 5116else 5117 if test -z "$LD"; then 5118 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5119 for ac_dir in $PATH; do 5120 IFS="$lt_save_ifs" 5121 test -z "$ac_dir" && ac_dir=. 5122 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5123 lt_cv_path_LD="$ac_dir/$ac_prog" 5124 # Check to see if the program is GNU ld. I'd rather use --version, 5125 # but apparently some variants of GNU ld only accept -v. 5126 # Break only if it was the GNU/non-GNU ld that we prefer. 5127 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5128 *GNU* | *'with BFD'*) 5129 test "$with_gnu_ld" != no && break 5130 ;; 5131 *) 5132 test "$with_gnu_ld" != yes && break 5133 ;; 5134 esac 5135 fi 5136 done 5137 IFS="$lt_save_ifs" 5138else 5139 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5140fi 5141fi 5142 5143LD="$lt_cv_path_LD" 5144if test -n "$LD"; then 5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5146$as_echo "$LD" >&6; } 5147else 5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5149$as_echo "no" >&6; } 5150fi 5151test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5153$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5154if ${lt_cv_prog_gnu_ld+:} false; then : 5155 $as_echo_n "(cached) " >&6 5156else 5157 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5158case `$LD -v 2>&1 </dev/null` in 5159*GNU* | *'with BFD'*) 5160 lt_cv_prog_gnu_ld=yes 5161 ;; 5162*) 5163 lt_cv_prog_gnu_ld=no 5164 ;; 5165esac 5166fi 5167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5168$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5169with_gnu_ld=$lt_cv_prog_gnu_ld 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5180$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5181if ${lt_cv_path_NM+:} false; then : 5182 $as_echo_n "(cached) " >&6 5183else 5184 if test -n "$NM"; then 5185 # Let the user override the test. 5186 lt_cv_path_NM="$NM" 5187else 5188 lt_nm_to_check="${ac_tool_prefix}nm" 5189 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5190 lt_nm_to_check="$lt_nm_to_check nm" 5191 fi 5192 for lt_tmp_nm in $lt_nm_to_check; do 5193 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5194 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5195 IFS="$lt_save_ifs" 5196 test -z "$ac_dir" && ac_dir=. 5197 tmp_nm="$ac_dir/$lt_tmp_nm" 5198 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5199 # Check to see if the nm accepts a BSD-compat flag. 5200 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5201 # nm: unknown option "B" ignored 5202 # Tru64's nm complains that /dev/null is an invalid object file 5203 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5204 */dev/null* | *'Invalid file or object type'*) 5205 lt_cv_path_NM="$tmp_nm -B" 5206 break 5207 ;; 5208 *) 5209 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5210 */dev/null*) 5211 lt_cv_path_NM="$tmp_nm -p" 5212 break 5213 ;; 5214 *) 5215 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5216 continue # so that we can try to find one that supports BSD flags 5217 ;; 5218 esac 5219 ;; 5220 esac 5221 fi 5222 done 5223 IFS="$lt_save_ifs" 5224 done 5225 : ${lt_cv_path_NM=no} 5226fi 5227fi 5228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5229$as_echo "$lt_cv_path_NM" >&6; } 5230if test "$lt_cv_path_NM" != "no"; then 5231 NM="$lt_cv_path_NM" 5232else 5233 # Didn't find any BSD compatible name lister, look for dumpbin. 5234 if test -n "$DUMPBIN"; then : 5235 # Let the user override the test. 5236 else 5237 if test -n "$ac_tool_prefix"; then 5238 for ac_prog in dumpbin "link -dump" 5239 do 5240 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5241set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5243$as_echo_n "checking for $ac_word... " >&6; } 5244if ${ac_cv_prog_DUMPBIN+:} false; then : 5245 $as_echo_n "(cached) " >&6 5246else 5247 if test -n "$DUMPBIN"; then 5248 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5249else 5250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5251for as_dir in $PATH 5252do 5253 IFS=$as_save_IFS 5254 test -z "$as_dir" && as_dir=. 5255 for ac_exec_ext in '' $ac_executable_extensions; do 5256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5257 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5259 break 2 5260 fi 5261done 5262 done 5263IFS=$as_save_IFS 5264 5265fi 5266fi 5267DUMPBIN=$ac_cv_prog_DUMPBIN 5268if test -n "$DUMPBIN"; then 5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5270$as_echo "$DUMPBIN" >&6; } 5271else 5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5273$as_echo "no" >&6; } 5274fi 5275 5276 5277 test -n "$DUMPBIN" && break 5278 done 5279fi 5280if test -z "$DUMPBIN"; then 5281 ac_ct_DUMPBIN=$DUMPBIN 5282 for ac_prog in dumpbin "link -dump" 5283do 5284 # Extract the first word of "$ac_prog", so it can be a program name with args. 5285set dummy $ac_prog; ac_word=$2 5286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5287$as_echo_n "checking for $ac_word... " >&6; } 5288if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5289 $as_echo_n "(cached) " >&6 5290else 5291 if test -n "$ac_ct_DUMPBIN"; then 5292 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5293else 5294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5295for as_dir in $PATH 5296do 5297 IFS=$as_save_IFS 5298 test -z "$as_dir" && as_dir=. 5299 for ac_exec_ext in '' $ac_executable_extensions; do 5300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5301 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5303 break 2 5304 fi 5305done 5306 done 5307IFS=$as_save_IFS 5308 5309fi 5310fi 5311ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5312if test -n "$ac_ct_DUMPBIN"; then 5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5314$as_echo "$ac_ct_DUMPBIN" >&6; } 5315else 5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5317$as_echo "no" >&6; } 5318fi 5319 5320 5321 test -n "$ac_ct_DUMPBIN" && break 5322done 5323 5324 if test "x$ac_ct_DUMPBIN" = x; then 5325 DUMPBIN=":" 5326 else 5327 case $cross_compiling:$ac_tool_warned in 5328yes:) 5329{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5330$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5331ac_tool_warned=yes ;; 5332esac 5333 DUMPBIN=$ac_ct_DUMPBIN 5334 fi 5335fi 5336 5337 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5338 *COFF*) 5339 DUMPBIN="$DUMPBIN -symbols" 5340 ;; 5341 *) 5342 DUMPBIN=: 5343 ;; 5344 esac 5345 fi 5346 5347 if test "$DUMPBIN" != ":"; then 5348 NM="$DUMPBIN" 5349 fi 5350fi 5351test -z "$NM" && NM=nm 5352 5353 5354 5355 5356 5357 5358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5359$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5360if ${lt_cv_nm_interface+:} false; then : 5361 $as_echo_n "(cached) " >&6 5362else 5363 lt_cv_nm_interface="BSD nm" 5364 echo "int some_variable = 0;" > conftest.$ac_ext 5365 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5366 (eval "$ac_compile" 2>conftest.err) 5367 cat conftest.err >&5 5368 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5369 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5370 cat conftest.err >&5 5371 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5372 cat conftest.out >&5 5373 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5374 lt_cv_nm_interface="MS dumpbin" 5375 fi 5376 rm -f conftest* 5377fi 5378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5379$as_echo "$lt_cv_nm_interface" >&6; } 5380 5381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5382$as_echo_n "checking whether ln -s works... " >&6; } 5383LN_S=$as_ln_s 5384if test "$LN_S" = "ln -s"; then 5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5386$as_echo "yes" >&6; } 5387else 5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5389$as_echo "no, using $LN_S" >&6; } 5390fi 5391 5392# find the maximum length of command line arguments 5393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5394$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5395if ${lt_cv_sys_max_cmd_len+:} false; then : 5396 $as_echo_n "(cached) " >&6 5397else 5398 i=0 5399 teststring="ABCD" 5400 5401 case $build_os in 5402 msdosdjgpp*) 5403 # On DJGPP, this test can blow up pretty badly due to problems in libc 5404 # (any single argument exceeding 2000 bytes causes a buffer overrun 5405 # during glob expansion). Even if it were fixed, the result of this 5406 # check would be larger than it should be. 5407 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5408 ;; 5409 5410 gnu*) 5411 # Under GNU Hurd, this test is not required because there is 5412 # no limit to the length of command line arguments. 5413 # Libtool will interpret -1 as no limit whatsoever 5414 lt_cv_sys_max_cmd_len=-1; 5415 ;; 5416 5417 cygwin* | mingw* | cegcc*) 5418 # On Win9x/ME, this test blows up -- it succeeds, but takes 5419 # about 5 minutes as the teststring grows exponentially. 5420 # Worse, since 9x/ME are not pre-emptively multitasking, 5421 # you end up with a "frozen" computer, even though with patience 5422 # the test eventually succeeds (with a max line length of 256k). 5423 # Instead, let's just punt: use the minimum linelength reported by 5424 # all of the supported platforms: 8192 (on NT/2K/XP). 5425 lt_cv_sys_max_cmd_len=8192; 5426 ;; 5427 5428 mint*) 5429 # On MiNT this can take a long time and run out of memory. 5430 lt_cv_sys_max_cmd_len=8192; 5431 ;; 5432 5433 amigaos*) 5434 # On AmigaOS with pdksh, this test takes hours, literally. 5435 # So we just punt and use a minimum line length of 8192. 5436 lt_cv_sys_max_cmd_len=8192; 5437 ;; 5438 5439 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5440 # This has been around since 386BSD, at least. Likely further. 5441 if test -x /sbin/sysctl; then 5442 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5443 elif test -x /usr/sbin/sysctl; then 5444 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5445 else 5446 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5447 fi 5448 # And add a safety zone 5449 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5450 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5451 ;; 5452 5453 interix*) 5454 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5455 lt_cv_sys_max_cmd_len=196608 5456 ;; 5457 5458 os2*) 5459 # The test takes a long time on OS/2. 5460 lt_cv_sys_max_cmd_len=8192 5461 ;; 5462 5463 osf*) 5464 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5465 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5466 # nice to cause kernel panics so lets avoid the loop below. 5467 # First set a reasonable default. 5468 lt_cv_sys_max_cmd_len=16384 5469 # 5470 if test -x /sbin/sysconfig; then 5471 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5472 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5473 esac 5474 fi 5475 ;; 5476 sco3.2v5*) 5477 lt_cv_sys_max_cmd_len=102400 5478 ;; 5479 sysv5* | sco5v6* | sysv4.2uw2*) 5480 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5481 if test -n "$kargmax"; then 5482 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5483 else 5484 lt_cv_sys_max_cmd_len=32768 5485 fi 5486 ;; 5487 *) 5488 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5489 if test -n "$lt_cv_sys_max_cmd_len"; then 5490 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5491 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5492 else 5493 # Make teststring a little bigger before we do anything with it. 5494 # a 1K string should be a reasonable start. 5495 for i in 1 2 3 4 5 6 7 8 ; do 5496 teststring=$teststring$teststring 5497 done 5498 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5499 # If test is not a shell built-in, we'll probably end up computing a 5500 # maximum length that is only half of the actual maximum length, but 5501 # we can't tell. 5502 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 5503 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5504 test $i != 17 # 1/2 MB should be enough 5505 do 5506 i=`expr $i + 1` 5507 teststring=$teststring$teststring 5508 done 5509 # Only check the string length outside the loop. 5510 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5511 teststring= 5512 # Add a significant safety factor because C++ compilers can tack on 5513 # massive amounts of additional arguments before passing them to the 5514 # linker. It appears as though 1/2 is a usable value. 5515 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5516 fi 5517 ;; 5518 esac 5519 5520fi 5521 5522if test -n $lt_cv_sys_max_cmd_len ; then 5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5524$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5525else 5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5527$as_echo "none" >&6; } 5528fi 5529max_cmd_len=$lt_cv_sys_max_cmd_len 5530 5531 5532 5533 5534 5535 5536: ${CP="cp -f"} 5537: ${MV="mv -f"} 5538: ${RM="rm -f"} 5539 5540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5541$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5542# Try some XSI features 5543xsi_shell=no 5544( _lt_dummy="a/b/c" 5545 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5546 = c,a/b,b/c, \ 5547 && eval 'test $(( 1 + 1 )) -eq 2 \ 5548 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5549 && xsi_shell=yes 5550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5551$as_echo "$xsi_shell" >&6; } 5552 5553 5554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5555$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5556lt_shell_append=no 5557( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5558 >/dev/null 2>&1 \ 5559 && lt_shell_append=yes 5560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5561$as_echo "$lt_shell_append" >&6; } 5562 5563 5564if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5565 lt_unset=unset 5566else 5567 lt_unset=false 5568fi 5569 5570 5571 5572 5573 5574# test EBCDIC or ASCII 5575case `echo X|tr X '\101'` in 5576 A) # ASCII based system 5577 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5578 lt_SP2NL='tr \040 \012' 5579 lt_NL2SP='tr \015\012 \040\040' 5580 ;; 5581 *) # EBCDIC based system 5582 lt_SP2NL='tr \100 \n' 5583 lt_NL2SP='tr \r\n \100\100' 5584 ;; 5585esac 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5596$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5597if ${lt_cv_to_host_file_cmd+:} false; then : 5598 $as_echo_n "(cached) " >&6 5599else 5600 case $host in 5601 *-*-mingw* ) 5602 case $build in 5603 *-*-mingw* ) # actually msys 5604 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5605 ;; 5606 *-*-cygwin* ) 5607 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5608 ;; 5609 * ) # otherwise, assume *nix 5610 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5611 ;; 5612 esac 5613 ;; 5614 *-*-cygwin* ) 5615 case $build in 5616 *-*-mingw* ) # actually msys 5617 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5618 ;; 5619 *-*-cygwin* ) 5620 lt_cv_to_host_file_cmd=func_convert_file_noop 5621 ;; 5622 * ) # otherwise, assume *nix 5623 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5624 ;; 5625 esac 5626 ;; 5627 * ) # unhandled hosts (and "normal" native builds) 5628 lt_cv_to_host_file_cmd=func_convert_file_noop 5629 ;; 5630esac 5631 5632fi 5633 5634to_host_file_cmd=$lt_cv_to_host_file_cmd 5635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5636$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5637 5638 5639 5640 5641 5642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5643$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5644if ${lt_cv_to_tool_file_cmd+:} false; then : 5645 $as_echo_n "(cached) " >&6 5646else 5647 #assume ordinary cross tools, or native build. 5648lt_cv_to_tool_file_cmd=func_convert_file_noop 5649case $host in 5650 *-*-mingw* ) 5651 case $build in 5652 *-*-mingw* ) # actually msys 5653 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5654 ;; 5655 esac 5656 ;; 5657esac 5658 5659fi 5660 5661to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5663$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5664 5665 5666 5667 5668 5669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5670$as_echo_n "checking for $LD option to reload object files... " >&6; } 5671if ${lt_cv_ld_reload_flag+:} false; then : 5672 $as_echo_n "(cached) " >&6 5673else 5674 lt_cv_ld_reload_flag='-r' 5675fi 5676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5677$as_echo "$lt_cv_ld_reload_flag" >&6; } 5678reload_flag=$lt_cv_ld_reload_flag 5679case $reload_flag in 5680"" | " "*) ;; 5681*) reload_flag=" $reload_flag" ;; 5682esac 5683reload_cmds='$LD$reload_flag -o $output$reload_objs' 5684case $host_os in 5685 cygwin* | mingw* | pw32* | cegcc*) 5686 if test "$GCC" != yes; then 5687 reload_cmds=false 5688 fi 5689 ;; 5690 darwin*) 5691 if test "$GCC" = yes; then 5692 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5693 else 5694 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5695 fi 5696 ;; 5697esac 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707if test -n "$ac_tool_prefix"; then 5708 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5709set dummy ${ac_tool_prefix}objdump; ac_word=$2 5710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5711$as_echo_n "checking for $ac_word... " >&6; } 5712if ${ac_cv_prog_OBJDUMP+:} false; then : 5713 $as_echo_n "(cached) " >&6 5714else 5715 if test -n "$OBJDUMP"; then 5716 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5717else 5718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5719for as_dir in $PATH 5720do 5721 IFS=$as_save_IFS 5722 test -z "$as_dir" && as_dir=. 5723 for ac_exec_ext in '' $ac_executable_extensions; do 5724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5725 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5727 break 2 5728 fi 5729done 5730 done 5731IFS=$as_save_IFS 5732 5733fi 5734fi 5735OBJDUMP=$ac_cv_prog_OBJDUMP 5736if test -n "$OBJDUMP"; then 5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5738$as_echo "$OBJDUMP" >&6; } 5739else 5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5741$as_echo "no" >&6; } 5742fi 5743 5744 5745fi 5746if test -z "$ac_cv_prog_OBJDUMP"; then 5747 ac_ct_OBJDUMP=$OBJDUMP 5748 # Extract the first word of "objdump", so it can be a program name with args. 5749set dummy objdump; ac_word=$2 5750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5751$as_echo_n "checking for $ac_word... " >&6; } 5752if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5753 $as_echo_n "(cached) " >&6 5754else 5755 if test -n "$ac_ct_OBJDUMP"; then 5756 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5757else 5758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5759for as_dir in $PATH 5760do 5761 IFS=$as_save_IFS 5762 test -z "$as_dir" && as_dir=. 5763 for ac_exec_ext in '' $ac_executable_extensions; do 5764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5765 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5767 break 2 5768 fi 5769done 5770 done 5771IFS=$as_save_IFS 5772 5773fi 5774fi 5775ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5776if test -n "$ac_ct_OBJDUMP"; then 5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5778$as_echo "$ac_ct_OBJDUMP" >&6; } 5779else 5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5781$as_echo "no" >&6; } 5782fi 5783 5784 if test "x$ac_ct_OBJDUMP" = x; then 5785 OBJDUMP="false" 5786 else 5787 case $cross_compiling:$ac_tool_warned in 5788yes:) 5789{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5790$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5791ac_tool_warned=yes ;; 5792esac 5793 OBJDUMP=$ac_ct_OBJDUMP 5794 fi 5795else 5796 OBJDUMP="$ac_cv_prog_OBJDUMP" 5797fi 5798 5799test -z "$OBJDUMP" && OBJDUMP=objdump 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5810$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5811if ${lt_cv_deplibs_check_method+:} false; then : 5812 $as_echo_n "(cached) " >&6 5813else 5814 lt_cv_file_magic_cmd='$MAGIC_CMD' 5815lt_cv_file_magic_test_file= 5816lt_cv_deplibs_check_method='unknown' 5817# Need to set the preceding variable on all platforms that support 5818# interlibrary dependencies. 5819# 'none' -- dependencies not supported. 5820# `unknown' -- same as none, but documents that we really don't know. 5821# 'pass_all' -- all dependencies passed with no checks. 5822# 'test_compile' -- check by making test program. 5823# 'file_magic [[regex]]' -- check by looking for files in library path 5824# which responds to the $file_magic_cmd with a given extended regex. 5825# If you have `file' or equivalent on your system and you're not sure 5826# whether `pass_all' will *always* work, you probably want this one. 5827 5828case $host_os in 5829aix[4-9]*) 5830 lt_cv_deplibs_check_method=pass_all 5831 ;; 5832 5833beos*) 5834 lt_cv_deplibs_check_method=pass_all 5835 ;; 5836 5837bsdi[45]*) 5838 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5839 lt_cv_file_magic_cmd='/usr/bin/file -L' 5840 lt_cv_file_magic_test_file=/shlib/libc.so 5841 ;; 5842 5843cygwin*) 5844 # func_win32_libid is a shell function defined in ltmain.sh 5845 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5846 lt_cv_file_magic_cmd='func_win32_libid' 5847 ;; 5848 5849mingw* | pw32*) 5850 # Base MSYS/MinGW do not provide the 'file' command needed by 5851 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5852 # unless we find 'file', for example because we are cross-compiling. 5853 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5854 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5855 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5856 lt_cv_file_magic_cmd='func_win32_libid' 5857 else 5858 # Keep this pattern in sync with the one in func_win32_libid. 5859 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5860 lt_cv_file_magic_cmd='$OBJDUMP -f' 5861 fi 5862 ;; 5863 5864cegcc*) 5865 # use the weaker test based on 'objdump'. See mingw*. 5866 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5867 lt_cv_file_magic_cmd='$OBJDUMP -f' 5868 ;; 5869 5870darwin* | rhapsody*) 5871 lt_cv_deplibs_check_method=pass_all 5872 ;; 5873 5874freebsd* | dragonfly*) 5875 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5876 case $host_cpu in 5877 i*86 ) 5878 # Not sure whether the presence of OpenBSD here was a mistake. 5879 # Let's accept both of them until this is cleared up. 5880 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5881 lt_cv_file_magic_cmd=/usr/bin/file 5882 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5883 ;; 5884 esac 5885 else 5886 lt_cv_deplibs_check_method=pass_all 5887 fi 5888 ;; 5889 5890gnu*) 5891 lt_cv_deplibs_check_method=pass_all 5892 ;; 5893 5894haiku*) 5895 lt_cv_deplibs_check_method=pass_all 5896 ;; 5897 5898hpux10.20* | hpux11*) 5899 lt_cv_file_magic_cmd=/usr/bin/file 5900 case $host_cpu in 5901 ia64*) 5902 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5903 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5904 ;; 5905 hppa*64*) 5906 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]' 5907 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5908 ;; 5909 *) 5910 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5911 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5912 ;; 5913 esac 5914 ;; 5915 5916interix[3-9]*) 5917 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5918 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5919 ;; 5920 5921irix5* | irix6* | nonstopux*) 5922 case $LD in 5923 *-32|*"-32 ") libmagic=32-bit;; 5924 *-n32|*"-n32 ") libmagic=N32;; 5925 *-64|*"-64 ") libmagic=64-bit;; 5926 *) libmagic=never-match;; 5927 esac 5928 lt_cv_deplibs_check_method=pass_all 5929 ;; 5930 5931# This must be glibc/ELF. 5932linux* | k*bsd*-gnu | kopensolaris*-gnu) 5933 lt_cv_deplibs_check_method=pass_all 5934 ;; 5935 5936netbsd*) 5937 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5938 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5939 else 5940 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5941 fi 5942 ;; 5943 5944newos6*) 5945 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5946 lt_cv_file_magic_cmd=/usr/bin/file 5947 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5948 ;; 5949 5950*nto* | *qnx*) 5951 lt_cv_deplibs_check_method=pass_all 5952 ;; 5953 5954openbsd*) 5955 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5956 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5957 else 5958 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5959 fi 5960 ;; 5961 5962osf3* | osf4* | osf5*) 5963 lt_cv_deplibs_check_method=pass_all 5964 ;; 5965 5966rdos*) 5967 lt_cv_deplibs_check_method=pass_all 5968 ;; 5969 5970solaris*) 5971 lt_cv_deplibs_check_method=pass_all 5972 ;; 5973 5974sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5975 lt_cv_deplibs_check_method=pass_all 5976 ;; 5977 5978sysv4 | sysv4.3*) 5979 case $host_vendor in 5980 motorola) 5981 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]' 5982 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5983 ;; 5984 ncr) 5985 lt_cv_deplibs_check_method=pass_all 5986 ;; 5987 sequent) 5988 lt_cv_file_magic_cmd='/bin/file' 5989 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5990 ;; 5991 sni) 5992 lt_cv_file_magic_cmd='/bin/file' 5993 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5994 lt_cv_file_magic_test_file=/lib/libc.so 5995 ;; 5996 siemens) 5997 lt_cv_deplibs_check_method=pass_all 5998 ;; 5999 pc) 6000 lt_cv_deplibs_check_method=pass_all 6001 ;; 6002 esac 6003 ;; 6004 6005tpf*) 6006 lt_cv_deplibs_check_method=pass_all 6007 ;; 6008esac 6009 6010fi 6011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6012$as_echo "$lt_cv_deplibs_check_method" >&6; } 6013 6014file_magic_glob= 6015want_nocaseglob=no 6016if test "$build" = "$host"; then 6017 case $host_os in 6018 mingw* | pw32*) 6019 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6020 want_nocaseglob=yes 6021 else 6022 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6023 fi 6024 ;; 6025 esac 6026fi 6027 6028file_magic_cmd=$lt_cv_file_magic_cmd 6029deplibs_check_method=$lt_cv_deplibs_check_method 6030test -z "$deplibs_check_method" && deplibs_check_method=unknown 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053if test -n "$ac_tool_prefix"; then 6054 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6055set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6057$as_echo_n "checking for $ac_word... " >&6; } 6058if ${ac_cv_prog_DLLTOOL+:} false; then : 6059 $as_echo_n "(cached) " >&6 6060else 6061 if test -n "$DLLTOOL"; then 6062 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6063else 6064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6065for as_dir in $PATH 6066do 6067 IFS=$as_save_IFS 6068 test -z "$as_dir" && as_dir=. 6069 for ac_exec_ext in '' $ac_executable_extensions; do 6070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6071 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6073 break 2 6074 fi 6075done 6076 done 6077IFS=$as_save_IFS 6078 6079fi 6080fi 6081DLLTOOL=$ac_cv_prog_DLLTOOL 6082if test -n "$DLLTOOL"; then 6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6084$as_echo "$DLLTOOL" >&6; } 6085else 6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6087$as_echo "no" >&6; } 6088fi 6089 6090 6091fi 6092if test -z "$ac_cv_prog_DLLTOOL"; then 6093 ac_ct_DLLTOOL=$DLLTOOL 6094 # Extract the first word of "dlltool", so it can be a program name with args. 6095set dummy dlltool; ac_word=$2 6096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6097$as_echo_n "checking for $ac_word... " >&6; } 6098if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6099 $as_echo_n "(cached) " >&6 6100else 6101 if test -n "$ac_ct_DLLTOOL"; then 6102 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6103else 6104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6105for as_dir in $PATH 6106do 6107 IFS=$as_save_IFS 6108 test -z "$as_dir" && as_dir=. 6109 for ac_exec_ext in '' $ac_executable_extensions; do 6110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6111 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6113 break 2 6114 fi 6115done 6116 done 6117IFS=$as_save_IFS 6118 6119fi 6120fi 6121ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6122if test -n "$ac_ct_DLLTOOL"; then 6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6124$as_echo "$ac_ct_DLLTOOL" >&6; } 6125else 6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6127$as_echo "no" >&6; } 6128fi 6129 6130 if test "x$ac_ct_DLLTOOL" = x; then 6131 DLLTOOL="false" 6132 else 6133 case $cross_compiling:$ac_tool_warned in 6134yes:) 6135{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6136$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6137ac_tool_warned=yes ;; 6138esac 6139 DLLTOOL=$ac_ct_DLLTOOL 6140 fi 6141else 6142 DLLTOOL="$ac_cv_prog_DLLTOOL" 6143fi 6144 6145test -z "$DLLTOOL" && DLLTOOL=dlltool 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6157$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6158if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6159 $as_echo_n "(cached) " >&6 6160else 6161 lt_cv_sharedlib_from_linklib_cmd='unknown' 6162 6163case $host_os in 6164cygwin* | mingw* | pw32* | cegcc*) 6165 # two different shell functions defined in ltmain.sh 6166 # decide which to use based on capabilities of $DLLTOOL 6167 case `$DLLTOOL --help 2>&1` in 6168 *--identify-strict*) 6169 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6170 ;; 6171 *) 6172 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6173 ;; 6174 esac 6175 ;; 6176*) 6177 # fallback: assume linklib IS sharedlib 6178 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 6179 ;; 6180esac 6181 6182fi 6183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6184$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6185sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6186test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6187 6188 6189 6190 6191 6192 6193 6194if test -n "$ac_tool_prefix"; then 6195 for ac_prog in ar 6196 do 6197 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6198set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6200$as_echo_n "checking for $ac_word... " >&6; } 6201if ${ac_cv_prog_AR+:} false; then : 6202 $as_echo_n "(cached) " >&6 6203else 6204 if test -n "$AR"; then 6205 ac_cv_prog_AR="$AR" # Let the user override the test. 6206else 6207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6208for as_dir in $PATH 6209do 6210 IFS=$as_save_IFS 6211 test -z "$as_dir" && as_dir=. 6212 for ac_exec_ext in '' $ac_executable_extensions; do 6213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6214 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6216 break 2 6217 fi 6218done 6219 done 6220IFS=$as_save_IFS 6221 6222fi 6223fi 6224AR=$ac_cv_prog_AR 6225if test -n "$AR"; then 6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6227$as_echo "$AR" >&6; } 6228else 6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6230$as_echo "no" >&6; } 6231fi 6232 6233 6234 test -n "$AR" && break 6235 done 6236fi 6237if test -z "$AR"; then 6238 ac_ct_AR=$AR 6239 for ac_prog in ar 6240do 6241 # Extract the first word of "$ac_prog", so it can be a program name with args. 6242set dummy $ac_prog; ac_word=$2 6243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6244$as_echo_n "checking for $ac_word... " >&6; } 6245if ${ac_cv_prog_ac_ct_AR+:} false; then : 6246 $as_echo_n "(cached) " >&6 6247else 6248 if test -n "$ac_ct_AR"; then 6249 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6250else 6251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6252for as_dir in $PATH 6253do 6254 IFS=$as_save_IFS 6255 test -z "$as_dir" && as_dir=. 6256 for ac_exec_ext in '' $ac_executable_extensions; do 6257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6258 ac_cv_prog_ac_ct_AR="$ac_prog" 6259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6260 break 2 6261 fi 6262done 6263 done 6264IFS=$as_save_IFS 6265 6266fi 6267fi 6268ac_ct_AR=$ac_cv_prog_ac_ct_AR 6269if test -n "$ac_ct_AR"; then 6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6271$as_echo "$ac_ct_AR" >&6; } 6272else 6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6274$as_echo "no" >&6; } 6275fi 6276 6277 6278 test -n "$ac_ct_AR" && break 6279done 6280 6281 if test "x$ac_ct_AR" = x; then 6282 AR="false" 6283 else 6284 case $cross_compiling:$ac_tool_warned in 6285yes:) 6286{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6287$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6288ac_tool_warned=yes ;; 6289esac 6290 AR=$ac_ct_AR 6291 fi 6292fi 6293 6294: ${AR=ar} 6295: ${AR_FLAGS=cru} 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6308$as_echo_n "checking for archiver @FILE support... " >&6; } 6309if ${lt_cv_ar_at_file+:} false; then : 6310 $as_echo_n "(cached) " >&6 6311else 6312 lt_cv_ar_at_file=no 6313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6314/* end confdefs.h. */ 6315 6316int 6317main () 6318{ 6319 6320 ; 6321 return 0; 6322} 6323_ACEOF 6324if ac_fn_c_try_compile "$LINENO"; then : 6325 echo conftest.$ac_objext > conftest.lst 6326 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6327 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6328 (eval $lt_ar_try) 2>&5 6329 ac_status=$? 6330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6331 test $ac_status = 0; } 6332 if test "$ac_status" -eq 0; then 6333 # Ensure the archiver fails upon bogus file names. 6334 rm -f conftest.$ac_objext libconftest.a 6335 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6336 (eval $lt_ar_try) 2>&5 6337 ac_status=$? 6338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6339 test $ac_status = 0; } 6340 if test "$ac_status" -ne 0; then 6341 lt_cv_ar_at_file=@ 6342 fi 6343 fi 6344 rm -f conftest.* libconftest.a 6345 6346fi 6347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6348 6349fi 6350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6351$as_echo "$lt_cv_ar_at_file" >&6; } 6352 6353if test "x$lt_cv_ar_at_file" = xno; then 6354 archiver_list_spec= 6355else 6356 archiver_list_spec=$lt_cv_ar_at_file 6357fi 6358 6359 6360 6361 6362 6363 6364 6365if test -n "$ac_tool_prefix"; then 6366 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6367set dummy ${ac_tool_prefix}strip; ac_word=$2 6368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6369$as_echo_n "checking for $ac_word... " >&6; } 6370if ${ac_cv_prog_STRIP+:} false; then : 6371 $as_echo_n "(cached) " >&6 6372else 6373 if test -n "$STRIP"; then 6374 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6375else 6376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6377for as_dir in $PATH 6378do 6379 IFS=$as_save_IFS 6380 test -z "$as_dir" && as_dir=. 6381 for ac_exec_ext in '' $ac_executable_extensions; do 6382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6383 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6385 break 2 6386 fi 6387done 6388 done 6389IFS=$as_save_IFS 6390 6391fi 6392fi 6393STRIP=$ac_cv_prog_STRIP 6394if test -n "$STRIP"; then 6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6396$as_echo "$STRIP" >&6; } 6397else 6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6399$as_echo "no" >&6; } 6400fi 6401 6402 6403fi 6404if test -z "$ac_cv_prog_STRIP"; then 6405 ac_ct_STRIP=$STRIP 6406 # Extract the first word of "strip", so it can be a program name with args. 6407set dummy strip; ac_word=$2 6408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6409$as_echo_n "checking for $ac_word... " >&6; } 6410if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6411 $as_echo_n "(cached) " >&6 6412else 6413 if test -n "$ac_ct_STRIP"; then 6414 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6415else 6416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6417for as_dir in $PATH 6418do 6419 IFS=$as_save_IFS 6420 test -z "$as_dir" && as_dir=. 6421 for ac_exec_ext in '' $ac_executable_extensions; do 6422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6423 ac_cv_prog_ac_ct_STRIP="strip" 6424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6425 break 2 6426 fi 6427done 6428 done 6429IFS=$as_save_IFS 6430 6431fi 6432fi 6433ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6434if test -n "$ac_ct_STRIP"; then 6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6436$as_echo "$ac_ct_STRIP" >&6; } 6437else 6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6439$as_echo "no" >&6; } 6440fi 6441 6442 if test "x$ac_ct_STRIP" = x; then 6443 STRIP=":" 6444 else 6445 case $cross_compiling:$ac_tool_warned in 6446yes:) 6447{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6448$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6449ac_tool_warned=yes ;; 6450esac 6451 STRIP=$ac_ct_STRIP 6452 fi 6453else 6454 STRIP="$ac_cv_prog_STRIP" 6455fi 6456 6457test -z "$STRIP" && STRIP=: 6458 6459 6460 6461 6462 6463 6464if test -n "$ac_tool_prefix"; then 6465 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6466set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6468$as_echo_n "checking for $ac_word... " >&6; } 6469if ${ac_cv_prog_RANLIB+:} false; then : 6470 $as_echo_n "(cached) " >&6 6471else 6472 if test -n "$RANLIB"; then 6473 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6474else 6475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6476for as_dir in $PATH 6477do 6478 IFS=$as_save_IFS 6479 test -z "$as_dir" && as_dir=. 6480 for ac_exec_ext in '' $ac_executable_extensions; do 6481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6482 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6484 break 2 6485 fi 6486done 6487 done 6488IFS=$as_save_IFS 6489 6490fi 6491fi 6492RANLIB=$ac_cv_prog_RANLIB 6493if test -n "$RANLIB"; then 6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6495$as_echo "$RANLIB" >&6; } 6496else 6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6498$as_echo "no" >&6; } 6499fi 6500 6501 6502fi 6503if test -z "$ac_cv_prog_RANLIB"; then 6504 ac_ct_RANLIB=$RANLIB 6505 # Extract the first word of "ranlib", so it can be a program name with args. 6506set dummy ranlib; ac_word=$2 6507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6508$as_echo_n "checking for $ac_word... " >&6; } 6509if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6510 $as_echo_n "(cached) " >&6 6511else 6512 if test -n "$ac_ct_RANLIB"; then 6513 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6514else 6515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6516for as_dir in $PATH 6517do 6518 IFS=$as_save_IFS 6519 test -z "$as_dir" && as_dir=. 6520 for ac_exec_ext in '' $ac_executable_extensions; do 6521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6522 ac_cv_prog_ac_ct_RANLIB="ranlib" 6523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6524 break 2 6525 fi 6526done 6527 done 6528IFS=$as_save_IFS 6529 6530fi 6531fi 6532ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6533if test -n "$ac_ct_RANLIB"; then 6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6535$as_echo "$ac_ct_RANLIB" >&6; } 6536else 6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6538$as_echo "no" >&6; } 6539fi 6540 6541 if test "x$ac_ct_RANLIB" = x; then 6542 RANLIB=":" 6543 else 6544 case $cross_compiling:$ac_tool_warned in 6545yes:) 6546{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6547$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6548ac_tool_warned=yes ;; 6549esac 6550 RANLIB=$ac_ct_RANLIB 6551 fi 6552else 6553 RANLIB="$ac_cv_prog_RANLIB" 6554fi 6555 6556test -z "$RANLIB" && RANLIB=: 6557 6558 6559 6560 6561 6562 6563# Determine commands to create old-style static archives. 6564old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6565old_postinstall_cmds='chmod 644 $oldlib' 6566old_postuninstall_cmds= 6567 6568if test -n "$RANLIB"; then 6569 case $host_os in 6570 openbsd*) 6571 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6572 ;; 6573 *) 6574 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6575 ;; 6576 esac 6577 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6578fi 6579 6580case $host_os in 6581 darwin*) 6582 lock_old_archive_extraction=yes ;; 6583 *) 6584 lock_old_archive_extraction=no ;; 6585esac 6586 6587 6588 6589 6590 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# If no C compiler was specified, use CC. 6626LTCC=${LTCC-"$CC"} 6627 6628# If no C compiler flags were specified, use CFLAGS. 6629LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6630 6631# Allow CC to be a program name with arguments. 6632compiler=$CC 6633 6634 6635# Check for command to grab the raw symbol name followed by C symbol from nm. 6636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6637$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6638if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6639 $as_echo_n "(cached) " >&6 6640else 6641 6642# These are sane defaults that work on at least a few old systems. 6643# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6644 6645# Character class describing NM global symbol codes. 6646symcode='[BCDEGRST]' 6647 6648# Regexp to match symbols that can be accessed directly from C. 6649sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6650 6651# Define system-specific variables. 6652case $host_os in 6653aix*) 6654 symcode='[BCDT]' 6655 ;; 6656cygwin* | mingw* | pw32* | cegcc*) 6657 symcode='[ABCDGISTW]' 6658 ;; 6659hpux*) 6660 if test "$host_cpu" = ia64; then 6661 symcode='[ABCDEGRST]' 6662 fi 6663 ;; 6664irix* | nonstopux*) 6665 symcode='[BCDEGRST]' 6666 ;; 6667osf*) 6668 symcode='[BCDEGQRST]' 6669 ;; 6670solaris*) 6671 symcode='[BDRT]' 6672 ;; 6673sco3.2v5*) 6674 symcode='[DT]' 6675 ;; 6676sysv4.2uw2*) 6677 symcode='[DT]' 6678 ;; 6679sysv5* | sco5v6* | unixware* | OpenUNIX*) 6680 symcode='[ABDT]' 6681 ;; 6682sysv4) 6683 symcode='[DFNSTU]' 6684 ;; 6685esac 6686 6687# If we're using GNU nm, then use its standard symbol codes. 6688case `$NM -V 2>&1` in 6689*GNU* | *'with BFD'*) 6690 symcode='[ABCDGIRSTW]' ;; 6691esac 6692 6693# Transform an extracted symbol line into a proper C declaration. 6694# Some systems (esp. on ia64) link data and code symbols differently, 6695# so use this general approach. 6696lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6697 6698# Transform an extracted symbol line into symbol name and symbol address 6699lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6700lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6701 6702# Handle CRLF in mingw tool chain 6703opt_cr= 6704case $build_os in 6705mingw*) 6706 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6707 ;; 6708esac 6709 6710# Try without a prefix underscore, then with it. 6711for ac_symprfx in "" "_"; do 6712 6713 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6714 symxfrm="\\1 $ac_symprfx\\2 \\2" 6715 6716 # Write the raw and C identifiers. 6717 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6718 # Fake it for dumpbin and say T for any non-static function 6719 # and D for any global variable. 6720 # Also find C++ and __fastcall symbols from MSVC++, 6721 # which start with @ or ?. 6722 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6723" {last_section=section; section=\$ 3};"\ 6724" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6725" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6726" \$ 0!~/External *\|/{next};"\ 6727" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6728" {if(hide[section]) next};"\ 6729" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6730" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6731" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6732" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6733" ' prfx=^$ac_symprfx" 6734 else 6735 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6736 fi 6737 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6738 6739 # Check to see that the pipe works correctly. 6740 pipe_works=no 6741 6742 rm -f conftest* 6743 cat > conftest.$ac_ext <<_LT_EOF 6744#ifdef __cplusplus 6745extern "C" { 6746#endif 6747char nm_test_var; 6748void nm_test_func(void); 6749void nm_test_func(void){} 6750#ifdef __cplusplus 6751} 6752#endif 6753int main(){nm_test_var='a';nm_test_func();return(0);} 6754_LT_EOF 6755 6756 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6757 (eval $ac_compile) 2>&5 6758 ac_status=$? 6759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6760 test $ac_status = 0; }; then 6761 # Now try to grab the symbols. 6762 nlist=conftest.nm 6763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6764 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6765 ac_status=$? 6766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6767 test $ac_status = 0; } && test -s "$nlist"; then 6768 # Try sorting and uniquifying the output. 6769 if sort "$nlist" | uniq > "$nlist"T; then 6770 mv -f "$nlist"T "$nlist" 6771 else 6772 rm -f "$nlist"T 6773 fi 6774 6775 # Make sure that we snagged all the symbols we need. 6776 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6777 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6778 cat <<_LT_EOF > conftest.$ac_ext 6779/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6780#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6781/* DATA imports from DLLs on WIN32 con't be const, because runtime 6782 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6783# define LT_DLSYM_CONST 6784#elif defined(__osf__) 6785/* This system does not cope well with relocations in const data. */ 6786# define LT_DLSYM_CONST 6787#else 6788# define LT_DLSYM_CONST const 6789#endif 6790 6791#ifdef __cplusplus 6792extern "C" { 6793#endif 6794 6795_LT_EOF 6796 # Now generate the symbol file. 6797 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6798 6799 cat <<_LT_EOF >> conftest.$ac_ext 6800 6801/* The mapping between symbol names and symbols. */ 6802LT_DLSYM_CONST struct { 6803 const char *name; 6804 void *address; 6805} 6806lt__PROGRAM__LTX_preloaded_symbols[] = 6807{ 6808 { "@PROGRAM@", (void *) 0 }, 6809_LT_EOF 6810 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6811 cat <<\_LT_EOF >> conftest.$ac_ext 6812 {0, (void *) 0} 6813}; 6814 6815/* This works around a problem in FreeBSD linker */ 6816#ifdef FREEBSD_WORKAROUND 6817static const void *lt_preloaded_setup() { 6818 return lt__PROGRAM__LTX_preloaded_symbols; 6819} 6820#endif 6821 6822#ifdef __cplusplus 6823} 6824#endif 6825_LT_EOF 6826 # Now try linking the two files. 6827 mv conftest.$ac_objext conftstm.$ac_objext 6828 lt_globsym_save_LIBS=$LIBS 6829 lt_globsym_save_CFLAGS=$CFLAGS 6830 LIBS="conftstm.$ac_objext" 6831 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6833 (eval $ac_link) 2>&5 6834 ac_status=$? 6835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6836 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6837 pipe_works=yes 6838 fi 6839 LIBS=$lt_globsym_save_LIBS 6840 CFLAGS=$lt_globsym_save_CFLAGS 6841 else 6842 echo "cannot find nm_test_func in $nlist" >&5 6843 fi 6844 else 6845 echo "cannot find nm_test_var in $nlist" >&5 6846 fi 6847 else 6848 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6849 fi 6850 else 6851 echo "$progname: failed program was:" >&5 6852 cat conftest.$ac_ext >&5 6853 fi 6854 rm -rf conftest* conftst* 6855 6856 # Do not use the global_symbol_pipe unless it works. 6857 if test "$pipe_works" = yes; then 6858 break 6859 else 6860 lt_cv_sys_global_symbol_pipe= 6861 fi 6862done 6863 6864fi 6865 6866if test -z "$lt_cv_sys_global_symbol_pipe"; then 6867 lt_cv_sys_global_symbol_to_cdecl= 6868fi 6869if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6871$as_echo "failed" >&6; } 6872else 6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6874$as_echo "ok" >&6; } 6875fi 6876 6877# Response file support. 6878if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6879 nm_file_list_spec='@' 6880elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6881 nm_file_list_spec='@' 6882fi 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6911$as_echo_n "checking for sysroot... " >&6; } 6912 6913# Check whether --with-sysroot was given. 6914if test "${with_sysroot+set}" = set; then : 6915 withval=$with_sysroot; 6916else 6917 with_sysroot=no 6918fi 6919 6920 6921lt_sysroot= 6922case ${with_sysroot} in #( 6923 yes) 6924 if test "$GCC" = yes; then 6925 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6926 fi 6927 ;; #( 6928 /*) 6929 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6930 ;; #( 6931 no|'') 6932 ;; #( 6933 *) 6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6935$as_echo "${with_sysroot}" >&6; } 6936 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6937 ;; 6938esac 6939 6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6941$as_echo "${lt_sysroot:-no}" >&6; } 6942 6943 6944 6945 6946 6947# Check whether --enable-libtool-lock was given. 6948if test "${enable_libtool_lock+set}" = set; then : 6949 enableval=$enable_libtool_lock; 6950fi 6951 6952test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6953 6954# Some flags need to be propagated to the compiler or linker for good 6955# libtool support. 6956case $host in 6957ia64-*-hpux*) 6958 # Find out which ABI we are using. 6959 echo 'int i;' > conftest.$ac_ext 6960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6961 (eval $ac_compile) 2>&5 6962 ac_status=$? 6963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6964 test $ac_status = 0; }; then 6965 case `/usr/bin/file conftest.$ac_objext` in 6966 *ELF-32*) 6967 HPUX_IA64_MODE="32" 6968 ;; 6969 *ELF-64*) 6970 HPUX_IA64_MODE="64" 6971 ;; 6972 esac 6973 fi 6974 rm -rf conftest* 6975 ;; 6976*-*-irix6*) 6977 # Find out which ABI we are using. 6978 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6980 (eval $ac_compile) 2>&5 6981 ac_status=$? 6982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6983 test $ac_status = 0; }; then 6984 if test "$lt_cv_prog_gnu_ld" = yes; then 6985 case `/usr/bin/file conftest.$ac_objext` in 6986 *32-bit*) 6987 LD="${LD-ld} -melf32bsmip" 6988 ;; 6989 *N32*) 6990 LD="${LD-ld} -melf32bmipn32" 6991 ;; 6992 *64-bit*) 6993 LD="${LD-ld} -melf64bmip" 6994 ;; 6995 esac 6996 else 6997 case `/usr/bin/file conftest.$ac_objext` in 6998 *32-bit*) 6999 LD="${LD-ld} -32" 7000 ;; 7001 *N32*) 7002 LD="${LD-ld} -n32" 7003 ;; 7004 *64-bit*) 7005 LD="${LD-ld} -64" 7006 ;; 7007 esac 7008 fi 7009 fi 7010 rm -rf conftest* 7011 ;; 7012 7013x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7014s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7015 # Find out which ABI we are using. 7016 echo 'int i;' > conftest.$ac_ext 7017 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7018 (eval $ac_compile) 2>&5 7019 ac_status=$? 7020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7021 test $ac_status = 0; }; then 7022 case `/usr/bin/file conftest.o` in 7023 *32-bit*) 7024 case $host in 7025 x86_64-*kfreebsd*-gnu) 7026 LD="${LD-ld} -m elf_i386_fbsd" 7027 ;; 7028 x86_64-*linux*) 7029 LD="${LD-ld} -m elf_i386" 7030 ;; 7031 ppc64-*linux*|powerpc64-*linux*) 7032 LD="${LD-ld} -m elf32ppclinux" 7033 ;; 7034 s390x-*linux*) 7035 LD="${LD-ld} -m elf_s390" 7036 ;; 7037 sparc64-*linux*) 7038 LD="${LD-ld} -m elf32_sparc" 7039 ;; 7040 esac 7041 ;; 7042 *64-bit*) 7043 case $host in 7044 x86_64-*kfreebsd*-gnu) 7045 LD="${LD-ld} -m elf_x86_64_fbsd" 7046 ;; 7047 x86_64-*linux*) 7048 LD="${LD-ld} -m elf_x86_64" 7049 ;; 7050 ppc*-*linux*|powerpc*-*linux*) 7051 LD="${LD-ld} -m elf64ppc" 7052 ;; 7053 s390*-*linux*|s390*-*tpf*) 7054 LD="${LD-ld} -m elf64_s390" 7055 ;; 7056 sparc*-*linux*) 7057 LD="${LD-ld} -m elf64_sparc" 7058 ;; 7059 esac 7060 ;; 7061 esac 7062 fi 7063 rm -rf conftest* 7064 ;; 7065 7066*-*-sco3.2v5*) 7067 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7068 SAVE_CFLAGS="$CFLAGS" 7069 CFLAGS="$CFLAGS -belf" 7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7071$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7072if ${lt_cv_cc_needs_belf+:} false; then : 7073 $as_echo_n "(cached) " >&6 7074else 7075 ac_ext=c 7076ac_cpp='$CPP $CPPFLAGS' 7077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7079ac_compiler_gnu=$ac_cv_c_compiler_gnu 7080 7081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7082/* end confdefs.h. */ 7083 7084int 7085main () 7086{ 7087 7088 ; 7089 return 0; 7090} 7091_ACEOF 7092if ac_fn_c_try_link "$LINENO"; then : 7093 lt_cv_cc_needs_belf=yes 7094else 7095 lt_cv_cc_needs_belf=no 7096fi 7097rm -f core conftest.err conftest.$ac_objext \ 7098 conftest$ac_exeext conftest.$ac_ext 7099 ac_ext=c 7100ac_cpp='$CPP $CPPFLAGS' 7101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7103ac_compiler_gnu=$ac_cv_c_compiler_gnu 7104 7105fi 7106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7107$as_echo "$lt_cv_cc_needs_belf" >&6; } 7108 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7109 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7110 CFLAGS="$SAVE_CFLAGS" 7111 fi 7112 ;; 7113*-*solaris*) 7114 # Find out which ABI we are using. 7115 echo 'int i;' > conftest.$ac_ext 7116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7117 (eval $ac_compile) 2>&5 7118 ac_status=$? 7119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7120 test $ac_status = 0; }; then 7121 case `/usr/bin/file conftest.o` in 7122 *64-bit*) 7123 case $lt_cv_prog_gnu_ld in 7124 yes*) 7125 case $host in 7126 i?86-*-solaris*) 7127 LD="${LD-ld} -m elf_x86_64" 7128 ;; 7129 sparc*-*-solaris*) 7130 LD="${LD-ld} -m elf64_sparc" 7131 ;; 7132 esac 7133 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7134 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7135 LD="${LD-ld}_sol2" 7136 fi 7137 ;; 7138 *) 7139 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7140 LD="${LD-ld} -64" 7141 fi 7142 ;; 7143 esac 7144 ;; 7145 esac 7146 fi 7147 rm -rf conftest* 7148 ;; 7149esac 7150 7151need_locks="$enable_libtool_lock" 7152 7153if test -n "$ac_tool_prefix"; then 7154 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7155set dummy ${ac_tool_prefix}mt; ac_word=$2 7156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7157$as_echo_n "checking for $ac_word... " >&6; } 7158if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7159 $as_echo_n "(cached) " >&6 7160else 7161 if test -n "$MANIFEST_TOOL"; then 7162 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7163else 7164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7165for as_dir in $PATH 7166do 7167 IFS=$as_save_IFS 7168 test -z "$as_dir" && as_dir=. 7169 for ac_exec_ext in '' $ac_executable_extensions; do 7170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7171 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7173 break 2 7174 fi 7175done 7176 done 7177IFS=$as_save_IFS 7178 7179fi 7180fi 7181MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7182if test -n "$MANIFEST_TOOL"; then 7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7184$as_echo "$MANIFEST_TOOL" >&6; } 7185else 7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7187$as_echo "no" >&6; } 7188fi 7189 7190 7191fi 7192if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7193 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7194 # Extract the first word of "mt", so it can be a program name with args. 7195set dummy mt; ac_word=$2 7196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7197$as_echo_n "checking for $ac_word... " >&6; } 7198if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7199 $as_echo_n "(cached) " >&6 7200else 7201 if test -n "$ac_ct_MANIFEST_TOOL"; then 7202 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7203else 7204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7205for as_dir in $PATH 7206do 7207 IFS=$as_save_IFS 7208 test -z "$as_dir" && as_dir=. 7209 for ac_exec_ext in '' $ac_executable_extensions; do 7210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7211 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7213 break 2 7214 fi 7215done 7216 done 7217IFS=$as_save_IFS 7218 7219fi 7220fi 7221ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7222if test -n "$ac_ct_MANIFEST_TOOL"; then 7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7224$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7225else 7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7227$as_echo "no" >&6; } 7228fi 7229 7230 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7231 MANIFEST_TOOL=":" 7232 else 7233 case $cross_compiling:$ac_tool_warned in 7234yes:) 7235{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7236$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7237ac_tool_warned=yes ;; 7238esac 7239 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7240 fi 7241else 7242 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7243fi 7244 7245test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7247$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7248if ${lt_cv_path_mainfest_tool+:} false; then : 7249 $as_echo_n "(cached) " >&6 7250else 7251 lt_cv_path_mainfest_tool=no 7252 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7253 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7254 cat conftest.err >&5 7255 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7256 lt_cv_path_mainfest_tool=yes 7257 fi 7258 rm -f conftest* 7259fi 7260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7261$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7262if test "x$lt_cv_path_mainfest_tool" != xyes; then 7263 MANIFEST_TOOL=: 7264fi 7265 7266 7267 7268 7269 7270 7271 case $host_os in 7272 rhapsody* | darwin*) 7273 if test -n "$ac_tool_prefix"; then 7274 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7275set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7277$as_echo_n "checking for $ac_word... " >&6; } 7278if ${ac_cv_prog_DSYMUTIL+:} false; then : 7279 $as_echo_n "(cached) " >&6 7280else 7281 if test -n "$DSYMUTIL"; then 7282 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7283else 7284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7285for as_dir in $PATH 7286do 7287 IFS=$as_save_IFS 7288 test -z "$as_dir" && as_dir=. 7289 for ac_exec_ext in '' $ac_executable_extensions; do 7290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7291 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7293 break 2 7294 fi 7295done 7296 done 7297IFS=$as_save_IFS 7298 7299fi 7300fi 7301DSYMUTIL=$ac_cv_prog_DSYMUTIL 7302if test -n "$DSYMUTIL"; then 7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7304$as_echo "$DSYMUTIL" >&6; } 7305else 7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7307$as_echo "no" >&6; } 7308fi 7309 7310 7311fi 7312if test -z "$ac_cv_prog_DSYMUTIL"; then 7313 ac_ct_DSYMUTIL=$DSYMUTIL 7314 # Extract the first word of "dsymutil", so it can be a program name with args. 7315set dummy dsymutil; ac_word=$2 7316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7317$as_echo_n "checking for $ac_word... " >&6; } 7318if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7319 $as_echo_n "(cached) " >&6 7320else 7321 if test -n "$ac_ct_DSYMUTIL"; then 7322 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7323else 7324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7325for as_dir in $PATH 7326do 7327 IFS=$as_save_IFS 7328 test -z "$as_dir" && as_dir=. 7329 for ac_exec_ext in '' $ac_executable_extensions; do 7330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7331 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7333 break 2 7334 fi 7335done 7336 done 7337IFS=$as_save_IFS 7338 7339fi 7340fi 7341ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7342if test -n "$ac_ct_DSYMUTIL"; then 7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7344$as_echo "$ac_ct_DSYMUTIL" >&6; } 7345else 7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7347$as_echo "no" >&6; } 7348fi 7349 7350 if test "x$ac_ct_DSYMUTIL" = x; then 7351 DSYMUTIL=":" 7352 else 7353 case $cross_compiling:$ac_tool_warned in 7354yes:) 7355{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7356$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7357ac_tool_warned=yes ;; 7358esac 7359 DSYMUTIL=$ac_ct_DSYMUTIL 7360 fi 7361else 7362 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7363fi 7364 7365 if test -n "$ac_tool_prefix"; then 7366 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7367set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7369$as_echo_n "checking for $ac_word... " >&6; } 7370if ${ac_cv_prog_NMEDIT+:} false; then : 7371 $as_echo_n "(cached) " >&6 7372else 7373 if test -n "$NMEDIT"; then 7374 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7375else 7376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7377for as_dir in $PATH 7378do 7379 IFS=$as_save_IFS 7380 test -z "$as_dir" && as_dir=. 7381 for ac_exec_ext in '' $ac_executable_extensions; do 7382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7383 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7385 break 2 7386 fi 7387done 7388 done 7389IFS=$as_save_IFS 7390 7391fi 7392fi 7393NMEDIT=$ac_cv_prog_NMEDIT 7394if test -n "$NMEDIT"; then 7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7396$as_echo "$NMEDIT" >&6; } 7397else 7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7399$as_echo "no" >&6; } 7400fi 7401 7402 7403fi 7404if test -z "$ac_cv_prog_NMEDIT"; then 7405 ac_ct_NMEDIT=$NMEDIT 7406 # Extract the first word of "nmedit", so it can be a program name with args. 7407set dummy nmedit; ac_word=$2 7408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7409$as_echo_n "checking for $ac_word... " >&6; } 7410if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7411 $as_echo_n "(cached) " >&6 7412else 7413 if test -n "$ac_ct_NMEDIT"; then 7414 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7415else 7416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7417for as_dir in $PATH 7418do 7419 IFS=$as_save_IFS 7420 test -z "$as_dir" && as_dir=. 7421 for ac_exec_ext in '' $ac_executable_extensions; do 7422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7423 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7425 break 2 7426 fi 7427done 7428 done 7429IFS=$as_save_IFS 7430 7431fi 7432fi 7433ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7434if test -n "$ac_ct_NMEDIT"; then 7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7436$as_echo "$ac_ct_NMEDIT" >&6; } 7437else 7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7439$as_echo "no" >&6; } 7440fi 7441 7442 if test "x$ac_ct_NMEDIT" = x; then 7443 NMEDIT=":" 7444 else 7445 case $cross_compiling:$ac_tool_warned in 7446yes:) 7447{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7448$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7449ac_tool_warned=yes ;; 7450esac 7451 NMEDIT=$ac_ct_NMEDIT 7452 fi 7453else 7454 NMEDIT="$ac_cv_prog_NMEDIT" 7455fi 7456 7457 if test -n "$ac_tool_prefix"; then 7458 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7459set dummy ${ac_tool_prefix}lipo; ac_word=$2 7460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7461$as_echo_n "checking for $ac_word... " >&6; } 7462if ${ac_cv_prog_LIPO+:} false; then : 7463 $as_echo_n "(cached) " >&6 7464else 7465 if test -n "$LIPO"; then 7466 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7467else 7468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7469for as_dir in $PATH 7470do 7471 IFS=$as_save_IFS 7472 test -z "$as_dir" && as_dir=. 7473 for ac_exec_ext in '' $ac_executable_extensions; do 7474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7475 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7477 break 2 7478 fi 7479done 7480 done 7481IFS=$as_save_IFS 7482 7483fi 7484fi 7485LIPO=$ac_cv_prog_LIPO 7486if test -n "$LIPO"; then 7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7488$as_echo "$LIPO" >&6; } 7489else 7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7491$as_echo "no" >&6; } 7492fi 7493 7494 7495fi 7496if test -z "$ac_cv_prog_LIPO"; then 7497 ac_ct_LIPO=$LIPO 7498 # Extract the first word of "lipo", so it can be a program name with args. 7499set dummy lipo; ac_word=$2 7500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7501$as_echo_n "checking for $ac_word... " >&6; } 7502if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7503 $as_echo_n "(cached) " >&6 7504else 7505 if test -n "$ac_ct_LIPO"; then 7506 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7507else 7508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7509for as_dir in $PATH 7510do 7511 IFS=$as_save_IFS 7512 test -z "$as_dir" && as_dir=. 7513 for ac_exec_ext in '' $ac_executable_extensions; do 7514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7515 ac_cv_prog_ac_ct_LIPO="lipo" 7516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7517 break 2 7518 fi 7519done 7520 done 7521IFS=$as_save_IFS 7522 7523fi 7524fi 7525ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7526if test -n "$ac_ct_LIPO"; then 7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7528$as_echo "$ac_ct_LIPO" >&6; } 7529else 7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7531$as_echo "no" >&6; } 7532fi 7533 7534 if test "x$ac_ct_LIPO" = x; then 7535 LIPO=":" 7536 else 7537 case $cross_compiling:$ac_tool_warned in 7538yes:) 7539{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7540$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7541ac_tool_warned=yes ;; 7542esac 7543 LIPO=$ac_ct_LIPO 7544 fi 7545else 7546 LIPO="$ac_cv_prog_LIPO" 7547fi 7548 7549 if test -n "$ac_tool_prefix"; then 7550 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7551set dummy ${ac_tool_prefix}otool; ac_word=$2 7552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7553$as_echo_n "checking for $ac_word... " >&6; } 7554if ${ac_cv_prog_OTOOL+:} false; then : 7555 $as_echo_n "(cached) " >&6 7556else 7557 if test -n "$OTOOL"; then 7558 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7559else 7560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7561for as_dir in $PATH 7562do 7563 IFS=$as_save_IFS 7564 test -z "$as_dir" && as_dir=. 7565 for ac_exec_ext in '' $ac_executable_extensions; do 7566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7567 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7569 break 2 7570 fi 7571done 7572 done 7573IFS=$as_save_IFS 7574 7575fi 7576fi 7577OTOOL=$ac_cv_prog_OTOOL 7578if test -n "$OTOOL"; then 7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7580$as_echo "$OTOOL" >&6; } 7581else 7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7583$as_echo "no" >&6; } 7584fi 7585 7586 7587fi 7588if test -z "$ac_cv_prog_OTOOL"; then 7589 ac_ct_OTOOL=$OTOOL 7590 # Extract the first word of "otool", so it can be a program name with args. 7591set dummy otool; ac_word=$2 7592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7593$as_echo_n "checking for $ac_word... " >&6; } 7594if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7595 $as_echo_n "(cached) " >&6 7596else 7597 if test -n "$ac_ct_OTOOL"; then 7598 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7599else 7600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7601for as_dir in $PATH 7602do 7603 IFS=$as_save_IFS 7604 test -z "$as_dir" && as_dir=. 7605 for ac_exec_ext in '' $ac_executable_extensions; do 7606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7607 ac_cv_prog_ac_ct_OTOOL="otool" 7608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7609 break 2 7610 fi 7611done 7612 done 7613IFS=$as_save_IFS 7614 7615fi 7616fi 7617ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7618if test -n "$ac_ct_OTOOL"; then 7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7620$as_echo "$ac_ct_OTOOL" >&6; } 7621else 7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7623$as_echo "no" >&6; } 7624fi 7625 7626 if test "x$ac_ct_OTOOL" = x; then 7627 OTOOL=":" 7628 else 7629 case $cross_compiling:$ac_tool_warned in 7630yes:) 7631{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7632$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7633ac_tool_warned=yes ;; 7634esac 7635 OTOOL=$ac_ct_OTOOL 7636 fi 7637else 7638 OTOOL="$ac_cv_prog_OTOOL" 7639fi 7640 7641 if test -n "$ac_tool_prefix"; then 7642 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7643set dummy ${ac_tool_prefix}otool64; ac_word=$2 7644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7645$as_echo_n "checking for $ac_word... " >&6; } 7646if ${ac_cv_prog_OTOOL64+:} false; then : 7647 $as_echo_n "(cached) " >&6 7648else 7649 if test -n "$OTOOL64"; then 7650 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7651else 7652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7653for as_dir in $PATH 7654do 7655 IFS=$as_save_IFS 7656 test -z "$as_dir" && as_dir=. 7657 for ac_exec_ext in '' $ac_executable_extensions; do 7658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7659 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7661 break 2 7662 fi 7663done 7664 done 7665IFS=$as_save_IFS 7666 7667fi 7668fi 7669OTOOL64=$ac_cv_prog_OTOOL64 7670if test -n "$OTOOL64"; then 7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7672$as_echo "$OTOOL64" >&6; } 7673else 7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7675$as_echo "no" >&6; } 7676fi 7677 7678 7679fi 7680if test -z "$ac_cv_prog_OTOOL64"; then 7681 ac_ct_OTOOL64=$OTOOL64 7682 # Extract the first word of "otool64", so it can be a program name with args. 7683set dummy otool64; ac_word=$2 7684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7685$as_echo_n "checking for $ac_word... " >&6; } 7686if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7687 $as_echo_n "(cached) " >&6 7688else 7689 if test -n "$ac_ct_OTOOL64"; then 7690 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7691else 7692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7693for as_dir in $PATH 7694do 7695 IFS=$as_save_IFS 7696 test -z "$as_dir" && as_dir=. 7697 for ac_exec_ext in '' $ac_executable_extensions; do 7698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7699 ac_cv_prog_ac_ct_OTOOL64="otool64" 7700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7701 break 2 7702 fi 7703done 7704 done 7705IFS=$as_save_IFS 7706 7707fi 7708fi 7709ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7710if test -n "$ac_ct_OTOOL64"; then 7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7712$as_echo "$ac_ct_OTOOL64" >&6; } 7713else 7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7715$as_echo "no" >&6; } 7716fi 7717 7718 if test "x$ac_ct_OTOOL64" = x; then 7719 OTOOL64=":" 7720 else 7721 case $cross_compiling:$ac_tool_warned in 7722yes:) 7723{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7724$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7725ac_tool_warned=yes ;; 7726esac 7727 OTOOL64=$ac_ct_OTOOL64 7728 fi 7729else 7730 OTOOL64="$ac_cv_prog_OTOOL64" 7731fi 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7760$as_echo_n "checking for -single_module linker flag... " >&6; } 7761if ${lt_cv_apple_cc_single_mod+:} false; then : 7762 $as_echo_n "(cached) " >&6 7763else 7764 lt_cv_apple_cc_single_mod=no 7765 if test -z "${LT_MULTI_MODULE}"; then 7766 # By default we will add the -single_module flag. You can override 7767 # by either setting the environment variable LT_MULTI_MODULE 7768 # non-empty at configure time, or by adding -multi_module to the 7769 # link flags. 7770 rm -rf libconftest.dylib* 7771 echo "int foo(void){return 1;}" > conftest.c 7772 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7773-dynamiclib -Wl,-single_module conftest.c" >&5 7774 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7775 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7776 _lt_result=$? 7777 # If there is a non-empty error log, and "single_module" 7778 # appears in it, assume the flag caused a linker warning 7779 if test -s conftest.err && $GREP single_module conftest.err; then 7780 cat conftest.err >&5 7781 # Otherwise, if the output was created with a 0 exit code from 7782 # the compiler, it worked. 7783 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7784 lt_cv_apple_cc_single_mod=yes 7785 else 7786 cat conftest.err >&5 7787 fi 7788 rm -rf libconftest.dylib* 7789 rm -f conftest.* 7790 fi 7791fi 7792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7793$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7794 7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7796$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7797if ${lt_cv_ld_exported_symbols_list+:} false; then : 7798 $as_echo_n "(cached) " >&6 7799else 7800 lt_cv_ld_exported_symbols_list=no 7801 save_LDFLAGS=$LDFLAGS 7802 echo "_main" > conftest.sym 7803 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7805/* end confdefs.h. */ 7806 7807int 7808main () 7809{ 7810 7811 ; 7812 return 0; 7813} 7814_ACEOF 7815if ac_fn_c_try_link "$LINENO"; then : 7816 lt_cv_ld_exported_symbols_list=yes 7817else 7818 lt_cv_ld_exported_symbols_list=no 7819fi 7820rm -f core conftest.err conftest.$ac_objext \ 7821 conftest$ac_exeext conftest.$ac_ext 7822 LDFLAGS="$save_LDFLAGS" 7823 7824fi 7825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7826$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7827 7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7829$as_echo_n "checking for -force_load linker flag... " >&6; } 7830if ${lt_cv_ld_force_load+:} false; then : 7831 $as_echo_n "(cached) " >&6 7832else 7833 lt_cv_ld_force_load=no 7834 cat > conftest.c << _LT_EOF 7835int forced_loaded() { return 2;} 7836_LT_EOF 7837 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7838 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7839 echo "$AR cru libconftest.a conftest.o" >&5 7840 $AR cru libconftest.a conftest.o 2>&5 7841 echo "$RANLIB libconftest.a" >&5 7842 $RANLIB libconftest.a 2>&5 7843 cat > conftest.c << _LT_EOF 7844int main() { return 0;} 7845_LT_EOF 7846 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7847 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7848 _lt_result=$? 7849 if test -s conftest.err && $GREP force_load conftest.err; then 7850 cat conftest.err >&5 7851 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7852 lt_cv_ld_force_load=yes 7853 else 7854 cat conftest.err >&5 7855 fi 7856 rm -f conftest.err libconftest.a conftest conftest.c 7857 rm -rf conftest.dSYM 7858 7859fi 7860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7861$as_echo "$lt_cv_ld_force_load" >&6; } 7862 case $host_os in 7863 rhapsody* | darwin1.[012]) 7864 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7865 darwin1.*) 7866 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7867 darwin*) # darwin 5.x on 7868 # if running on 10.5 or later, the deployment target defaults 7869 # to the OS version, if on x86, and 10.4, the deployment 7870 # target defaults to 10.4. Don't you love it? 7871 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7872 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7873 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7874 10.[012]*) 7875 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7876 10.*) 7877 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7878 esac 7879 ;; 7880 esac 7881 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7882 _lt_dar_single_mod='$single_module' 7883 fi 7884 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7885 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7886 else 7887 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7888 fi 7889 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7890 _lt_dsymutil='~$DSYMUTIL $lib || :' 7891 else 7892 _lt_dsymutil= 7893 fi 7894 ;; 7895 esac 7896 7897for ac_header in dlfcn.h 7898do : 7899 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7900" 7901if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7902 cat >>confdefs.h <<_ACEOF 7903#define HAVE_DLFCN_H 1 7904_ACEOF 7905 7906fi 7907 7908done 7909 7910 7911 7912 7913 7914# Set options 7915 7916 7917 7918 enable_dlopen=no 7919 7920 7921 enable_win32_dll=no 7922 7923 7924 # Check whether --enable-shared was given. 7925if test "${enable_shared+set}" = set; then : 7926 enableval=$enable_shared; p=${PACKAGE-default} 7927 case $enableval in 7928 yes) enable_shared=yes ;; 7929 no) enable_shared=no ;; 7930 *) 7931 enable_shared=no 7932 # Look at the argument we got. We use all the common list separators. 7933 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7934 for pkg in $enableval; do 7935 IFS="$lt_save_ifs" 7936 if test "X$pkg" = "X$p"; then 7937 enable_shared=yes 7938 fi 7939 done 7940 IFS="$lt_save_ifs" 7941 ;; 7942 esac 7943else 7944 enable_shared=yes 7945fi 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 # Check whether --enable-static was given. 7956if test "${enable_static+set}" = set; then : 7957 enableval=$enable_static; p=${PACKAGE-default} 7958 case $enableval in 7959 yes) enable_static=yes ;; 7960 no) enable_static=no ;; 7961 *) 7962 enable_static=no 7963 # Look at the argument we got. We use all the common list separators. 7964 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7965 for pkg in $enableval; do 7966 IFS="$lt_save_ifs" 7967 if test "X$pkg" = "X$p"; then 7968 enable_static=yes 7969 fi 7970 done 7971 IFS="$lt_save_ifs" 7972 ;; 7973 esac 7974else 7975 enable_static=yes 7976fi 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987# Check whether --with-pic was given. 7988if test "${with_pic+set}" = set; then : 7989 withval=$with_pic; lt_p=${PACKAGE-default} 7990 case $withval in 7991 yes|no) pic_mode=$withval ;; 7992 *) 7993 pic_mode=default 7994 # Look at the argument we got. We use all the common list separators. 7995 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7996 for lt_pkg in $withval; do 7997 IFS="$lt_save_ifs" 7998 if test "X$lt_pkg" = "X$lt_p"; then 7999 pic_mode=yes 8000 fi 8001 done 8002 IFS="$lt_save_ifs" 8003 ;; 8004 esac 8005else 8006 pic_mode=default 8007fi 8008 8009 8010test -z "$pic_mode" && pic_mode=default 8011 8012 8013 8014 8015 8016 8017 8018 # Check whether --enable-fast-install was given. 8019if test "${enable_fast_install+set}" = set; then : 8020 enableval=$enable_fast_install; p=${PACKAGE-default} 8021 case $enableval in 8022 yes) enable_fast_install=yes ;; 8023 no) enable_fast_install=no ;; 8024 *) 8025 enable_fast_install=no 8026 # Look at the argument we got. We use all the common list separators. 8027 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8028 for pkg in $enableval; do 8029 IFS="$lt_save_ifs" 8030 if test "X$pkg" = "X$p"; then 8031 enable_fast_install=yes 8032 fi 8033 done 8034 IFS="$lt_save_ifs" 8035 ;; 8036 esac 8037else 8038 enable_fast_install=yes 8039fi 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051# This can be used to rebuild libtool when needed 8052LIBTOOL_DEPS="$ltmain" 8053 8054# Always use our own libtool. 8055LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086test -z "$LN_S" && LN_S="ln -s" 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101if test -n "${ZSH_VERSION+set}" ; then 8102 setopt NO_GLOB_SUBST 8103fi 8104 8105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8106$as_echo_n "checking for objdir... " >&6; } 8107if ${lt_cv_objdir+:} false; then : 8108 $as_echo_n "(cached) " >&6 8109else 8110 rm -f .libs 2>/dev/null 8111mkdir .libs 2>/dev/null 8112if test -d .libs; then 8113 lt_cv_objdir=.libs 8114else 8115 # MS-DOS does not allow filenames that begin with a dot. 8116 lt_cv_objdir=_libs 8117fi 8118rmdir .libs 2>/dev/null 8119fi 8120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8121$as_echo "$lt_cv_objdir" >&6; } 8122objdir=$lt_cv_objdir 8123 8124 8125 8126 8127 8128cat >>confdefs.h <<_ACEOF 8129#define LT_OBJDIR "$lt_cv_objdir/" 8130_ACEOF 8131 8132 8133 8134 8135case $host_os in 8136aix3*) 8137 # AIX sometimes has problems with the GCC collect2 program. For some 8138 # reason, if we set the COLLECT_NAMES environment variable, the problems 8139 # vanish in a puff of smoke. 8140 if test "X${COLLECT_NAMES+set}" != Xset; then 8141 COLLECT_NAMES= 8142 export COLLECT_NAMES 8143 fi 8144 ;; 8145esac 8146 8147# Global variables: 8148ofile=libtool 8149can_build_shared=yes 8150 8151# All known linkers require a `.a' archive for static linking (except MSVC, 8152# which needs '.lib'). 8153libext=a 8154 8155with_gnu_ld="$lt_cv_prog_gnu_ld" 8156 8157old_CC="$CC" 8158old_CFLAGS="$CFLAGS" 8159 8160# Set sane defaults for various variables 8161test -z "$CC" && CC=cc 8162test -z "$LTCC" && LTCC=$CC 8163test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8164test -z "$LD" && LD=ld 8165test -z "$ac_objext" && ac_objext=o 8166 8167for cc_temp in $compiler""; do 8168 case $cc_temp in 8169 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8170 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8171 \-*) ;; 8172 *) break;; 8173 esac 8174done 8175cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8176 8177 8178# Only perform the check for file, if the check method requires it 8179test -z "$MAGIC_CMD" && MAGIC_CMD=file 8180case $deplibs_check_method in 8181file_magic*) 8182 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8184$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8185if ${lt_cv_path_MAGIC_CMD+:} false; then : 8186 $as_echo_n "(cached) " >&6 8187else 8188 case $MAGIC_CMD in 8189[\\/*] | ?:[\\/]*) 8190 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8191 ;; 8192*) 8193 lt_save_MAGIC_CMD="$MAGIC_CMD" 8194 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8195 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8196 for ac_dir in $ac_dummy; do 8197 IFS="$lt_save_ifs" 8198 test -z "$ac_dir" && ac_dir=. 8199 if test -f $ac_dir/${ac_tool_prefix}file; then 8200 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8201 if test -n "$file_magic_test_file"; then 8202 case $deplibs_check_method in 8203 "file_magic "*) 8204 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8205 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8206 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8207 $EGREP "$file_magic_regex" > /dev/null; then 8208 : 8209 else 8210 cat <<_LT_EOF 1>&2 8211 8212*** Warning: the command libtool uses to detect shared libraries, 8213*** $file_magic_cmd, produces output that libtool cannot recognize. 8214*** The result is that libtool may fail to recognize shared libraries 8215*** as such. This will affect the creation of libtool libraries that 8216*** depend on shared libraries, but programs linked with such libtool 8217*** libraries will work regardless of this problem. Nevertheless, you 8218*** may want to report the problem to your system manager and/or to 8219*** bug-libtool@gnu.org 8220 8221_LT_EOF 8222 fi ;; 8223 esac 8224 fi 8225 break 8226 fi 8227 done 8228 IFS="$lt_save_ifs" 8229 MAGIC_CMD="$lt_save_MAGIC_CMD" 8230 ;; 8231esac 8232fi 8233 8234MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8235if test -n "$MAGIC_CMD"; then 8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8237$as_echo "$MAGIC_CMD" >&6; } 8238else 8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8240$as_echo "no" >&6; } 8241fi 8242 8243 8244 8245 8246 8247if test -z "$lt_cv_path_MAGIC_CMD"; then 8248 if test -n "$ac_tool_prefix"; then 8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8250$as_echo_n "checking for file... " >&6; } 8251if ${lt_cv_path_MAGIC_CMD+:} false; then : 8252 $as_echo_n "(cached) " >&6 8253else 8254 case $MAGIC_CMD in 8255[\\/*] | ?:[\\/]*) 8256 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8257 ;; 8258*) 8259 lt_save_MAGIC_CMD="$MAGIC_CMD" 8260 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8261 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8262 for ac_dir in $ac_dummy; do 8263 IFS="$lt_save_ifs" 8264 test -z "$ac_dir" && ac_dir=. 8265 if test -f $ac_dir/file; then 8266 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8267 if test -n "$file_magic_test_file"; then 8268 case $deplibs_check_method in 8269 "file_magic "*) 8270 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8271 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8272 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8273 $EGREP "$file_magic_regex" > /dev/null; then 8274 : 8275 else 8276 cat <<_LT_EOF 1>&2 8277 8278*** Warning: the command libtool uses to detect shared libraries, 8279*** $file_magic_cmd, produces output that libtool cannot recognize. 8280*** The result is that libtool may fail to recognize shared libraries 8281*** as such. This will affect the creation of libtool libraries that 8282*** depend on shared libraries, but programs linked with such libtool 8283*** libraries will work regardless of this problem. Nevertheless, you 8284*** may want to report the problem to your system manager and/or to 8285*** bug-libtool@gnu.org 8286 8287_LT_EOF 8288 fi ;; 8289 esac 8290 fi 8291 break 8292 fi 8293 done 8294 IFS="$lt_save_ifs" 8295 MAGIC_CMD="$lt_save_MAGIC_CMD" 8296 ;; 8297esac 8298fi 8299 8300MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8301if test -n "$MAGIC_CMD"; then 8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8303$as_echo "$MAGIC_CMD" >&6; } 8304else 8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8306$as_echo "no" >&6; } 8307fi 8308 8309 8310 else 8311 MAGIC_CMD=: 8312 fi 8313fi 8314 8315 fi 8316 ;; 8317esac 8318 8319# Use C for the default configuration in the libtool script 8320 8321lt_save_CC="$CC" 8322ac_ext=c 8323ac_cpp='$CPP $CPPFLAGS' 8324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8326ac_compiler_gnu=$ac_cv_c_compiler_gnu 8327 8328 8329# Source file extension for C test sources. 8330ac_ext=c 8331 8332# Object file extension for compiled C test sources. 8333objext=o 8334objext=$objext 8335 8336# Code to be used in simple compile tests 8337lt_simple_compile_test_code="int some_variable = 0;" 8338 8339# Code to be used in simple link tests 8340lt_simple_link_test_code='int main(){return(0);}' 8341 8342 8343 8344 8345 8346 8347 8348# If no C compiler was specified, use CC. 8349LTCC=${LTCC-"$CC"} 8350 8351# If no C compiler flags were specified, use CFLAGS. 8352LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8353 8354# Allow CC to be a program name with arguments. 8355compiler=$CC 8356 8357# Save the default compiler, since it gets overwritten when the other 8358# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8359compiler_DEFAULT=$CC 8360 8361# save warnings/boilerplate of simple test code 8362ac_outfile=conftest.$ac_objext 8363echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8364eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8365_lt_compiler_boilerplate=`cat conftest.err` 8366$RM conftest* 8367 8368ac_outfile=conftest.$ac_objext 8369echo "$lt_simple_link_test_code" >conftest.$ac_ext 8370eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8371_lt_linker_boilerplate=`cat conftest.err` 8372$RM -r conftest* 8373 8374 8375if test -n "$compiler"; then 8376 8377lt_prog_compiler_no_builtin_flag= 8378 8379if test "$GCC" = yes; then 8380 case $cc_basename in 8381 nvcc*) 8382 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8383 *) 8384 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8385 esac 8386 8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8388$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8389if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8390 $as_echo_n "(cached) " >&6 8391else 8392 lt_cv_prog_compiler_rtti_exceptions=no 8393 ac_outfile=conftest.$ac_objext 8394 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8395 lt_compiler_flag="-fno-rtti -fno-exceptions" 8396 # Insert the option either (1) after the last *FLAGS variable, or 8397 # (2) before a word containing "conftest.", or (3) at the end. 8398 # Note that $ac_compile itself does not contain backslashes and begins 8399 # with a dollar sign (not a hyphen), so the echo should work correctly. 8400 # The option is referenced via a variable to avoid confusing sed. 8401 lt_compile=`echo "$ac_compile" | $SED \ 8402 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8403 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8404 -e 's:$: $lt_compiler_flag:'` 8405 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8406 (eval "$lt_compile" 2>conftest.err) 8407 ac_status=$? 8408 cat conftest.err >&5 8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8410 if (exit $ac_status) && test -s "$ac_outfile"; then 8411 # The compiler can only warn and ignore the option if not recognized 8412 # So say no if there are warnings other than the usual output. 8413 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8414 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8415 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8416 lt_cv_prog_compiler_rtti_exceptions=yes 8417 fi 8418 fi 8419 $RM conftest* 8420 8421fi 8422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8423$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8424 8425if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8426 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8427else 8428 : 8429fi 8430 8431fi 8432 8433 8434 8435 8436 8437 8438 lt_prog_compiler_wl= 8439lt_prog_compiler_pic= 8440lt_prog_compiler_static= 8441 8442 8443 if test "$GCC" = yes; then 8444 lt_prog_compiler_wl='-Wl,' 8445 lt_prog_compiler_static='-static' 8446 8447 case $host_os in 8448 aix*) 8449 # All AIX code is PIC. 8450 if test "$host_cpu" = ia64; then 8451 # AIX 5 now supports IA64 processor 8452 lt_prog_compiler_static='-Bstatic' 8453 fi 8454 ;; 8455 8456 amigaos*) 8457 case $host_cpu in 8458 powerpc) 8459 # see comment about AmigaOS4 .so support 8460 lt_prog_compiler_pic='-fPIC' 8461 ;; 8462 m68k) 8463 # FIXME: we need at least 68020 code to build shared libraries, but 8464 # adding the `-m68020' flag to GCC prevents building anything better, 8465 # like `-m68040'. 8466 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8467 ;; 8468 esac 8469 ;; 8470 8471 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8472 # PIC is the default for these OSes. 8473 ;; 8474 8475 mingw* | cygwin* | pw32* | os2* | cegcc*) 8476 # This hack is so that the source file can tell whether it is being 8477 # built for inclusion in a dll (and should export symbols for example). 8478 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8479 # (--disable-auto-import) libraries 8480 lt_prog_compiler_pic='-DDLL_EXPORT' 8481 ;; 8482 8483 darwin* | rhapsody*) 8484 # PIC is the default on this platform 8485 # Common symbols not allowed in MH_DYLIB files 8486 lt_prog_compiler_pic='-fno-common' 8487 ;; 8488 8489 haiku*) 8490 # PIC is the default for Haiku. 8491 # The "-static" flag exists, but is broken. 8492 lt_prog_compiler_static= 8493 ;; 8494 8495 hpux*) 8496 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8497 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8498 # sets the default TLS model and affects inlining. 8499 case $host_cpu in 8500 hppa*64*) 8501 # +Z the default 8502 ;; 8503 *) 8504 lt_prog_compiler_pic='-fPIC' 8505 ;; 8506 esac 8507 ;; 8508 8509 interix[3-9]*) 8510 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8511 # Instead, we relocate shared libraries at runtime. 8512 ;; 8513 8514 msdosdjgpp*) 8515 # Just because we use GCC doesn't mean we suddenly get shared libraries 8516 # on systems that don't support them. 8517 lt_prog_compiler_can_build_shared=no 8518 enable_shared=no 8519 ;; 8520 8521 *nto* | *qnx*) 8522 # QNX uses GNU C++, but need to define -shared option too, otherwise 8523 # it will coredump. 8524 lt_prog_compiler_pic='-fPIC -shared' 8525 ;; 8526 8527 sysv4*MP*) 8528 if test -d /usr/nec; then 8529 lt_prog_compiler_pic=-Kconform_pic 8530 fi 8531 ;; 8532 8533 *) 8534 lt_prog_compiler_pic='-fPIC' 8535 ;; 8536 esac 8537 8538 case $cc_basename in 8539 nvcc*) # Cuda Compiler Driver 2.2 8540 lt_prog_compiler_wl='-Xlinker ' 8541 if test -n "$lt_prog_compiler_pic"; then 8542 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8543 fi 8544 ;; 8545 esac 8546 else 8547 # PORTME Check for flag to pass linker flags through the system compiler. 8548 case $host_os in 8549 aix*) 8550 lt_prog_compiler_wl='-Wl,' 8551 if test "$host_cpu" = ia64; then 8552 # AIX 5 now supports IA64 processor 8553 lt_prog_compiler_static='-Bstatic' 8554 else 8555 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8556 fi 8557 ;; 8558 8559 mingw* | cygwin* | pw32* | os2* | cegcc*) 8560 # This hack is so that the source file can tell whether it is being 8561 # built for inclusion in a dll (and should export symbols for example). 8562 lt_prog_compiler_pic='-DDLL_EXPORT' 8563 ;; 8564 8565 hpux9* | hpux10* | hpux11*) 8566 lt_prog_compiler_wl='-Wl,' 8567 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8568 # not for PA HP-UX. 8569 case $host_cpu in 8570 hppa*64*|ia64*) 8571 # +Z the default 8572 ;; 8573 *) 8574 lt_prog_compiler_pic='+Z' 8575 ;; 8576 esac 8577 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8578 lt_prog_compiler_static='${wl}-a ${wl}archive' 8579 ;; 8580 8581 irix5* | irix6* | nonstopux*) 8582 lt_prog_compiler_wl='-Wl,' 8583 # PIC (with -KPIC) is the default. 8584 lt_prog_compiler_static='-non_shared' 8585 ;; 8586 8587 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8588 case $cc_basename in 8589 # old Intel for x86_64 which still supported -KPIC. 8590 ecc*) 8591 lt_prog_compiler_wl='-Wl,' 8592 lt_prog_compiler_pic='-KPIC' 8593 lt_prog_compiler_static='-static' 8594 ;; 8595 # icc used to be incompatible with GCC. 8596 # ICC 10 doesn't accept -KPIC any more. 8597 icc* | ifort*) 8598 lt_prog_compiler_wl='-Wl,' 8599 lt_prog_compiler_pic='-fPIC' 8600 lt_prog_compiler_static='-static' 8601 ;; 8602 # Lahey Fortran 8.1. 8603 lf95*) 8604 lt_prog_compiler_wl='-Wl,' 8605 lt_prog_compiler_pic='--shared' 8606 lt_prog_compiler_static='--static' 8607 ;; 8608 nagfor*) 8609 # NAG Fortran compiler 8610 lt_prog_compiler_wl='-Wl,-Wl,,' 8611 lt_prog_compiler_pic='-PIC' 8612 lt_prog_compiler_static='-Bstatic' 8613 ;; 8614 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8615 # Portland Group compilers (*not* the Pentium gcc compiler, 8616 # which looks to be a dead project) 8617 lt_prog_compiler_wl='-Wl,' 8618 lt_prog_compiler_pic='-fpic' 8619 lt_prog_compiler_static='-Bstatic' 8620 ;; 8621 ccc*) 8622 lt_prog_compiler_wl='-Wl,' 8623 # All Alpha code is PIC. 8624 lt_prog_compiler_static='-non_shared' 8625 ;; 8626 xl* | bgxl* | bgf* | mpixl*) 8627 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8628 lt_prog_compiler_wl='-Wl,' 8629 lt_prog_compiler_pic='-qpic' 8630 lt_prog_compiler_static='-qstaticlink' 8631 ;; 8632 *) 8633 case `$CC -V 2>&1 | sed 5q` in 8634 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8635 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8636 lt_prog_compiler_pic='-KPIC' 8637 lt_prog_compiler_static='-Bstatic' 8638 lt_prog_compiler_wl='' 8639 ;; 8640 *Sun\ F* | *Sun*Fortran*) 8641 lt_prog_compiler_pic='-KPIC' 8642 lt_prog_compiler_static='-Bstatic' 8643 lt_prog_compiler_wl='-Qoption ld ' 8644 ;; 8645 *Sun\ C*) 8646 # Sun C 5.9 8647 lt_prog_compiler_pic='-KPIC' 8648 lt_prog_compiler_static='-Bstatic' 8649 lt_prog_compiler_wl='-Wl,' 8650 ;; 8651 *Intel*\ [CF]*Compiler*) 8652 lt_prog_compiler_wl='-Wl,' 8653 lt_prog_compiler_pic='-fPIC' 8654 lt_prog_compiler_static='-static' 8655 ;; 8656 *Portland\ Group*) 8657 lt_prog_compiler_wl='-Wl,' 8658 lt_prog_compiler_pic='-fpic' 8659 lt_prog_compiler_static='-Bstatic' 8660 ;; 8661 esac 8662 ;; 8663 esac 8664 ;; 8665 8666 newsos6) 8667 lt_prog_compiler_pic='-KPIC' 8668 lt_prog_compiler_static='-Bstatic' 8669 ;; 8670 8671 *nto* | *qnx*) 8672 # QNX uses GNU C++, but need to define -shared option too, otherwise 8673 # it will coredump. 8674 lt_prog_compiler_pic='-fPIC -shared' 8675 ;; 8676 8677 osf3* | osf4* | osf5*) 8678 lt_prog_compiler_wl='-Wl,' 8679 # All OSF/1 code is PIC. 8680 lt_prog_compiler_static='-non_shared' 8681 ;; 8682 8683 rdos*) 8684 lt_prog_compiler_static='-non_shared' 8685 ;; 8686 8687 solaris*) 8688 lt_prog_compiler_pic='-KPIC' 8689 lt_prog_compiler_static='-Bstatic' 8690 case $cc_basename in 8691 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8692 lt_prog_compiler_wl='-Qoption ld ';; 8693 *) 8694 lt_prog_compiler_wl='-Wl,';; 8695 esac 8696 ;; 8697 8698 sunos4*) 8699 lt_prog_compiler_wl='-Qoption ld ' 8700 lt_prog_compiler_pic='-PIC' 8701 lt_prog_compiler_static='-Bstatic' 8702 ;; 8703 8704 sysv4 | sysv4.2uw2* | sysv4.3*) 8705 lt_prog_compiler_wl='-Wl,' 8706 lt_prog_compiler_pic='-KPIC' 8707 lt_prog_compiler_static='-Bstatic' 8708 ;; 8709 8710 sysv4*MP*) 8711 if test -d /usr/nec ;then 8712 lt_prog_compiler_pic='-Kconform_pic' 8713 lt_prog_compiler_static='-Bstatic' 8714 fi 8715 ;; 8716 8717 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8718 lt_prog_compiler_wl='-Wl,' 8719 lt_prog_compiler_pic='-KPIC' 8720 lt_prog_compiler_static='-Bstatic' 8721 ;; 8722 8723 unicos*) 8724 lt_prog_compiler_wl='-Wl,' 8725 lt_prog_compiler_can_build_shared=no 8726 ;; 8727 8728 uts4*) 8729 lt_prog_compiler_pic='-pic' 8730 lt_prog_compiler_static='-Bstatic' 8731 ;; 8732 8733 *) 8734 lt_prog_compiler_can_build_shared=no 8735 ;; 8736 esac 8737 fi 8738 8739case $host_os in 8740 # For platforms which do not support PIC, -DPIC is meaningless: 8741 *djgpp*) 8742 lt_prog_compiler_pic= 8743 ;; 8744 *) 8745 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8746 ;; 8747esac 8748 8749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8750$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8751if ${lt_cv_prog_compiler_pic+:} false; then : 8752 $as_echo_n "(cached) " >&6 8753else 8754 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8755fi 8756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8757$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8758lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8759 8760# 8761# Check to make sure the PIC flag actually works. 8762# 8763if test -n "$lt_prog_compiler_pic"; then 8764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8765$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8766if ${lt_cv_prog_compiler_pic_works+:} false; then : 8767 $as_echo_n "(cached) " >&6 8768else 8769 lt_cv_prog_compiler_pic_works=no 8770 ac_outfile=conftest.$ac_objext 8771 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8772 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8773 # Insert the option either (1) after the last *FLAGS variable, or 8774 # (2) before a word containing "conftest.", or (3) at the end. 8775 # Note that $ac_compile itself does not contain backslashes and begins 8776 # with a dollar sign (not a hyphen), so the echo should work correctly. 8777 # The option is referenced via a variable to avoid confusing sed. 8778 lt_compile=`echo "$ac_compile" | $SED \ 8779 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8780 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8781 -e 's:$: $lt_compiler_flag:'` 8782 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8783 (eval "$lt_compile" 2>conftest.err) 8784 ac_status=$? 8785 cat conftest.err >&5 8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8787 if (exit $ac_status) && test -s "$ac_outfile"; then 8788 # The compiler can only warn and ignore the option if not recognized 8789 # So say no if there are warnings other than the usual output. 8790 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8791 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8792 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8793 lt_cv_prog_compiler_pic_works=yes 8794 fi 8795 fi 8796 $RM conftest* 8797 8798fi 8799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8800$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8801 8802if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8803 case $lt_prog_compiler_pic in 8804 "" | " "*) ;; 8805 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8806 esac 8807else 8808 lt_prog_compiler_pic= 8809 lt_prog_compiler_can_build_shared=no 8810fi 8811 8812fi 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824# 8825# Check to make sure the static flag actually works. 8826# 8827wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8829$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8830if ${lt_cv_prog_compiler_static_works+:} false; then : 8831 $as_echo_n "(cached) " >&6 8832else 8833 lt_cv_prog_compiler_static_works=no 8834 save_LDFLAGS="$LDFLAGS" 8835 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8836 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8837 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8838 # The linker can only warn and ignore the option if not recognized 8839 # So say no if there are warnings 8840 if test -s conftest.err; then 8841 # Append any errors to the config.log. 8842 cat conftest.err 1>&5 8843 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8844 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8845 if diff conftest.exp conftest.er2 >/dev/null; then 8846 lt_cv_prog_compiler_static_works=yes 8847 fi 8848 else 8849 lt_cv_prog_compiler_static_works=yes 8850 fi 8851 fi 8852 $RM -r conftest* 8853 LDFLAGS="$save_LDFLAGS" 8854 8855fi 8856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8857$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8858 8859if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8860 : 8861else 8862 lt_prog_compiler_static= 8863fi 8864 8865 8866 8867 8868 8869 8870 8871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8872$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8873if ${lt_cv_prog_compiler_c_o+:} false; then : 8874 $as_echo_n "(cached) " >&6 8875else 8876 lt_cv_prog_compiler_c_o=no 8877 $RM -r conftest 2>/dev/null 8878 mkdir conftest 8879 cd conftest 8880 mkdir out 8881 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8882 8883 lt_compiler_flag="-o out/conftest2.$ac_objext" 8884 # Insert the option either (1) after the last *FLAGS variable, or 8885 # (2) before a word containing "conftest.", or (3) at the end. 8886 # Note that $ac_compile itself does not contain backslashes and begins 8887 # with a dollar sign (not a hyphen), so the echo should work correctly. 8888 lt_compile=`echo "$ac_compile" | $SED \ 8889 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8890 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8891 -e 's:$: $lt_compiler_flag:'` 8892 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8893 (eval "$lt_compile" 2>out/conftest.err) 8894 ac_status=$? 8895 cat out/conftest.err >&5 8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8897 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8898 then 8899 # The compiler can only warn and ignore the option if not recognized 8900 # So say no if there are warnings 8901 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8902 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8903 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8904 lt_cv_prog_compiler_c_o=yes 8905 fi 8906 fi 8907 chmod u+w . 2>&5 8908 $RM conftest* 8909 # SGI C++ compiler will create directory out/ii_files/ for 8910 # template instantiation 8911 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8912 $RM out/* && rmdir out 8913 cd .. 8914 $RM -r conftest 8915 $RM conftest* 8916 8917fi 8918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8919$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8920 8921 8922 8923 8924 8925 8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8927$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8928if ${lt_cv_prog_compiler_c_o+:} false; then : 8929 $as_echo_n "(cached) " >&6 8930else 8931 lt_cv_prog_compiler_c_o=no 8932 $RM -r conftest 2>/dev/null 8933 mkdir conftest 8934 cd conftest 8935 mkdir out 8936 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8937 8938 lt_compiler_flag="-o out/conftest2.$ac_objext" 8939 # Insert the option either (1) after the last *FLAGS variable, or 8940 # (2) before a word containing "conftest.", or (3) at the end. 8941 # Note that $ac_compile itself does not contain backslashes and begins 8942 # with a dollar sign (not a hyphen), so the echo should work correctly. 8943 lt_compile=`echo "$ac_compile" | $SED \ 8944 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8945 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8946 -e 's:$: $lt_compiler_flag:'` 8947 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8948 (eval "$lt_compile" 2>out/conftest.err) 8949 ac_status=$? 8950 cat out/conftest.err >&5 8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8952 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8953 then 8954 # The compiler can only warn and ignore the option if not recognized 8955 # So say no if there are warnings 8956 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8957 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8958 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8959 lt_cv_prog_compiler_c_o=yes 8960 fi 8961 fi 8962 chmod u+w . 2>&5 8963 $RM conftest* 8964 # SGI C++ compiler will create directory out/ii_files/ for 8965 # template instantiation 8966 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8967 $RM out/* && rmdir out 8968 cd .. 8969 $RM -r conftest 8970 $RM conftest* 8971 8972fi 8973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8974$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8975 8976 8977 8978 8979hard_links="nottested" 8980if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8981 # do not overwrite the value of need_locks provided by the user 8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8983$as_echo_n "checking if we can lock with hard links... " >&6; } 8984 hard_links=yes 8985 $RM conftest* 8986 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8987 touch conftest.a 8988 ln conftest.a conftest.b 2>&5 || hard_links=no 8989 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8991$as_echo "$hard_links" >&6; } 8992 if test "$hard_links" = no; then 8993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8994$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8995 need_locks=warn 8996 fi 8997else 8998 need_locks=no 8999fi 9000 9001 9002 9003 9004 9005 9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9007$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9008 9009 runpath_var= 9010 allow_undefined_flag= 9011 always_export_symbols=no 9012 archive_cmds= 9013 archive_expsym_cmds= 9014 compiler_needs_object=no 9015 enable_shared_with_static_runtimes=no 9016 export_dynamic_flag_spec= 9017 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9018 hardcode_automatic=no 9019 hardcode_direct=no 9020 hardcode_direct_absolute=no 9021 hardcode_libdir_flag_spec= 9022 hardcode_libdir_separator= 9023 hardcode_minus_L=no 9024 hardcode_shlibpath_var=unsupported 9025 inherit_rpath=no 9026 link_all_deplibs=unknown 9027 module_cmds= 9028 module_expsym_cmds= 9029 old_archive_from_new_cmds= 9030 old_archive_from_expsyms_cmds= 9031 thread_safe_flag_spec= 9032 whole_archive_flag_spec= 9033 # include_expsyms should be a list of space-separated symbols to be *always* 9034 # included in the symbol list 9035 include_expsyms= 9036 # exclude_expsyms can be an extended regexp of symbols to exclude 9037 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9038 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9039 # as well as any symbol that contains `d'. 9040 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9041 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9042 # platforms (ab)use it in PIC code, but their linkers get confused if 9043 # the symbol is explicitly referenced. Since portable code cannot 9044 # rely on this symbol name, it's probably fine to never include it in 9045 # preloaded symbol tables. 9046 # Exclude shared library initialization/finalization symbols. 9047 extract_expsyms_cmds= 9048 9049 case $host_os in 9050 cygwin* | mingw* | pw32* | cegcc*) 9051 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9052 # When not using gcc, we currently assume that we are using 9053 # Microsoft Visual C++. 9054 if test "$GCC" != yes; then 9055 with_gnu_ld=no 9056 fi 9057 ;; 9058 interix*) 9059 # we just hope/assume this is gcc and not c89 (= MSVC++) 9060 with_gnu_ld=yes 9061 ;; 9062 openbsd*) 9063 with_gnu_ld=no 9064 ;; 9065 esac 9066 9067 ld_shlibs=yes 9068 9069 # On some targets, GNU ld is compatible enough with the native linker 9070 # that we're better off using the native interface for both. 9071 lt_use_gnu_ld_interface=no 9072 if test "$with_gnu_ld" = yes; then 9073 case $host_os in 9074 aix*) 9075 # The AIX port of GNU ld has always aspired to compatibility 9076 # with the native linker. However, as the warning in the GNU ld 9077 # block says, versions before 2.19.5* couldn't really create working 9078 # shared libraries, regardless of the interface used. 9079 case `$LD -v 2>&1` in 9080 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9081 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9082 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9083 *) 9084 lt_use_gnu_ld_interface=yes 9085 ;; 9086 esac 9087 ;; 9088 *) 9089 lt_use_gnu_ld_interface=yes 9090 ;; 9091 esac 9092 fi 9093 9094 if test "$lt_use_gnu_ld_interface" = yes; then 9095 # If archive_cmds runs LD, not CC, wlarc should be empty 9096 wlarc='${wl}' 9097 9098 # Set some defaults for GNU ld with shared library support. These 9099 # are reset later if shared libraries are not supported. Putting them 9100 # here allows them to be overridden if necessary. 9101 runpath_var=LD_RUN_PATH 9102 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9103 export_dynamic_flag_spec='${wl}--export-dynamic' 9104 # ancient GNU ld didn't support --whole-archive et. al. 9105 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9106 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9107 else 9108 whole_archive_flag_spec= 9109 fi 9110 supports_anon_versioning=no 9111 case `$LD -v 2>&1` in 9112 *GNU\ gold*) supports_anon_versioning=yes ;; 9113 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9114 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9115 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9116 *\ 2.11.*) ;; # other 2.11 versions 9117 *) supports_anon_versioning=yes ;; 9118 esac 9119 9120 # See if GNU ld supports shared libraries. 9121 case $host_os in 9122 aix[3-9]*) 9123 # On AIX/PPC, the GNU linker is very broken 9124 if test "$host_cpu" != ia64; then 9125 ld_shlibs=no 9126 cat <<_LT_EOF 1>&2 9127 9128*** Warning: the GNU linker, at least up to release 2.19, is reported 9129*** to be unable to reliably create shared libraries on AIX. 9130*** Therefore, libtool is disabling shared libraries support. If you 9131*** really care for shared libraries, you may want to install binutils 9132*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9133*** You will then need to restart the configuration process. 9134 9135_LT_EOF 9136 fi 9137 ;; 9138 9139 amigaos*) 9140 case $host_cpu in 9141 powerpc) 9142 # see comment about AmigaOS4 .so support 9143 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9144 archive_expsym_cmds='' 9145 ;; 9146 m68k) 9147 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)' 9148 hardcode_libdir_flag_spec='-L$libdir' 9149 hardcode_minus_L=yes 9150 ;; 9151 esac 9152 ;; 9153 9154 beos*) 9155 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9156 allow_undefined_flag=unsupported 9157 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9158 # support --undefined. This deserves some investigation. FIXME 9159 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9160 else 9161 ld_shlibs=no 9162 fi 9163 ;; 9164 9165 cygwin* | mingw* | pw32* | cegcc*) 9166 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9167 # as there is no search path for DLLs. 9168 hardcode_libdir_flag_spec='-L$libdir' 9169 export_dynamic_flag_spec='${wl}--export-all-symbols' 9170 allow_undefined_flag=unsupported 9171 always_export_symbols=no 9172 enable_shared_with_static_runtimes=yes 9173 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' 9174 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9175 9176 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9177 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9178 # If the export-symbols file already is a .def file (1st line 9179 # is EXPORTS), use it as is; otherwise, prepend... 9180 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9181 cp $export_symbols $output_objdir/$soname.def; 9182 else 9183 echo EXPORTS > $output_objdir/$soname.def; 9184 cat $export_symbols >> $output_objdir/$soname.def; 9185 fi~ 9186 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9187 else 9188 ld_shlibs=no 9189 fi 9190 ;; 9191 9192 haiku*) 9193 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9194 link_all_deplibs=yes 9195 ;; 9196 9197 interix[3-9]*) 9198 hardcode_direct=no 9199 hardcode_shlibpath_var=no 9200 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9201 export_dynamic_flag_spec='${wl}-E' 9202 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9203 # Instead, shared libraries are loaded at an image base (0x10000000 by 9204 # default) and relocated if they conflict, which is a slow very memory 9205 # consuming and fragmenting process. To avoid this, we pick a random, 9206 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9207 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9208 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9209 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' 9210 ;; 9211 9212 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9213 tmp_diet=no 9214 if test "$host_os" = linux-dietlibc; then 9215 case $cc_basename in 9216 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9217 esac 9218 fi 9219 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9220 && test "$tmp_diet" = no 9221 then 9222 tmp_addflag=' $pic_flag' 9223 tmp_sharedflag='-shared' 9224 case $cc_basename,$host_cpu in 9225 pgcc*) # Portland Group C compiler 9226 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' 9227 tmp_addflag=' $pic_flag' 9228 ;; 9229 pgf77* | pgf90* | pgf95* | pgfortran*) 9230 # Portland Group f77 and f90 compilers 9231 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' 9232 tmp_addflag=' $pic_flag -Mnomain' ;; 9233 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9234 tmp_addflag=' -i_dynamic' ;; 9235 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9236 tmp_addflag=' -i_dynamic -nofor_main' ;; 9237 ifc* | ifort*) # Intel Fortran compiler 9238 tmp_addflag=' -nofor_main' ;; 9239 lf95*) # Lahey Fortran 8.1 9240 whole_archive_flag_spec= 9241 tmp_sharedflag='--shared' ;; 9242 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9243 tmp_sharedflag='-qmkshrobj' 9244 tmp_addflag= ;; 9245 nvcc*) # Cuda Compiler Driver 2.2 9246 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' 9247 compiler_needs_object=yes 9248 ;; 9249 esac 9250 case `$CC -V 2>&1 | sed 5q` in 9251 *Sun\ C*) # Sun C 5.9 9252 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' 9253 compiler_needs_object=yes 9254 tmp_sharedflag='-G' ;; 9255 *Sun\ F*) # Sun Fortran 8.3 9256 tmp_sharedflag='-G' ;; 9257 esac 9258 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9259 9260 if test "x$supports_anon_versioning" = xyes; then 9261 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9262 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9263 echo "local: *; };" >> $output_objdir/$libname.ver~ 9264 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9265 fi 9266 9267 case $cc_basename in 9268 xlf* | bgf* | bgxlf* | mpixlf*) 9269 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9270 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9271 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9272 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9273 if test "x$supports_anon_versioning" = xyes; then 9274 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9275 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9276 echo "local: *; };" >> $output_objdir/$libname.ver~ 9277 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9278 fi 9279 ;; 9280 esac 9281 else 9282 ld_shlibs=no 9283 fi 9284 ;; 9285 9286 netbsd*) 9287 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9288 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9289 wlarc= 9290 else 9291 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9292 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9293 fi 9294 ;; 9295 9296 solaris*) 9297 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9298 ld_shlibs=no 9299 cat <<_LT_EOF 1>&2 9300 9301*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9302*** create shared libraries on Solaris systems. Therefore, libtool 9303*** is disabling shared libraries support. We urge you to upgrade GNU 9304*** binutils to release 2.9.1 or newer. Another option is to modify 9305*** your PATH or compiler configuration so that the native linker is 9306*** used, and then restart. 9307 9308_LT_EOF 9309 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9310 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9311 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9312 else 9313 ld_shlibs=no 9314 fi 9315 ;; 9316 9317 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9318 case `$LD -v 2>&1` in 9319 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9320 ld_shlibs=no 9321 cat <<_LT_EOF 1>&2 9322 9323*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9324*** reliably create shared libraries on SCO systems. Therefore, libtool 9325*** is disabling shared libraries support. We urge you to upgrade GNU 9326*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9327*** your PATH or compiler configuration so that the native linker is 9328*** used, and then restart. 9329 9330_LT_EOF 9331 ;; 9332 *) 9333 # For security reasons, it is highly recommended that you always 9334 # use absolute paths for naming shared libraries, and exclude the 9335 # DT_RUNPATH tag from executables and libraries. But doing so 9336 # requires that you compile everything twice, which is a pain. 9337 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9338 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9339 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9340 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9341 else 9342 ld_shlibs=no 9343 fi 9344 ;; 9345 esac 9346 ;; 9347 9348 sunos4*) 9349 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9350 wlarc= 9351 hardcode_direct=yes 9352 hardcode_shlibpath_var=no 9353 ;; 9354 9355 *) 9356 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9357 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9358 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9359 else 9360 ld_shlibs=no 9361 fi 9362 ;; 9363 esac 9364 9365 if test "$ld_shlibs" = no; then 9366 runpath_var= 9367 hardcode_libdir_flag_spec= 9368 export_dynamic_flag_spec= 9369 whole_archive_flag_spec= 9370 fi 9371 else 9372 # PORTME fill in a description of your system's linker (not GNU ld) 9373 case $host_os in 9374 aix3*) 9375 allow_undefined_flag=unsupported 9376 always_export_symbols=yes 9377 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' 9378 # Note: this linker hardcodes the directories in LIBPATH if there 9379 # are no directories specified by -L. 9380 hardcode_minus_L=yes 9381 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9382 # Neither direct hardcoding nor static linking is supported with a 9383 # broken collect2. 9384 hardcode_direct=unsupported 9385 fi 9386 ;; 9387 9388 aix[4-9]*) 9389 if test "$host_cpu" = ia64; then 9390 # On IA64, the linker does run time linking by default, so we don't 9391 # have to do anything special. 9392 aix_use_runtimelinking=no 9393 exp_sym_flag='-Bexport' 9394 no_entry_flag="" 9395 else 9396 # If we're using GNU nm, then we don't want the "-C" option. 9397 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9398 # Also, AIX nm treats weak defined symbols like other global 9399 # defined symbols, whereas GNU nm marks them as "W". 9400 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9401 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9402 else 9403 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9404 fi 9405 aix_use_runtimelinking=no 9406 9407 # Test if we are trying to use run time linking or normal 9408 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9409 # need to do runtime linking. 9410 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9411 for ld_flag in $LDFLAGS; do 9412 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9413 aix_use_runtimelinking=yes 9414 break 9415 fi 9416 done 9417 ;; 9418 esac 9419 9420 exp_sym_flag='-bexport' 9421 no_entry_flag='-bnoentry' 9422 fi 9423 9424 # When large executables or shared objects are built, AIX ld can 9425 # have problems creating the table of contents. If linking a library 9426 # or program results in "error TOC overflow" add -mminimal-toc to 9427 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9428 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9429 9430 archive_cmds='' 9431 hardcode_direct=yes 9432 hardcode_direct_absolute=yes 9433 hardcode_libdir_separator=':' 9434 link_all_deplibs=yes 9435 file_list_spec='${wl}-f,' 9436 9437 if test "$GCC" = yes; then 9438 case $host_os in aix4.[012]|aix4.[012].*) 9439 # We only want to do this on AIX 4.2 and lower, the check 9440 # below for broken collect2 doesn't work under 4.3+ 9441 collect2name=`${CC} -print-prog-name=collect2` 9442 if test -f "$collect2name" && 9443 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9444 then 9445 # We have reworked collect2 9446 : 9447 else 9448 # We have old collect2 9449 hardcode_direct=unsupported 9450 # It fails to find uninstalled libraries when the uninstalled 9451 # path is not listed in the libpath. Setting hardcode_minus_L 9452 # to unsupported forces relinking 9453 hardcode_minus_L=yes 9454 hardcode_libdir_flag_spec='-L$libdir' 9455 hardcode_libdir_separator= 9456 fi 9457 ;; 9458 esac 9459 shared_flag='-shared' 9460 if test "$aix_use_runtimelinking" = yes; then 9461 shared_flag="$shared_flag "'${wl}-G' 9462 fi 9463 else 9464 # not using gcc 9465 if test "$host_cpu" = ia64; then 9466 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9467 # chokes on -Wl,-G. The following line is correct: 9468 shared_flag='-G' 9469 else 9470 if test "$aix_use_runtimelinking" = yes; then 9471 shared_flag='${wl}-G' 9472 else 9473 shared_flag='${wl}-bM:SRE' 9474 fi 9475 fi 9476 fi 9477 9478 export_dynamic_flag_spec='${wl}-bexpall' 9479 # It seems that -bexpall does not export symbols beginning with 9480 # underscore (_), so it is better to generate a list of symbols to export. 9481 always_export_symbols=yes 9482 if test "$aix_use_runtimelinking" = yes; then 9483 # Warning - without using the other runtime loading flags (-brtl), 9484 # -berok will link without error, but may produce a broken library. 9485 allow_undefined_flag='-berok' 9486 # Determine the default libpath from the value encoded in an 9487 # empty executable. 9488 if test "${lt_cv_aix_libpath+set}" = set; then 9489 aix_libpath=$lt_cv_aix_libpath 9490else 9491 if ${lt_cv_aix_libpath_+:} false; then : 9492 $as_echo_n "(cached) " >&6 9493else 9494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9495/* end confdefs.h. */ 9496 9497int 9498main () 9499{ 9500 9501 ; 9502 return 0; 9503} 9504_ACEOF 9505if ac_fn_c_try_link "$LINENO"; then : 9506 9507 lt_aix_libpath_sed=' 9508 /Import File Strings/,/^$/ { 9509 /^0/ { 9510 s/^0 *\([^ ]*\) *$/\1/ 9511 p 9512 } 9513 }' 9514 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9515 # Check for a 64-bit object if we didn't find anything. 9516 if test -z "$lt_cv_aix_libpath_"; then 9517 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9518 fi 9519fi 9520rm -f core conftest.err conftest.$ac_objext \ 9521 conftest$ac_exeext conftest.$ac_ext 9522 if test -z "$lt_cv_aix_libpath_"; then 9523 lt_cv_aix_libpath_="/usr/lib:/lib" 9524 fi 9525 9526fi 9527 9528 aix_libpath=$lt_cv_aix_libpath_ 9529fi 9530 9531 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9532 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9533 else 9534 if test "$host_cpu" = ia64; then 9535 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9536 allow_undefined_flag="-z nodefs" 9537 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" 9538 else 9539 # Determine the default libpath from the value encoded in an 9540 # empty executable. 9541 if test "${lt_cv_aix_libpath+set}" = set; then 9542 aix_libpath=$lt_cv_aix_libpath 9543else 9544 if ${lt_cv_aix_libpath_+:} false; then : 9545 $as_echo_n "(cached) " >&6 9546else 9547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9548/* end confdefs.h. */ 9549 9550int 9551main () 9552{ 9553 9554 ; 9555 return 0; 9556} 9557_ACEOF 9558if ac_fn_c_try_link "$LINENO"; then : 9559 9560 lt_aix_libpath_sed=' 9561 /Import File Strings/,/^$/ { 9562 /^0/ { 9563 s/^0 *\([^ ]*\) *$/\1/ 9564 p 9565 } 9566 }' 9567 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9568 # Check for a 64-bit object if we didn't find anything. 9569 if test -z "$lt_cv_aix_libpath_"; then 9570 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9571 fi 9572fi 9573rm -f core conftest.err conftest.$ac_objext \ 9574 conftest$ac_exeext conftest.$ac_ext 9575 if test -z "$lt_cv_aix_libpath_"; then 9576 lt_cv_aix_libpath_="/usr/lib:/lib" 9577 fi 9578 9579fi 9580 9581 aix_libpath=$lt_cv_aix_libpath_ 9582fi 9583 9584 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9585 # Warning - without using the other run time loading flags, 9586 # -berok will link without error, but may produce a broken library. 9587 no_undefined_flag=' ${wl}-bernotok' 9588 allow_undefined_flag=' ${wl}-berok' 9589 if test "$with_gnu_ld" = yes; then 9590 # We only use this code for GNU lds that support --whole-archive. 9591 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9592 else 9593 # Exported symbols can be pulled into shared objects from archives 9594 whole_archive_flag_spec='$convenience' 9595 fi 9596 archive_cmds_need_lc=yes 9597 # This is similar to how AIX traditionally builds its shared libraries. 9598 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9599 fi 9600 fi 9601 ;; 9602 9603 amigaos*) 9604 case $host_cpu in 9605 powerpc) 9606 # see comment about AmigaOS4 .so support 9607 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9608 archive_expsym_cmds='' 9609 ;; 9610 m68k) 9611 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)' 9612 hardcode_libdir_flag_spec='-L$libdir' 9613 hardcode_minus_L=yes 9614 ;; 9615 esac 9616 ;; 9617 9618 bsdi[45]*) 9619 export_dynamic_flag_spec=-rdynamic 9620 ;; 9621 9622 cygwin* | mingw* | pw32* | cegcc*) 9623 # When not using gcc, we currently assume that we are using 9624 # Microsoft Visual C++. 9625 # hardcode_libdir_flag_spec is actually meaningless, as there is 9626 # no search path for DLLs. 9627 case $cc_basename in 9628 cl*) 9629 # Native MSVC 9630 hardcode_libdir_flag_spec=' ' 9631 allow_undefined_flag=unsupported 9632 always_export_symbols=yes 9633 file_list_spec='@' 9634 # Tell ltmain to make .lib files, not .a files. 9635 libext=lib 9636 # Tell ltmain to make .dll files, not .so files. 9637 shrext_cmds=".dll" 9638 # FIXME: Setting linknames here is a bad hack. 9639 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9640 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9641 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9642 else 9643 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9644 fi~ 9645 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9646 linknames=' 9647 # The linker will not automatically build a static lib if we build a DLL. 9648 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9649 enable_shared_with_static_runtimes=yes 9650 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9651 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9652 # Don't use ranlib 9653 old_postinstall_cmds='chmod 644 $oldlib' 9654 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9655 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9656 case $lt_outputfile in 9657 *.exe|*.EXE) ;; 9658 *) 9659 lt_outputfile="$lt_outputfile.exe" 9660 lt_tool_outputfile="$lt_tool_outputfile.exe" 9661 ;; 9662 esac~ 9663 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9664 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9665 $RM "$lt_outputfile.manifest"; 9666 fi' 9667 ;; 9668 *) 9669 # Assume MSVC wrapper 9670 hardcode_libdir_flag_spec=' ' 9671 allow_undefined_flag=unsupported 9672 # Tell ltmain to make .lib files, not .a files. 9673 libext=lib 9674 # Tell ltmain to make .dll files, not .so files. 9675 shrext_cmds=".dll" 9676 # FIXME: Setting linknames here is a bad hack. 9677 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9678 # The linker will automatically build a .lib file if we build a DLL. 9679 old_archive_from_new_cmds='true' 9680 # FIXME: Should let the user specify the lib program. 9681 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9682 enable_shared_with_static_runtimes=yes 9683 ;; 9684 esac 9685 ;; 9686 9687 darwin* | rhapsody*) 9688 9689 9690 archive_cmds_need_lc=no 9691 hardcode_direct=no 9692 hardcode_automatic=yes 9693 hardcode_shlibpath_var=unsupported 9694 if test "$lt_cv_ld_force_load" = "yes"; then 9695 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\"`' 9696 9697 else 9698 whole_archive_flag_spec='' 9699 fi 9700 link_all_deplibs=yes 9701 allow_undefined_flag="$_lt_dar_allow_undefined" 9702 case $cc_basename in 9703 ifort*) _lt_dar_can_shared=yes ;; 9704 *) _lt_dar_can_shared=$GCC ;; 9705 esac 9706 if test "$_lt_dar_can_shared" = "yes"; then 9707 output_verbose_link_cmd=func_echo_all 9708 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9709 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9710 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}" 9711 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}" 9712 9713 else 9714 ld_shlibs=no 9715 fi 9716 9717 ;; 9718 9719 dgux*) 9720 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9721 hardcode_libdir_flag_spec='-L$libdir' 9722 hardcode_shlibpath_var=no 9723 ;; 9724 9725 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9726 # support. Future versions do this automatically, but an explicit c++rt0.o 9727 # does not break anything, and helps significantly (at the cost of a little 9728 # extra space). 9729 freebsd2.2*) 9730 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9731 hardcode_libdir_flag_spec='-R$libdir' 9732 hardcode_direct=yes 9733 hardcode_shlibpath_var=no 9734 ;; 9735 9736 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9737 freebsd2.*) 9738 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9739 hardcode_direct=yes 9740 hardcode_minus_L=yes 9741 hardcode_shlibpath_var=no 9742 ;; 9743 9744 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9745 freebsd* | dragonfly*) 9746 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9747 hardcode_libdir_flag_spec='-R$libdir' 9748 hardcode_direct=yes 9749 hardcode_shlibpath_var=no 9750 ;; 9751 9752 hpux9*) 9753 if test "$GCC" = yes; then 9754 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9755 else 9756 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9757 fi 9758 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9759 hardcode_libdir_separator=: 9760 hardcode_direct=yes 9761 9762 # hardcode_minus_L: Not really in the search PATH, 9763 # but as the default location of the library. 9764 hardcode_minus_L=yes 9765 export_dynamic_flag_spec='${wl}-E' 9766 ;; 9767 9768 hpux10*) 9769 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9770 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9771 else 9772 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9773 fi 9774 if test "$with_gnu_ld" = no; then 9775 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9776 hardcode_libdir_separator=: 9777 hardcode_direct=yes 9778 hardcode_direct_absolute=yes 9779 export_dynamic_flag_spec='${wl}-E' 9780 # hardcode_minus_L: Not really in the search PATH, 9781 # but as the default location of the library. 9782 hardcode_minus_L=yes 9783 fi 9784 ;; 9785 9786 hpux11*) 9787 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9788 case $host_cpu in 9789 hppa*64*) 9790 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9791 ;; 9792 ia64*) 9793 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9794 ;; 9795 *) 9796 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9797 ;; 9798 esac 9799 else 9800 case $host_cpu in 9801 hppa*64*) 9802 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9803 ;; 9804 ia64*) 9805 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9806 ;; 9807 *) 9808 9809 # Older versions of the 11.00 compiler do not understand -b yet 9810 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9812$as_echo_n "checking if $CC understands -b... " >&6; } 9813if ${lt_cv_prog_compiler__b+:} false; then : 9814 $as_echo_n "(cached) " >&6 9815else 9816 lt_cv_prog_compiler__b=no 9817 save_LDFLAGS="$LDFLAGS" 9818 LDFLAGS="$LDFLAGS -b" 9819 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9820 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9821 # The linker can only warn and ignore the option if not recognized 9822 # So say no if there are warnings 9823 if test -s conftest.err; then 9824 # Append any errors to the config.log. 9825 cat conftest.err 1>&5 9826 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9827 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9828 if diff conftest.exp conftest.er2 >/dev/null; then 9829 lt_cv_prog_compiler__b=yes 9830 fi 9831 else 9832 lt_cv_prog_compiler__b=yes 9833 fi 9834 fi 9835 $RM -r conftest* 9836 LDFLAGS="$save_LDFLAGS" 9837 9838fi 9839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9840$as_echo "$lt_cv_prog_compiler__b" >&6; } 9841 9842if test x"$lt_cv_prog_compiler__b" = xyes; then 9843 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9844else 9845 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9846fi 9847 9848 ;; 9849 esac 9850 fi 9851 if test "$with_gnu_ld" = no; then 9852 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9853 hardcode_libdir_separator=: 9854 9855 case $host_cpu in 9856 hppa*64*|ia64*) 9857 hardcode_direct=no 9858 hardcode_shlibpath_var=no 9859 ;; 9860 *) 9861 hardcode_direct=yes 9862 hardcode_direct_absolute=yes 9863 export_dynamic_flag_spec='${wl}-E' 9864 9865 # hardcode_minus_L: Not really in the search PATH, 9866 # but as the default location of the library. 9867 hardcode_minus_L=yes 9868 ;; 9869 esac 9870 fi 9871 ;; 9872 9873 irix5* | irix6* | nonstopux*) 9874 if test "$GCC" = yes; then 9875 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' 9876 # Try to use the -exported_symbol ld option, if it does not 9877 # work, assume that -exports_file does not work either and 9878 # implicitly export all symbols. 9879 # This should be the same for all languages, so no per-tag cache variable. 9880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9881$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9882if ${lt_cv_irix_exported_symbol+:} false; then : 9883 $as_echo_n "(cached) " >&6 9884else 9885 save_LDFLAGS="$LDFLAGS" 9886 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9888/* end confdefs.h. */ 9889int foo (void) { return 0; } 9890_ACEOF 9891if ac_fn_c_try_link "$LINENO"; then : 9892 lt_cv_irix_exported_symbol=yes 9893else 9894 lt_cv_irix_exported_symbol=no 9895fi 9896rm -f core conftest.err conftest.$ac_objext \ 9897 conftest$ac_exeext conftest.$ac_ext 9898 LDFLAGS="$save_LDFLAGS" 9899fi 9900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9901$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9902 if test "$lt_cv_irix_exported_symbol" = yes; then 9903 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' 9904 fi 9905 else 9906 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' 9907 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' 9908 fi 9909 archive_cmds_need_lc='no' 9910 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9911 hardcode_libdir_separator=: 9912 inherit_rpath=yes 9913 link_all_deplibs=yes 9914 ;; 9915 9916 netbsd*) 9917 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9918 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9919 else 9920 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9921 fi 9922 hardcode_libdir_flag_spec='-R$libdir' 9923 hardcode_direct=yes 9924 hardcode_shlibpath_var=no 9925 ;; 9926 9927 newsos6) 9928 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9929 hardcode_direct=yes 9930 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9931 hardcode_libdir_separator=: 9932 hardcode_shlibpath_var=no 9933 ;; 9934 9935 *nto* | *qnx*) 9936 ;; 9937 9938 openbsd*) 9939 if test -f /usr/libexec/ld.so; then 9940 hardcode_direct=yes 9941 hardcode_shlibpath_var=no 9942 hardcode_direct_absolute=yes 9943 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9944 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9945 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9946 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9947 export_dynamic_flag_spec='${wl}-E' 9948 else 9949 case $host_os in 9950 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9951 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9952 hardcode_libdir_flag_spec='-R$libdir' 9953 ;; 9954 *) 9955 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9956 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9957 ;; 9958 esac 9959 fi 9960 else 9961 ld_shlibs=no 9962 fi 9963 ;; 9964 9965 os2*) 9966 hardcode_libdir_flag_spec='-L$libdir' 9967 hardcode_minus_L=yes 9968 allow_undefined_flag=unsupported 9969 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 9970 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9971 ;; 9972 9973 osf3*) 9974 if test "$GCC" = yes; then 9975 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9976 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' 9977 else 9978 allow_undefined_flag=' -expect_unresolved \*' 9979 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' 9980 fi 9981 archive_cmds_need_lc='no' 9982 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9983 hardcode_libdir_separator=: 9984 ;; 9985 9986 osf4* | osf5*) # as osf3* with the addition of -msym flag 9987 if test "$GCC" = yes; then 9988 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9989 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' 9990 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9991 else 9992 allow_undefined_flag=' -expect_unresolved \*' 9993 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' 9994 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~ 9995 $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' 9996 9997 # Both c and cxx compiler support -rpath directly 9998 hardcode_libdir_flag_spec='-rpath $libdir' 9999 fi 10000 archive_cmds_need_lc='no' 10001 hardcode_libdir_separator=: 10002 ;; 10003 10004 solaris*) 10005 no_undefined_flag=' -z defs' 10006 if test "$GCC" = yes; then 10007 wlarc='${wl}' 10008 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10009 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10010 $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' 10011 else 10012 case `$CC -V 2>&1` in 10013 *"Compilers 5.0"*) 10014 wlarc='' 10015 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10016 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10017 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10018 ;; 10019 *) 10020 wlarc='${wl}' 10021 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10022 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10023 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10024 ;; 10025 esac 10026 fi 10027 hardcode_libdir_flag_spec='-R$libdir' 10028 hardcode_shlibpath_var=no 10029 case $host_os in 10030 solaris2.[0-5] | solaris2.[0-5].*) ;; 10031 *) 10032 # The compiler driver will combine and reorder linker options, 10033 # but understands `-z linker_flag'. GCC discards it without `$wl', 10034 # but is careful enough not to reorder. 10035 # Supported since Solaris 2.6 (maybe 2.5.1?) 10036 if test "$GCC" = yes; then 10037 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10038 else 10039 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10040 fi 10041 ;; 10042 esac 10043 link_all_deplibs=yes 10044 ;; 10045 10046 sunos4*) 10047 if test "x$host_vendor" = xsequent; then 10048 # Use $CC to link under sequent, because it throws in some extra .o 10049 # files that make .init and .fini sections work. 10050 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10051 else 10052 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10053 fi 10054 hardcode_libdir_flag_spec='-L$libdir' 10055 hardcode_direct=yes 10056 hardcode_minus_L=yes 10057 hardcode_shlibpath_var=no 10058 ;; 10059 10060 sysv4) 10061 case $host_vendor in 10062 sni) 10063 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10064 hardcode_direct=yes # is this really true??? 10065 ;; 10066 siemens) 10067 ## LD is ld it makes a PLAMLIB 10068 ## CC just makes a GrossModule. 10069 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10070 reload_cmds='$CC -r -o $output$reload_objs' 10071 hardcode_direct=no 10072 ;; 10073 motorola) 10074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10075 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10076 ;; 10077 esac 10078 runpath_var='LD_RUN_PATH' 10079 hardcode_shlibpath_var=no 10080 ;; 10081 10082 sysv4.3*) 10083 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10084 hardcode_shlibpath_var=no 10085 export_dynamic_flag_spec='-Bexport' 10086 ;; 10087 10088 sysv4*MP*) 10089 if test -d /usr/nec; then 10090 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10091 hardcode_shlibpath_var=no 10092 runpath_var=LD_RUN_PATH 10093 hardcode_runpath_var=yes 10094 ld_shlibs=yes 10095 fi 10096 ;; 10097 10098 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10099 no_undefined_flag='${wl}-z,text' 10100 archive_cmds_need_lc=no 10101 hardcode_shlibpath_var=no 10102 runpath_var='LD_RUN_PATH' 10103 10104 if test "$GCC" = yes; then 10105 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10106 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10107 else 10108 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10109 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10110 fi 10111 ;; 10112 10113 sysv5* | sco3.2v5* | sco5v6*) 10114 # Note: We can NOT use -z defs as we might desire, because we do not 10115 # link with -lc, and that would cause any symbols used from libc to 10116 # always be unresolved, which means just about no library would 10117 # ever link correctly. If we're not using GNU ld we use -z text 10118 # though, which does catch some bad symbols but isn't as heavy-handed 10119 # as -z defs. 10120 no_undefined_flag='${wl}-z,text' 10121 allow_undefined_flag='${wl}-z,nodefs' 10122 archive_cmds_need_lc=no 10123 hardcode_shlibpath_var=no 10124 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10125 hardcode_libdir_separator=':' 10126 link_all_deplibs=yes 10127 export_dynamic_flag_spec='${wl}-Bexport' 10128 runpath_var='LD_RUN_PATH' 10129 10130 if test "$GCC" = yes; then 10131 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10132 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10133 else 10134 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10135 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10136 fi 10137 ;; 10138 10139 uts4*) 10140 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10141 hardcode_libdir_flag_spec='-L$libdir' 10142 hardcode_shlibpath_var=no 10143 ;; 10144 10145 *) 10146 ld_shlibs=no 10147 ;; 10148 esac 10149 10150 if test x$host_vendor = xsni; then 10151 case $host in 10152 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10153 export_dynamic_flag_spec='${wl}-Blargedynsym' 10154 ;; 10155 esac 10156 fi 10157 fi 10158 10159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10160$as_echo "$ld_shlibs" >&6; } 10161test "$ld_shlibs" = no && can_build_shared=no 10162 10163with_gnu_ld=$with_gnu_ld 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179# 10180# Do we need to explicitly link libc? 10181# 10182case "x$archive_cmds_need_lc" in 10183x|xyes) 10184 # Assume -lc should be added 10185 archive_cmds_need_lc=yes 10186 10187 if test "$enable_shared" = yes && test "$GCC" = yes; then 10188 case $archive_cmds in 10189 *'~'*) 10190 # FIXME: we may have to deal with multi-command sequences. 10191 ;; 10192 '$CC '*) 10193 # Test whether the compiler implicitly links with -lc since on some 10194 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10195 # to ld, don't add -lc before -lgcc. 10196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10197$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10198if ${lt_cv_archive_cmds_need_lc+:} false; then : 10199 $as_echo_n "(cached) " >&6 10200else 10201 $RM conftest* 10202 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10203 10204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10205 (eval $ac_compile) 2>&5 10206 ac_status=$? 10207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10208 test $ac_status = 0; } 2>conftest.err; then 10209 soname=conftest 10210 lib=conftest 10211 libobjs=conftest.$ac_objext 10212 deplibs= 10213 wl=$lt_prog_compiler_wl 10214 pic_flag=$lt_prog_compiler_pic 10215 compiler_flags=-v 10216 linker_flags=-v 10217 verstring= 10218 output_objdir=. 10219 libname=conftest 10220 lt_save_allow_undefined_flag=$allow_undefined_flag 10221 allow_undefined_flag= 10222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10223 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10224 ac_status=$? 10225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10226 test $ac_status = 0; } 10227 then 10228 lt_cv_archive_cmds_need_lc=no 10229 else 10230 lt_cv_archive_cmds_need_lc=yes 10231 fi 10232 allow_undefined_flag=$lt_save_allow_undefined_flag 10233 else 10234 cat conftest.err 1>&5 10235 fi 10236 $RM conftest* 10237 10238fi 10239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10240$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10241 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10242 ;; 10243 esac 10244 fi 10245 ;; 10246esac 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10400$as_echo_n "checking dynamic linker characteristics... " >&6; } 10401 10402if test "$GCC" = yes; then 10403 case $host_os in 10404 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10405 *) lt_awk_arg="/^libraries:/" ;; 10406 esac 10407 case $host_os in 10408 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10409 *) lt_sed_strip_eq="s,=/,/,g" ;; 10410 esac 10411 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10412 case $lt_search_path_spec in 10413 *\;*) 10414 # if the path contains ";" then we assume it to be the separator 10415 # otherwise default to the standard path separator (i.e. ":") - it is 10416 # assumed that no part of a normal pathname contains ";" but that should 10417 # okay in the real world where ";" in dirpaths is itself problematic. 10418 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10419 ;; 10420 *) 10421 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10422 ;; 10423 esac 10424 # Ok, now we have the path, separated by spaces, we can step through it 10425 # and add multilib dir if necessary. 10426 lt_tmp_lt_search_path_spec= 10427 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10428 for lt_sys_path in $lt_search_path_spec; do 10429 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10430 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10431 else 10432 test -d "$lt_sys_path" && \ 10433 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10434 fi 10435 done 10436 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10437BEGIN {RS=" "; FS="/|\n";} { 10438 lt_foo=""; 10439 lt_count=0; 10440 for (lt_i = NF; lt_i > 0; lt_i--) { 10441 if ($lt_i != "" && $lt_i != ".") { 10442 if ($lt_i == "..") { 10443 lt_count++; 10444 } else { 10445 if (lt_count == 0) { 10446 lt_foo="/" $lt_i lt_foo; 10447 } else { 10448 lt_count--; 10449 } 10450 } 10451 } 10452 } 10453 if (lt_foo != "") { lt_freq[lt_foo]++; } 10454 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10455}'` 10456 # AWK program above erroneously prepends '/' to C:/dos/paths 10457 # for these hosts. 10458 case $host_os in 10459 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10460 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10461 esac 10462 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10463else 10464 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10465fi 10466library_names_spec= 10467libname_spec='lib$name' 10468soname_spec= 10469shrext_cmds=".so" 10470postinstall_cmds= 10471postuninstall_cmds= 10472finish_cmds= 10473finish_eval= 10474shlibpath_var= 10475shlibpath_overrides_runpath=unknown 10476version_type=none 10477dynamic_linker="$host_os ld.so" 10478sys_lib_dlsearch_path_spec="/lib /usr/lib" 10479need_lib_prefix=unknown 10480hardcode_into_libs=no 10481 10482# when you set need_version to no, make sure it does not cause -set_version 10483# flags to be left without arguments 10484need_version=unknown 10485 10486case $host_os in 10487aix3*) 10488 version_type=linux # correct to gnu/linux during the next big refactor 10489 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10490 shlibpath_var=LIBPATH 10491 10492 # AIX 3 has no versioning support, so we append a major version to the name. 10493 soname_spec='${libname}${release}${shared_ext}$major' 10494 ;; 10495 10496aix[4-9]*) 10497 version_type=linux # correct to gnu/linux during the next big refactor 10498 need_lib_prefix=no 10499 need_version=no 10500 hardcode_into_libs=yes 10501 if test "$host_cpu" = ia64; then 10502 # AIX 5 supports IA64 10503 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10504 shlibpath_var=LD_LIBRARY_PATH 10505 else 10506 # With GCC up to 2.95.x, collect2 would create an import file 10507 # for dependence libraries. The import file would start with 10508 # the line `#! .'. This would cause the generated library to 10509 # depend on `.', always an invalid library. This was fixed in 10510 # development snapshots of GCC prior to 3.0. 10511 case $host_os in 10512 aix4 | aix4.[01] | aix4.[01].*) 10513 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10514 echo ' yes ' 10515 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10516 : 10517 else 10518 can_build_shared=no 10519 fi 10520 ;; 10521 esac 10522 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10523 # soname into executable. Probably we can add versioning support to 10524 # collect2, so additional links can be useful in future. 10525 if test "$aix_use_runtimelinking" = yes; then 10526 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10527 # instead of lib<name>.a to let people know that these are not 10528 # typical AIX shared libraries. 10529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10530 else 10531 # We preserve .a as extension for shared libraries through AIX4.2 10532 # and later when we are not doing run time linking. 10533 library_names_spec='${libname}${release}.a $libname.a' 10534 soname_spec='${libname}${release}${shared_ext}$major' 10535 fi 10536 shlibpath_var=LIBPATH 10537 fi 10538 ;; 10539 10540amigaos*) 10541 case $host_cpu in 10542 powerpc) 10543 # Since July 2007 AmigaOS4 officially supports .so libraries. 10544 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10546 ;; 10547 m68k) 10548 library_names_spec='$libname.ixlibrary $libname.a' 10549 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10550 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' 10551 ;; 10552 esac 10553 ;; 10554 10555beos*) 10556 library_names_spec='${libname}${shared_ext}' 10557 dynamic_linker="$host_os ld.so" 10558 shlibpath_var=LIBRARY_PATH 10559 ;; 10560 10561bsdi[45]*) 10562 version_type=linux # correct to gnu/linux during the next big refactor 10563 need_version=no 10564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10565 soname_spec='${libname}${release}${shared_ext}$major' 10566 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10567 shlibpath_var=LD_LIBRARY_PATH 10568 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10569 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10570 # the default ld.so.conf also contains /usr/contrib/lib and 10571 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10572 # libtool to hard-code these into programs 10573 ;; 10574 10575cygwin* | mingw* | pw32* | cegcc*) 10576 version_type=windows 10577 shrext_cmds=".dll" 10578 need_version=no 10579 need_lib_prefix=no 10580 10581 case $GCC,$cc_basename in 10582 yes,*) 10583 # gcc 10584 library_names_spec='$libname.dll.a' 10585 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10586 postinstall_cmds='base_file=`basename \${file}`~ 10587 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10588 dldir=$destdir/`dirname \$dlpath`~ 10589 test -d \$dldir || mkdir -p \$dldir~ 10590 $install_prog $dir/$dlname \$dldir/$dlname~ 10591 chmod a+x \$dldir/$dlname~ 10592 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10593 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10594 fi' 10595 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10596 dlpath=$dir/\$dldll~ 10597 $RM \$dlpath' 10598 shlibpath_overrides_runpath=yes 10599 10600 case $host_os in 10601 cygwin*) 10602 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10603 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10604 10605 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10606 ;; 10607 mingw* | cegcc*) 10608 # MinGW DLLs use traditional 'lib' prefix 10609 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10610 ;; 10611 pw32*) 10612 # pw32 DLLs use 'pw' prefix rather than 'lib' 10613 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10614 ;; 10615 esac 10616 dynamic_linker='Win32 ld.exe' 10617 ;; 10618 10619 *,cl*) 10620 # Native MSVC 10621 libname_spec='$name' 10622 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10623 library_names_spec='${libname}.dll.lib' 10624 10625 case $build_os in 10626 mingw*) 10627 sys_lib_search_path_spec= 10628 lt_save_ifs=$IFS 10629 IFS=';' 10630 for lt_path in $LIB 10631 do 10632 IFS=$lt_save_ifs 10633 # Let DOS variable expansion print the short 8.3 style file name. 10634 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10635 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10636 done 10637 IFS=$lt_save_ifs 10638 # Convert to MSYS style. 10639 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10640 ;; 10641 cygwin*) 10642 # Convert to unix form, then to dos form, then back to unix form 10643 # but this time dos style (no spaces!) so that the unix form looks 10644 # like /cygdrive/c/PROGRA~1:/cygdr... 10645 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10646 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10647 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10648 ;; 10649 *) 10650 sys_lib_search_path_spec="$LIB" 10651 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10652 # It is most probably a Windows format PATH. 10653 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10654 else 10655 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10656 fi 10657 # FIXME: find the short name or the path components, as spaces are 10658 # common. (e.g. "Program Files" -> "PROGRA~1") 10659 ;; 10660 esac 10661 10662 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10663 postinstall_cmds='base_file=`basename \${file}`~ 10664 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10665 dldir=$destdir/`dirname \$dlpath`~ 10666 test -d \$dldir || mkdir -p \$dldir~ 10667 $install_prog $dir/$dlname \$dldir/$dlname' 10668 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10669 dlpath=$dir/\$dldll~ 10670 $RM \$dlpath' 10671 shlibpath_overrides_runpath=yes 10672 dynamic_linker='Win32 link.exe' 10673 ;; 10674 10675 *) 10676 # Assume MSVC wrapper 10677 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10678 dynamic_linker='Win32 ld.exe' 10679 ;; 10680 esac 10681 # FIXME: first we should search . and the directory the executable is in 10682 shlibpath_var=PATH 10683 ;; 10684 10685darwin* | rhapsody*) 10686 dynamic_linker="$host_os dyld" 10687 version_type=darwin 10688 need_lib_prefix=no 10689 need_version=no 10690 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10691 soname_spec='${libname}${release}${major}$shared_ext' 10692 shlibpath_overrides_runpath=yes 10693 shlibpath_var=DYLD_LIBRARY_PATH 10694 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10695 10696 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10697 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10698 ;; 10699 10700dgux*) 10701 version_type=linux # correct to gnu/linux during the next big refactor 10702 need_lib_prefix=no 10703 need_version=no 10704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10705 soname_spec='${libname}${release}${shared_ext}$major' 10706 shlibpath_var=LD_LIBRARY_PATH 10707 ;; 10708 10709freebsd* | dragonfly*) 10710 # DragonFly does not have aout. When/if they implement a new 10711 # versioning mechanism, adjust this. 10712 if test -x /usr/bin/objformat; then 10713 objformat=`/usr/bin/objformat` 10714 else 10715 case $host_os in 10716 freebsd[23].*) objformat=aout ;; 10717 *) objformat=elf ;; 10718 esac 10719 fi 10720 version_type=freebsd-$objformat 10721 case $version_type in 10722 freebsd-elf*) 10723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10724 need_version=no 10725 need_lib_prefix=no 10726 ;; 10727 freebsd-*) 10728 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10729 need_version=yes 10730 ;; 10731 esac 10732 shlibpath_var=LD_LIBRARY_PATH 10733 case $host_os in 10734 freebsd2.*) 10735 shlibpath_overrides_runpath=yes 10736 ;; 10737 freebsd3.[01]* | freebsdelf3.[01]*) 10738 shlibpath_overrides_runpath=yes 10739 hardcode_into_libs=yes 10740 ;; 10741 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10742 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10743 shlibpath_overrides_runpath=no 10744 hardcode_into_libs=yes 10745 ;; 10746 *) # from 4.6 on, and DragonFly 10747 shlibpath_overrides_runpath=yes 10748 hardcode_into_libs=yes 10749 ;; 10750 esac 10751 ;; 10752 10753gnu*) 10754 version_type=linux # correct to gnu/linux during the next big refactor 10755 need_lib_prefix=no 10756 need_version=no 10757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10758 soname_spec='${libname}${release}${shared_ext}$major' 10759 shlibpath_var=LD_LIBRARY_PATH 10760 shlibpath_overrides_runpath=no 10761 hardcode_into_libs=yes 10762 ;; 10763 10764haiku*) 10765 version_type=linux # correct to gnu/linux during the next big refactor 10766 need_lib_prefix=no 10767 need_version=no 10768 dynamic_linker="$host_os runtime_loader" 10769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10770 soname_spec='${libname}${release}${shared_ext}$major' 10771 shlibpath_var=LIBRARY_PATH 10772 shlibpath_overrides_runpath=yes 10773 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10774 hardcode_into_libs=yes 10775 ;; 10776 10777hpux9* | hpux10* | hpux11*) 10778 # Give a soname corresponding to the major version so that dld.sl refuses to 10779 # link against other versions. 10780 version_type=sunos 10781 need_lib_prefix=no 10782 need_version=no 10783 case $host_cpu in 10784 ia64*) 10785 shrext_cmds='.so' 10786 hardcode_into_libs=yes 10787 dynamic_linker="$host_os dld.so" 10788 shlibpath_var=LD_LIBRARY_PATH 10789 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10791 soname_spec='${libname}${release}${shared_ext}$major' 10792 if test "X$HPUX_IA64_MODE" = X32; then 10793 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10794 else 10795 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10796 fi 10797 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10798 ;; 10799 hppa*64*) 10800 shrext_cmds='.sl' 10801 hardcode_into_libs=yes 10802 dynamic_linker="$host_os dld.sl" 10803 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10804 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10806 soname_spec='${libname}${release}${shared_ext}$major' 10807 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10808 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10809 ;; 10810 *) 10811 shrext_cmds='.sl' 10812 dynamic_linker="$host_os dld.sl" 10813 shlibpath_var=SHLIB_PATH 10814 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10816 soname_spec='${libname}${release}${shared_ext}$major' 10817 ;; 10818 esac 10819 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10820 postinstall_cmds='chmod 555 $lib' 10821 # or fails outright, so override atomically: 10822 install_override_mode=555 10823 ;; 10824 10825interix[3-9]*) 10826 version_type=linux # correct to gnu/linux during the next big refactor 10827 need_lib_prefix=no 10828 need_version=no 10829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10830 soname_spec='${libname}${release}${shared_ext}$major' 10831 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10832 shlibpath_var=LD_LIBRARY_PATH 10833 shlibpath_overrides_runpath=no 10834 hardcode_into_libs=yes 10835 ;; 10836 10837irix5* | irix6* | nonstopux*) 10838 case $host_os in 10839 nonstopux*) version_type=nonstopux ;; 10840 *) 10841 if test "$lt_cv_prog_gnu_ld" = yes; then 10842 version_type=linux # correct to gnu/linux during the next big refactor 10843 else 10844 version_type=irix 10845 fi ;; 10846 esac 10847 need_lib_prefix=no 10848 need_version=no 10849 soname_spec='${libname}${release}${shared_ext}$major' 10850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10851 case $host_os in 10852 irix5* | nonstopux*) 10853 libsuff= shlibsuff= 10854 ;; 10855 *) 10856 case $LD in # libtool.m4 will add one of these switches to LD 10857 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10858 libsuff= shlibsuff= libmagic=32-bit;; 10859 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10860 libsuff=32 shlibsuff=N32 libmagic=N32;; 10861 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10862 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10863 *) libsuff= shlibsuff= libmagic=never-match;; 10864 esac 10865 ;; 10866 esac 10867 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10868 shlibpath_overrides_runpath=no 10869 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10870 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10871 hardcode_into_libs=yes 10872 ;; 10873 10874# No shared lib support for Linux oldld, aout, or coff. 10875linux*oldld* | linux*aout* | linux*coff*) 10876 dynamic_linker=no 10877 ;; 10878 10879# This must be glibc/ELF. 10880linux* | k*bsd*-gnu | kopensolaris*-gnu) 10881 version_type=linux # correct to gnu/linux during the next big refactor 10882 need_lib_prefix=no 10883 need_version=no 10884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10885 soname_spec='${libname}${release}${shared_ext}$major' 10886 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10887 shlibpath_var=LD_LIBRARY_PATH 10888 shlibpath_overrides_runpath=no 10889 10890 # Some binutils ld are patched to set DT_RUNPATH 10891 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10892 $as_echo_n "(cached) " >&6 10893else 10894 lt_cv_shlibpath_overrides_runpath=no 10895 save_LDFLAGS=$LDFLAGS 10896 save_libdir=$libdir 10897 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10898 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10900/* end confdefs.h. */ 10901 10902int 10903main () 10904{ 10905 10906 ; 10907 return 0; 10908} 10909_ACEOF 10910if ac_fn_c_try_link "$LINENO"; then : 10911 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10912 lt_cv_shlibpath_overrides_runpath=yes 10913fi 10914fi 10915rm -f core conftest.err conftest.$ac_objext \ 10916 conftest$ac_exeext conftest.$ac_ext 10917 LDFLAGS=$save_LDFLAGS 10918 libdir=$save_libdir 10919 10920fi 10921 10922 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10923 10924 # This implies no fast_install, which is unacceptable. 10925 # Some rework will be needed to allow for fast_install 10926 # before this can be enabled. 10927 hardcode_into_libs=yes 10928 10929 # Append ld.so.conf contents to the search path 10930 if test -f /etc/ld.so.conf; then 10931 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' ' '` 10932 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10933 fi 10934 10935 # We used to test for /lib/ld.so.1 and disable shared libraries on 10936 # powerpc, because MkLinux only supported shared libraries with the 10937 # GNU dynamic linker. Since this was broken with cross compilers, 10938 # most powerpc-linux boxes support dynamic linking these days and 10939 # people can always --disable-shared, the test was removed, and we 10940 # assume the GNU/Linux dynamic linker is in use. 10941 dynamic_linker='GNU/Linux ld.so' 10942 ;; 10943 10944netbsd*) 10945 version_type=sunos 10946 need_lib_prefix=no 10947 need_version=no 10948 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10950 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10951 dynamic_linker='NetBSD (a.out) ld.so' 10952 else 10953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10954 soname_spec='${libname}${release}${shared_ext}$major' 10955 dynamic_linker='NetBSD ld.elf_so' 10956 fi 10957 shlibpath_var=LD_LIBRARY_PATH 10958 shlibpath_overrides_runpath=yes 10959 hardcode_into_libs=yes 10960 ;; 10961 10962newsos6) 10963 version_type=linux # correct to gnu/linux during the next big refactor 10964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10965 shlibpath_var=LD_LIBRARY_PATH 10966 shlibpath_overrides_runpath=yes 10967 ;; 10968 10969*nto* | *qnx*) 10970 version_type=qnx 10971 need_lib_prefix=no 10972 need_version=no 10973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10974 soname_spec='${libname}${release}${shared_ext}$major' 10975 shlibpath_var=LD_LIBRARY_PATH 10976 shlibpath_overrides_runpath=no 10977 hardcode_into_libs=yes 10978 dynamic_linker='ldqnx.so' 10979 ;; 10980 10981openbsd*) 10982 version_type=sunos 10983 sys_lib_dlsearch_path_spec="/usr/lib" 10984 need_lib_prefix=no 10985 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10986 case $host_os in 10987 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10988 *) need_version=no ;; 10989 esac 10990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10991 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10992 shlibpath_var=LD_LIBRARY_PATH 10993 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10994 case $host_os in 10995 openbsd2.[89] | openbsd2.[89].*) 10996 shlibpath_overrides_runpath=no 10997 ;; 10998 *) 10999 shlibpath_overrides_runpath=yes 11000 ;; 11001 esac 11002 else 11003 shlibpath_overrides_runpath=yes 11004 fi 11005 ;; 11006 11007os2*) 11008 libname_spec='$name' 11009 shrext_cmds=".dll" 11010 need_lib_prefix=no 11011 library_names_spec='$libname${shared_ext} $libname.a' 11012 dynamic_linker='OS/2 ld.exe' 11013 shlibpath_var=LIBPATH 11014 ;; 11015 11016osf3* | osf4* | osf5*) 11017 version_type=osf 11018 need_lib_prefix=no 11019 need_version=no 11020 soname_spec='${libname}${release}${shared_ext}$major' 11021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11022 shlibpath_var=LD_LIBRARY_PATH 11023 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11024 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11025 ;; 11026 11027rdos*) 11028 dynamic_linker=no 11029 ;; 11030 11031solaris*) 11032 version_type=linux # correct to gnu/linux during the next big refactor 11033 need_lib_prefix=no 11034 need_version=no 11035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11036 soname_spec='${libname}${release}${shared_ext}$major' 11037 shlibpath_var=LD_LIBRARY_PATH 11038 shlibpath_overrides_runpath=yes 11039 hardcode_into_libs=yes 11040 # ldd complains unless libraries are executable 11041 postinstall_cmds='chmod +x $lib' 11042 ;; 11043 11044sunos4*) 11045 version_type=sunos 11046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11047 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11048 shlibpath_var=LD_LIBRARY_PATH 11049 shlibpath_overrides_runpath=yes 11050 if test "$with_gnu_ld" = yes; then 11051 need_lib_prefix=no 11052 fi 11053 need_version=yes 11054 ;; 11055 11056sysv4 | sysv4.3*) 11057 version_type=linux # correct to gnu/linux during the next big refactor 11058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11059 soname_spec='${libname}${release}${shared_ext}$major' 11060 shlibpath_var=LD_LIBRARY_PATH 11061 case $host_vendor in 11062 sni) 11063 shlibpath_overrides_runpath=no 11064 need_lib_prefix=no 11065 runpath_var=LD_RUN_PATH 11066 ;; 11067 siemens) 11068 need_lib_prefix=no 11069 ;; 11070 motorola) 11071 need_lib_prefix=no 11072 need_version=no 11073 shlibpath_overrides_runpath=no 11074 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11075 ;; 11076 esac 11077 ;; 11078 11079sysv4*MP*) 11080 if test -d /usr/nec ;then 11081 version_type=linux # correct to gnu/linux during the next big refactor 11082 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11083 soname_spec='$libname${shared_ext}.$major' 11084 shlibpath_var=LD_LIBRARY_PATH 11085 fi 11086 ;; 11087 11088sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11089 version_type=freebsd-elf 11090 need_lib_prefix=no 11091 need_version=no 11092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11093 soname_spec='${libname}${release}${shared_ext}$major' 11094 shlibpath_var=LD_LIBRARY_PATH 11095 shlibpath_overrides_runpath=yes 11096 hardcode_into_libs=yes 11097 if test "$with_gnu_ld" = yes; then 11098 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11099 else 11100 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11101 case $host_os in 11102 sco3.2v5*) 11103 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11104 ;; 11105 esac 11106 fi 11107 sys_lib_dlsearch_path_spec='/usr/lib' 11108 ;; 11109 11110tpf*) 11111 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11112 version_type=linux # correct to gnu/linux during the next big refactor 11113 need_lib_prefix=no 11114 need_version=no 11115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11116 shlibpath_var=LD_LIBRARY_PATH 11117 shlibpath_overrides_runpath=no 11118 hardcode_into_libs=yes 11119 ;; 11120 11121uts4*) 11122 version_type=linux # correct to gnu/linux during the next big refactor 11123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11124 soname_spec='${libname}${release}${shared_ext}$major' 11125 shlibpath_var=LD_LIBRARY_PATH 11126 ;; 11127 11128*) 11129 dynamic_linker=no 11130 ;; 11131esac 11132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11133$as_echo "$dynamic_linker" >&6; } 11134test "$dynamic_linker" = no && can_build_shared=no 11135 11136variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11137if test "$GCC" = yes; then 11138 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11139fi 11140 11141if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11142 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11143fi 11144if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11145 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11146fi 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11240$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11241hardcode_action= 11242if test -n "$hardcode_libdir_flag_spec" || 11243 test -n "$runpath_var" || 11244 test "X$hardcode_automatic" = "Xyes" ; then 11245 11246 # We can hardcode non-existent directories. 11247 if test "$hardcode_direct" != no && 11248 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11249 # have to relink, otherwise we might link with an installed library 11250 # when we should be linking with a yet-to-be-installed one 11251 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11252 test "$hardcode_minus_L" != no; then 11253 # Linking always hardcodes the temporary library directory. 11254 hardcode_action=relink 11255 else 11256 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11257 hardcode_action=immediate 11258 fi 11259else 11260 # We cannot hardcode anything, or else we can only hardcode existing 11261 # directories. 11262 hardcode_action=unsupported 11263fi 11264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11265$as_echo "$hardcode_action" >&6; } 11266 11267if test "$hardcode_action" = relink || 11268 test "$inherit_rpath" = yes; then 11269 # Fast installation is not supported 11270 enable_fast_install=no 11271elif test "$shlibpath_overrides_runpath" = yes || 11272 test "$enable_shared" = no; then 11273 # Fast installation is not necessary 11274 enable_fast_install=needless 11275fi 11276 11277 11278 11279 11280 11281 11282 if test "x$enable_dlopen" != xyes; then 11283 enable_dlopen=unknown 11284 enable_dlopen_self=unknown 11285 enable_dlopen_self_static=unknown 11286else 11287 lt_cv_dlopen=no 11288 lt_cv_dlopen_libs= 11289 11290 case $host_os in 11291 beos*) 11292 lt_cv_dlopen="load_add_on" 11293 lt_cv_dlopen_libs= 11294 lt_cv_dlopen_self=yes 11295 ;; 11296 11297 mingw* | pw32* | cegcc*) 11298 lt_cv_dlopen="LoadLibrary" 11299 lt_cv_dlopen_libs= 11300 ;; 11301 11302 cygwin*) 11303 lt_cv_dlopen="dlopen" 11304 lt_cv_dlopen_libs= 11305 ;; 11306 11307 darwin*) 11308 # if libdl is installed we need to link against it 11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11310$as_echo_n "checking for dlopen in -ldl... " >&6; } 11311if ${ac_cv_lib_dl_dlopen+:} false; then : 11312 $as_echo_n "(cached) " >&6 11313else 11314 ac_check_lib_save_LIBS=$LIBS 11315LIBS="-ldl $LIBS" 11316cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11317/* end confdefs.h. */ 11318 11319/* Override any GCC internal prototype to avoid an error. 11320 Use char because int might match the return type of a GCC 11321 builtin and then its argument prototype would still apply. */ 11322#ifdef __cplusplus 11323extern "C" 11324#endif 11325char dlopen (); 11326int 11327main () 11328{ 11329return dlopen (); 11330 ; 11331 return 0; 11332} 11333_ACEOF 11334if ac_fn_c_try_link "$LINENO"; then : 11335 ac_cv_lib_dl_dlopen=yes 11336else 11337 ac_cv_lib_dl_dlopen=no 11338fi 11339rm -f core conftest.err conftest.$ac_objext \ 11340 conftest$ac_exeext conftest.$ac_ext 11341LIBS=$ac_check_lib_save_LIBS 11342fi 11343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11344$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11345if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11346 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11347else 11348 11349 lt_cv_dlopen="dyld" 11350 lt_cv_dlopen_libs= 11351 lt_cv_dlopen_self=yes 11352 11353fi 11354 11355 ;; 11356 11357 *) 11358 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11359if test "x$ac_cv_func_shl_load" = xyes; then : 11360 lt_cv_dlopen="shl_load" 11361else 11362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11363$as_echo_n "checking for shl_load in -ldld... " >&6; } 11364if ${ac_cv_lib_dld_shl_load+:} false; then : 11365 $as_echo_n "(cached) " >&6 11366else 11367 ac_check_lib_save_LIBS=$LIBS 11368LIBS="-ldld $LIBS" 11369cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11370/* end confdefs.h. */ 11371 11372/* Override any GCC internal prototype to avoid an error. 11373 Use char because int might match the return type of a GCC 11374 builtin and then its argument prototype would still apply. */ 11375#ifdef __cplusplus 11376extern "C" 11377#endif 11378char shl_load (); 11379int 11380main () 11381{ 11382return shl_load (); 11383 ; 11384 return 0; 11385} 11386_ACEOF 11387if ac_fn_c_try_link "$LINENO"; then : 11388 ac_cv_lib_dld_shl_load=yes 11389else 11390 ac_cv_lib_dld_shl_load=no 11391fi 11392rm -f core conftest.err conftest.$ac_objext \ 11393 conftest$ac_exeext conftest.$ac_ext 11394LIBS=$ac_check_lib_save_LIBS 11395fi 11396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11397$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11398if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11399 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11400else 11401 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11402if test "x$ac_cv_func_dlopen" = xyes; then : 11403 lt_cv_dlopen="dlopen" 11404else 11405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11406$as_echo_n "checking for dlopen in -ldl... " >&6; } 11407if ${ac_cv_lib_dl_dlopen+:} false; then : 11408 $as_echo_n "(cached) " >&6 11409else 11410 ac_check_lib_save_LIBS=$LIBS 11411LIBS="-ldl $LIBS" 11412cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11413/* end confdefs.h. */ 11414 11415/* Override any GCC internal prototype to avoid an error. 11416 Use char because int might match the return type of a GCC 11417 builtin and then its argument prototype would still apply. */ 11418#ifdef __cplusplus 11419extern "C" 11420#endif 11421char dlopen (); 11422int 11423main () 11424{ 11425return dlopen (); 11426 ; 11427 return 0; 11428} 11429_ACEOF 11430if ac_fn_c_try_link "$LINENO"; then : 11431 ac_cv_lib_dl_dlopen=yes 11432else 11433 ac_cv_lib_dl_dlopen=no 11434fi 11435rm -f core conftest.err conftest.$ac_objext \ 11436 conftest$ac_exeext conftest.$ac_ext 11437LIBS=$ac_check_lib_save_LIBS 11438fi 11439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11440$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11441if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11442 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11443else 11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11445$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11446if ${ac_cv_lib_svld_dlopen+:} false; then : 11447 $as_echo_n "(cached) " >&6 11448else 11449 ac_check_lib_save_LIBS=$LIBS 11450LIBS="-lsvld $LIBS" 11451cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11452/* end confdefs.h. */ 11453 11454/* Override any GCC internal prototype to avoid an error. 11455 Use char because int might match the return type of a GCC 11456 builtin and then its argument prototype would still apply. */ 11457#ifdef __cplusplus 11458extern "C" 11459#endif 11460char dlopen (); 11461int 11462main () 11463{ 11464return dlopen (); 11465 ; 11466 return 0; 11467} 11468_ACEOF 11469if ac_fn_c_try_link "$LINENO"; then : 11470 ac_cv_lib_svld_dlopen=yes 11471else 11472 ac_cv_lib_svld_dlopen=no 11473fi 11474rm -f core conftest.err conftest.$ac_objext \ 11475 conftest$ac_exeext conftest.$ac_ext 11476LIBS=$ac_check_lib_save_LIBS 11477fi 11478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11479$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11480if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11481 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11482else 11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11484$as_echo_n "checking for dld_link in -ldld... " >&6; } 11485if ${ac_cv_lib_dld_dld_link+:} false; then : 11486 $as_echo_n "(cached) " >&6 11487else 11488 ac_check_lib_save_LIBS=$LIBS 11489LIBS="-ldld $LIBS" 11490cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11491/* end confdefs.h. */ 11492 11493/* Override any GCC internal prototype to avoid an error. 11494 Use char because int might match the return type of a GCC 11495 builtin and then its argument prototype would still apply. */ 11496#ifdef __cplusplus 11497extern "C" 11498#endif 11499char dld_link (); 11500int 11501main () 11502{ 11503return dld_link (); 11504 ; 11505 return 0; 11506} 11507_ACEOF 11508if ac_fn_c_try_link "$LINENO"; then : 11509 ac_cv_lib_dld_dld_link=yes 11510else 11511 ac_cv_lib_dld_dld_link=no 11512fi 11513rm -f core conftest.err conftest.$ac_objext \ 11514 conftest$ac_exeext conftest.$ac_ext 11515LIBS=$ac_check_lib_save_LIBS 11516fi 11517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11518$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11519if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11520 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11521fi 11522 11523 11524fi 11525 11526 11527fi 11528 11529 11530fi 11531 11532 11533fi 11534 11535 11536fi 11537 11538 ;; 11539 esac 11540 11541 if test "x$lt_cv_dlopen" != xno; then 11542 enable_dlopen=yes 11543 else 11544 enable_dlopen=no 11545 fi 11546 11547 case $lt_cv_dlopen in 11548 dlopen) 11549 save_CPPFLAGS="$CPPFLAGS" 11550 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11551 11552 save_LDFLAGS="$LDFLAGS" 11553 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11554 11555 save_LIBS="$LIBS" 11556 LIBS="$lt_cv_dlopen_libs $LIBS" 11557 11558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11559$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11560if ${lt_cv_dlopen_self+:} false; then : 11561 $as_echo_n "(cached) " >&6 11562else 11563 if test "$cross_compiling" = yes; then : 11564 lt_cv_dlopen_self=cross 11565else 11566 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11567 lt_status=$lt_dlunknown 11568 cat > conftest.$ac_ext <<_LT_EOF 11569#line $LINENO "configure" 11570#include "confdefs.h" 11571 11572#if HAVE_DLFCN_H 11573#include <dlfcn.h> 11574#endif 11575 11576#include <stdio.h> 11577 11578#ifdef RTLD_GLOBAL 11579# define LT_DLGLOBAL RTLD_GLOBAL 11580#else 11581# ifdef DL_GLOBAL 11582# define LT_DLGLOBAL DL_GLOBAL 11583# else 11584# define LT_DLGLOBAL 0 11585# endif 11586#endif 11587 11588/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11589 find out it does not work in some platform. */ 11590#ifndef LT_DLLAZY_OR_NOW 11591# ifdef RTLD_LAZY 11592# define LT_DLLAZY_OR_NOW RTLD_LAZY 11593# else 11594# ifdef DL_LAZY 11595# define LT_DLLAZY_OR_NOW DL_LAZY 11596# else 11597# ifdef RTLD_NOW 11598# define LT_DLLAZY_OR_NOW RTLD_NOW 11599# else 11600# ifdef DL_NOW 11601# define LT_DLLAZY_OR_NOW DL_NOW 11602# else 11603# define LT_DLLAZY_OR_NOW 0 11604# endif 11605# endif 11606# endif 11607# endif 11608#endif 11609 11610/* When -fvisbility=hidden is used, assume the code has been annotated 11611 correspondingly for the symbols needed. */ 11612#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11613int fnord () __attribute__((visibility("default"))); 11614#endif 11615 11616int fnord () { return 42; } 11617int main () 11618{ 11619 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11620 int status = $lt_dlunknown; 11621 11622 if (self) 11623 { 11624 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11625 else 11626 { 11627 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11628 else puts (dlerror ()); 11629 } 11630 /* dlclose (self); */ 11631 } 11632 else 11633 puts (dlerror ()); 11634 11635 return status; 11636} 11637_LT_EOF 11638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11639 (eval $ac_link) 2>&5 11640 ac_status=$? 11641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11642 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11643 (./conftest; exit; ) >&5 2>/dev/null 11644 lt_status=$? 11645 case x$lt_status in 11646 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11647 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11648 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11649 esac 11650 else : 11651 # compilation failed 11652 lt_cv_dlopen_self=no 11653 fi 11654fi 11655rm -fr conftest* 11656 11657 11658fi 11659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11660$as_echo "$lt_cv_dlopen_self" >&6; } 11661 11662 if test "x$lt_cv_dlopen_self" = xyes; then 11663 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11665$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11666if ${lt_cv_dlopen_self_static+:} false; then : 11667 $as_echo_n "(cached) " >&6 11668else 11669 if test "$cross_compiling" = yes; then : 11670 lt_cv_dlopen_self_static=cross 11671else 11672 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11673 lt_status=$lt_dlunknown 11674 cat > conftest.$ac_ext <<_LT_EOF 11675#line $LINENO "configure" 11676#include "confdefs.h" 11677 11678#if HAVE_DLFCN_H 11679#include <dlfcn.h> 11680#endif 11681 11682#include <stdio.h> 11683 11684#ifdef RTLD_GLOBAL 11685# define LT_DLGLOBAL RTLD_GLOBAL 11686#else 11687# ifdef DL_GLOBAL 11688# define LT_DLGLOBAL DL_GLOBAL 11689# else 11690# define LT_DLGLOBAL 0 11691# endif 11692#endif 11693 11694/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11695 find out it does not work in some platform. */ 11696#ifndef LT_DLLAZY_OR_NOW 11697# ifdef RTLD_LAZY 11698# define LT_DLLAZY_OR_NOW RTLD_LAZY 11699# else 11700# ifdef DL_LAZY 11701# define LT_DLLAZY_OR_NOW DL_LAZY 11702# else 11703# ifdef RTLD_NOW 11704# define LT_DLLAZY_OR_NOW RTLD_NOW 11705# else 11706# ifdef DL_NOW 11707# define LT_DLLAZY_OR_NOW DL_NOW 11708# else 11709# define LT_DLLAZY_OR_NOW 0 11710# endif 11711# endif 11712# endif 11713# endif 11714#endif 11715 11716/* When -fvisbility=hidden is used, assume the code has been annotated 11717 correspondingly for the symbols needed. */ 11718#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11719int fnord () __attribute__((visibility("default"))); 11720#endif 11721 11722int fnord () { return 42; } 11723int main () 11724{ 11725 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11726 int status = $lt_dlunknown; 11727 11728 if (self) 11729 { 11730 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11731 else 11732 { 11733 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11734 else puts (dlerror ()); 11735 } 11736 /* dlclose (self); */ 11737 } 11738 else 11739 puts (dlerror ()); 11740 11741 return status; 11742} 11743_LT_EOF 11744 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11745 (eval $ac_link) 2>&5 11746 ac_status=$? 11747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11748 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11749 (./conftest; exit; ) >&5 2>/dev/null 11750 lt_status=$? 11751 case x$lt_status in 11752 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11753 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11754 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11755 esac 11756 else : 11757 # compilation failed 11758 lt_cv_dlopen_self_static=no 11759 fi 11760fi 11761rm -fr conftest* 11762 11763 11764fi 11765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11766$as_echo "$lt_cv_dlopen_self_static" >&6; } 11767 fi 11768 11769 CPPFLAGS="$save_CPPFLAGS" 11770 LDFLAGS="$save_LDFLAGS" 11771 LIBS="$save_LIBS" 11772 ;; 11773 esac 11774 11775 case $lt_cv_dlopen_self in 11776 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11777 *) enable_dlopen_self=unknown ;; 11778 esac 11779 11780 case $lt_cv_dlopen_self_static in 11781 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11782 *) enable_dlopen_self_static=unknown ;; 11783 esac 11784fi 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802striplib= 11803old_striplib= 11804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11805$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11806if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11807 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11808 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11810$as_echo "yes" >&6; } 11811else 11812# FIXME - insert some real tests, host_os isn't really good enough 11813 case $host_os in 11814 darwin*) 11815 if test -n "$STRIP" ; then 11816 striplib="$STRIP -x" 11817 old_striplib="$STRIP -S" 11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11819$as_echo "yes" >&6; } 11820 else 11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11822$as_echo "no" >&6; } 11823 fi 11824 ;; 11825 *) 11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11827$as_echo "no" >&6; } 11828 ;; 11829 esac 11830fi 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 # Report which library types will actually be built 11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11845$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11847$as_echo "$can_build_shared" >&6; } 11848 11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11850$as_echo_n "checking whether to build shared libraries... " >&6; } 11851 test "$can_build_shared" = "no" && enable_shared=no 11852 11853 # On AIX, shared libraries and static libraries use the same namespace, and 11854 # are all built from PIC. 11855 case $host_os in 11856 aix3*) 11857 test "$enable_shared" = yes && enable_static=no 11858 if test -n "$RANLIB"; then 11859 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11860 postinstall_cmds='$RANLIB $lib' 11861 fi 11862 ;; 11863 11864 aix[4-9]*) 11865 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11866 test "$enable_shared" = yes && enable_static=no 11867 fi 11868 ;; 11869 esac 11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11871$as_echo "$enable_shared" >&6; } 11872 11873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11874$as_echo_n "checking whether to build static libraries... " >&6; } 11875 # Make sure either enable_shared or enable_static is yes. 11876 test "$enable_shared" = yes || enable_static=yes 11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11878$as_echo "$enable_static" >&6; } 11879 11880 11881 11882 11883fi 11884ac_ext=c 11885ac_cpp='$CPP $CPPFLAGS' 11886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11888ac_compiler_gnu=$ac_cv_c_compiler_gnu 11889 11890CC="$lt_save_CC" 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 ac_config_commands="$ac_config_commands libtool" 11907 11908 11909 11910 11911# Only expand once: 11912 11913 11914 11915# Require xorg-macros minimum of 1.15 for fop minimum version 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11928$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11929if ${ac_cv_prog_cc_c99+:} false; then : 11930 $as_echo_n "(cached) " >&6 11931else 11932 ac_cv_prog_cc_c99=no 11933ac_save_CC=$CC 11934cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11935/* end confdefs.h. */ 11936#include <stdarg.h> 11937#include <stdbool.h> 11938#include <stdlib.h> 11939#include <wchar.h> 11940#include <stdio.h> 11941 11942// Check varargs macros. These examples are taken from C99 6.10.3.5. 11943#define debug(...) fprintf (stderr, __VA_ARGS__) 11944#define showlist(...) puts (#__VA_ARGS__) 11945#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11946static void 11947test_varargs_macros (void) 11948{ 11949 int x = 1234; 11950 int y = 5678; 11951 debug ("Flag"); 11952 debug ("X = %d\n", x); 11953 showlist (The first, second, and third items.); 11954 report (x>y, "x is %d but y is %d", x, y); 11955} 11956 11957// Check long long types. 11958#define BIG64 18446744073709551615ull 11959#define BIG32 4294967295ul 11960#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11961#if !BIG_OK 11962 your preprocessor is broken; 11963#endif 11964#if BIG_OK 11965#else 11966 your preprocessor is broken; 11967#endif 11968static long long int bignum = -9223372036854775807LL; 11969static unsigned long long int ubignum = BIG64; 11970 11971struct incomplete_array 11972{ 11973 int datasize; 11974 double data[]; 11975}; 11976 11977struct named_init { 11978 int number; 11979 const wchar_t *name; 11980 double average; 11981}; 11982 11983typedef const char *ccp; 11984 11985static inline int 11986test_restrict (ccp restrict text) 11987{ 11988 // See if C++-style comments work. 11989 // Iterate through items via the restricted pointer. 11990 // Also check for declarations in for loops. 11991 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11992 continue; 11993 return 0; 11994} 11995 11996// Check varargs and va_copy. 11997static void 11998test_varargs (const char *format, ...) 11999{ 12000 va_list args; 12001 va_start (args, format); 12002 va_list args_copy; 12003 va_copy (args_copy, args); 12004 12005 const char *str; 12006 int number; 12007 float fnumber; 12008 12009 while (*format) 12010 { 12011 switch (*format++) 12012 { 12013 case 's': // string 12014 str = va_arg (args_copy, const char *); 12015 break; 12016 case 'd': // int 12017 number = va_arg (args_copy, int); 12018 break; 12019 case 'f': // float 12020 fnumber = va_arg (args_copy, double); 12021 break; 12022 default: 12023 break; 12024 } 12025 } 12026 va_end (args_copy); 12027 va_end (args); 12028} 12029 12030int 12031main () 12032{ 12033 12034 // Check bool. 12035 _Bool success = false; 12036 12037 // Check restrict. 12038 if (test_restrict ("String literal") == 0) 12039 success = true; 12040 char *restrict newvar = "Another string"; 12041 12042 // Check varargs. 12043 test_varargs ("s, d' f .", "string", 65, 34.234); 12044 test_varargs_macros (); 12045 12046 // Check flexible array members. 12047 struct incomplete_array *ia = 12048 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 12049 ia->datasize = 10; 12050 for (int i = 0; i < ia->datasize; ++i) 12051 ia->data[i] = i * 1.234; 12052 12053 // Check named initializers. 12054 struct named_init ni = { 12055 .number = 34, 12056 .name = L"Test wide string", 12057 .average = 543.34343, 12058 }; 12059 12060 ni.number = 58; 12061 12062 int dynamic_array[ni.number]; 12063 dynamic_array[ni.number - 1] = 543; 12064 12065 // work around unused variable warnings 12066 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 12067 || dynamic_array[ni.number - 1] != 543); 12068 12069 ; 12070 return 0; 12071} 12072_ACEOF 12073for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 12074do 12075 CC="$ac_save_CC $ac_arg" 12076 if ac_fn_c_try_compile "$LINENO"; then : 12077 ac_cv_prog_cc_c99=$ac_arg 12078fi 12079rm -f core conftest.err conftest.$ac_objext 12080 test "x$ac_cv_prog_cc_c99" != "xno" && break 12081done 12082rm -f conftest.$ac_ext 12083CC=$ac_save_CC 12084 12085fi 12086# AC_CACHE_VAL 12087case "x$ac_cv_prog_cc_c99" in 12088 x) 12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12090$as_echo "none needed" >&6; } ;; 12091 xno) 12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12093$as_echo "unsupported" >&6; } ;; 12094 *) 12095 CC="$CC $ac_cv_prog_cc_c99" 12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 12097$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 12098esac 12099if test "x$ac_cv_prog_cc_c99" != xno; then : 12100 12101fi 12102 12103 12104 12105 12106 12107 12108ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 12109if test "x$ac_cv_have_decl___clang__" = xyes; then : 12110 CLANGCC="yes" 12111else 12112 CLANGCC="no" 12113fi 12114 12115ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 12116if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 12117 INTELCC="yes" 12118else 12119 INTELCC="no" 12120fi 12121 12122ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 12123if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 12124 SUNCC="yes" 12125else 12126 SUNCC="no" 12127fi 12128 12129 12130 12131 12132if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12133 if test -n "$ac_tool_prefix"; then 12134 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12135set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12137$as_echo_n "checking for $ac_word... " >&6; } 12138if ${ac_cv_path_PKG_CONFIG+:} false; then : 12139 $as_echo_n "(cached) " >&6 12140else 12141 case $PKG_CONFIG in 12142 [\\/]* | ?:[\\/]*) 12143 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12144 ;; 12145 *) 12146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12147for as_dir in $PATH 12148do 12149 IFS=$as_save_IFS 12150 test -z "$as_dir" && as_dir=. 12151 for ac_exec_ext in '' $ac_executable_extensions; do 12152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12153 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12155 break 2 12156 fi 12157done 12158 done 12159IFS=$as_save_IFS 12160 12161 ;; 12162esac 12163fi 12164PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12165if test -n "$PKG_CONFIG"; then 12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12167$as_echo "$PKG_CONFIG" >&6; } 12168else 12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12170$as_echo "no" >&6; } 12171fi 12172 12173 12174fi 12175if test -z "$ac_cv_path_PKG_CONFIG"; then 12176 ac_pt_PKG_CONFIG=$PKG_CONFIG 12177 # Extract the first word of "pkg-config", so it can be a program name with args. 12178set dummy pkg-config; ac_word=$2 12179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12180$as_echo_n "checking for $ac_word... " >&6; } 12181if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 12182 $as_echo_n "(cached) " >&6 12183else 12184 case $ac_pt_PKG_CONFIG in 12185 [\\/]* | ?:[\\/]*) 12186 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12187 ;; 12188 *) 12189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12190for as_dir in $PATH 12191do 12192 IFS=$as_save_IFS 12193 test -z "$as_dir" && as_dir=. 12194 for ac_exec_ext in '' $ac_executable_extensions; do 12195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12196 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12198 break 2 12199 fi 12200done 12201 done 12202IFS=$as_save_IFS 12203 12204 ;; 12205esac 12206fi 12207ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12208if test -n "$ac_pt_PKG_CONFIG"; then 12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12210$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12211else 12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12213$as_echo "no" >&6; } 12214fi 12215 12216 if test "x$ac_pt_PKG_CONFIG" = x; then 12217 PKG_CONFIG="" 12218 else 12219 case $cross_compiling:$ac_tool_warned in 12220yes:) 12221{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12222$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12223ac_tool_warned=yes ;; 12224esac 12225 PKG_CONFIG=$ac_pt_PKG_CONFIG 12226 fi 12227else 12228 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12229fi 12230 12231fi 12232if test -n "$PKG_CONFIG"; then 12233 _pkg_min_version=0.9.0 12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12235$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12236 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12238$as_echo "yes" >&6; } 12239 else 12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12241$as_echo "no" >&6; } 12242 PKG_CONFIG="" 12243 fi 12244 12245fi 12246 12247 12248 12249 12250 12251# Check whether --enable-selective-werror was given. 12252if test "${enable_selective_werror+set}" = set; then : 12253 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12254else 12255 SELECTIVE_WERROR=yes 12256fi 12257 12258 12259 12260 12261 12262# -v is too short to test reliably with XORG_TESTSET_CFLAG 12263if test "x$SUNCC" = "xyes"; then 12264 BASE_CFLAGS="-v" 12265else 12266 BASE_CFLAGS="" 12267fi 12268 12269# This chunk of warnings were those that existed in the legacy CWARNFLAGS 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283xorg_testset_save_CFLAGS="$CFLAGS" 12284 12285if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12286 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12288$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12289if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12290 $as_echo_n "(cached) " >&6 12291else 12292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12293/* end confdefs.h. */ 12294int i; 12295_ACEOF 12296if ac_fn_c_try_compile "$LINENO"; then : 12297 xorg_cv_cc_flag_unknown_warning_option=yes 12298else 12299 xorg_cv_cc_flag_unknown_warning_option=no 12300fi 12301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12302fi 12303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12304$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12305 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12306 CFLAGS="$xorg_testset_save_CFLAGS" 12307fi 12308 12309if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12311 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12312 fi 12313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12315$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12316if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12317 $as_echo_n "(cached) " >&6 12318else 12319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12320/* end confdefs.h. */ 12321int i; 12322_ACEOF 12323if ac_fn_c_try_compile "$LINENO"; then : 12324 xorg_cv_cc_flag_unused_command_line_argument=yes 12325else 12326 xorg_cv_cc_flag_unused_command_line_argument=no 12327fi 12328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12329fi 12330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12331$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12332 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12333 CFLAGS="$xorg_testset_save_CFLAGS" 12334fi 12335 12336found="no" 12337 12338 if test $found = "no" ; then 12339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12340 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12341 fi 12342 12343 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12345 fi 12346 12347 CFLAGS="$CFLAGS -Wall" 12348 12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 12350$as_echo_n "checking if $CC supports -Wall... " >&6; } 12351 cacheid=xorg_cv_cc_flag__Wall 12352 if eval \${$cacheid+:} false; then : 12353 $as_echo_n "(cached) " >&6 12354else 12355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12356/* end confdefs.h. */ 12357int i; 12358int 12359main () 12360{ 12361 12362 ; 12363 return 0; 12364} 12365_ACEOF 12366if ac_fn_c_try_link "$LINENO"; then : 12367 eval $cacheid=yes 12368else 12369 eval $cacheid=no 12370fi 12371rm -f core conftest.err conftest.$ac_objext \ 12372 conftest$ac_exeext conftest.$ac_ext 12373fi 12374 12375 12376 CFLAGS="$xorg_testset_save_CFLAGS" 12377 12378 eval supported=\$$cacheid 12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12380$as_echo "$supported" >&6; } 12381 if test "$supported" = "yes" ; then 12382 BASE_CFLAGS="$BASE_CFLAGS -Wall" 12383 found="yes" 12384 fi 12385 fi 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401xorg_testset_save_CFLAGS="$CFLAGS" 12402 12403if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12404 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12406$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12407if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12408 $as_echo_n "(cached) " >&6 12409else 12410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12411/* end confdefs.h. */ 12412int i; 12413_ACEOF 12414if ac_fn_c_try_compile "$LINENO"; then : 12415 xorg_cv_cc_flag_unknown_warning_option=yes 12416else 12417 xorg_cv_cc_flag_unknown_warning_option=no 12418fi 12419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12420fi 12421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12422$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12423 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12424 CFLAGS="$xorg_testset_save_CFLAGS" 12425fi 12426 12427if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12429 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12430 fi 12431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12433$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12434if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12435 $as_echo_n "(cached) " >&6 12436else 12437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12438/* end confdefs.h. */ 12439int i; 12440_ACEOF 12441if ac_fn_c_try_compile "$LINENO"; then : 12442 xorg_cv_cc_flag_unused_command_line_argument=yes 12443else 12444 xorg_cv_cc_flag_unused_command_line_argument=no 12445fi 12446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12447fi 12448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12449$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12450 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12451 CFLAGS="$xorg_testset_save_CFLAGS" 12452fi 12453 12454found="no" 12455 12456 if test $found = "no" ; then 12457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12459 fi 12460 12461 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12463 fi 12464 12465 CFLAGS="$CFLAGS -Wpointer-arith" 12466 12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 12468$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 12469 cacheid=xorg_cv_cc_flag__Wpointer_arith 12470 if eval \${$cacheid+:} false; then : 12471 $as_echo_n "(cached) " >&6 12472else 12473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12474/* end confdefs.h. */ 12475int i; 12476int 12477main () 12478{ 12479 12480 ; 12481 return 0; 12482} 12483_ACEOF 12484if ac_fn_c_try_link "$LINENO"; then : 12485 eval $cacheid=yes 12486else 12487 eval $cacheid=no 12488fi 12489rm -f core conftest.err conftest.$ac_objext \ 12490 conftest$ac_exeext conftest.$ac_ext 12491fi 12492 12493 12494 CFLAGS="$xorg_testset_save_CFLAGS" 12495 12496 eval supported=\$$cacheid 12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12498$as_echo "$supported" >&6; } 12499 if test "$supported" = "yes" ; then 12500 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12501 found="yes" 12502 fi 12503 fi 12504 12505 12506 12507 12508 12509 12510 12511 12512 12513 12514 12515 12516 12517 12518 12519xorg_testset_save_CFLAGS="$CFLAGS" 12520 12521if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12522 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12524$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12525if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12526 $as_echo_n "(cached) " >&6 12527else 12528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12529/* end confdefs.h. */ 12530int i; 12531_ACEOF 12532if ac_fn_c_try_compile "$LINENO"; then : 12533 xorg_cv_cc_flag_unknown_warning_option=yes 12534else 12535 xorg_cv_cc_flag_unknown_warning_option=no 12536fi 12537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12538fi 12539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12540$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12541 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12542 CFLAGS="$xorg_testset_save_CFLAGS" 12543fi 12544 12545if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12548 fi 12549 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12551$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12552if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12553 $as_echo_n "(cached) " >&6 12554else 12555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12556/* end confdefs.h. */ 12557int i; 12558_ACEOF 12559if ac_fn_c_try_compile "$LINENO"; then : 12560 xorg_cv_cc_flag_unused_command_line_argument=yes 12561else 12562 xorg_cv_cc_flag_unused_command_line_argument=no 12563fi 12564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12565fi 12566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12567$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12568 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12569 CFLAGS="$xorg_testset_save_CFLAGS" 12570fi 12571 12572found="no" 12573 12574 if test $found = "no" ; then 12575 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12576 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12577 fi 12578 12579 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12581 fi 12582 12583 CFLAGS="$CFLAGS -Wmissing-declarations" 12584 12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12586$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12587 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12588 if eval \${$cacheid+:} false; then : 12589 $as_echo_n "(cached) " >&6 12590else 12591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12592/* end confdefs.h. */ 12593int i; 12594int 12595main () 12596{ 12597 12598 ; 12599 return 0; 12600} 12601_ACEOF 12602if ac_fn_c_try_link "$LINENO"; then : 12603 eval $cacheid=yes 12604else 12605 eval $cacheid=no 12606fi 12607rm -f core conftest.err conftest.$ac_objext \ 12608 conftest$ac_exeext conftest.$ac_ext 12609fi 12610 12611 12612 CFLAGS="$xorg_testset_save_CFLAGS" 12613 12614 eval supported=\$$cacheid 12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12616$as_echo "$supported" >&6; } 12617 if test "$supported" = "yes" ; then 12618 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12619 found="yes" 12620 fi 12621 fi 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637xorg_testset_save_CFLAGS="$CFLAGS" 12638 12639if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12642$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12643if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12644 $as_echo_n "(cached) " >&6 12645else 12646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12647/* end confdefs.h. */ 12648int i; 12649_ACEOF 12650if ac_fn_c_try_compile "$LINENO"; then : 12651 xorg_cv_cc_flag_unknown_warning_option=yes 12652else 12653 xorg_cv_cc_flag_unknown_warning_option=no 12654fi 12655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12656fi 12657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12658$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12659 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12660 CFLAGS="$xorg_testset_save_CFLAGS" 12661fi 12662 12663if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12666 fi 12667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12669$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12670if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12671 $as_echo_n "(cached) " >&6 12672else 12673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12674/* end confdefs.h. */ 12675int i; 12676_ACEOF 12677if ac_fn_c_try_compile "$LINENO"; then : 12678 xorg_cv_cc_flag_unused_command_line_argument=yes 12679else 12680 xorg_cv_cc_flag_unused_command_line_argument=no 12681fi 12682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12683fi 12684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12685$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12686 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12687 CFLAGS="$xorg_testset_save_CFLAGS" 12688fi 12689 12690found="no" 12691 12692 if test $found = "no" ; then 12693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12695 fi 12696 12697 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12699 fi 12700 12701 CFLAGS="$CFLAGS -Wformat=2" 12702 12703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12704$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12705 cacheid=xorg_cv_cc_flag__Wformat_2 12706 if eval \${$cacheid+:} false; then : 12707 $as_echo_n "(cached) " >&6 12708else 12709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12710/* end confdefs.h. */ 12711int i; 12712int 12713main () 12714{ 12715 12716 ; 12717 return 0; 12718} 12719_ACEOF 12720if ac_fn_c_try_link "$LINENO"; then : 12721 eval $cacheid=yes 12722else 12723 eval $cacheid=no 12724fi 12725rm -f core conftest.err conftest.$ac_objext \ 12726 conftest$ac_exeext conftest.$ac_ext 12727fi 12728 12729 12730 CFLAGS="$xorg_testset_save_CFLAGS" 12731 12732 eval supported=\$$cacheid 12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12734$as_echo "$supported" >&6; } 12735 if test "$supported" = "yes" ; then 12736 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12737 found="yes" 12738 fi 12739 fi 12740 12741 if test $found = "no" ; then 12742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12744 fi 12745 12746 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12748 fi 12749 12750 CFLAGS="$CFLAGS -Wformat" 12751 12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12753$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12754 cacheid=xorg_cv_cc_flag__Wformat 12755 if eval \${$cacheid+:} false; then : 12756 $as_echo_n "(cached) " >&6 12757else 12758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12759/* end confdefs.h. */ 12760int i; 12761int 12762main () 12763{ 12764 12765 ; 12766 return 0; 12767} 12768_ACEOF 12769if ac_fn_c_try_link "$LINENO"; then : 12770 eval $cacheid=yes 12771else 12772 eval $cacheid=no 12773fi 12774rm -f core conftest.err conftest.$ac_objext \ 12775 conftest$ac_exeext conftest.$ac_ext 12776fi 12777 12778 12779 CFLAGS="$xorg_testset_save_CFLAGS" 12780 12781 eval supported=\$$cacheid 12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12783$as_echo "$supported" >&6; } 12784 if test "$supported" = "yes" ; then 12785 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12786 found="yes" 12787 fi 12788 fi 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806xorg_testset_save_CFLAGS="$CFLAGS" 12807 12808if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12809 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12811$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12812if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12813 $as_echo_n "(cached) " >&6 12814else 12815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12816/* end confdefs.h. */ 12817int i; 12818_ACEOF 12819if ac_fn_c_try_compile "$LINENO"; then : 12820 xorg_cv_cc_flag_unknown_warning_option=yes 12821else 12822 xorg_cv_cc_flag_unknown_warning_option=no 12823fi 12824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12825fi 12826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12827$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12828 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12829 CFLAGS="$xorg_testset_save_CFLAGS" 12830fi 12831 12832if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12835 fi 12836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12838$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12839if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12840 $as_echo_n "(cached) " >&6 12841else 12842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12843/* end confdefs.h. */ 12844int i; 12845_ACEOF 12846if ac_fn_c_try_compile "$LINENO"; then : 12847 xorg_cv_cc_flag_unused_command_line_argument=yes 12848else 12849 xorg_cv_cc_flag_unused_command_line_argument=no 12850fi 12851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12852fi 12853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12854$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12855 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12856 CFLAGS="$xorg_testset_save_CFLAGS" 12857fi 12858 12859found="no" 12860 12861 if test $found = "no" ; then 12862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12864 fi 12865 12866 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12868 fi 12869 12870 CFLAGS="$CFLAGS -Wstrict-prototypes" 12871 12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 12873$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 12874 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 12875 if eval \${$cacheid+:} false; then : 12876 $as_echo_n "(cached) " >&6 12877else 12878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12879/* end confdefs.h. */ 12880int i; 12881int 12882main () 12883{ 12884 12885 ; 12886 return 0; 12887} 12888_ACEOF 12889if ac_fn_c_try_link "$LINENO"; then : 12890 eval $cacheid=yes 12891else 12892 eval $cacheid=no 12893fi 12894rm -f core conftest.err conftest.$ac_objext \ 12895 conftest$ac_exeext conftest.$ac_ext 12896fi 12897 12898 12899 CFLAGS="$xorg_testset_save_CFLAGS" 12900 12901 eval supported=\$$cacheid 12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12903$as_echo "$supported" >&6; } 12904 if test "$supported" = "yes" ; then 12905 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12906 found="yes" 12907 fi 12908 fi 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924xorg_testset_save_CFLAGS="$CFLAGS" 12925 12926if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12929$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12930if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12931 $as_echo_n "(cached) " >&6 12932else 12933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12934/* end confdefs.h. */ 12935int i; 12936_ACEOF 12937if ac_fn_c_try_compile "$LINENO"; then : 12938 xorg_cv_cc_flag_unknown_warning_option=yes 12939else 12940 xorg_cv_cc_flag_unknown_warning_option=no 12941fi 12942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12943fi 12944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12945$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12946 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12947 CFLAGS="$xorg_testset_save_CFLAGS" 12948fi 12949 12950if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12953 fi 12954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12956$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12957if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12958 $as_echo_n "(cached) " >&6 12959else 12960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12961/* end confdefs.h. */ 12962int i; 12963_ACEOF 12964if ac_fn_c_try_compile "$LINENO"; then : 12965 xorg_cv_cc_flag_unused_command_line_argument=yes 12966else 12967 xorg_cv_cc_flag_unused_command_line_argument=no 12968fi 12969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12970fi 12971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12972$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12973 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12974 CFLAGS="$xorg_testset_save_CFLAGS" 12975fi 12976 12977found="no" 12978 12979 if test $found = "no" ; then 12980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12982 fi 12983 12984 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12986 fi 12987 12988 CFLAGS="$CFLAGS -Wmissing-prototypes" 12989 12990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 12991$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 12992 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 12993 if eval \${$cacheid+:} false; then : 12994 $as_echo_n "(cached) " >&6 12995else 12996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12997/* end confdefs.h. */ 12998int i; 12999int 13000main () 13001{ 13002 13003 ; 13004 return 0; 13005} 13006_ACEOF 13007if ac_fn_c_try_link "$LINENO"; then : 13008 eval $cacheid=yes 13009else 13010 eval $cacheid=no 13011fi 13012rm -f core conftest.err conftest.$ac_objext \ 13013 conftest$ac_exeext conftest.$ac_ext 13014fi 13015 13016 13017 CFLAGS="$xorg_testset_save_CFLAGS" 13018 13019 eval supported=\$$cacheid 13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13021$as_echo "$supported" >&6; } 13022 if test "$supported" = "yes" ; then 13023 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 13024 found="yes" 13025 fi 13026 fi 13027 13028 13029 13030 13031 13032 13033 13034 13035 13036 13037 13038 13039 13040 13041 13042xorg_testset_save_CFLAGS="$CFLAGS" 13043 13044if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13047$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13048if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13049 $as_echo_n "(cached) " >&6 13050else 13051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13052/* end confdefs.h. */ 13053int i; 13054_ACEOF 13055if ac_fn_c_try_compile "$LINENO"; then : 13056 xorg_cv_cc_flag_unknown_warning_option=yes 13057else 13058 xorg_cv_cc_flag_unknown_warning_option=no 13059fi 13060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13061fi 13062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13063$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13064 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13065 CFLAGS="$xorg_testset_save_CFLAGS" 13066fi 13067 13068if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13069 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13071 fi 13072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13074$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13075if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13076 $as_echo_n "(cached) " >&6 13077else 13078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13079/* end confdefs.h. */ 13080int i; 13081_ACEOF 13082if ac_fn_c_try_compile "$LINENO"; then : 13083 xorg_cv_cc_flag_unused_command_line_argument=yes 13084else 13085 xorg_cv_cc_flag_unused_command_line_argument=no 13086fi 13087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13088fi 13089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13090$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13091 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13092 CFLAGS="$xorg_testset_save_CFLAGS" 13093fi 13094 13095found="no" 13096 13097 if test $found = "no" ; then 13098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13100 fi 13101 13102 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13104 fi 13105 13106 CFLAGS="$CFLAGS -Wnested-externs" 13107 13108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 13109$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 13110 cacheid=xorg_cv_cc_flag__Wnested_externs 13111 if eval \${$cacheid+:} false; then : 13112 $as_echo_n "(cached) " >&6 13113else 13114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13115/* end confdefs.h. */ 13116int i; 13117int 13118main () 13119{ 13120 13121 ; 13122 return 0; 13123} 13124_ACEOF 13125if ac_fn_c_try_link "$LINENO"; then : 13126 eval $cacheid=yes 13127else 13128 eval $cacheid=no 13129fi 13130rm -f core conftest.err conftest.$ac_objext \ 13131 conftest$ac_exeext conftest.$ac_ext 13132fi 13133 13134 13135 CFLAGS="$xorg_testset_save_CFLAGS" 13136 13137 eval supported=\$$cacheid 13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13139$as_echo "$supported" >&6; } 13140 if test "$supported" = "yes" ; then 13141 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 13142 found="yes" 13143 fi 13144 fi 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160xorg_testset_save_CFLAGS="$CFLAGS" 13161 13162if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13165$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13166if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13167 $as_echo_n "(cached) " >&6 13168else 13169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13170/* end confdefs.h. */ 13171int i; 13172_ACEOF 13173if ac_fn_c_try_compile "$LINENO"; then : 13174 xorg_cv_cc_flag_unknown_warning_option=yes 13175else 13176 xorg_cv_cc_flag_unknown_warning_option=no 13177fi 13178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13179fi 13180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13181$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13182 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13183 CFLAGS="$xorg_testset_save_CFLAGS" 13184fi 13185 13186if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13189 fi 13190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13192$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13193if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13194 $as_echo_n "(cached) " >&6 13195else 13196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13197/* end confdefs.h. */ 13198int i; 13199_ACEOF 13200if ac_fn_c_try_compile "$LINENO"; then : 13201 xorg_cv_cc_flag_unused_command_line_argument=yes 13202else 13203 xorg_cv_cc_flag_unused_command_line_argument=no 13204fi 13205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13206fi 13207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13208$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13209 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13210 CFLAGS="$xorg_testset_save_CFLAGS" 13211fi 13212 13213found="no" 13214 13215 if test $found = "no" ; then 13216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13218 fi 13219 13220 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13222 fi 13223 13224 CFLAGS="$CFLAGS -Wbad-function-cast" 13225 13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 13227$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 13228 cacheid=xorg_cv_cc_flag__Wbad_function_cast 13229 if eval \${$cacheid+:} false; then : 13230 $as_echo_n "(cached) " >&6 13231else 13232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13233/* end confdefs.h. */ 13234int i; 13235int 13236main () 13237{ 13238 13239 ; 13240 return 0; 13241} 13242_ACEOF 13243if ac_fn_c_try_link "$LINENO"; then : 13244 eval $cacheid=yes 13245else 13246 eval $cacheid=no 13247fi 13248rm -f core conftest.err conftest.$ac_objext \ 13249 conftest$ac_exeext conftest.$ac_ext 13250fi 13251 13252 13253 CFLAGS="$xorg_testset_save_CFLAGS" 13254 13255 eval supported=\$$cacheid 13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13257$as_echo "$supported" >&6; } 13258 if test "$supported" = "yes" ; then 13259 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 13260 found="yes" 13261 fi 13262 fi 13263 13264 13265 13266 13267 13268 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278xorg_testset_save_CFLAGS="$CFLAGS" 13279 13280if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13283$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13284if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13285 $as_echo_n "(cached) " >&6 13286else 13287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13288/* end confdefs.h. */ 13289int i; 13290_ACEOF 13291if ac_fn_c_try_compile "$LINENO"; then : 13292 xorg_cv_cc_flag_unknown_warning_option=yes 13293else 13294 xorg_cv_cc_flag_unknown_warning_option=no 13295fi 13296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13297fi 13298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13299$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13300 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13301 CFLAGS="$xorg_testset_save_CFLAGS" 13302fi 13303 13304if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13305 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13306 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13307 fi 13308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13310$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13311if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13312 $as_echo_n "(cached) " >&6 13313else 13314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13315/* end confdefs.h. */ 13316int i; 13317_ACEOF 13318if ac_fn_c_try_compile "$LINENO"; then : 13319 xorg_cv_cc_flag_unused_command_line_argument=yes 13320else 13321 xorg_cv_cc_flag_unused_command_line_argument=no 13322fi 13323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13324fi 13325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13326$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13327 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13328 CFLAGS="$xorg_testset_save_CFLAGS" 13329fi 13330 13331found="no" 13332 13333 if test $found = "no" ; then 13334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13336 fi 13337 13338 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13340 fi 13341 13342 CFLAGS="$CFLAGS -Wold-style-definition" 13343 13344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 13345$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 13346 cacheid=xorg_cv_cc_flag__Wold_style_definition 13347 if eval \${$cacheid+:} false; then : 13348 $as_echo_n "(cached) " >&6 13349else 13350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13351/* end confdefs.h. */ 13352int i; 13353int 13354main () 13355{ 13356 13357 ; 13358 return 0; 13359} 13360_ACEOF 13361if ac_fn_c_try_link "$LINENO"; then : 13362 eval $cacheid=yes 13363else 13364 eval $cacheid=no 13365fi 13366rm -f core conftest.err conftest.$ac_objext \ 13367 conftest$ac_exeext conftest.$ac_ext 13368fi 13369 13370 13371 CFLAGS="$xorg_testset_save_CFLAGS" 13372 13373 eval supported=\$$cacheid 13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13375$as_echo "$supported" >&6; } 13376 if test "$supported" = "yes" ; then 13377 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 13378 found="yes" 13379 fi 13380 fi 13381 13382 if test $found = "no" ; then 13383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13385 fi 13386 13387 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13389 fi 13390 13391 CFLAGS="$CFLAGS -fd" 13392 13393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 13394$as_echo_n "checking if $CC supports -fd... " >&6; } 13395 cacheid=xorg_cv_cc_flag__fd 13396 if eval \${$cacheid+:} false; then : 13397 $as_echo_n "(cached) " >&6 13398else 13399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13400/* end confdefs.h. */ 13401int i; 13402int 13403main () 13404{ 13405 13406 ; 13407 return 0; 13408} 13409_ACEOF 13410if ac_fn_c_try_link "$LINENO"; then : 13411 eval $cacheid=yes 13412else 13413 eval $cacheid=no 13414fi 13415rm -f core conftest.err conftest.$ac_objext \ 13416 conftest$ac_exeext conftest.$ac_ext 13417fi 13418 13419 13420 CFLAGS="$xorg_testset_save_CFLAGS" 13421 13422 eval supported=\$$cacheid 13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13424$as_echo "$supported" >&6; } 13425 if test "$supported" = "yes" ; then 13426 BASE_CFLAGS="$BASE_CFLAGS -fd" 13427 found="yes" 13428 fi 13429 fi 13430 13431 13432 13433 13434 13435 13436 13437 13438 13439 13440 13441 13442 13443 13444 13445xorg_testset_save_CFLAGS="$CFLAGS" 13446 13447if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13448 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13450$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13451if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13452 $as_echo_n "(cached) " >&6 13453else 13454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13455/* end confdefs.h. */ 13456int i; 13457_ACEOF 13458if ac_fn_c_try_compile "$LINENO"; then : 13459 xorg_cv_cc_flag_unknown_warning_option=yes 13460else 13461 xorg_cv_cc_flag_unknown_warning_option=no 13462fi 13463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13464fi 13465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13466$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13467 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13468 CFLAGS="$xorg_testset_save_CFLAGS" 13469fi 13470 13471if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13474 fi 13475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13477$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13478if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13479 $as_echo_n "(cached) " >&6 13480else 13481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13482/* end confdefs.h. */ 13483int i; 13484_ACEOF 13485if ac_fn_c_try_compile "$LINENO"; then : 13486 xorg_cv_cc_flag_unused_command_line_argument=yes 13487else 13488 xorg_cv_cc_flag_unused_command_line_argument=no 13489fi 13490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13491fi 13492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13493$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13494 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13495 CFLAGS="$xorg_testset_save_CFLAGS" 13496fi 13497 13498found="no" 13499 13500 if test $found = "no" ; then 13501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13503 fi 13504 13505 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13507 fi 13508 13509 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 13510 13511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 13512$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 13513 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 13514 if eval \${$cacheid+:} false; then : 13515 $as_echo_n "(cached) " >&6 13516else 13517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13518/* end confdefs.h. */ 13519int i; 13520int 13521main () 13522{ 13523 13524 ; 13525 return 0; 13526} 13527_ACEOF 13528if ac_fn_c_try_link "$LINENO"; then : 13529 eval $cacheid=yes 13530else 13531 eval $cacheid=no 13532fi 13533rm -f core conftest.err conftest.$ac_objext \ 13534 conftest$ac_exeext conftest.$ac_ext 13535fi 13536 13537 13538 CFLAGS="$xorg_testset_save_CFLAGS" 13539 13540 eval supported=\$$cacheid 13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13542$as_echo "$supported" >&6; } 13543 if test "$supported" = "yes" ; then 13544 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13545 found="yes" 13546 fi 13547 fi 13548 13549 13550 13551 13552 13553# This chunk adds additional warnings that could catch undesired effects. 13554 13555 13556 13557 13558 13559 13560 13561 13562 13563 13564 13565 13566 13567xorg_testset_save_CFLAGS="$CFLAGS" 13568 13569if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13572$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13573if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13574 $as_echo_n "(cached) " >&6 13575else 13576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13577/* end confdefs.h. */ 13578int i; 13579_ACEOF 13580if ac_fn_c_try_compile "$LINENO"; then : 13581 xorg_cv_cc_flag_unknown_warning_option=yes 13582else 13583 xorg_cv_cc_flag_unknown_warning_option=no 13584fi 13585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13586fi 13587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13588$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13589 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13590 CFLAGS="$xorg_testset_save_CFLAGS" 13591fi 13592 13593if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13594 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13595 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13596 fi 13597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13599$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13600if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13601 $as_echo_n "(cached) " >&6 13602else 13603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13604/* end confdefs.h. */ 13605int i; 13606_ACEOF 13607if ac_fn_c_try_compile "$LINENO"; then : 13608 xorg_cv_cc_flag_unused_command_line_argument=yes 13609else 13610 xorg_cv_cc_flag_unused_command_line_argument=no 13611fi 13612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13613fi 13614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13615$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13616 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13617 CFLAGS="$xorg_testset_save_CFLAGS" 13618fi 13619 13620found="no" 13621 13622 if test $found = "no" ; then 13623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13625 fi 13626 13627 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13629 fi 13630 13631 CFLAGS="$CFLAGS -Wunused" 13632 13633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13634$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13635 cacheid=xorg_cv_cc_flag__Wunused 13636 if eval \${$cacheid+:} false; then : 13637 $as_echo_n "(cached) " >&6 13638else 13639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13640/* end confdefs.h. */ 13641int i; 13642int 13643main () 13644{ 13645 13646 ; 13647 return 0; 13648} 13649_ACEOF 13650if ac_fn_c_try_link "$LINENO"; then : 13651 eval $cacheid=yes 13652else 13653 eval $cacheid=no 13654fi 13655rm -f core conftest.err conftest.$ac_objext \ 13656 conftest$ac_exeext conftest.$ac_ext 13657fi 13658 13659 13660 CFLAGS="$xorg_testset_save_CFLAGS" 13661 13662 eval supported=\$$cacheid 13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13664$as_echo "$supported" >&6; } 13665 if test "$supported" = "yes" ; then 13666 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13667 found="yes" 13668 fi 13669 fi 13670 13671 13672 13673 13674 13675 13676 13677 13678 13679 13680 13681 13682 13683 13684 13685xorg_testset_save_CFLAGS="$CFLAGS" 13686 13687if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13690$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13691if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13692 $as_echo_n "(cached) " >&6 13693else 13694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13695/* end confdefs.h. */ 13696int i; 13697_ACEOF 13698if ac_fn_c_try_compile "$LINENO"; then : 13699 xorg_cv_cc_flag_unknown_warning_option=yes 13700else 13701 xorg_cv_cc_flag_unknown_warning_option=no 13702fi 13703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13704fi 13705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13706$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13707 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13708 CFLAGS="$xorg_testset_save_CFLAGS" 13709fi 13710 13711if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13712 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13713 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13714 fi 13715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13717$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13718if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13719 $as_echo_n "(cached) " >&6 13720else 13721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13722/* end confdefs.h. */ 13723int i; 13724_ACEOF 13725if ac_fn_c_try_compile "$LINENO"; then : 13726 xorg_cv_cc_flag_unused_command_line_argument=yes 13727else 13728 xorg_cv_cc_flag_unused_command_line_argument=no 13729fi 13730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13731fi 13732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13733$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13734 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13735 CFLAGS="$xorg_testset_save_CFLAGS" 13736fi 13737 13738found="no" 13739 13740 if test $found = "no" ; then 13741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13743 fi 13744 13745 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13747 fi 13748 13749 CFLAGS="$CFLAGS -Wuninitialized" 13750 13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13752$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13753 cacheid=xorg_cv_cc_flag__Wuninitialized 13754 if eval \${$cacheid+:} false; then : 13755 $as_echo_n "(cached) " >&6 13756else 13757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13758/* end confdefs.h. */ 13759int i; 13760int 13761main () 13762{ 13763 13764 ; 13765 return 0; 13766} 13767_ACEOF 13768if ac_fn_c_try_link "$LINENO"; then : 13769 eval $cacheid=yes 13770else 13771 eval $cacheid=no 13772fi 13773rm -f core conftest.err conftest.$ac_objext \ 13774 conftest$ac_exeext conftest.$ac_ext 13775fi 13776 13777 13778 CFLAGS="$xorg_testset_save_CFLAGS" 13779 13780 eval supported=\$$cacheid 13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13782$as_echo "$supported" >&6; } 13783 if test "$supported" = "yes" ; then 13784 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13785 found="yes" 13786 fi 13787 fi 13788 13789 13790 13791 13792 13793 13794 13795 13796 13797 13798 13799 13800 13801 13802 13803xorg_testset_save_CFLAGS="$CFLAGS" 13804 13805if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13808$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13809if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13810 $as_echo_n "(cached) " >&6 13811else 13812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13813/* end confdefs.h. */ 13814int i; 13815_ACEOF 13816if ac_fn_c_try_compile "$LINENO"; then : 13817 xorg_cv_cc_flag_unknown_warning_option=yes 13818else 13819 xorg_cv_cc_flag_unknown_warning_option=no 13820fi 13821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13822fi 13823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13824$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13825 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13826 CFLAGS="$xorg_testset_save_CFLAGS" 13827fi 13828 13829if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13830 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13832 fi 13833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13835$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13836if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13837 $as_echo_n "(cached) " >&6 13838else 13839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13840/* end confdefs.h. */ 13841int i; 13842_ACEOF 13843if ac_fn_c_try_compile "$LINENO"; then : 13844 xorg_cv_cc_flag_unused_command_line_argument=yes 13845else 13846 xorg_cv_cc_flag_unused_command_line_argument=no 13847fi 13848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13849fi 13850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13851$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13852 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13853 CFLAGS="$xorg_testset_save_CFLAGS" 13854fi 13855 13856found="no" 13857 13858 if test $found = "no" ; then 13859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13860 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13861 fi 13862 13863 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13865 fi 13866 13867 CFLAGS="$CFLAGS -Wshadow" 13868 13869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 13870$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 13871 cacheid=xorg_cv_cc_flag__Wshadow 13872 if eval \${$cacheid+:} false; then : 13873 $as_echo_n "(cached) " >&6 13874else 13875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13876/* end confdefs.h. */ 13877int i; 13878int 13879main () 13880{ 13881 13882 ; 13883 return 0; 13884} 13885_ACEOF 13886if ac_fn_c_try_link "$LINENO"; then : 13887 eval $cacheid=yes 13888else 13889 eval $cacheid=no 13890fi 13891rm -f core conftest.err conftest.$ac_objext \ 13892 conftest$ac_exeext conftest.$ac_ext 13893fi 13894 13895 13896 CFLAGS="$xorg_testset_save_CFLAGS" 13897 13898 eval supported=\$$cacheid 13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13900$as_echo "$supported" >&6; } 13901 if test "$supported" = "yes" ; then 13902 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13903 found="yes" 13904 fi 13905 fi 13906 13907 13908 13909 13910 13911 13912 13913 13914 13915 13916 13917 13918 13919 13920 13921xorg_testset_save_CFLAGS="$CFLAGS" 13922 13923if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13924 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13926$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13927if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13928 $as_echo_n "(cached) " >&6 13929else 13930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13931/* end confdefs.h. */ 13932int i; 13933_ACEOF 13934if ac_fn_c_try_compile "$LINENO"; then : 13935 xorg_cv_cc_flag_unknown_warning_option=yes 13936else 13937 xorg_cv_cc_flag_unknown_warning_option=no 13938fi 13939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13940fi 13941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13942$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13943 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13944 CFLAGS="$xorg_testset_save_CFLAGS" 13945fi 13946 13947if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13950 fi 13951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13953$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13954if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13955 $as_echo_n "(cached) " >&6 13956else 13957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13958/* end confdefs.h. */ 13959int i; 13960_ACEOF 13961if ac_fn_c_try_compile "$LINENO"; then : 13962 xorg_cv_cc_flag_unused_command_line_argument=yes 13963else 13964 xorg_cv_cc_flag_unused_command_line_argument=no 13965fi 13966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13967fi 13968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13969$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13970 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13971 CFLAGS="$xorg_testset_save_CFLAGS" 13972fi 13973 13974found="no" 13975 13976 if test $found = "no" ; then 13977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13979 fi 13980 13981 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13983 fi 13984 13985 CFLAGS="$CFLAGS -Wmissing-noreturn" 13986 13987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 13988$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 13989 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 13990 if eval \${$cacheid+:} false; then : 13991 $as_echo_n "(cached) " >&6 13992else 13993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13994/* end confdefs.h. */ 13995int i; 13996int 13997main () 13998{ 13999 14000 ; 14001 return 0; 14002} 14003_ACEOF 14004if ac_fn_c_try_link "$LINENO"; then : 14005 eval $cacheid=yes 14006else 14007 eval $cacheid=no 14008fi 14009rm -f core conftest.err conftest.$ac_objext \ 14010 conftest$ac_exeext conftest.$ac_ext 14011fi 14012 14013 14014 CFLAGS="$xorg_testset_save_CFLAGS" 14015 14016 eval supported=\$$cacheid 14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14018$as_echo "$supported" >&6; } 14019 if test "$supported" = "yes" ; then 14020 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 14021 found="yes" 14022 fi 14023 fi 14024 14025 14026 14027 14028 14029 14030 14031 14032 14033 14034 14035 14036 14037 14038 14039xorg_testset_save_CFLAGS="$CFLAGS" 14040 14041if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14042 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14044$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14045if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14046 $as_echo_n "(cached) " >&6 14047else 14048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14049/* end confdefs.h. */ 14050int i; 14051_ACEOF 14052if ac_fn_c_try_compile "$LINENO"; then : 14053 xorg_cv_cc_flag_unknown_warning_option=yes 14054else 14055 xorg_cv_cc_flag_unknown_warning_option=no 14056fi 14057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14058fi 14059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14060$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14061 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14062 CFLAGS="$xorg_testset_save_CFLAGS" 14063fi 14064 14065if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14068 fi 14069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14071$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14072if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14073 $as_echo_n "(cached) " >&6 14074else 14075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14076/* end confdefs.h. */ 14077int i; 14078_ACEOF 14079if ac_fn_c_try_compile "$LINENO"; then : 14080 xorg_cv_cc_flag_unused_command_line_argument=yes 14081else 14082 xorg_cv_cc_flag_unused_command_line_argument=no 14083fi 14084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14085fi 14086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14087$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14088 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14089 CFLAGS="$xorg_testset_save_CFLAGS" 14090fi 14091 14092found="no" 14093 14094 if test $found = "no" ; then 14095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14096 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14097 fi 14098 14099 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14101 fi 14102 14103 CFLAGS="$CFLAGS -Wmissing-format-attribute" 14104 14105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 14106$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 14107 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 14108 if eval \${$cacheid+:} false; then : 14109 $as_echo_n "(cached) " >&6 14110else 14111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14112/* end confdefs.h. */ 14113int i; 14114int 14115main () 14116{ 14117 14118 ; 14119 return 0; 14120} 14121_ACEOF 14122if ac_fn_c_try_link "$LINENO"; then : 14123 eval $cacheid=yes 14124else 14125 eval $cacheid=no 14126fi 14127rm -f core conftest.err conftest.$ac_objext \ 14128 conftest$ac_exeext conftest.$ac_ext 14129fi 14130 14131 14132 CFLAGS="$xorg_testset_save_CFLAGS" 14133 14134 eval supported=\$$cacheid 14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14136$as_echo "$supported" >&6; } 14137 if test "$supported" = "yes" ; then 14138 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 14139 found="yes" 14140 fi 14141 fi 14142 14143 14144 14145 14146 14147 14148 14149 14150 14151 14152 14153 14154 14155 14156 14157xorg_testset_save_CFLAGS="$CFLAGS" 14158 14159if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14162$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14163if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14164 $as_echo_n "(cached) " >&6 14165else 14166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14167/* end confdefs.h. */ 14168int i; 14169_ACEOF 14170if ac_fn_c_try_compile "$LINENO"; then : 14171 xorg_cv_cc_flag_unknown_warning_option=yes 14172else 14173 xorg_cv_cc_flag_unknown_warning_option=no 14174fi 14175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14176fi 14177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14178$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14179 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14180 CFLAGS="$xorg_testset_save_CFLAGS" 14181fi 14182 14183if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14184 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14185 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14186 fi 14187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14189$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14190if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14191 $as_echo_n "(cached) " >&6 14192else 14193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14194/* end confdefs.h. */ 14195int i; 14196_ACEOF 14197if ac_fn_c_try_compile "$LINENO"; then : 14198 xorg_cv_cc_flag_unused_command_line_argument=yes 14199else 14200 xorg_cv_cc_flag_unused_command_line_argument=no 14201fi 14202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14203fi 14204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14205$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14206 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14207 CFLAGS="$xorg_testset_save_CFLAGS" 14208fi 14209 14210found="no" 14211 14212 if test $found = "no" ; then 14213 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14215 fi 14216 14217 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14219 fi 14220 14221 CFLAGS="$CFLAGS -Wredundant-decls" 14222 14223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 14224$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 14225 cacheid=xorg_cv_cc_flag__Wredundant_decls 14226 if eval \${$cacheid+:} false; then : 14227 $as_echo_n "(cached) " >&6 14228else 14229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14230/* end confdefs.h. */ 14231int i; 14232int 14233main () 14234{ 14235 14236 ; 14237 return 0; 14238} 14239_ACEOF 14240if ac_fn_c_try_link "$LINENO"; then : 14241 eval $cacheid=yes 14242else 14243 eval $cacheid=no 14244fi 14245rm -f core conftest.err conftest.$ac_objext \ 14246 conftest$ac_exeext conftest.$ac_ext 14247fi 14248 14249 14250 CFLAGS="$xorg_testset_save_CFLAGS" 14251 14252 eval supported=\$$cacheid 14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14254$as_echo "$supported" >&6; } 14255 if test "$supported" = "yes" ; then 14256 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 14257 found="yes" 14258 fi 14259 fi 14260 14261 14262 14263 14264 14265 14266 14267 14268 14269 14270 14271 14272 14273 14274 14275xorg_testset_save_CFLAGS="$CFLAGS" 14276 14277if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14278 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14280$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14281if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14282 $as_echo_n "(cached) " >&6 14283else 14284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14285/* end confdefs.h. */ 14286int i; 14287_ACEOF 14288if ac_fn_c_try_compile "$LINENO"; then : 14289 xorg_cv_cc_flag_unknown_warning_option=yes 14290else 14291 xorg_cv_cc_flag_unknown_warning_option=no 14292fi 14293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14294fi 14295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14296$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14297 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14298 CFLAGS="$xorg_testset_save_CFLAGS" 14299fi 14300 14301if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14304 fi 14305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14307$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14308if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14309 $as_echo_n "(cached) " >&6 14310else 14311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14312/* end confdefs.h. */ 14313int i; 14314_ACEOF 14315if ac_fn_c_try_compile "$LINENO"; then : 14316 xorg_cv_cc_flag_unused_command_line_argument=yes 14317else 14318 xorg_cv_cc_flag_unused_command_line_argument=no 14319fi 14320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14321fi 14322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14323$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14324 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14325 CFLAGS="$xorg_testset_save_CFLAGS" 14326fi 14327 14328found="no" 14329 14330 if test $found = "no" ; then 14331 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14332 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14333 fi 14334 14335 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14337 fi 14338 14339 CFLAGS="$CFLAGS -Wlogical-op" 14340 14341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 14342$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 14343 cacheid=xorg_cv_cc_flag__Wlogical_op 14344 if eval \${$cacheid+:} false; then : 14345 $as_echo_n "(cached) " >&6 14346else 14347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14348/* end confdefs.h. */ 14349int i; 14350int 14351main () 14352{ 14353 14354 ; 14355 return 0; 14356} 14357_ACEOF 14358if ac_fn_c_try_link "$LINENO"; then : 14359 eval $cacheid=yes 14360else 14361 eval $cacheid=no 14362fi 14363rm -f core conftest.err conftest.$ac_objext \ 14364 conftest$ac_exeext conftest.$ac_ext 14365fi 14366 14367 14368 CFLAGS="$xorg_testset_save_CFLAGS" 14369 14370 eval supported=\$$cacheid 14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14372$as_echo "$supported" >&6; } 14373 if test "$supported" = "yes" ; then 14374 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 14375 found="yes" 14376 fi 14377 fi 14378 14379 14380 14381# These are currently disabled because they are noisy. They will be enabled 14382# in the future once the codebase is sufficiently modernized to silence 14383# them. For now, I don't want them to drown out the other warnings. 14384# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 14385# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 14386# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 14387 14388# Turn some warnings into errors, so we don't accidently get successful builds 14389# when there are problems that should be fixed. 14390 14391if test "x$SELECTIVE_WERROR" = "xyes" ; then 14392 14393 14394 14395 14396 14397 14398 14399 14400 14401 14402 14403 14404 14405xorg_testset_save_CFLAGS="$CFLAGS" 14406 14407if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14408 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14410$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14411if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14412 $as_echo_n "(cached) " >&6 14413else 14414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14415/* end confdefs.h. */ 14416int i; 14417_ACEOF 14418if ac_fn_c_try_compile "$LINENO"; then : 14419 xorg_cv_cc_flag_unknown_warning_option=yes 14420else 14421 xorg_cv_cc_flag_unknown_warning_option=no 14422fi 14423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14424fi 14425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14426$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14427 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14428 CFLAGS="$xorg_testset_save_CFLAGS" 14429fi 14430 14431if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14433 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14434 fi 14435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14437$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14438if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14439 $as_echo_n "(cached) " >&6 14440else 14441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14442/* end confdefs.h. */ 14443int i; 14444_ACEOF 14445if ac_fn_c_try_compile "$LINENO"; then : 14446 xorg_cv_cc_flag_unused_command_line_argument=yes 14447else 14448 xorg_cv_cc_flag_unused_command_line_argument=no 14449fi 14450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14451fi 14452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14453$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14454 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14455 CFLAGS="$xorg_testset_save_CFLAGS" 14456fi 14457 14458found="no" 14459 14460 if test $found = "no" ; then 14461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14463 fi 14464 14465 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14467 fi 14468 14469 CFLAGS="$CFLAGS -Werror=implicit" 14470 14471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 14472$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 14473 cacheid=xorg_cv_cc_flag__Werror_implicit 14474 if eval \${$cacheid+:} false; then : 14475 $as_echo_n "(cached) " >&6 14476else 14477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14478/* end confdefs.h. */ 14479int i; 14480int 14481main () 14482{ 14483 14484 ; 14485 return 0; 14486} 14487_ACEOF 14488if ac_fn_c_try_link "$LINENO"; then : 14489 eval $cacheid=yes 14490else 14491 eval $cacheid=no 14492fi 14493rm -f core conftest.err conftest.$ac_objext \ 14494 conftest$ac_exeext conftest.$ac_ext 14495fi 14496 14497 14498 CFLAGS="$xorg_testset_save_CFLAGS" 14499 14500 eval supported=\$$cacheid 14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14502$as_echo "$supported" >&6; } 14503 if test "$supported" = "yes" ; then 14504 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 14505 found="yes" 14506 fi 14507 fi 14508 14509 if test $found = "no" ; then 14510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14512 fi 14513 14514 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14516 fi 14517 14518 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14519 14520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 14521$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 14522 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 14523 if eval \${$cacheid+:} false; then : 14524 $as_echo_n "(cached) " >&6 14525else 14526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14527/* end confdefs.h. */ 14528int i; 14529int 14530main () 14531{ 14532 14533 ; 14534 return 0; 14535} 14536_ACEOF 14537if ac_fn_c_try_link "$LINENO"; then : 14538 eval $cacheid=yes 14539else 14540 eval $cacheid=no 14541fi 14542rm -f core conftest.err conftest.$ac_objext \ 14543 conftest$ac_exeext conftest.$ac_ext 14544fi 14545 14546 14547 CFLAGS="$xorg_testset_save_CFLAGS" 14548 14549 eval supported=\$$cacheid 14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14551$as_echo "$supported" >&6; } 14552 if test "$supported" = "yes" ; then 14553 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14554 found="yes" 14555 fi 14556 fi 14557 14558 14559 14560 14561 14562 14563 14564 14565 14566 14567 14568 14569 14570 14571 14572xorg_testset_save_CFLAGS="$CFLAGS" 14573 14574if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14575 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14577$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14578if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14579 $as_echo_n "(cached) " >&6 14580else 14581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14582/* end confdefs.h. */ 14583int i; 14584_ACEOF 14585if ac_fn_c_try_compile "$LINENO"; then : 14586 xorg_cv_cc_flag_unknown_warning_option=yes 14587else 14588 xorg_cv_cc_flag_unknown_warning_option=no 14589fi 14590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14591fi 14592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14593$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14594 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14595 CFLAGS="$xorg_testset_save_CFLAGS" 14596fi 14597 14598if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14599 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14601 fi 14602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14604$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14605if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14606 $as_echo_n "(cached) " >&6 14607else 14608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14609/* end confdefs.h. */ 14610int i; 14611_ACEOF 14612if ac_fn_c_try_compile "$LINENO"; then : 14613 xorg_cv_cc_flag_unused_command_line_argument=yes 14614else 14615 xorg_cv_cc_flag_unused_command_line_argument=no 14616fi 14617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14618fi 14619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14620$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14621 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14622 CFLAGS="$xorg_testset_save_CFLAGS" 14623fi 14624 14625found="no" 14626 14627 if test $found = "no" ; then 14628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14630 fi 14631 14632 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14634 fi 14635 14636 CFLAGS="$CFLAGS -Werror=nonnull" 14637 14638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14639$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14640 cacheid=xorg_cv_cc_flag__Werror_nonnull 14641 if eval \${$cacheid+:} false; then : 14642 $as_echo_n "(cached) " >&6 14643else 14644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14645/* end confdefs.h. */ 14646int i; 14647int 14648main () 14649{ 14650 14651 ; 14652 return 0; 14653} 14654_ACEOF 14655if ac_fn_c_try_link "$LINENO"; then : 14656 eval $cacheid=yes 14657else 14658 eval $cacheid=no 14659fi 14660rm -f core conftest.err conftest.$ac_objext \ 14661 conftest$ac_exeext conftest.$ac_ext 14662fi 14663 14664 14665 CFLAGS="$xorg_testset_save_CFLAGS" 14666 14667 eval supported=\$$cacheid 14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14669$as_echo "$supported" >&6; } 14670 if test "$supported" = "yes" ; then 14671 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14672 found="yes" 14673 fi 14674 fi 14675 14676 14677 14678 14679 14680 14681 14682 14683 14684 14685 14686 14687 14688 14689 14690xorg_testset_save_CFLAGS="$CFLAGS" 14691 14692if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14695$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14696if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14697 $as_echo_n "(cached) " >&6 14698else 14699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14700/* end confdefs.h. */ 14701int i; 14702_ACEOF 14703if ac_fn_c_try_compile "$LINENO"; then : 14704 xorg_cv_cc_flag_unknown_warning_option=yes 14705else 14706 xorg_cv_cc_flag_unknown_warning_option=no 14707fi 14708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14709fi 14710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14711$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14712 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14713 CFLAGS="$xorg_testset_save_CFLAGS" 14714fi 14715 14716if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14719 fi 14720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14722$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14723if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14724 $as_echo_n "(cached) " >&6 14725else 14726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14727/* end confdefs.h. */ 14728int i; 14729_ACEOF 14730if ac_fn_c_try_compile "$LINENO"; then : 14731 xorg_cv_cc_flag_unused_command_line_argument=yes 14732else 14733 xorg_cv_cc_flag_unused_command_line_argument=no 14734fi 14735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14736fi 14737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14738$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14739 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14740 CFLAGS="$xorg_testset_save_CFLAGS" 14741fi 14742 14743found="no" 14744 14745 if test $found = "no" ; then 14746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14748 fi 14749 14750 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14752 fi 14753 14754 CFLAGS="$CFLAGS -Werror=init-self" 14755 14756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14757$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14758 cacheid=xorg_cv_cc_flag__Werror_init_self 14759 if eval \${$cacheid+:} false; then : 14760 $as_echo_n "(cached) " >&6 14761else 14762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14763/* end confdefs.h. */ 14764int i; 14765int 14766main () 14767{ 14768 14769 ; 14770 return 0; 14771} 14772_ACEOF 14773if ac_fn_c_try_link "$LINENO"; then : 14774 eval $cacheid=yes 14775else 14776 eval $cacheid=no 14777fi 14778rm -f core conftest.err conftest.$ac_objext \ 14779 conftest$ac_exeext conftest.$ac_ext 14780fi 14781 14782 14783 CFLAGS="$xorg_testset_save_CFLAGS" 14784 14785 eval supported=\$$cacheid 14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14787$as_echo "$supported" >&6; } 14788 if test "$supported" = "yes" ; then 14789 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14790 found="yes" 14791 fi 14792 fi 14793 14794 14795 14796 14797 14798 14799 14800 14801 14802 14803 14804 14805 14806 14807 14808xorg_testset_save_CFLAGS="$CFLAGS" 14809 14810if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14811 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14813$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14814if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14815 $as_echo_n "(cached) " >&6 14816else 14817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14818/* end confdefs.h. */ 14819int i; 14820_ACEOF 14821if ac_fn_c_try_compile "$LINENO"; then : 14822 xorg_cv_cc_flag_unknown_warning_option=yes 14823else 14824 xorg_cv_cc_flag_unknown_warning_option=no 14825fi 14826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14827fi 14828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14829$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14830 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14831 CFLAGS="$xorg_testset_save_CFLAGS" 14832fi 14833 14834if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14837 fi 14838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14840$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14841if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14842 $as_echo_n "(cached) " >&6 14843else 14844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14845/* end confdefs.h. */ 14846int i; 14847_ACEOF 14848if ac_fn_c_try_compile "$LINENO"; then : 14849 xorg_cv_cc_flag_unused_command_line_argument=yes 14850else 14851 xorg_cv_cc_flag_unused_command_line_argument=no 14852fi 14853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14854fi 14855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14856$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14857 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14858 CFLAGS="$xorg_testset_save_CFLAGS" 14859fi 14860 14861found="no" 14862 14863 if test $found = "no" ; then 14864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14866 fi 14867 14868 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14870 fi 14871 14872 CFLAGS="$CFLAGS -Werror=main" 14873 14874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 14875$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 14876 cacheid=xorg_cv_cc_flag__Werror_main 14877 if eval \${$cacheid+:} false; then : 14878 $as_echo_n "(cached) " >&6 14879else 14880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14881/* end confdefs.h. */ 14882int i; 14883int 14884main () 14885{ 14886 14887 ; 14888 return 0; 14889} 14890_ACEOF 14891if ac_fn_c_try_link "$LINENO"; then : 14892 eval $cacheid=yes 14893else 14894 eval $cacheid=no 14895fi 14896rm -f core conftest.err conftest.$ac_objext \ 14897 conftest$ac_exeext conftest.$ac_ext 14898fi 14899 14900 14901 CFLAGS="$xorg_testset_save_CFLAGS" 14902 14903 eval supported=\$$cacheid 14904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14905$as_echo "$supported" >&6; } 14906 if test "$supported" = "yes" ; then 14907 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14908 found="yes" 14909 fi 14910 fi 14911 14912 14913 14914 14915 14916 14917 14918 14919 14920 14921 14922 14923 14924 14925 14926xorg_testset_save_CFLAGS="$CFLAGS" 14927 14928if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14929 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14931$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14932if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14933 $as_echo_n "(cached) " >&6 14934else 14935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14936/* end confdefs.h. */ 14937int i; 14938_ACEOF 14939if ac_fn_c_try_compile "$LINENO"; then : 14940 xorg_cv_cc_flag_unknown_warning_option=yes 14941else 14942 xorg_cv_cc_flag_unknown_warning_option=no 14943fi 14944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14945fi 14946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14947$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14948 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14949 CFLAGS="$xorg_testset_save_CFLAGS" 14950fi 14951 14952if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14955 fi 14956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14958$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14959if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14960 $as_echo_n "(cached) " >&6 14961else 14962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14963/* end confdefs.h. */ 14964int i; 14965_ACEOF 14966if ac_fn_c_try_compile "$LINENO"; then : 14967 xorg_cv_cc_flag_unused_command_line_argument=yes 14968else 14969 xorg_cv_cc_flag_unused_command_line_argument=no 14970fi 14971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14972fi 14973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14974$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14975 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14976 CFLAGS="$xorg_testset_save_CFLAGS" 14977fi 14978 14979found="no" 14980 14981 if test $found = "no" ; then 14982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14983 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14984 fi 14985 14986 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14988 fi 14989 14990 CFLAGS="$CFLAGS -Werror=missing-braces" 14991 14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 14993$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 14994 cacheid=xorg_cv_cc_flag__Werror_missing_braces 14995 if eval \${$cacheid+:} false; then : 14996 $as_echo_n "(cached) " >&6 14997else 14998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14999/* end confdefs.h. */ 15000int i; 15001int 15002main () 15003{ 15004 15005 ; 15006 return 0; 15007} 15008_ACEOF 15009if ac_fn_c_try_link "$LINENO"; then : 15010 eval $cacheid=yes 15011else 15012 eval $cacheid=no 15013fi 15014rm -f core conftest.err conftest.$ac_objext \ 15015 conftest$ac_exeext conftest.$ac_ext 15016fi 15017 15018 15019 CFLAGS="$xorg_testset_save_CFLAGS" 15020 15021 eval supported=\$$cacheid 15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15023$as_echo "$supported" >&6; } 15024 if test "$supported" = "yes" ; then 15025 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 15026 found="yes" 15027 fi 15028 fi 15029 15030 15031 15032 15033 15034 15035 15036 15037 15038 15039 15040 15041 15042 15043 15044xorg_testset_save_CFLAGS="$CFLAGS" 15045 15046if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15049$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15050if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15051 $as_echo_n "(cached) " >&6 15052else 15053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15054/* end confdefs.h. */ 15055int i; 15056_ACEOF 15057if ac_fn_c_try_compile "$LINENO"; then : 15058 xorg_cv_cc_flag_unknown_warning_option=yes 15059else 15060 xorg_cv_cc_flag_unknown_warning_option=no 15061fi 15062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15063fi 15064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15065$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15066 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15067 CFLAGS="$xorg_testset_save_CFLAGS" 15068fi 15069 15070if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15073 fi 15074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15076$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15077if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15078 $as_echo_n "(cached) " >&6 15079else 15080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15081/* end confdefs.h. */ 15082int i; 15083_ACEOF 15084if ac_fn_c_try_compile "$LINENO"; then : 15085 xorg_cv_cc_flag_unused_command_line_argument=yes 15086else 15087 xorg_cv_cc_flag_unused_command_line_argument=no 15088fi 15089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15090fi 15091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15092$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15093 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15094 CFLAGS="$xorg_testset_save_CFLAGS" 15095fi 15096 15097found="no" 15098 15099 if test $found = "no" ; then 15100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15102 fi 15103 15104 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15106 fi 15107 15108 CFLAGS="$CFLAGS -Werror=sequence-point" 15109 15110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 15111$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 15112 cacheid=xorg_cv_cc_flag__Werror_sequence_point 15113 if eval \${$cacheid+:} false; then : 15114 $as_echo_n "(cached) " >&6 15115else 15116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15117/* end confdefs.h. */ 15118int i; 15119int 15120main () 15121{ 15122 15123 ; 15124 return 0; 15125} 15126_ACEOF 15127if ac_fn_c_try_link "$LINENO"; then : 15128 eval $cacheid=yes 15129else 15130 eval $cacheid=no 15131fi 15132rm -f core conftest.err conftest.$ac_objext \ 15133 conftest$ac_exeext conftest.$ac_ext 15134fi 15135 15136 15137 CFLAGS="$xorg_testset_save_CFLAGS" 15138 15139 eval supported=\$$cacheid 15140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15141$as_echo "$supported" >&6; } 15142 if test "$supported" = "yes" ; then 15143 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 15144 found="yes" 15145 fi 15146 fi 15147 15148 15149 15150 15151 15152 15153 15154 15155 15156 15157 15158 15159 15160 15161 15162xorg_testset_save_CFLAGS="$CFLAGS" 15163 15164if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15165 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15167$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15168if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15169 $as_echo_n "(cached) " >&6 15170else 15171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15172/* end confdefs.h. */ 15173int i; 15174_ACEOF 15175if ac_fn_c_try_compile "$LINENO"; then : 15176 xorg_cv_cc_flag_unknown_warning_option=yes 15177else 15178 xorg_cv_cc_flag_unknown_warning_option=no 15179fi 15180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15181fi 15182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15183$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15184 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15185 CFLAGS="$xorg_testset_save_CFLAGS" 15186fi 15187 15188if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15191 fi 15192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15194$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15195if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15196 $as_echo_n "(cached) " >&6 15197else 15198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15199/* end confdefs.h. */ 15200int i; 15201_ACEOF 15202if ac_fn_c_try_compile "$LINENO"; then : 15203 xorg_cv_cc_flag_unused_command_line_argument=yes 15204else 15205 xorg_cv_cc_flag_unused_command_line_argument=no 15206fi 15207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15208fi 15209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15210$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15211 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15212 CFLAGS="$xorg_testset_save_CFLAGS" 15213fi 15214 15215found="no" 15216 15217 if test $found = "no" ; then 15218 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15220 fi 15221 15222 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15224 fi 15225 15226 CFLAGS="$CFLAGS -Werror=return-type" 15227 15228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 15229$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 15230 cacheid=xorg_cv_cc_flag__Werror_return_type 15231 if eval \${$cacheid+:} false; then : 15232 $as_echo_n "(cached) " >&6 15233else 15234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15235/* end confdefs.h. */ 15236int i; 15237int 15238main () 15239{ 15240 15241 ; 15242 return 0; 15243} 15244_ACEOF 15245if ac_fn_c_try_link "$LINENO"; then : 15246 eval $cacheid=yes 15247else 15248 eval $cacheid=no 15249fi 15250rm -f core conftest.err conftest.$ac_objext \ 15251 conftest$ac_exeext conftest.$ac_ext 15252fi 15253 15254 15255 CFLAGS="$xorg_testset_save_CFLAGS" 15256 15257 eval supported=\$$cacheid 15258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15259$as_echo "$supported" >&6; } 15260 if test "$supported" = "yes" ; then 15261 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 15262 found="yes" 15263 fi 15264 fi 15265 15266 if test $found = "no" ; then 15267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15269 fi 15270 15271 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15273 fi 15274 15275 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15276 15277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 15278$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 15279 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 15280 if eval \${$cacheid+:} false; then : 15281 $as_echo_n "(cached) " >&6 15282else 15283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15284/* end confdefs.h. */ 15285int i; 15286int 15287main () 15288{ 15289 15290 ; 15291 return 0; 15292} 15293_ACEOF 15294if ac_fn_c_try_link "$LINENO"; then : 15295 eval $cacheid=yes 15296else 15297 eval $cacheid=no 15298fi 15299rm -f core conftest.err conftest.$ac_objext \ 15300 conftest$ac_exeext conftest.$ac_ext 15301fi 15302 15303 15304 CFLAGS="$xorg_testset_save_CFLAGS" 15305 15306 eval supported=\$$cacheid 15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15308$as_echo "$supported" >&6; } 15309 if test "$supported" = "yes" ; then 15310 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15311 found="yes" 15312 fi 15313 fi 15314 15315 15316 15317 15318 15319 15320 15321 15322 15323 15324 15325 15326 15327 15328 15329xorg_testset_save_CFLAGS="$CFLAGS" 15330 15331if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15332 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15334$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15335if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15336 $as_echo_n "(cached) " >&6 15337else 15338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15339/* end confdefs.h. */ 15340int i; 15341_ACEOF 15342if ac_fn_c_try_compile "$LINENO"; then : 15343 xorg_cv_cc_flag_unknown_warning_option=yes 15344else 15345 xorg_cv_cc_flag_unknown_warning_option=no 15346fi 15347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15348fi 15349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15350$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15351 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15352 CFLAGS="$xorg_testset_save_CFLAGS" 15353fi 15354 15355if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15358 fi 15359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15361$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15362if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15363 $as_echo_n "(cached) " >&6 15364else 15365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15366/* end confdefs.h. */ 15367int i; 15368_ACEOF 15369if ac_fn_c_try_compile "$LINENO"; then : 15370 xorg_cv_cc_flag_unused_command_line_argument=yes 15371else 15372 xorg_cv_cc_flag_unused_command_line_argument=no 15373fi 15374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15375fi 15376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15377$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15378 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15379 CFLAGS="$xorg_testset_save_CFLAGS" 15380fi 15381 15382found="no" 15383 15384 if test $found = "no" ; then 15385 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15386 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15387 fi 15388 15389 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15391 fi 15392 15393 CFLAGS="$CFLAGS -Werror=trigraphs" 15394 15395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 15396$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 15397 cacheid=xorg_cv_cc_flag__Werror_trigraphs 15398 if eval \${$cacheid+:} false; then : 15399 $as_echo_n "(cached) " >&6 15400else 15401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15402/* end confdefs.h. */ 15403int i; 15404int 15405main () 15406{ 15407 15408 ; 15409 return 0; 15410} 15411_ACEOF 15412if ac_fn_c_try_link "$LINENO"; then : 15413 eval $cacheid=yes 15414else 15415 eval $cacheid=no 15416fi 15417rm -f core conftest.err conftest.$ac_objext \ 15418 conftest$ac_exeext conftest.$ac_ext 15419fi 15420 15421 15422 CFLAGS="$xorg_testset_save_CFLAGS" 15423 15424 eval supported=\$$cacheid 15425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15426$as_echo "$supported" >&6; } 15427 if test "$supported" = "yes" ; then 15428 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 15429 found="yes" 15430 fi 15431 fi 15432 15433 15434 15435 15436 15437 15438 15439 15440 15441 15442 15443 15444 15445 15446 15447xorg_testset_save_CFLAGS="$CFLAGS" 15448 15449if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15452$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15453if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15454 $as_echo_n "(cached) " >&6 15455else 15456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15457/* end confdefs.h. */ 15458int i; 15459_ACEOF 15460if ac_fn_c_try_compile "$LINENO"; then : 15461 xorg_cv_cc_flag_unknown_warning_option=yes 15462else 15463 xorg_cv_cc_flag_unknown_warning_option=no 15464fi 15465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15466fi 15467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15468$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15469 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15470 CFLAGS="$xorg_testset_save_CFLAGS" 15471fi 15472 15473if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15475 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15476 fi 15477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15479$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15480if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15481 $as_echo_n "(cached) " >&6 15482else 15483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15484/* end confdefs.h. */ 15485int i; 15486_ACEOF 15487if ac_fn_c_try_compile "$LINENO"; then : 15488 xorg_cv_cc_flag_unused_command_line_argument=yes 15489else 15490 xorg_cv_cc_flag_unused_command_line_argument=no 15491fi 15492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15493fi 15494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15495$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15496 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15497 CFLAGS="$xorg_testset_save_CFLAGS" 15498fi 15499 15500found="no" 15501 15502 if test $found = "no" ; then 15503 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15504 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15505 fi 15506 15507 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15509 fi 15510 15511 CFLAGS="$CFLAGS -Werror=array-bounds" 15512 15513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 15514$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 15515 cacheid=xorg_cv_cc_flag__Werror_array_bounds 15516 if eval \${$cacheid+:} false; then : 15517 $as_echo_n "(cached) " >&6 15518else 15519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15520/* end confdefs.h. */ 15521int i; 15522int 15523main () 15524{ 15525 15526 ; 15527 return 0; 15528} 15529_ACEOF 15530if ac_fn_c_try_link "$LINENO"; then : 15531 eval $cacheid=yes 15532else 15533 eval $cacheid=no 15534fi 15535rm -f core conftest.err conftest.$ac_objext \ 15536 conftest$ac_exeext conftest.$ac_ext 15537fi 15538 15539 15540 CFLAGS="$xorg_testset_save_CFLAGS" 15541 15542 eval supported=\$$cacheid 15543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15544$as_echo "$supported" >&6; } 15545 if test "$supported" = "yes" ; then 15546 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15547 found="yes" 15548 fi 15549 fi 15550 15551 15552 15553 15554 15555 15556 15557 15558 15559 15560 15561 15562 15563 15564 15565xorg_testset_save_CFLAGS="$CFLAGS" 15566 15567if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15568 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15570$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15571if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15572 $as_echo_n "(cached) " >&6 15573else 15574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15575/* end confdefs.h. */ 15576int i; 15577_ACEOF 15578if ac_fn_c_try_compile "$LINENO"; then : 15579 xorg_cv_cc_flag_unknown_warning_option=yes 15580else 15581 xorg_cv_cc_flag_unknown_warning_option=no 15582fi 15583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15584fi 15585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15586$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15587 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15588 CFLAGS="$xorg_testset_save_CFLAGS" 15589fi 15590 15591if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15594 fi 15595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15597$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15598if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15599 $as_echo_n "(cached) " >&6 15600else 15601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15602/* end confdefs.h. */ 15603int i; 15604_ACEOF 15605if ac_fn_c_try_compile "$LINENO"; then : 15606 xorg_cv_cc_flag_unused_command_line_argument=yes 15607else 15608 xorg_cv_cc_flag_unused_command_line_argument=no 15609fi 15610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15611fi 15612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15613$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15614 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15615 CFLAGS="$xorg_testset_save_CFLAGS" 15616fi 15617 15618found="no" 15619 15620 if test $found = "no" ; then 15621 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15622 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15623 fi 15624 15625 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15627 fi 15628 15629 CFLAGS="$CFLAGS -Werror=write-strings" 15630 15631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15632$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15633 cacheid=xorg_cv_cc_flag__Werror_write_strings 15634 if eval \${$cacheid+:} false; then : 15635 $as_echo_n "(cached) " >&6 15636else 15637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15638/* end confdefs.h. */ 15639int i; 15640int 15641main () 15642{ 15643 15644 ; 15645 return 0; 15646} 15647_ACEOF 15648if ac_fn_c_try_link "$LINENO"; then : 15649 eval $cacheid=yes 15650else 15651 eval $cacheid=no 15652fi 15653rm -f core conftest.err conftest.$ac_objext \ 15654 conftest$ac_exeext conftest.$ac_ext 15655fi 15656 15657 15658 CFLAGS="$xorg_testset_save_CFLAGS" 15659 15660 eval supported=\$$cacheid 15661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15662$as_echo "$supported" >&6; } 15663 if test "$supported" = "yes" ; then 15664 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15665 found="yes" 15666 fi 15667 fi 15668 15669 15670 15671 15672 15673 15674 15675 15676 15677 15678 15679 15680 15681 15682 15683xorg_testset_save_CFLAGS="$CFLAGS" 15684 15685if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15688$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15689if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15690 $as_echo_n "(cached) " >&6 15691else 15692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15693/* end confdefs.h. */ 15694int i; 15695_ACEOF 15696if ac_fn_c_try_compile "$LINENO"; then : 15697 xorg_cv_cc_flag_unknown_warning_option=yes 15698else 15699 xorg_cv_cc_flag_unknown_warning_option=no 15700fi 15701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15702fi 15703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15704$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15705 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15706 CFLAGS="$xorg_testset_save_CFLAGS" 15707fi 15708 15709if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15712 fi 15713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15715$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15716if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15717 $as_echo_n "(cached) " >&6 15718else 15719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15720/* end confdefs.h. */ 15721int i; 15722_ACEOF 15723if ac_fn_c_try_compile "$LINENO"; then : 15724 xorg_cv_cc_flag_unused_command_line_argument=yes 15725else 15726 xorg_cv_cc_flag_unused_command_line_argument=no 15727fi 15728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15729fi 15730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15731$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15732 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15733 CFLAGS="$xorg_testset_save_CFLAGS" 15734fi 15735 15736found="no" 15737 15738 if test $found = "no" ; then 15739 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15741 fi 15742 15743 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15745 fi 15746 15747 CFLAGS="$CFLAGS -Werror=address" 15748 15749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15750$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15751 cacheid=xorg_cv_cc_flag__Werror_address 15752 if eval \${$cacheid+:} false; then : 15753 $as_echo_n "(cached) " >&6 15754else 15755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15756/* end confdefs.h. */ 15757int i; 15758int 15759main () 15760{ 15761 15762 ; 15763 return 0; 15764} 15765_ACEOF 15766if ac_fn_c_try_link "$LINENO"; then : 15767 eval $cacheid=yes 15768else 15769 eval $cacheid=no 15770fi 15771rm -f core conftest.err conftest.$ac_objext \ 15772 conftest$ac_exeext conftest.$ac_ext 15773fi 15774 15775 15776 CFLAGS="$xorg_testset_save_CFLAGS" 15777 15778 eval supported=\$$cacheid 15779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15780$as_echo "$supported" >&6; } 15781 if test "$supported" = "yes" ; then 15782 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15783 found="yes" 15784 fi 15785 fi 15786 15787 15788 15789 15790 15791 15792 15793 15794 15795 15796 15797 15798 15799 15800 15801xorg_testset_save_CFLAGS="$CFLAGS" 15802 15803if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15804 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15806$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15807if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15808 $as_echo_n "(cached) " >&6 15809else 15810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15811/* end confdefs.h. */ 15812int i; 15813_ACEOF 15814if ac_fn_c_try_compile "$LINENO"; then : 15815 xorg_cv_cc_flag_unknown_warning_option=yes 15816else 15817 xorg_cv_cc_flag_unknown_warning_option=no 15818fi 15819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15820fi 15821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15822$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15823 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15824 CFLAGS="$xorg_testset_save_CFLAGS" 15825fi 15826 15827if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15828 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15829 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15830 fi 15831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15833$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15834if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15835 $as_echo_n "(cached) " >&6 15836else 15837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15838/* end confdefs.h. */ 15839int i; 15840_ACEOF 15841if ac_fn_c_try_compile "$LINENO"; then : 15842 xorg_cv_cc_flag_unused_command_line_argument=yes 15843else 15844 xorg_cv_cc_flag_unused_command_line_argument=no 15845fi 15846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15847fi 15848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15849$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15850 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15851 CFLAGS="$xorg_testset_save_CFLAGS" 15852fi 15853 15854found="no" 15855 15856 if test $found = "no" ; then 15857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15859 fi 15860 15861 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15863 fi 15864 15865 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15866 15867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 15868$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 15869 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 15870 if eval \${$cacheid+:} false; then : 15871 $as_echo_n "(cached) " >&6 15872else 15873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15874/* end confdefs.h. */ 15875int i; 15876int 15877main () 15878{ 15879 15880 ; 15881 return 0; 15882} 15883_ACEOF 15884if ac_fn_c_try_link "$LINENO"; then : 15885 eval $cacheid=yes 15886else 15887 eval $cacheid=no 15888fi 15889rm -f core conftest.err conftest.$ac_objext \ 15890 conftest$ac_exeext conftest.$ac_ext 15891fi 15892 15893 15894 CFLAGS="$xorg_testset_save_CFLAGS" 15895 15896 eval supported=\$$cacheid 15897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15898$as_echo "$supported" >&6; } 15899 if test "$supported" = "yes" ; then 15900 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15901 found="yes" 15902 fi 15903 fi 15904 15905 if test $found = "no" ; then 15906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15908 fi 15909 15910 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15912 fi 15913 15914 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15915 15916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15917$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15918 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 15919 if eval \${$cacheid+:} false; then : 15920 $as_echo_n "(cached) " >&6 15921else 15922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15923/* end confdefs.h. */ 15924int i; 15925int 15926main () 15927{ 15928 15929 ; 15930 return 0; 15931} 15932_ACEOF 15933if ac_fn_c_try_link "$LINENO"; then : 15934 eval $cacheid=yes 15935else 15936 eval $cacheid=no 15937fi 15938rm -f core conftest.err conftest.$ac_objext \ 15939 conftest$ac_exeext conftest.$ac_ext 15940fi 15941 15942 15943 CFLAGS="$xorg_testset_save_CFLAGS" 15944 15945 eval supported=\$$cacheid 15946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15947$as_echo "$supported" >&6; } 15948 if test "$supported" = "yes" ; then 15949 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15950 found="yes" 15951 fi 15952 fi 15953 15954 15955 15956 15957 15958 15959 15960 15961 15962 15963 15964 15965 15966 15967 15968xorg_testset_save_CFLAGS="$CFLAGS" 15969 15970if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15973$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15974if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15975 $as_echo_n "(cached) " >&6 15976else 15977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15978/* end confdefs.h. */ 15979int i; 15980_ACEOF 15981if ac_fn_c_try_compile "$LINENO"; then : 15982 xorg_cv_cc_flag_unknown_warning_option=yes 15983else 15984 xorg_cv_cc_flag_unknown_warning_option=no 15985fi 15986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15987fi 15988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15989$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15990 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15991 CFLAGS="$xorg_testset_save_CFLAGS" 15992fi 15993 15994if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15997 fi 15998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16000$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16001if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16002 $as_echo_n "(cached) " >&6 16003else 16004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16005/* end confdefs.h. */ 16006int i; 16007_ACEOF 16008if ac_fn_c_try_compile "$LINENO"; then : 16009 xorg_cv_cc_flag_unused_command_line_argument=yes 16010else 16011 xorg_cv_cc_flag_unused_command_line_argument=no 16012fi 16013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16014fi 16015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16016$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16017 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16018 CFLAGS="$xorg_testset_save_CFLAGS" 16019fi 16020 16021found="no" 16022 16023 if test $found = "no" ; then 16024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16026 fi 16027 16028 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16030 fi 16031 16032 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 16033 16034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 16035$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 16036 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 16037 if eval \${$cacheid+:} false; then : 16038 $as_echo_n "(cached) " >&6 16039else 16040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16041/* end confdefs.h. */ 16042int i; 16043int 16044main () 16045{ 16046 16047 ; 16048 return 0; 16049} 16050_ACEOF 16051if ac_fn_c_try_link "$LINENO"; then : 16052 eval $cacheid=yes 16053else 16054 eval $cacheid=no 16055fi 16056rm -f core conftest.err conftest.$ac_objext \ 16057 conftest$ac_exeext conftest.$ac_ext 16058fi 16059 16060 16061 CFLAGS="$xorg_testset_save_CFLAGS" 16062 16063 eval supported=\$$cacheid 16064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16065$as_echo "$supported" >&6; } 16066 if test "$supported" = "yes" ; then 16067 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 16068 found="yes" 16069 fi 16070 fi 16071 16072 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 16073else 16074{ $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 16075$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;} 16076 16077 16078 16079 16080 16081 16082 16083 16084 16085 16086 16087 16088 16089xorg_testset_save_CFLAGS="$CFLAGS" 16090 16091if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16094$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16095if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16096 $as_echo_n "(cached) " >&6 16097else 16098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16099/* end confdefs.h. */ 16100int i; 16101_ACEOF 16102if ac_fn_c_try_compile "$LINENO"; then : 16103 xorg_cv_cc_flag_unknown_warning_option=yes 16104else 16105 xorg_cv_cc_flag_unknown_warning_option=no 16106fi 16107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16108fi 16109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16110$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16111 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16112 CFLAGS="$xorg_testset_save_CFLAGS" 16113fi 16114 16115if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16118 fi 16119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16121$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16122if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16123 $as_echo_n "(cached) " >&6 16124else 16125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16126/* end confdefs.h. */ 16127int i; 16128_ACEOF 16129if ac_fn_c_try_compile "$LINENO"; then : 16130 xorg_cv_cc_flag_unused_command_line_argument=yes 16131else 16132 xorg_cv_cc_flag_unused_command_line_argument=no 16133fi 16134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16135fi 16136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16137$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16138 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16139 CFLAGS="$xorg_testset_save_CFLAGS" 16140fi 16141 16142found="no" 16143 16144 if test $found = "no" ; then 16145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16147 fi 16148 16149 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16151 fi 16152 16153 CFLAGS="$CFLAGS -Wimplicit" 16154 16155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 16156$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 16157 cacheid=xorg_cv_cc_flag__Wimplicit 16158 if eval \${$cacheid+:} false; then : 16159 $as_echo_n "(cached) " >&6 16160else 16161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16162/* end confdefs.h. */ 16163int i; 16164int 16165main () 16166{ 16167 16168 ; 16169 return 0; 16170} 16171_ACEOF 16172if ac_fn_c_try_link "$LINENO"; then : 16173 eval $cacheid=yes 16174else 16175 eval $cacheid=no 16176fi 16177rm -f core conftest.err conftest.$ac_objext \ 16178 conftest$ac_exeext conftest.$ac_ext 16179fi 16180 16181 16182 CFLAGS="$xorg_testset_save_CFLAGS" 16183 16184 eval supported=\$$cacheid 16185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16186$as_echo "$supported" >&6; } 16187 if test "$supported" = "yes" ; then 16188 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 16189 found="yes" 16190 fi 16191 fi 16192 16193 16194 16195 16196 16197 16198 16199 16200 16201 16202 16203 16204 16205 16206 16207xorg_testset_save_CFLAGS="$CFLAGS" 16208 16209if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16212$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16213if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16214 $as_echo_n "(cached) " >&6 16215else 16216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16217/* end confdefs.h. */ 16218int i; 16219_ACEOF 16220if ac_fn_c_try_compile "$LINENO"; then : 16221 xorg_cv_cc_flag_unknown_warning_option=yes 16222else 16223 xorg_cv_cc_flag_unknown_warning_option=no 16224fi 16225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16226fi 16227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16228$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16229 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16230 CFLAGS="$xorg_testset_save_CFLAGS" 16231fi 16232 16233if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16236 fi 16237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16239$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16240if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16241 $as_echo_n "(cached) " >&6 16242else 16243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16244/* end confdefs.h. */ 16245int i; 16246_ACEOF 16247if ac_fn_c_try_compile "$LINENO"; then : 16248 xorg_cv_cc_flag_unused_command_line_argument=yes 16249else 16250 xorg_cv_cc_flag_unused_command_line_argument=no 16251fi 16252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16253fi 16254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16255$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16256 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16257 CFLAGS="$xorg_testset_save_CFLAGS" 16258fi 16259 16260found="no" 16261 16262 if test $found = "no" ; then 16263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16265 fi 16266 16267 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16269 fi 16270 16271 CFLAGS="$CFLAGS -Wnonnull" 16272 16273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 16274$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 16275 cacheid=xorg_cv_cc_flag__Wnonnull 16276 if eval \${$cacheid+:} false; then : 16277 $as_echo_n "(cached) " >&6 16278else 16279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16280/* end confdefs.h. */ 16281int i; 16282int 16283main () 16284{ 16285 16286 ; 16287 return 0; 16288} 16289_ACEOF 16290if ac_fn_c_try_link "$LINENO"; then : 16291 eval $cacheid=yes 16292else 16293 eval $cacheid=no 16294fi 16295rm -f core conftest.err conftest.$ac_objext \ 16296 conftest$ac_exeext conftest.$ac_ext 16297fi 16298 16299 16300 CFLAGS="$xorg_testset_save_CFLAGS" 16301 16302 eval supported=\$$cacheid 16303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16304$as_echo "$supported" >&6; } 16305 if test "$supported" = "yes" ; then 16306 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 16307 found="yes" 16308 fi 16309 fi 16310 16311 16312 16313 16314 16315 16316 16317 16318 16319 16320 16321 16322 16323 16324 16325xorg_testset_save_CFLAGS="$CFLAGS" 16326 16327if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16330$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16331if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16332 $as_echo_n "(cached) " >&6 16333else 16334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16335/* end confdefs.h. */ 16336int i; 16337_ACEOF 16338if ac_fn_c_try_compile "$LINENO"; then : 16339 xorg_cv_cc_flag_unknown_warning_option=yes 16340else 16341 xorg_cv_cc_flag_unknown_warning_option=no 16342fi 16343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16344fi 16345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16346$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16347 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16348 CFLAGS="$xorg_testset_save_CFLAGS" 16349fi 16350 16351if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16354 fi 16355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16357$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16358if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16359 $as_echo_n "(cached) " >&6 16360else 16361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16362/* end confdefs.h. */ 16363int i; 16364_ACEOF 16365if ac_fn_c_try_compile "$LINENO"; then : 16366 xorg_cv_cc_flag_unused_command_line_argument=yes 16367else 16368 xorg_cv_cc_flag_unused_command_line_argument=no 16369fi 16370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16371fi 16372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16373$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16374 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16375 CFLAGS="$xorg_testset_save_CFLAGS" 16376fi 16377 16378found="no" 16379 16380 if test $found = "no" ; then 16381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16382 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16383 fi 16384 16385 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16387 fi 16388 16389 CFLAGS="$CFLAGS -Winit-self" 16390 16391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 16392$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 16393 cacheid=xorg_cv_cc_flag__Winit_self 16394 if eval \${$cacheid+:} false; then : 16395 $as_echo_n "(cached) " >&6 16396else 16397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16398/* end confdefs.h. */ 16399int i; 16400int 16401main () 16402{ 16403 16404 ; 16405 return 0; 16406} 16407_ACEOF 16408if ac_fn_c_try_link "$LINENO"; then : 16409 eval $cacheid=yes 16410else 16411 eval $cacheid=no 16412fi 16413rm -f core conftest.err conftest.$ac_objext \ 16414 conftest$ac_exeext conftest.$ac_ext 16415fi 16416 16417 16418 CFLAGS="$xorg_testset_save_CFLAGS" 16419 16420 eval supported=\$$cacheid 16421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16422$as_echo "$supported" >&6; } 16423 if test "$supported" = "yes" ; then 16424 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 16425 found="yes" 16426 fi 16427 fi 16428 16429 16430 16431 16432 16433 16434 16435 16436 16437 16438 16439 16440 16441 16442 16443xorg_testset_save_CFLAGS="$CFLAGS" 16444 16445if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16448$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16449if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16450 $as_echo_n "(cached) " >&6 16451else 16452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16453/* end confdefs.h. */ 16454int i; 16455_ACEOF 16456if ac_fn_c_try_compile "$LINENO"; then : 16457 xorg_cv_cc_flag_unknown_warning_option=yes 16458else 16459 xorg_cv_cc_flag_unknown_warning_option=no 16460fi 16461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16462fi 16463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16464$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16465 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16466 CFLAGS="$xorg_testset_save_CFLAGS" 16467fi 16468 16469if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16472 fi 16473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16475$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16476if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16477 $as_echo_n "(cached) " >&6 16478else 16479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16480/* end confdefs.h. */ 16481int i; 16482_ACEOF 16483if ac_fn_c_try_compile "$LINENO"; then : 16484 xorg_cv_cc_flag_unused_command_line_argument=yes 16485else 16486 xorg_cv_cc_flag_unused_command_line_argument=no 16487fi 16488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16489fi 16490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16491$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16492 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16493 CFLAGS="$xorg_testset_save_CFLAGS" 16494fi 16495 16496found="no" 16497 16498 if test $found = "no" ; then 16499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16501 fi 16502 16503 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16505 fi 16506 16507 CFLAGS="$CFLAGS -Wmain" 16508 16509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 16510$as_echo_n "checking if $CC supports -Wmain... " >&6; } 16511 cacheid=xorg_cv_cc_flag__Wmain 16512 if eval \${$cacheid+:} false; then : 16513 $as_echo_n "(cached) " >&6 16514else 16515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16516/* end confdefs.h. */ 16517int i; 16518int 16519main () 16520{ 16521 16522 ; 16523 return 0; 16524} 16525_ACEOF 16526if ac_fn_c_try_link "$LINENO"; then : 16527 eval $cacheid=yes 16528else 16529 eval $cacheid=no 16530fi 16531rm -f core conftest.err conftest.$ac_objext \ 16532 conftest$ac_exeext conftest.$ac_ext 16533fi 16534 16535 16536 CFLAGS="$xorg_testset_save_CFLAGS" 16537 16538 eval supported=\$$cacheid 16539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16540$as_echo "$supported" >&6; } 16541 if test "$supported" = "yes" ; then 16542 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16543 found="yes" 16544 fi 16545 fi 16546 16547 16548 16549 16550 16551 16552 16553 16554 16555 16556 16557 16558 16559 16560 16561xorg_testset_save_CFLAGS="$CFLAGS" 16562 16563if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16564 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16566$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16567if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16568 $as_echo_n "(cached) " >&6 16569else 16570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16571/* end confdefs.h. */ 16572int i; 16573_ACEOF 16574if ac_fn_c_try_compile "$LINENO"; then : 16575 xorg_cv_cc_flag_unknown_warning_option=yes 16576else 16577 xorg_cv_cc_flag_unknown_warning_option=no 16578fi 16579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16580fi 16581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16582$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16583 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16584 CFLAGS="$xorg_testset_save_CFLAGS" 16585fi 16586 16587if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16590 fi 16591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16593$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16594if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16595 $as_echo_n "(cached) " >&6 16596else 16597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16598/* end confdefs.h. */ 16599int i; 16600_ACEOF 16601if ac_fn_c_try_compile "$LINENO"; then : 16602 xorg_cv_cc_flag_unused_command_line_argument=yes 16603else 16604 xorg_cv_cc_flag_unused_command_line_argument=no 16605fi 16606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16607fi 16608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16609$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16610 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16611 CFLAGS="$xorg_testset_save_CFLAGS" 16612fi 16613 16614found="no" 16615 16616 if test $found = "no" ; then 16617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16618 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16619 fi 16620 16621 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16623 fi 16624 16625 CFLAGS="$CFLAGS -Wmissing-braces" 16626 16627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 16628$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 16629 cacheid=xorg_cv_cc_flag__Wmissing_braces 16630 if eval \${$cacheid+:} false; then : 16631 $as_echo_n "(cached) " >&6 16632else 16633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16634/* end confdefs.h. */ 16635int i; 16636int 16637main () 16638{ 16639 16640 ; 16641 return 0; 16642} 16643_ACEOF 16644if ac_fn_c_try_link "$LINENO"; then : 16645 eval $cacheid=yes 16646else 16647 eval $cacheid=no 16648fi 16649rm -f core conftest.err conftest.$ac_objext \ 16650 conftest$ac_exeext conftest.$ac_ext 16651fi 16652 16653 16654 CFLAGS="$xorg_testset_save_CFLAGS" 16655 16656 eval supported=\$$cacheid 16657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16658$as_echo "$supported" >&6; } 16659 if test "$supported" = "yes" ; then 16660 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16661 found="yes" 16662 fi 16663 fi 16664 16665 16666 16667 16668 16669 16670 16671 16672 16673 16674 16675 16676 16677 16678 16679xorg_testset_save_CFLAGS="$CFLAGS" 16680 16681if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16682 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16684$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16685if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16686 $as_echo_n "(cached) " >&6 16687else 16688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16689/* end confdefs.h. */ 16690int i; 16691_ACEOF 16692if ac_fn_c_try_compile "$LINENO"; then : 16693 xorg_cv_cc_flag_unknown_warning_option=yes 16694else 16695 xorg_cv_cc_flag_unknown_warning_option=no 16696fi 16697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16698fi 16699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16700$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16701 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16702 CFLAGS="$xorg_testset_save_CFLAGS" 16703fi 16704 16705if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16708 fi 16709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16711$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16712if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16713 $as_echo_n "(cached) " >&6 16714else 16715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16716/* end confdefs.h. */ 16717int i; 16718_ACEOF 16719if ac_fn_c_try_compile "$LINENO"; then : 16720 xorg_cv_cc_flag_unused_command_line_argument=yes 16721else 16722 xorg_cv_cc_flag_unused_command_line_argument=no 16723fi 16724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16725fi 16726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16727$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16728 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16729 CFLAGS="$xorg_testset_save_CFLAGS" 16730fi 16731 16732found="no" 16733 16734 if test $found = "no" ; then 16735 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16736 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16737 fi 16738 16739 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16740 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16741 fi 16742 16743 CFLAGS="$CFLAGS -Wsequence-point" 16744 16745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 16746$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 16747 cacheid=xorg_cv_cc_flag__Wsequence_point 16748 if eval \${$cacheid+:} false; then : 16749 $as_echo_n "(cached) " >&6 16750else 16751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16752/* end confdefs.h. */ 16753int i; 16754int 16755main () 16756{ 16757 16758 ; 16759 return 0; 16760} 16761_ACEOF 16762if ac_fn_c_try_link "$LINENO"; then : 16763 eval $cacheid=yes 16764else 16765 eval $cacheid=no 16766fi 16767rm -f core conftest.err conftest.$ac_objext \ 16768 conftest$ac_exeext conftest.$ac_ext 16769fi 16770 16771 16772 CFLAGS="$xorg_testset_save_CFLAGS" 16773 16774 eval supported=\$$cacheid 16775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16776$as_echo "$supported" >&6; } 16777 if test "$supported" = "yes" ; then 16778 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16779 found="yes" 16780 fi 16781 fi 16782 16783 16784 16785 16786 16787 16788 16789 16790 16791 16792 16793 16794 16795 16796 16797xorg_testset_save_CFLAGS="$CFLAGS" 16798 16799if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16800 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16802$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16803if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16804 $as_echo_n "(cached) " >&6 16805else 16806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16807/* end confdefs.h. */ 16808int i; 16809_ACEOF 16810if ac_fn_c_try_compile "$LINENO"; then : 16811 xorg_cv_cc_flag_unknown_warning_option=yes 16812else 16813 xorg_cv_cc_flag_unknown_warning_option=no 16814fi 16815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16816fi 16817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16818$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16819 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16820 CFLAGS="$xorg_testset_save_CFLAGS" 16821fi 16822 16823if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16826 fi 16827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16829$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16830if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16831 $as_echo_n "(cached) " >&6 16832else 16833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16834/* end confdefs.h. */ 16835int i; 16836_ACEOF 16837if ac_fn_c_try_compile "$LINENO"; then : 16838 xorg_cv_cc_flag_unused_command_line_argument=yes 16839else 16840 xorg_cv_cc_flag_unused_command_line_argument=no 16841fi 16842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16843fi 16844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16845$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16846 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16847 CFLAGS="$xorg_testset_save_CFLAGS" 16848fi 16849 16850found="no" 16851 16852 if test $found = "no" ; then 16853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16855 fi 16856 16857 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16859 fi 16860 16861 CFLAGS="$CFLAGS -Wreturn-type" 16862 16863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16864$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16865 cacheid=xorg_cv_cc_flag__Wreturn_type 16866 if eval \${$cacheid+:} false; then : 16867 $as_echo_n "(cached) " >&6 16868else 16869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16870/* end confdefs.h. */ 16871int i; 16872int 16873main () 16874{ 16875 16876 ; 16877 return 0; 16878} 16879_ACEOF 16880if ac_fn_c_try_link "$LINENO"; then : 16881 eval $cacheid=yes 16882else 16883 eval $cacheid=no 16884fi 16885rm -f core conftest.err conftest.$ac_objext \ 16886 conftest$ac_exeext conftest.$ac_ext 16887fi 16888 16889 16890 CFLAGS="$xorg_testset_save_CFLAGS" 16891 16892 eval supported=\$$cacheid 16893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16894$as_echo "$supported" >&6; } 16895 if test "$supported" = "yes" ; then 16896 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16897 found="yes" 16898 fi 16899 fi 16900 16901 16902 16903 16904 16905 16906 16907 16908 16909 16910 16911 16912 16913 16914 16915xorg_testset_save_CFLAGS="$CFLAGS" 16916 16917if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16918 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16920$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16921if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16922 $as_echo_n "(cached) " >&6 16923else 16924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16925/* end confdefs.h. */ 16926int i; 16927_ACEOF 16928if ac_fn_c_try_compile "$LINENO"; then : 16929 xorg_cv_cc_flag_unknown_warning_option=yes 16930else 16931 xorg_cv_cc_flag_unknown_warning_option=no 16932fi 16933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16934fi 16935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16936$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16937 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16938 CFLAGS="$xorg_testset_save_CFLAGS" 16939fi 16940 16941if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16944 fi 16945 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16947$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16948if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16949 $as_echo_n "(cached) " >&6 16950else 16951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16952/* end confdefs.h. */ 16953int i; 16954_ACEOF 16955if ac_fn_c_try_compile "$LINENO"; then : 16956 xorg_cv_cc_flag_unused_command_line_argument=yes 16957else 16958 xorg_cv_cc_flag_unused_command_line_argument=no 16959fi 16960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16961fi 16962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16963$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16964 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16965 CFLAGS="$xorg_testset_save_CFLAGS" 16966fi 16967 16968found="no" 16969 16970 if test $found = "no" ; then 16971 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16972 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16973 fi 16974 16975 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16977 fi 16978 16979 CFLAGS="$CFLAGS -Wtrigraphs" 16980 16981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 16982$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 16983 cacheid=xorg_cv_cc_flag__Wtrigraphs 16984 if eval \${$cacheid+:} false; then : 16985 $as_echo_n "(cached) " >&6 16986else 16987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16988/* end confdefs.h. */ 16989int i; 16990int 16991main () 16992{ 16993 16994 ; 16995 return 0; 16996} 16997_ACEOF 16998if ac_fn_c_try_link "$LINENO"; then : 16999 eval $cacheid=yes 17000else 17001 eval $cacheid=no 17002fi 17003rm -f core conftest.err conftest.$ac_objext \ 17004 conftest$ac_exeext conftest.$ac_ext 17005fi 17006 17007 17008 CFLAGS="$xorg_testset_save_CFLAGS" 17009 17010 eval supported=\$$cacheid 17011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17012$as_echo "$supported" >&6; } 17013 if test "$supported" = "yes" ; then 17014 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 17015 found="yes" 17016 fi 17017 fi 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033xorg_testset_save_CFLAGS="$CFLAGS" 17034 17035if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17036 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17038$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17039if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17040 $as_echo_n "(cached) " >&6 17041else 17042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17043/* end confdefs.h. */ 17044int i; 17045_ACEOF 17046if ac_fn_c_try_compile "$LINENO"; then : 17047 xorg_cv_cc_flag_unknown_warning_option=yes 17048else 17049 xorg_cv_cc_flag_unknown_warning_option=no 17050fi 17051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17052fi 17053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17054$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17055 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17056 CFLAGS="$xorg_testset_save_CFLAGS" 17057fi 17058 17059if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17062 fi 17063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17065$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17066if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17067 $as_echo_n "(cached) " >&6 17068else 17069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17070/* end confdefs.h. */ 17071int i; 17072_ACEOF 17073if ac_fn_c_try_compile "$LINENO"; then : 17074 xorg_cv_cc_flag_unused_command_line_argument=yes 17075else 17076 xorg_cv_cc_flag_unused_command_line_argument=no 17077fi 17078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17079fi 17080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17081$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17082 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17083 CFLAGS="$xorg_testset_save_CFLAGS" 17084fi 17085 17086found="no" 17087 17088 if test $found = "no" ; then 17089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17091 fi 17092 17093 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17095 fi 17096 17097 CFLAGS="$CFLAGS -Warray-bounds" 17098 17099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 17100$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 17101 cacheid=xorg_cv_cc_flag__Warray_bounds 17102 if eval \${$cacheid+:} false; then : 17103 $as_echo_n "(cached) " >&6 17104else 17105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17106/* end confdefs.h. */ 17107int i; 17108int 17109main () 17110{ 17111 17112 ; 17113 return 0; 17114} 17115_ACEOF 17116if ac_fn_c_try_link "$LINENO"; then : 17117 eval $cacheid=yes 17118else 17119 eval $cacheid=no 17120fi 17121rm -f core conftest.err conftest.$ac_objext \ 17122 conftest$ac_exeext conftest.$ac_ext 17123fi 17124 17125 17126 CFLAGS="$xorg_testset_save_CFLAGS" 17127 17128 eval supported=\$$cacheid 17129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17130$as_echo "$supported" >&6; } 17131 if test "$supported" = "yes" ; then 17132 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 17133 found="yes" 17134 fi 17135 fi 17136 17137 17138 17139 17140 17141 17142 17143 17144 17145 17146 17147 17148 17149 17150 17151xorg_testset_save_CFLAGS="$CFLAGS" 17152 17153if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17154 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17156$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17157if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17158 $as_echo_n "(cached) " >&6 17159else 17160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17161/* end confdefs.h. */ 17162int i; 17163_ACEOF 17164if ac_fn_c_try_compile "$LINENO"; then : 17165 xorg_cv_cc_flag_unknown_warning_option=yes 17166else 17167 xorg_cv_cc_flag_unknown_warning_option=no 17168fi 17169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17170fi 17171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17172$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17173 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17174 CFLAGS="$xorg_testset_save_CFLAGS" 17175fi 17176 17177if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17180 fi 17181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17183$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17184if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17185 $as_echo_n "(cached) " >&6 17186else 17187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17188/* end confdefs.h. */ 17189int i; 17190_ACEOF 17191if ac_fn_c_try_compile "$LINENO"; then : 17192 xorg_cv_cc_flag_unused_command_line_argument=yes 17193else 17194 xorg_cv_cc_flag_unused_command_line_argument=no 17195fi 17196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17197fi 17198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17199$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17200 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17201 CFLAGS="$xorg_testset_save_CFLAGS" 17202fi 17203 17204found="no" 17205 17206 if test $found = "no" ; then 17207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17208 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17209 fi 17210 17211 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17213 fi 17214 17215 CFLAGS="$CFLAGS -Wwrite-strings" 17216 17217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 17218$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 17219 cacheid=xorg_cv_cc_flag__Wwrite_strings 17220 if eval \${$cacheid+:} false; then : 17221 $as_echo_n "(cached) " >&6 17222else 17223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17224/* end confdefs.h. */ 17225int i; 17226int 17227main () 17228{ 17229 17230 ; 17231 return 0; 17232} 17233_ACEOF 17234if ac_fn_c_try_link "$LINENO"; then : 17235 eval $cacheid=yes 17236else 17237 eval $cacheid=no 17238fi 17239rm -f core conftest.err conftest.$ac_objext \ 17240 conftest$ac_exeext conftest.$ac_ext 17241fi 17242 17243 17244 CFLAGS="$xorg_testset_save_CFLAGS" 17245 17246 eval supported=\$$cacheid 17247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17248$as_echo "$supported" >&6; } 17249 if test "$supported" = "yes" ; then 17250 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 17251 found="yes" 17252 fi 17253 fi 17254 17255 17256 17257 17258 17259 17260 17261 17262 17263 17264 17265 17266 17267 17268 17269xorg_testset_save_CFLAGS="$CFLAGS" 17270 17271if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17272 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17274$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17275if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17276 $as_echo_n "(cached) " >&6 17277else 17278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17279/* end confdefs.h. */ 17280int i; 17281_ACEOF 17282if ac_fn_c_try_compile "$LINENO"; then : 17283 xorg_cv_cc_flag_unknown_warning_option=yes 17284else 17285 xorg_cv_cc_flag_unknown_warning_option=no 17286fi 17287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17288fi 17289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17290$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17291 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17292 CFLAGS="$xorg_testset_save_CFLAGS" 17293fi 17294 17295if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17296 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17297 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17298 fi 17299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17301$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17302if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17303 $as_echo_n "(cached) " >&6 17304else 17305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17306/* end confdefs.h. */ 17307int i; 17308_ACEOF 17309if ac_fn_c_try_compile "$LINENO"; then : 17310 xorg_cv_cc_flag_unused_command_line_argument=yes 17311else 17312 xorg_cv_cc_flag_unused_command_line_argument=no 17313fi 17314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17315fi 17316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17317$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17318 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17319 CFLAGS="$xorg_testset_save_CFLAGS" 17320fi 17321 17322found="no" 17323 17324 if test $found = "no" ; then 17325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17327 fi 17328 17329 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17331 fi 17332 17333 CFLAGS="$CFLAGS -Waddress" 17334 17335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 17336$as_echo_n "checking if $CC supports -Waddress... " >&6; } 17337 cacheid=xorg_cv_cc_flag__Waddress 17338 if eval \${$cacheid+:} false; then : 17339 $as_echo_n "(cached) " >&6 17340else 17341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17342/* end confdefs.h. */ 17343int i; 17344int 17345main () 17346{ 17347 17348 ; 17349 return 0; 17350} 17351_ACEOF 17352if ac_fn_c_try_link "$LINENO"; then : 17353 eval $cacheid=yes 17354else 17355 eval $cacheid=no 17356fi 17357rm -f core conftest.err conftest.$ac_objext \ 17358 conftest$ac_exeext conftest.$ac_ext 17359fi 17360 17361 17362 CFLAGS="$xorg_testset_save_CFLAGS" 17363 17364 eval supported=\$$cacheid 17365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17366$as_echo "$supported" >&6; } 17367 if test "$supported" = "yes" ; then 17368 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 17369 found="yes" 17370 fi 17371 fi 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387xorg_testset_save_CFLAGS="$CFLAGS" 17388 17389if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17390 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17392$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17393if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17394 $as_echo_n "(cached) " >&6 17395else 17396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17397/* end confdefs.h. */ 17398int i; 17399_ACEOF 17400if ac_fn_c_try_compile "$LINENO"; then : 17401 xorg_cv_cc_flag_unknown_warning_option=yes 17402else 17403 xorg_cv_cc_flag_unknown_warning_option=no 17404fi 17405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17406fi 17407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17408$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17409 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17410 CFLAGS="$xorg_testset_save_CFLAGS" 17411fi 17412 17413if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17416 fi 17417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17419$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17420if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17421 $as_echo_n "(cached) " >&6 17422else 17423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17424/* end confdefs.h. */ 17425int i; 17426_ACEOF 17427if ac_fn_c_try_compile "$LINENO"; then : 17428 xorg_cv_cc_flag_unused_command_line_argument=yes 17429else 17430 xorg_cv_cc_flag_unused_command_line_argument=no 17431fi 17432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17433fi 17434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17435$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17436 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17437 CFLAGS="$xorg_testset_save_CFLAGS" 17438fi 17439 17440found="no" 17441 17442 if test $found = "no" ; then 17443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17445 fi 17446 17447 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17449 fi 17450 17451 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 17452 17453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 17454$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 17455 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 17456 if eval \${$cacheid+:} false; then : 17457 $as_echo_n "(cached) " >&6 17458else 17459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17460/* end confdefs.h. */ 17461int i; 17462int 17463main () 17464{ 17465 17466 ; 17467 return 0; 17468} 17469_ACEOF 17470if ac_fn_c_try_link "$LINENO"; then : 17471 eval $cacheid=yes 17472else 17473 eval $cacheid=no 17474fi 17475rm -f core conftest.err conftest.$ac_objext \ 17476 conftest$ac_exeext conftest.$ac_ext 17477fi 17478 17479 17480 CFLAGS="$xorg_testset_save_CFLAGS" 17481 17482 eval supported=\$$cacheid 17483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17484$as_echo "$supported" >&6; } 17485 if test "$supported" = "yes" ; then 17486 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 17487 found="yes" 17488 fi 17489 fi 17490 17491 17492 17493 17494 17495 17496 17497 17498 17499 17500 17501 17502 17503 17504 17505xorg_testset_save_CFLAGS="$CFLAGS" 17506 17507if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17508 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17510$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17511if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17512 $as_echo_n "(cached) " >&6 17513else 17514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17515/* end confdefs.h. */ 17516int i; 17517_ACEOF 17518if ac_fn_c_try_compile "$LINENO"; then : 17519 xorg_cv_cc_flag_unknown_warning_option=yes 17520else 17521 xorg_cv_cc_flag_unknown_warning_option=no 17522fi 17523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17524fi 17525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17526$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17527 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17528 CFLAGS="$xorg_testset_save_CFLAGS" 17529fi 17530 17531if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17532 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17533 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17534 fi 17535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17537$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17538if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17539 $as_echo_n "(cached) " >&6 17540else 17541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17542/* end confdefs.h. */ 17543int i; 17544_ACEOF 17545if ac_fn_c_try_compile "$LINENO"; then : 17546 xorg_cv_cc_flag_unused_command_line_argument=yes 17547else 17548 xorg_cv_cc_flag_unused_command_line_argument=no 17549fi 17550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17551fi 17552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17553$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17554 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17555 CFLAGS="$xorg_testset_save_CFLAGS" 17556fi 17557 17558found="no" 17559 17560 if test $found = "no" ; then 17561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17563 fi 17564 17565 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17567 fi 17568 17569 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17570 17571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 17572$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 17573 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 17574 if eval \${$cacheid+:} false; then : 17575 $as_echo_n "(cached) " >&6 17576else 17577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17578/* end confdefs.h. */ 17579int i; 17580int 17581main () 17582{ 17583 17584 ; 17585 return 0; 17586} 17587_ACEOF 17588if ac_fn_c_try_link "$LINENO"; then : 17589 eval $cacheid=yes 17590else 17591 eval $cacheid=no 17592fi 17593rm -f core conftest.err conftest.$ac_objext \ 17594 conftest$ac_exeext conftest.$ac_ext 17595fi 17596 17597 17598 CFLAGS="$xorg_testset_save_CFLAGS" 17599 17600 eval supported=\$$cacheid 17601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17602$as_echo "$supported" >&6; } 17603 if test "$supported" = "yes" ; then 17604 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17605 found="yes" 17606 fi 17607 fi 17608 17609 17610fi 17611 17612 17613 17614 17615 17616 17617 17618 CWARNFLAGS="$BASE_CFLAGS" 17619 if test "x$GCC" = xyes ; then 17620 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17621 fi 17622 17623 17624 17625 17626 17627 17628 17629 17630# Check whether --enable-strict-compilation was given. 17631if test "${enable_strict_compilation+set}" = set; then : 17632 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17633else 17634 STRICT_COMPILE=no 17635fi 17636 17637 17638 17639 17640 17641 17642STRICT_CFLAGS="" 17643 17644 17645 17646 17647 17648 17649 17650 17651 17652 17653 17654 17655 17656xorg_testset_save_CFLAGS="$CFLAGS" 17657 17658if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17659 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17661$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17662if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17663 $as_echo_n "(cached) " >&6 17664else 17665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17666/* end confdefs.h. */ 17667int i; 17668_ACEOF 17669if ac_fn_c_try_compile "$LINENO"; then : 17670 xorg_cv_cc_flag_unknown_warning_option=yes 17671else 17672 xorg_cv_cc_flag_unknown_warning_option=no 17673fi 17674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17675fi 17676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17677$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17678 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17679 CFLAGS="$xorg_testset_save_CFLAGS" 17680fi 17681 17682if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17684 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17685 fi 17686 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17688$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17689if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17690 $as_echo_n "(cached) " >&6 17691else 17692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17693/* end confdefs.h. */ 17694int i; 17695_ACEOF 17696if ac_fn_c_try_compile "$LINENO"; then : 17697 xorg_cv_cc_flag_unused_command_line_argument=yes 17698else 17699 xorg_cv_cc_flag_unused_command_line_argument=no 17700fi 17701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17702fi 17703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17704$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17705 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17706 CFLAGS="$xorg_testset_save_CFLAGS" 17707fi 17708 17709found="no" 17710 17711 if test $found = "no" ; then 17712 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17713 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17714 fi 17715 17716 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17718 fi 17719 17720 CFLAGS="$CFLAGS -pedantic" 17721 17722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17723$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17724 cacheid=xorg_cv_cc_flag__pedantic 17725 if eval \${$cacheid+:} false; then : 17726 $as_echo_n "(cached) " >&6 17727else 17728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17729/* end confdefs.h. */ 17730int i; 17731int 17732main () 17733{ 17734 17735 ; 17736 return 0; 17737} 17738_ACEOF 17739if ac_fn_c_try_link "$LINENO"; then : 17740 eval $cacheid=yes 17741else 17742 eval $cacheid=no 17743fi 17744rm -f core conftest.err conftest.$ac_objext \ 17745 conftest$ac_exeext conftest.$ac_ext 17746fi 17747 17748 17749 CFLAGS="$xorg_testset_save_CFLAGS" 17750 17751 eval supported=\$$cacheid 17752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17753$as_echo "$supported" >&6; } 17754 if test "$supported" = "yes" ; then 17755 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17756 found="yes" 17757 fi 17758 fi 17759 17760 17761 17762 17763 17764 17765 17766 17767 17768 17769 17770 17771 17772 17773 17774xorg_testset_save_CFLAGS="$CFLAGS" 17775 17776if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17779$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17780if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17781 $as_echo_n "(cached) " >&6 17782else 17783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17784/* end confdefs.h. */ 17785int i; 17786_ACEOF 17787if ac_fn_c_try_compile "$LINENO"; then : 17788 xorg_cv_cc_flag_unknown_warning_option=yes 17789else 17790 xorg_cv_cc_flag_unknown_warning_option=no 17791fi 17792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17793fi 17794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17795$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17796 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17797 CFLAGS="$xorg_testset_save_CFLAGS" 17798fi 17799 17800if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17803 fi 17804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17806$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17807if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17808 $as_echo_n "(cached) " >&6 17809else 17810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17811/* end confdefs.h. */ 17812int i; 17813_ACEOF 17814if ac_fn_c_try_compile "$LINENO"; then : 17815 xorg_cv_cc_flag_unused_command_line_argument=yes 17816else 17817 xorg_cv_cc_flag_unused_command_line_argument=no 17818fi 17819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17820fi 17821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17822$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17823 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17824 CFLAGS="$xorg_testset_save_CFLAGS" 17825fi 17826 17827found="no" 17828 17829 if test $found = "no" ; then 17830 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17832 fi 17833 17834 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17835 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17836 fi 17837 17838 CFLAGS="$CFLAGS -Werror" 17839 17840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 17841$as_echo_n "checking if $CC supports -Werror... " >&6; } 17842 cacheid=xorg_cv_cc_flag__Werror 17843 if eval \${$cacheid+:} false; then : 17844 $as_echo_n "(cached) " >&6 17845else 17846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17847/* end confdefs.h. */ 17848int i; 17849int 17850main () 17851{ 17852 17853 ; 17854 return 0; 17855} 17856_ACEOF 17857if ac_fn_c_try_link "$LINENO"; then : 17858 eval $cacheid=yes 17859else 17860 eval $cacheid=no 17861fi 17862rm -f core conftest.err conftest.$ac_objext \ 17863 conftest$ac_exeext conftest.$ac_ext 17864fi 17865 17866 17867 CFLAGS="$xorg_testset_save_CFLAGS" 17868 17869 eval supported=\$$cacheid 17870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17871$as_echo "$supported" >&6; } 17872 if test "$supported" = "yes" ; then 17873 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17874 found="yes" 17875 fi 17876 fi 17877 17878 if test $found = "no" ; then 17879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17881 fi 17882 17883 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17885 fi 17886 17887 CFLAGS="$CFLAGS -errwarn" 17888 17889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 17890$as_echo_n "checking if $CC supports -errwarn... " >&6; } 17891 cacheid=xorg_cv_cc_flag__errwarn 17892 if eval \${$cacheid+:} false; then : 17893 $as_echo_n "(cached) " >&6 17894else 17895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17896/* end confdefs.h. */ 17897int i; 17898int 17899main () 17900{ 17901 17902 ; 17903 return 0; 17904} 17905_ACEOF 17906if ac_fn_c_try_link "$LINENO"; then : 17907 eval $cacheid=yes 17908else 17909 eval $cacheid=no 17910fi 17911rm -f core conftest.err conftest.$ac_objext \ 17912 conftest$ac_exeext conftest.$ac_ext 17913fi 17914 17915 17916 CFLAGS="$xorg_testset_save_CFLAGS" 17917 17918 eval supported=\$$cacheid 17919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17920$as_echo "$supported" >&6; } 17921 if test "$supported" = "yes" ; then 17922 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17923 found="yes" 17924 fi 17925 fi 17926 17927 17928 17929# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17930# activate it with -Werror, so we add it here explicitly. 17931 17932 17933 17934 17935 17936 17937 17938 17939 17940 17941 17942 17943 17944xorg_testset_save_CFLAGS="$CFLAGS" 17945 17946if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17947 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17949$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17950if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17951 $as_echo_n "(cached) " >&6 17952else 17953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17954/* end confdefs.h. */ 17955int i; 17956_ACEOF 17957if ac_fn_c_try_compile "$LINENO"; then : 17958 xorg_cv_cc_flag_unknown_warning_option=yes 17959else 17960 xorg_cv_cc_flag_unknown_warning_option=no 17961fi 17962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17963fi 17964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17965$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17966 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17967 CFLAGS="$xorg_testset_save_CFLAGS" 17968fi 17969 17970if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17971 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17972 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17973 fi 17974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17976$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17977if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17978 $as_echo_n "(cached) " >&6 17979else 17980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17981/* end confdefs.h. */ 17982int i; 17983_ACEOF 17984if ac_fn_c_try_compile "$LINENO"; then : 17985 xorg_cv_cc_flag_unused_command_line_argument=yes 17986else 17987 xorg_cv_cc_flag_unused_command_line_argument=no 17988fi 17989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17990fi 17991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17992$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17993 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17994 CFLAGS="$xorg_testset_save_CFLAGS" 17995fi 17996 17997found="no" 17998 17999 if test $found = "no" ; then 18000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18002 fi 18003 18004 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18006 fi 18007 18008 CFLAGS="$CFLAGS -Werror=attributes" 18009 18010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 18011$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 18012 cacheid=xorg_cv_cc_flag__Werror_attributes 18013 if eval \${$cacheid+:} false; then : 18014 $as_echo_n "(cached) " >&6 18015else 18016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18017/* end confdefs.h. */ 18018int i; 18019int 18020main () 18021{ 18022 18023 ; 18024 return 0; 18025} 18026_ACEOF 18027if ac_fn_c_try_link "$LINENO"; then : 18028 eval $cacheid=yes 18029else 18030 eval $cacheid=no 18031fi 18032rm -f core conftest.err conftest.$ac_objext \ 18033 conftest$ac_exeext conftest.$ac_ext 18034fi 18035 18036 18037 CFLAGS="$xorg_testset_save_CFLAGS" 18038 18039 eval supported=\$$cacheid 18040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18041$as_echo "$supported" >&6; } 18042 if test "$supported" = "yes" ; then 18043 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 18044 found="yes" 18045 fi 18046 fi 18047 18048 18049 18050if test "x$STRICT_COMPILE" = "xyes"; then 18051 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 18052 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 18053fi 18054 18055 18056 18057 18058 18059 18060cat >>confdefs.h <<_ACEOF 18061#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 18062_ACEOF 18063 18064 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 18065 if test "x$PVM" = "x"; then 18066 PVM="0" 18067 fi 18068 18069cat >>confdefs.h <<_ACEOF 18070#define PACKAGE_VERSION_MINOR $PVM 18071_ACEOF 18072 18073 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 18074 if test "x$PVP" = "x"; then 18075 PVP="0" 18076 fi 18077 18078cat >>confdefs.h <<_ACEOF 18079#define PACKAGE_VERSION_PATCHLEVEL $PVP 18080_ACEOF 18081 18082 18083 18084CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 18085mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 18086|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 18087echo 'git directory not found: installing possibly empty changelog.' >&2)" 18088 18089 18090 18091 18092macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 18093INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 18094mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 18095|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 18096echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 18097 18098 18099 18100 18101 18102 18103if test x$APP_MAN_SUFFIX = x ; then 18104 APP_MAN_SUFFIX=1 18105fi 18106if test x$APP_MAN_DIR = x ; then 18107 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 18108fi 18109 18110if test x$LIB_MAN_SUFFIX = x ; then 18111 LIB_MAN_SUFFIX=3 18112fi 18113if test x$LIB_MAN_DIR = x ; then 18114 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 18115fi 18116 18117if test x$FILE_MAN_SUFFIX = x ; then 18118 case $host_os in 18119 solaris*) FILE_MAN_SUFFIX=4 ;; 18120 *) FILE_MAN_SUFFIX=5 ;; 18121 esac 18122fi 18123if test x$FILE_MAN_DIR = x ; then 18124 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 18125fi 18126 18127if test x$MISC_MAN_SUFFIX = x ; then 18128 case $host_os in 18129 solaris*) MISC_MAN_SUFFIX=5 ;; 18130 *) MISC_MAN_SUFFIX=7 ;; 18131 esac 18132fi 18133if test x$MISC_MAN_DIR = x ; then 18134 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 18135fi 18136 18137if test x$DRIVER_MAN_SUFFIX = x ; then 18138 case $host_os in 18139 solaris*) DRIVER_MAN_SUFFIX=7 ;; 18140 *) DRIVER_MAN_SUFFIX=4 ;; 18141 esac 18142fi 18143if test x$DRIVER_MAN_DIR = x ; then 18144 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 18145fi 18146 18147if test x$ADMIN_MAN_SUFFIX = x ; then 18148 case $host_os in 18149 solaris*) ADMIN_MAN_SUFFIX=1m ;; 18150 *) ADMIN_MAN_SUFFIX=8 ;; 18151 esac 18152fi 18153if test x$ADMIN_MAN_DIR = x ; then 18154 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 18155fi 18156 18157 18158 18159 18160 18161 18162 18163 18164 18165 18166 18167 18168 18169 18170 18171XORG_MAN_PAGE="X Version 11" 18172 18173MAN_SUBSTS="\ 18174 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18175 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18176 -e 's|__xservername__|Xorg|g' \ 18177 -e 's|__xconfigfile__|xorg.conf|g' \ 18178 -e 's|__projectroot__|\$(prefix)|g' \ 18179 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 18180 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 18181 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 18182 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 18183 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 18184 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 18185 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 18186 18187 18188 18189# Check whether --enable-silent-rules was given. 18190if test "${enable_silent_rules+set}" = set; then : 18191 enableval=$enable_silent_rules; 18192fi 18193 18194case $enable_silent_rules in # ((( 18195 yes) AM_DEFAULT_VERBOSITY=0;; 18196 no) AM_DEFAULT_VERBOSITY=1;; 18197 *) AM_DEFAULT_VERBOSITY=0;; 18198esac 18199am_make=${MAKE-make} 18200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 18201$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 18202if ${am_cv_make_support_nested_variables+:} false; then : 18203 $as_echo_n "(cached) " >&6 18204else 18205 if $as_echo 'TRUE=$(BAR$(V)) 18206BAR0=false 18207BAR1=true 18208V=1 18209am__doit: 18210 @$(TRUE) 18211.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 18212 am_cv_make_support_nested_variables=yes 18213else 18214 am_cv_make_support_nested_variables=no 18215fi 18216fi 18217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 18218$as_echo "$am_cv_make_support_nested_variables" >&6; } 18219if test $am_cv_make_support_nested_variables = yes; then 18220 AM_V='$(V)' 18221 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 18222else 18223 AM_V=$AM_DEFAULT_VERBOSITY 18224 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 18225fi 18226AM_BACKSLASH='\' 18227 18228 18229 18230 18231# Check whether --enable-specs was given. 18232if test "${enable_specs+set}" = set; then : 18233 enableval=$enable_specs; build_specs=$enableval 18234else 18235 build_specs=yes 18236fi 18237 18238 18239 if test x$build_specs = xyes; then 18240 ENABLE_SPECS_TRUE= 18241 ENABLE_SPECS_FALSE='#' 18242else 18243 ENABLE_SPECS_TRUE='#' 18244 ENABLE_SPECS_FALSE= 18245fi 18246 18247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5 18248$as_echo_n "checking whether to build functional specifications... " >&6; } 18249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5 18250$as_echo "$build_specs" >&6; } 18251 18252 18253 18254 18255 18256# Check whether --with-xmlto was given. 18257if test "${with_xmlto+set}" = set; then : 18258 withval=$with_xmlto; use_xmlto=$withval 18259else 18260 use_xmlto=auto 18261fi 18262 18263 18264 18265if test "x$use_xmlto" = x"auto"; then 18266 # Extract the first word of "xmlto", so it can be a program name with args. 18267set dummy xmlto; ac_word=$2 18268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18269$as_echo_n "checking for $ac_word... " >&6; } 18270if ${ac_cv_path_XMLTO+:} false; then : 18271 $as_echo_n "(cached) " >&6 18272else 18273 case $XMLTO in 18274 [\\/]* | ?:[\\/]*) 18275 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 18276 ;; 18277 *) 18278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18279for as_dir in $PATH 18280do 18281 IFS=$as_save_IFS 18282 test -z "$as_dir" && as_dir=. 18283 for ac_exec_ext in '' $ac_executable_extensions; do 18284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18285 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 18286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18287 break 2 18288 fi 18289done 18290 done 18291IFS=$as_save_IFS 18292 18293 ;; 18294esac 18295fi 18296XMLTO=$ac_cv_path_XMLTO 18297if test -n "$XMLTO"; then 18298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 18299$as_echo "$XMLTO" >&6; } 18300else 18301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18302$as_echo "no" >&6; } 18303fi 18304 18305 18306 if test "x$XMLTO" = "x"; then 18307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 18308$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 18309 have_xmlto=no 18310 else 18311 have_xmlto=yes 18312 fi 18313elif test "x$use_xmlto" = x"yes" ; then 18314 # Extract the first word of "xmlto", so it can be a program name with args. 18315set dummy xmlto; ac_word=$2 18316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18317$as_echo_n "checking for $ac_word... " >&6; } 18318if ${ac_cv_path_XMLTO+:} false; then : 18319 $as_echo_n "(cached) " >&6 18320else 18321 case $XMLTO in 18322 [\\/]* | ?:[\\/]*) 18323 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 18324 ;; 18325 *) 18326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18327for as_dir in $PATH 18328do 18329 IFS=$as_save_IFS 18330 test -z "$as_dir" && as_dir=. 18331 for ac_exec_ext in '' $ac_executable_extensions; do 18332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18333 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 18334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18335 break 2 18336 fi 18337done 18338 done 18339IFS=$as_save_IFS 18340 18341 ;; 18342esac 18343fi 18344XMLTO=$ac_cv_path_XMLTO 18345if test -n "$XMLTO"; then 18346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 18347$as_echo "$XMLTO" >&6; } 18348else 18349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18350$as_echo "no" >&6; } 18351fi 18352 18353 18354 if test "x$XMLTO" = "x"; then 18355 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 18356 fi 18357 have_xmlto=yes 18358elif test "x$use_xmlto" = x"no" ; then 18359 if test "x$XMLTO" != "x"; then 18360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 18361$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 18362 fi 18363 have_xmlto=no 18364else 18365 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 18366fi 18367 18368# Test for a minimum version of xmlto, if provided. 18369if test "$have_xmlto" = yes; then 18370 # scrape the xmlto version 18371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 18372$as_echo_n "checking the xmlto version... " >&6; } 18373 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 18374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 18375$as_echo "$xmlto_version" >&6; } 18376 as_arg_v1=$xmlto_version 18377as_arg_v2=0.0.22 18378awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 18379case $? in #( 18380 1) : 18381 if test "x$use_xmlto" = xauto; then 18382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 18383$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 18384 have_xmlto=no 18385 else 18386 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 18387 fi ;; #( 18388 0) : 18389 ;; #( 18390 2) : 18391 ;; #( 18392 *) : 18393 ;; 18394esac 18395fi 18396 18397# Test for the ability of xmlto to generate a text target 18398have_xmlto_text=no 18399cat > conftest.xml << "EOF" 18400EOF 18401if test "$have_xmlto" = yes; then : 18402 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 18403 have_xmlto_text=yes 18404else 18405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 18406$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 18407fi 18408fi 18409rm -f conftest.xml 18410 if test $have_xmlto_text = yes; then 18411 HAVE_XMLTO_TEXT_TRUE= 18412 HAVE_XMLTO_TEXT_FALSE='#' 18413else 18414 HAVE_XMLTO_TEXT_TRUE='#' 18415 HAVE_XMLTO_TEXT_FALSE= 18416fi 18417 18418 if test "$have_xmlto" = yes; then 18419 HAVE_XMLTO_TRUE= 18420 HAVE_XMLTO_FALSE='#' 18421else 18422 HAVE_XMLTO_TRUE='#' 18423 HAVE_XMLTO_FALSE= 18424fi 18425 18426 18427 18428 18429 18430 18431# Check whether --with-fop was given. 18432if test "${with_fop+set}" = set; then : 18433 withval=$with_fop; use_fop=$withval 18434else 18435 use_fop=no 18436fi 18437 18438 18439 18440if test "x$use_fop" = x"auto"; then 18441 # Extract the first word of "fop", so it can be a program name with args. 18442set dummy fop; ac_word=$2 18443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18444$as_echo_n "checking for $ac_word... " >&6; } 18445if ${ac_cv_path_FOP+:} false; then : 18446 $as_echo_n "(cached) " >&6 18447else 18448 case $FOP in 18449 [\\/]* | ?:[\\/]*) 18450 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 18451 ;; 18452 *) 18453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18454for as_dir in $PATH 18455do 18456 IFS=$as_save_IFS 18457 test -z "$as_dir" && as_dir=. 18458 for ac_exec_ext in '' $ac_executable_extensions; do 18459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18460 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 18461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18462 break 2 18463 fi 18464done 18465 done 18466IFS=$as_save_IFS 18467 18468 ;; 18469esac 18470fi 18471FOP=$ac_cv_path_FOP 18472if test -n "$FOP"; then 18473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 18474$as_echo "$FOP" >&6; } 18475else 18476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18477$as_echo "no" >&6; } 18478fi 18479 18480 18481 if test "x$FOP" = "x"; then 18482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 18483$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 18484 have_fop=no 18485 else 18486 have_fop=yes 18487 fi 18488elif test "x$use_fop" = x"yes" ; then 18489 # Extract the first word of "fop", so it can be a program name with args. 18490set dummy fop; ac_word=$2 18491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18492$as_echo_n "checking for $ac_word... " >&6; } 18493if ${ac_cv_path_FOP+:} false; then : 18494 $as_echo_n "(cached) " >&6 18495else 18496 case $FOP in 18497 [\\/]* | ?:[\\/]*) 18498 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 18499 ;; 18500 *) 18501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18502for as_dir in $PATH 18503do 18504 IFS=$as_save_IFS 18505 test -z "$as_dir" && as_dir=. 18506 for ac_exec_ext in '' $ac_executable_extensions; do 18507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18508 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 18509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18510 break 2 18511 fi 18512done 18513 done 18514IFS=$as_save_IFS 18515 18516 ;; 18517esac 18518fi 18519FOP=$ac_cv_path_FOP 18520if test -n "$FOP"; then 18521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 18522$as_echo "$FOP" >&6; } 18523else 18524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18525$as_echo "no" >&6; } 18526fi 18527 18528 18529 if test "x$FOP" = "x"; then 18530 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 18531 fi 18532 have_fop=yes 18533elif test "x$use_fop" = x"no" ; then 18534 if test "x$FOP" != "x"; then 18535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 18536$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 18537 fi 18538 have_fop=no 18539else 18540 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 18541fi 18542 18543# Test for a minimum version of fop, if provided. 18544 18545 if test "$have_fop" = yes; then 18546 HAVE_FOP_TRUE= 18547 HAVE_FOP_FALSE='#' 18548else 18549 HAVE_FOP_TRUE='#' 18550 HAVE_FOP_FALSE= 18551fi 18552 18553 18554 18555 18556# Preserves the interface, should it be implemented later 18557 18558 18559 18560# Check whether --with-xsltproc was given. 18561if test "${with_xsltproc+set}" = set; then : 18562 withval=$with_xsltproc; use_xsltproc=$withval 18563else 18564 use_xsltproc=auto 18565fi 18566 18567 18568 18569if test "x$use_xsltproc" = x"auto"; then 18570 # Extract the first word of "xsltproc", so it can be a program name with args. 18571set dummy xsltproc; ac_word=$2 18572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18573$as_echo_n "checking for $ac_word... " >&6; } 18574if ${ac_cv_path_XSLTPROC+:} false; then : 18575 $as_echo_n "(cached) " >&6 18576else 18577 case $XSLTPROC in 18578 [\\/]* | ?:[\\/]*) 18579 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 18580 ;; 18581 *) 18582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18583for as_dir in $PATH 18584do 18585 IFS=$as_save_IFS 18586 test -z "$as_dir" && as_dir=. 18587 for ac_exec_ext in '' $ac_executable_extensions; do 18588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18589 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 18590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18591 break 2 18592 fi 18593done 18594 done 18595IFS=$as_save_IFS 18596 18597 ;; 18598esac 18599fi 18600XSLTPROC=$ac_cv_path_XSLTPROC 18601if test -n "$XSLTPROC"; then 18602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 18603$as_echo "$XSLTPROC" >&6; } 18604else 18605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18606$as_echo "no" >&6; } 18607fi 18608 18609 18610 if test "x$XSLTPROC" = "x"; then 18611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 18612$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 18613 have_xsltproc=no 18614 else 18615 have_xsltproc=yes 18616 fi 18617elif test "x$use_xsltproc" = x"yes" ; then 18618 # Extract the first word of "xsltproc", so it can be a program name with args. 18619set dummy xsltproc; ac_word=$2 18620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18621$as_echo_n "checking for $ac_word... " >&6; } 18622if ${ac_cv_path_XSLTPROC+:} false; then : 18623 $as_echo_n "(cached) " >&6 18624else 18625 case $XSLTPROC in 18626 [\\/]* | ?:[\\/]*) 18627 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 18628 ;; 18629 *) 18630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18631for as_dir in $PATH 18632do 18633 IFS=$as_save_IFS 18634 test -z "$as_dir" && as_dir=. 18635 for ac_exec_ext in '' $ac_executable_extensions; do 18636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18637 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 18638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18639 break 2 18640 fi 18641done 18642 done 18643IFS=$as_save_IFS 18644 18645 ;; 18646esac 18647fi 18648XSLTPROC=$ac_cv_path_XSLTPROC 18649if test -n "$XSLTPROC"; then 18650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 18651$as_echo "$XSLTPROC" >&6; } 18652else 18653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18654$as_echo "no" >&6; } 18655fi 18656 18657 18658 if test "x$XSLTPROC" = "x"; then 18659 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 18660 fi 18661 have_xsltproc=yes 18662elif test "x$use_xsltproc" = x"no" ; then 18663 if test "x$XSLTPROC" != "x"; then 18664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 18665$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 18666 fi 18667 have_xsltproc=no 18668else 18669 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 18670fi 18671 18672 if test "$have_xsltproc" = yes; then 18673 HAVE_XSLTPROC_TRUE= 18674 HAVE_XSLTPROC_FALSE='#' 18675else 18676 HAVE_XSLTPROC_TRUE='#' 18677 HAVE_XSLTPROC_FALSE= 18678fi 18679 18680 18681 18682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.10" >&5 18683$as_echo_n "checking for X.Org SGML entities >= 1.10... " >&6; } 18684XORG_SGML_PATH= 18685if test -n "$PKG_CONFIG" && \ 18686 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.10\""; } >&5 18687 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.10") 2>&5 18688 ac_status=$? 18689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18690 test $ac_status = 0; }; then 18691 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 18692else 18693 : 18694 18695fi 18696 18697# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 18698# the path and the name of the doc stylesheet 18699if test "x$XORG_SGML_PATH" != "x" ; then 18700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 18701$as_echo "$XORG_SGML_PATH" >&6; } 18702 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 18703 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 18704else 18705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18706$as_echo "no" >&6; } 18707fi 18708 18709 18710 18711 18712 if test "x$XSL_STYLESHEET" != "x"; then 18713 HAVE_STYLESHEETS_TRUE= 18714 HAVE_STYLESHEETS_FALSE='#' 18715else 18716 HAVE_STYLESHEETS_TRUE='#' 18717 HAVE_STYLESHEETS_FALSE= 18718fi 18719 18720 18721 18722 18723for ac_prog in cpp 18724do 18725 # Extract the first word of "$ac_prog", so it can be a program name with args. 18726set dummy $ac_prog; ac_word=$2 18727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18728$as_echo_n "checking for $ac_word... " >&6; } 18729if ${ac_cv_path_RAWCPP+:} false; then : 18730 $as_echo_n "(cached) " >&6 18731else 18732 case $RAWCPP in 18733 [\\/]* | ?:[\\/]*) 18734 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path. 18735 ;; 18736 *) 18737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18738as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 18739for as_dir in $as_dummy 18740do 18741 IFS=$as_save_IFS 18742 test -z "$as_dir" && as_dir=. 18743 for ac_exec_ext in '' $ac_executable_extensions; do 18744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18745 ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext" 18746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18747 break 2 18748 fi 18749done 18750 done 18751IFS=$as_save_IFS 18752 18753 ;; 18754esac 18755fi 18756RAWCPP=$ac_cv_path_RAWCPP 18757if test -n "$RAWCPP"; then 18758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5 18759$as_echo "$RAWCPP" >&6; } 18760else 18761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18762$as_echo "no" >&6; } 18763fi 18764 18765 18766 test -n "$RAWCPP" && break 18767done 18768test -n "$RAWCPP" || RAWCPP="${CPP}" 18769 18770 18771# Check for flag to avoid builtin definitions - assumes unix is predefined, 18772# which is not the best choice for supporting other OS'es, but covers most 18773# of the ones we need for now. 18774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5 18775$as_echo_n "checking if $RAWCPP requires -undef... " >&6; } 18776cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18777/* end confdefs.h. */ 18778Does cpp redefine unix ? 18779_ACEOF 18780if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 18781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18782$as_echo "no" >&6; } 18783else 18784 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 18785 RAWCPPFLAGS=-undef 18786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18787$as_echo "yes" >&6; } 18788 # under Cygwin unix is still defined even with -undef 18789 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 18790 RAWCPPFLAGS="-undef -ansi" 18791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5 18792$as_echo "yes, with -ansi" >&6; } 18793 else 18794 as_fn_error $? "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5 18795 fi 18796fi 18797rm -f conftest.$ac_ext 18798 18799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5 18800$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; } 18801cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18802/* end confdefs.h. */ 18803Does cpp preserve "whitespace"? 18804_ACEOF 18805if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 18806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18807$as_echo "no" >&6; } 18808else 18809 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 18810 TRADITIONALCPPFLAGS="-traditional" 18811 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 18812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18813$as_echo "yes" >&6; } 18814 else 18815 as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5 18816 fi 18817fi 18818rm -f conftest.$ac_ext 18819 18820 18821 18822 18823 18824# Preserves the interface, should it be implemented later 18825 18826 18827 18828# Check whether --with-perl was given. 18829if test "${with_perl+set}" = set; then : 18830 withval=$with_perl; use_perl=$withval 18831else 18832 use_perl=auto 18833fi 18834 18835 18836 18837if test "x$use_perl" = x"auto"; then 18838 # Extract the first word of "perl", so it can be a program name with args. 18839set dummy perl; ac_word=$2 18840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18841$as_echo_n "checking for $ac_word... " >&6; } 18842if ${ac_cv_path_PERL+:} false; then : 18843 $as_echo_n "(cached) " >&6 18844else 18845 case $PERL in 18846 [\\/]* | ?:[\\/]*) 18847 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 18848 ;; 18849 *) 18850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18851for as_dir in $PATH 18852do 18853 IFS=$as_save_IFS 18854 test -z "$as_dir" && as_dir=. 18855 for ac_exec_ext in '' $ac_executable_extensions; do 18856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18857 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 18858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18859 break 2 18860 fi 18861done 18862 done 18863IFS=$as_save_IFS 18864 18865 ;; 18866esac 18867fi 18868PERL=$ac_cv_path_PERL 18869if test -n "$PERL"; then 18870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 18871$as_echo "$PERL" >&6; } 18872else 18873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18874$as_echo "no" >&6; } 18875fi 18876 18877 18878 if test "x$PERL" = "x"; then 18879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - cannot extract information and report" >&5 18880$as_echo "$as_me: WARNING: perl not found - cannot extract information and report" >&2;} 18881 have_perl=no 18882 else 18883 have_perl=yes 18884 fi 18885elif test "x$use_perl" = x"yes" ; then 18886 # Extract the first word of "perl", so it can be a program name with args. 18887set dummy perl; ac_word=$2 18888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18889$as_echo_n "checking for $ac_word... " >&6; } 18890if ${ac_cv_path_PERL+:} false; then : 18891 $as_echo_n "(cached) " >&6 18892else 18893 case $PERL in 18894 [\\/]* | ?:[\\/]*) 18895 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 18896 ;; 18897 *) 18898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18899for as_dir in $PATH 18900do 18901 IFS=$as_save_IFS 18902 test -z "$as_dir" && as_dir=. 18903 for ac_exec_ext in '' $ac_executable_extensions; do 18904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18905 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 18906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18907 break 2 18908 fi 18909done 18910 done 18911IFS=$as_save_IFS 18912 18913 ;; 18914esac 18915fi 18916PERL=$ac_cv_path_PERL 18917if test -n "$PERL"; then 18918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 18919$as_echo "$PERL" >&6; } 18920else 18921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18922$as_echo "no" >&6; } 18923fi 18924 18925 18926 if test "x$PERL" = "x"; then 18927 as_fn_error $? "--with-perl=yes specified but perl not found in PATH" "$LINENO" 5 18928 fi 18929 have_perl=yes 18930elif test "x$use_perl" = x"no" ; then 18931 if test "x$PERL" != "x"; then 18932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&5 18933$as_echo "$as_me: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&2;} 18934 fi 18935 have_perl=no 18936else 18937 as_fn_error $? "--with-perl expects 'yes' or 'no'" "$LINENO" 5 18938fi 18939 18940 if test "$have_perl" = yes; then 18941 HAVE_PERL_TRUE= 18942 HAVE_PERL_FALSE='#' 18943else 18944 HAVE_PERL_TRUE='#' 18945 HAVE_PERL_FALSE= 18946fi 18947 18948 18949 18950# Required when PKG_CHECK_MODULES called within an if statement 18951 18952 18953if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 18954 if test -n "$ac_tool_prefix"; then 18955 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 18956set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 18957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18958$as_echo_n "checking for $ac_word... " >&6; } 18959if ${ac_cv_path_PKG_CONFIG+:} false; then : 18960 $as_echo_n "(cached) " >&6 18961else 18962 case $PKG_CONFIG in 18963 [\\/]* | ?:[\\/]*) 18964 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 18965 ;; 18966 *) 18967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18968for as_dir in $PATH 18969do 18970 IFS=$as_save_IFS 18971 test -z "$as_dir" && as_dir=. 18972 for ac_exec_ext in '' $ac_executable_extensions; do 18973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18974 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18976 break 2 18977 fi 18978done 18979 done 18980IFS=$as_save_IFS 18981 18982 ;; 18983esac 18984fi 18985PKG_CONFIG=$ac_cv_path_PKG_CONFIG 18986if test -n "$PKG_CONFIG"; then 18987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 18988$as_echo "$PKG_CONFIG" >&6; } 18989else 18990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18991$as_echo "no" >&6; } 18992fi 18993 18994 18995fi 18996if test -z "$ac_cv_path_PKG_CONFIG"; then 18997 ac_pt_PKG_CONFIG=$PKG_CONFIG 18998 # Extract the first word of "pkg-config", so it can be a program name with args. 18999set dummy pkg-config; ac_word=$2 19000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19001$as_echo_n "checking for $ac_word... " >&6; } 19002if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 19003 $as_echo_n "(cached) " >&6 19004else 19005 case $ac_pt_PKG_CONFIG in 19006 [\\/]* | ?:[\\/]*) 19007 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19008 ;; 19009 *) 19010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19011for as_dir in $PATH 19012do 19013 IFS=$as_save_IFS 19014 test -z "$as_dir" && as_dir=. 19015 for ac_exec_ext in '' $ac_executable_extensions; do 19016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19017 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19019 break 2 19020 fi 19021done 19022 done 19023IFS=$as_save_IFS 19024 19025 ;; 19026esac 19027fi 19028ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19029if test -n "$ac_pt_PKG_CONFIG"; then 19030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 19031$as_echo "$ac_pt_PKG_CONFIG" >&6; } 19032else 19033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19034$as_echo "no" >&6; } 19035fi 19036 19037 if test "x$ac_pt_PKG_CONFIG" = x; then 19038 PKG_CONFIG="" 19039 else 19040 case $cross_compiling:$ac_tool_warned in 19041yes:) 19042{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19043$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19044ac_tool_warned=yes ;; 19045esac 19046 PKG_CONFIG=$ac_pt_PKG_CONFIG 19047 fi 19048else 19049 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19050fi 19051 19052fi 19053if test -n "$PKG_CONFIG"; then 19054 _pkg_min_version=0.9.0 19055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 19056$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 19057 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19059$as_echo "yes" >&6; } 19060 else 19061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19062$as_echo "no" >&6; } 19063 PKG_CONFIG="" 19064 fi 19065 19066fi 19067 19068if test x"$CC_FOR_BUILD" = x; then 19069 if test x"$cross_compiling" = xyes; then 19070 for ac_prog in gcc cc 19071do 19072 # Extract the first word of "$ac_prog", so it can be a program name with args. 19073set dummy $ac_prog; ac_word=$2 19074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19075$as_echo_n "checking for $ac_word... " >&6; } 19076if ${ac_cv_prog_CC_FOR_BUILD+:} false; then : 19077 $as_echo_n "(cached) " >&6 19078else 19079 if test -n "$CC_FOR_BUILD"; then 19080 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 19081else 19082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19083for as_dir in $PATH 19084do 19085 IFS=$as_save_IFS 19086 test -z "$as_dir" && as_dir=. 19087 for ac_exec_ext in '' $ac_executable_extensions; do 19088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19089 ac_cv_prog_CC_FOR_BUILD="$ac_prog" 19090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19091 break 2 19092 fi 19093done 19094 done 19095IFS=$as_save_IFS 19096 19097fi 19098fi 19099CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 19100if test -n "$CC_FOR_BUILD"; then 19101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 19102$as_echo "$CC_FOR_BUILD" >&6; } 19103else 19104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19105$as_echo "no" >&6; } 19106fi 19107 19108 19109 test -n "$CC_FOR_BUILD" && break 19110done 19111 19112 else 19113 CC_FOR_BUILD="$CC" 19114 fi 19115fi 19116 19117 19118if test x"$CPPFLAGS_FOR_BUILD" = x; then 19119 if test ! x"$cross_compiling" = xyes; then 19120 CPPFLAGS_FOR_BUILD=${CPPFLAGS} 19121 fi 19122fi 19123 19124 19125if test x"$CFLAGS_FOR_BUILD" = x; then 19126 if test ! x"$cross_compiling" = xyes; then 19127 CFLAGS_FOR_BUILD=${CFLAGS} 19128 fi 19129fi 19130 19131 19132if test x"$LDFLAGS_FOR_BUILD" = x; then 19133 if test ! x"$cross_compiling" = xyes; then 19134 LDFLAGS_FOR_BUILD=${LDFLAGS} 19135 fi 19136fi 19137 19138 19139# Checks for pkg-config packages 19140 19141# Always required 19142X11_REQUIRES='xproto >= 7.0.17 xextproto xtrans xcb >= 1.1.92' 19143X11_EXTRA_DEPS="xcb >= 1.1.92" 19144 19145 19146 19147if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19148 if test -n "$ac_tool_prefix"; then 19149 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19150set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19152$as_echo_n "checking for $ac_word... " >&6; } 19153if ${ac_cv_path_PKG_CONFIG+:} false; then : 19154 $as_echo_n "(cached) " >&6 19155else 19156 case $PKG_CONFIG in 19157 [\\/]* | ?:[\\/]*) 19158 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19159 ;; 19160 *) 19161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19162for as_dir in $PATH 19163do 19164 IFS=$as_save_IFS 19165 test -z "$as_dir" && as_dir=. 19166 for ac_exec_ext in '' $ac_executable_extensions; do 19167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19168 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19170 break 2 19171 fi 19172done 19173 done 19174IFS=$as_save_IFS 19175 19176 ;; 19177esac 19178fi 19179PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19180if test -n "$PKG_CONFIG"; then 19181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 19182$as_echo "$PKG_CONFIG" >&6; } 19183else 19184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19185$as_echo "no" >&6; } 19186fi 19187 19188 19189fi 19190if test -z "$ac_cv_path_PKG_CONFIG"; then 19191 ac_pt_PKG_CONFIG=$PKG_CONFIG 19192 # Extract the first word of "pkg-config", so it can be a program name with args. 19193set dummy pkg-config; ac_word=$2 19194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19195$as_echo_n "checking for $ac_word... " >&6; } 19196if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 19197 $as_echo_n "(cached) " >&6 19198else 19199 case $ac_pt_PKG_CONFIG in 19200 [\\/]* | ?:[\\/]*) 19201 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19202 ;; 19203 *) 19204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19205for as_dir in $PATH 19206do 19207 IFS=$as_save_IFS 19208 test -z "$as_dir" && as_dir=. 19209 for ac_exec_ext in '' $ac_executable_extensions; do 19210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19211 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19213 break 2 19214 fi 19215done 19216 done 19217IFS=$as_save_IFS 19218 19219 ;; 19220esac 19221fi 19222ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19223if test -n "$ac_pt_PKG_CONFIG"; then 19224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 19225$as_echo "$ac_pt_PKG_CONFIG" >&6; } 19226else 19227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19228$as_echo "no" >&6; } 19229fi 19230 19231 if test "x$ac_pt_PKG_CONFIG" = x; then 19232 PKG_CONFIG="" 19233 else 19234 case $cross_compiling:$ac_tool_warned in 19235yes:) 19236{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19237$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19238ac_tool_warned=yes ;; 19239esac 19240 PKG_CONFIG=$ac_pt_PKG_CONFIG 19241 fi 19242else 19243 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19244fi 19245 19246fi 19247if test -n "$PKG_CONFIG"; then 19248 _pkg_min_version=0.9.0 19249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 19250$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 19251 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19253$as_echo "yes" >&6; } 19254 else 19255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19256$as_echo "no" >&6; } 19257 PKG_CONFIG="" 19258 fi 19259 19260fi 19261 19262 19263 19264# Issue an error if xtrans.m4 was not found and XTRANS_CONNECTION_FLAGS macro 19265# was not expanded, since libX11 with no transport types is rather useless. 19266# 19267# If you're seeing an error here, be sure you installed the lib/xtrans module 19268# first and if it's not in the default location, that you set the ACLOCAL 19269# environment variable to find it, such as: 19270# ACLOCAL="aclocal -I ${PREFIX}/share/aclocal" 19271 19272 19273# Transport selection macro from xtrans.m4 19274 19275 19276 case $host_os in 19277 mingw*) unixdef="no" ;; 19278 *) unixdef="yes" ;; 19279 esac 19280 # Check whether --enable-unix-transport was given. 19281if test "${enable_unix_transport+set}" = set; then : 19282 enableval=$enable_unix_transport; UNIXCONN=$enableval 19283else 19284 UNIXCONN=$unixdef 19285fi 19286 19287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 19288$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; } 19289 if test "$UNIXCONN" = "yes"; then 19290 19291$as_echo "#define UNIXCONN 1" >>confdefs.h 19292 19293 fi 19294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 19295$as_echo "$UNIXCONN" >&6; } 19296 # Check whether --enable-tcp-transport was given. 19297if test "${enable_tcp_transport+set}" = set; then : 19298 enableval=$enable_tcp_transport; TCPCONN=$enableval 19299else 19300 TCPCONN=yes 19301fi 19302 19303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 19304$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; } 19305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 19306$as_echo "$TCPCONN" >&6; } 19307 if test "$TCPCONN" = "yes"; then 19308 19309$as_echo "#define TCPCONN 1" >>confdefs.h 19310 19311 19312 # SVR4 hides these in libraries other than libc 19313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 19314$as_echo_n "checking for library containing socket... " >&6; } 19315if ${ac_cv_search_socket+:} false; then : 19316 $as_echo_n "(cached) " >&6 19317else 19318 ac_func_search_save_LIBS=$LIBS 19319cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19320/* end confdefs.h. */ 19321 19322/* Override any GCC internal prototype to avoid an error. 19323 Use char because int might match the return type of a GCC 19324 builtin and then its argument prototype would still apply. */ 19325#ifdef __cplusplus 19326extern "C" 19327#endif 19328char socket (); 19329int 19330main () 19331{ 19332return socket (); 19333 ; 19334 return 0; 19335} 19336_ACEOF 19337for ac_lib in '' socket; do 19338 if test -z "$ac_lib"; then 19339 ac_res="none required" 19340 else 19341 ac_res=-l$ac_lib 19342 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19343 fi 19344 if ac_fn_c_try_link "$LINENO"; then : 19345 ac_cv_search_socket=$ac_res 19346fi 19347rm -f core conftest.err conftest.$ac_objext \ 19348 conftest$ac_exeext 19349 if ${ac_cv_search_socket+:} false; then : 19350 break 19351fi 19352done 19353if ${ac_cv_search_socket+:} false; then : 19354 19355else 19356 ac_cv_search_socket=no 19357fi 19358rm conftest.$ac_ext 19359LIBS=$ac_func_search_save_LIBS 19360fi 19361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 19362$as_echo "$ac_cv_search_socket" >&6; } 19363ac_res=$ac_cv_search_socket 19364if test "$ac_res" != no; then : 19365 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19366 19367fi 19368 19369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 19370$as_echo_n "checking for library containing gethostbyname... " >&6; } 19371if ${ac_cv_search_gethostbyname+:} false; then : 19372 $as_echo_n "(cached) " >&6 19373else 19374 ac_func_search_save_LIBS=$LIBS 19375cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19376/* end confdefs.h. */ 19377 19378/* Override any GCC internal prototype to avoid an error. 19379 Use char because int might match the return type of a GCC 19380 builtin and then its argument prototype would still apply. */ 19381#ifdef __cplusplus 19382extern "C" 19383#endif 19384char gethostbyname (); 19385int 19386main () 19387{ 19388return gethostbyname (); 19389 ; 19390 return 0; 19391} 19392_ACEOF 19393for ac_lib in '' nsl; do 19394 if test -z "$ac_lib"; then 19395 ac_res="none required" 19396 else 19397 ac_res=-l$ac_lib 19398 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19399 fi 19400 if ac_fn_c_try_link "$LINENO"; then : 19401 ac_cv_search_gethostbyname=$ac_res 19402fi 19403rm -f core conftest.err conftest.$ac_objext \ 19404 conftest$ac_exeext 19405 if ${ac_cv_search_gethostbyname+:} false; then : 19406 break 19407fi 19408done 19409if ${ac_cv_search_gethostbyname+:} false; then : 19410 19411else 19412 ac_cv_search_gethostbyname=no 19413fi 19414rm conftest.$ac_ext 19415LIBS=$ac_func_search_save_LIBS 19416fi 19417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 19418$as_echo "$ac_cv_search_gethostbyname" >&6; } 19419ac_res=$ac_cv_search_gethostbyname 19420if test "$ac_res" != no; then : 19421 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19422 19423fi 19424 19425 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 19426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 19427$as_echo_n "checking for main in -lws2_32... " >&6; } 19428if ${ac_cv_lib_ws2_32_main+:} false; then : 19429 $as_echo_n "(cached) " >&6 19430else 19431 ac_check_lib_save_LIBS=$LIBS 19432LIBS="-lws2_32 $LIBS" 19433cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19434/* end confdefs.h. */ 19435 19436 19437int 19438main () 19439{ 19440return main (); 19441 ; 19442 return 0; 19443} 19444_ACEOF 19445if ac_fn_c_try_link "$LINENO"; then : 19446 ac_cv_lib_ws2_32_main=yes 19447else 19448 ac_cv_lib_ws2_32_main=no 19449fi 19450rm -f core conftest.err conftest.$ac_objext \ 19451 conftest$ac_exeext conftest.$ac_ext 19452LIBS=$ac_check_lib_save_LIBS 19453fi 19454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 19455$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 19456if test "x$ac_cv_lib_ws2_32_main" = xyes; then : 19457 cat >>confdefs.h <<_ACEOF 19458#define HAVE_LIBWS2_32 1 19459_ACEOF 19460 19461 LIBS="-lws2_32 $LIBS" 19462 19463fi 19464 19465 fi 19466 19467 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 19468 # Check whether --enable-ipv6 was given. 19469if test "${enable_ipv6+set}" = set; then : 19470 enableval=$enable_ipv6; IPV6CONN=$enableval 19471else 19472 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 19473if test "x$ac_cv_func_getaddrinfo" = xyes; then : 19474 IPV6CONN=yes 19475else 19476 IPV6CONN=no 19477fi 19478 19479fi 19480 19481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 19482$as_echo_n "checking if IPv6 support should be built... " >&6; } 19483 if test "$IPV6CONN" = "yes"; then 19484 19485$as_echo "#define IPv6 1" >>confdefs.h 19486 19487 fi 19488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 19489$as_echo "$IPV6CONN" >&6; } 19490 19491 # 4.3BSD-Reno added a new member to struct sockaddr_in 19492 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 19493#include <sys/types.h> 19494#include <sys/socket.h> 19495#include <netinet/in.h> 19496 19497" 19498if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : 19499 19500$as_echo "#define BSD44SOCKETS 1" >>confdefs.h 19501 19502fi 19503 19504 19505 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 19506 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 19507$ac_includes_default 19508#include <sys/socket.h> 19509" 19510if test "x$ac_cv_type_socklen_t" = xyes; then : 19511 19512cat >>confdefs.h <<_ACEOF 19513#define HAVE_SOCKLEN_T 1 19514_ACEOF 19515 19516 19517fi 19518 19519 19520 # XPG4v2/UNIX95 added msg_control - check to see if we need to define 19521 # _XOPEN_SOURCE to get it (such as on Solaris) 19522 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 19523$ac_includes_default 19524#include <sys/socket.h> 19525 19526" 19527if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 19528 19529fi 19530 19531 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03 19532 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 19533 unset ac_cv_member_struct_msghdr_msg_control 19534 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5 19535$as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;} 19536 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 19537#define _XOPEN_SOURCE 600 19538$ac_includes_default 19539#include <sys/socket.h> 19540 19541" 19542if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 19543 19544$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h 19545 19546 19547fi 19548 19549 fi 19550 # If that didn't work, fall back to XPG5/UNIX98 with C89 19551 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 19552 unset ac_cv_member_struct_msghdr_msg_control 19553 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5 19554$as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;} 19555 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 19556#define _XOPEN_SOURCE 500 19557$ac_includes_default 19558#include <sys/socket.h> 19559 19560" 19561if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 19562 19563$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h 19564 19565 19566fi 19567 19568 fi 19569 19570 19571 19572 fi 19573 case $host_os in 19574 solaris*|sco*|sysv4*) localdef="yes" ;; 19575 *) localdef="no" ;; 19576 esac 19577 # Check whether --enable-local-transport was given. 19578if test "${enable_local_transport+set}" = set; then : 19579 enableval=$enable_local_transport; LOCALCONN=$enableval 19580else 19581 LOCALCONN=$localdef 19582fi 19583 19584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 19585$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; } 19586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 19587$as_echo "$LOCALCONN" >&6; } 19588 if test "$LOCALCONN" = "yes"; then 19589 19590$as_echo "#define LOCALCONN 1" >>confdefs.h 19591 19592 fi 19593 19594 19595 19596# Secure RPC detection macro from xtrans.m4 19597 19598 # Check whether --enable-secure-rpc was given. 19599if test "${enable_secure_rpc+set}" = set; then : 19600 enableval=$enable_secure_rpc; SECURE_RPC=$enableval 19601else 19602 SECURE_RPC="try" 19603fi 19604 19605 19606 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then 19607 FOUND_SECURE_RPC="no" 19608 for ac_func in authdes_seccreate authdes_create 19609do : 19610 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19611ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19612if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19613 cat >>confdefs.h <<_ACEOF 19614#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19615_ACEOF 19616 FOUND_SECURE_RPC="yes" 19617fi 19618done 19619 19620 if test "x$FOUND_SECURE_RPC" = "xno" ; then 19621 if test "x$SECURE_RPC" = "xyes" ; then 19622 as_fn_error $? "Secure RPC requested, but required functions not found" "$LINENO" 5 19623 fi 19624 SECURE_RPC="no" 19625 else 19626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5 19627$as_echo_n "checking for library containing getsecretkey... " >&6; } 19628if ${ac_cv_search_getsecretkey+:} false; then : 19629 $as_echo_n "(cached) " >&6 19630else 19631 ac_func_search_save_LIBS=$LIBS 19632cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19633/* end confdefs.h. */ 19634 19635/* Override any GCC internal prototype to avoid an error. 19636 Use char because int might match the return type of a GCC 19637 builtin and then its argument prototype would still apply. */ 19638#ifdef __cplusplus 19639extern "C" 19640#endif 19641char getsecretkey (); 19642int 19643main () 19644{ 19645return getsecretkey (); 19646 ; 19647 return 0; 19648} 19649_ACEOF 19650for ac_lib in '' rpcsvc; do 19651 if test -z "$ac_lib"; then 19652 ac_res="none required" 19653 else 19654 ac_res=-l$ac_lib 19655 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19656 fi 19657 if ac_fn_c_try_link "$LINENO"; then : 19658 ac_cv_search_getsecretkey=$ac_res 19659fi 19660rm -f core conftest.err conftest.$ac_objext \ 19661 conftest$ac_exeext 19662 if ${ac_cv_search_getsecretkey+:} false; then : 19663 break 19664fi 19665done 19666if ${ac_cv_search_getsecretkey+:} false; then : 19667 19668else 19669 ac_cv_search_getsecretkey=no 19670fi 19671rm conftest.$ac_ext 19672LIBS=$ac_func_search_save_LIBS 19673fi 19674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5 19675$as_echo "$ac_cv_search_getsecretkey" >&6; } 19676ac_res=$ac_cv_search_getsecretkey 19677if test "$ac_res" != no; then : 19678 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19679 19680fi 19681 19682 SECURE_RPC="yes" 19683 fi 19684 fi 19685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5 19686$as_echo_n "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; } 19687 if test "x$SECURE_RPC" = "xyes" ; then 19688 19689$as_echo "#define SECURE_RPC 1" >>confdefs.h 19690 19691 fi 19692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5 19693$as_echo "$SECURE_RPC" >&6; } 19694 19695 19696# Preferred order to try transports for local connections 19697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what order to try transports in for local connections" >&5 19698$as_echo_n "checking what order to try transports in for local connections... " >&6; } 19699DEFAULT_LOCAL_TRANS="" 19700case $host_os in 19701 solaris*) 19702 # On Solaris 2.6 through 9, named pipes (LOCAL_TRANS) were 19703 # faster than Unix domain sockets, but on Solaris 10 & later, 19704 # Unix domain sockets are faster now. 19705 if test "$UNIXCONN" = "yes" ; then 19706 if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then 19707 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}," 19708 fi 19709 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}UNIX_TRANS" 19710 fi 19711 if test "$LOCALCONN" = "yes" ; then 19712 if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then 19713 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}," 19714 fi 19715 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}LOCAL_TRANS" 19716 fi 19717 if test "$TCPCONN" = "yes" ; then 19718 if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then 19719 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}," 19720 fi 19721 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}TCP_TRANS" 19722 fi 19723 ;; 19724 linux*) 19725 # LOCAL_TRANS is used for abstract sockets. 19726 if test "$UNIXCONN" = "yes" ; then 19727 if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then 19728 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}," 19729 fi 19730 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}LOCAL_TRANS,UNIX_TRANS" 19731 fi 19732 if test "$TCPCONN" = "yes" ; then 19733 if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then 19734 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}," 19735 fi 19736 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}TCP_TRANS" 19737 fi 19738 ;; 19739 *) 19740 if test "$LOCALCONN" = "yes" ; then 19741 if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then 19742 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}," 19743 fi 19744 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}LOCAL_TRANS" 19745 fi 19746 if test "$UNIXCONN" = "yes" ; then 19747 if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then 19748 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}," 19749 fi 19750 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}UNIX_TRANS" 19751 fi 19752 if test "$TCPCONN" = "yes" ; then 19753 if test ! "x$DEFAULT_LOCAL_TRANS" = "x" ; then 19754 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}," 19755 fi 19756 DEFAULT_LOCAL_TRANS="${DEFAULT_LOCAL_TRANS}TCP_TRANS" 19757 fi 19758 ;; 19759esac 19760 19761 19762# Check whether --with-local-transport-order was given. 19763if test "${with_local_transport_order+set}" = set; then : 19764 withval=$with_local_transport_order; LOCAL_TRANSPORT_LIST=$withval 19765else 19766 LOCAL_TRANSPORT_LIST=$DEFAULT_LOCAL_TRANS 19767fi 19768 19769 19770cat >>confdefs.h <<_ACEOF 19771#define LOCAL_TRANSPORT_LIST $LOCAL_TRANSPORT_LIST 19772_ACEOF 19773 19774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCAL_TRANSPORT_LIST" >&5 19775$as_echo "$LOCAL_TRANSPORT_LIST" >&6; } 19776 19777# Check for dlopen 19778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if run-time linking is supported" >&5 19779$as_echo_n "checking if run-time linking is supported... " >&6; } 19780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 19781$as_echo_n "checking for library containing dlopen... " >&6; } 19782if ${ac_cv_search_dlopen+:} false; then : 19783 $as_echo_n "(cached) " >&6 19784else 19785 ac_func_search_save_LIBS=$LIBS 19786cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19787/* end confdefs.h. */ 19788 19789/* Override any GCC internal prototype to avoid an error. 19790 Use char because int might match the return type of a GCC 19791 builtin and then its argument prototype would still apply. */ 19792#ifdef __cplusplus 19793extern "C" 19794#endif 19795char dlopen (); 19796int 19797main () 19798{ 19799return dlopen (); 19800 ; 19801 return 0; 19802} 19803_ACEOF 19804for ac_lib in '' dl svld; do 19805 if test -z "$ac_lib"; then 19806 ac_res="none required" 19807 else 19808 ac_res=-l$ac_lib 19809 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19810 fi 19811 if ac_fn_c_try_link "$LINENO"; then : 19812 ac_cv_search_dlopen=$ac_res 19813fi 19814rm -f core conftest.err conftest.$ac_objext \ 19815 conftest$ac_exeext 19816 if ${ac_cv_search_dlopen+:} false; then : 19817 break 19818fi 19819done 19820if ${ac_cv_search_dlopen+:} false; then : 19821 19822else 19823 ac_cv_search_dlopen=no 19824fi 19825rm conftest.$ac_ext 19826LIBS=$ac_func_search_save_LIBS 19827fi 19828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 19829$as_echo "$ac_cv_search_dlopen" >&6; } 19830ac_res=$ac_cv_search_dlopen 19831if test "$ac_res" != no; then : 19832 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19833 19834fi 19835 19836if test "x$ac_cv_search_dlopen" = xno; then 19837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5 19838$as_echo_n "checking for library containing shl_load... " >&6; } 19839if ${ac_cv_search_shl_load+:} false; then : 19840 $as_echo_n "(cached) " >&6 19841else 19842 ac_func_search_save_LIBS=$LIBS 19843cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19844/* end confdefs.h. */ 19845 19846/* Override any GCC internal prototype to avoid an error. 19847 Use char because int might match the return type of a GCC 19848 builtin and then its argument prototype would still apply. */ 19849#ifdef __cplusplus 19850extern "C" 19851#endif 19852char shl_load (); 19853int 19854main () 19855{ 19856return shl_load (); 19857 ; 19858 return 0; 19859} 19860_ACEOF 19861for ac_lib in '' dld; do 19862 if test -z "$ac_lib"; then 19863 ac_res="none required" 19864 else 19865 ac_res=-l$ac_lib 19866 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19867 fi 19868 if ac_fn_c_try_link "$LINENO"; then : 19869 ac_cv_search_shl_load=$ac_res 19870fi 19871rm -f core conftest.err conftest.$ac_objext \ 19872 conftest$ac_exeext 19873 if ${ac_cv_search_shl_load+:} false; then : 19874 break 19875fi 19876done 19877if ${ac_cv_search_shl_load+:} false; then : 19878 19879else 19880 ac_cv_search_shl_load=no 19881fi 19882rm conftest.$ac_ext 19883LIBS=$ac_func_search_save_LIBS 19884fi 19885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5 19886$as_echo "$ac_cv_search_shl_load" >&6; } 19887ac_res=$ac_cv_search_shl_load 19888if test "$ac_res" != no; then : 19889 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19890 19891fi 19892 19893 if test "x$ac_cv_search_shl_load" != xno; then 19894 19895$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 19896 19897 for ac_header in dl.h 19898do : 19899 ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default" 19900if test "x$ac_cv_header_dl_h" = xyes; then : 19901 cat >>confdefs.h <<_ACEOF 19902#define HAVE_DL_H 1 19903_ACEOF 19904 19905fi 19906 19907done 19908 19909 fi 19910else 19911 19912$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 19913 19914 for ac_header in dlfcn.h 19915do : 19916 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 19917if test "x$ac_cv_header_dlfcn_h" = xyes; then : 19918 cat >>confdefs.h <<_ACEOF 19919#define HAVE_DLFCN_H 1 19920_ACEOF 19921 19922fi 19923 19924done 19925 19926fi 19927if test "x$ac_cv_header_dlfcn_h" = xyes -o "x$ac_cv_header_dl_h" = xyes; then 19928 HAVE_LOADABLE_MODULES=yes 19929else 19930 HAVE_LOADABLE_MODULES=no 19931fi 19932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LOADABLE_MODULES" >&5 19933$as_echo "$HAVE_LOADABLE_MODULES" >&6; } 19934 19935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if loadable i18n module support should be enabled" >&5 19936$as_echo_n "checking if loadable i18n module support should be enabled... " >&6; } 19937# Check whether --enable-loadable-i18n was given. 19938if test "${enable_loadable_i18n+set}" = set; then : 19939 enableval=$enable_loadable_i18n; XLIB_LOADABLE_I18N=$enableval 19940else 19941 XLIB_LOADABLE_I18N="no" 19942fi 19943 19944if test x$XLIB_LOADABLE_I18N = xyes; then 19945 if test x$HAVE_LOADABLE_MODULES = xno; then 19946 as_fn_error $? "Loadable module support is required to enable loadable i18n module support" "$LINENO" 5 19947 fi 19948 19949$as_echo "#define USE_DYNAMIC_LC 1" >>confdefs.h 19950 19951 I18N_MODULE_LIBS='${top_builddir}/src/libX11.la' 19952 19953fi 19954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_I18N" >&5 19955$as_echo "$XLIB_LOADABLE_I18N" >&6; } 19956 19957 if test x$XLIB_LOADABLE_I18N = xyes; then 19958 XLIB_LOADABLE_I18N_TRUE= 19959 XLIB_LOADABLE_I18N_FALSE='#' 19960else 19961 XLIB_LOADABLE_I18N_TRUE='#' 19962 XLIB_LOADABLE_I18N_FALSE= 19963fi 19964 19965 19966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if loadable Xcursor library support should be enabled" >&5 19967$as_echo_n "checking if loadable Xcursor library support should be enabled... " >&6; } 19968# Check whether --enable-loadable-xcursor was given. 19969if test "${enable_loadable_xcursor+set}" = set; then : 19970 enableval=$enable_loadable_xcursor; XLIB_LOADABLE_XCURSOR=$enableval 19971else 19972 XLIB_LOADABLE_XCURSOR=$HAVE_LOADABLE_MODULES 19973fi 19974 19975if test x$XLIB_LOADABLE_XCURSOR = xyes; then 19976 19977$as_echo "#define USE_DYNAMIC_XCURSOR 1" >>confdefs.h 19978 19979fi 19980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_XCURSOR" >&5 19981$as_echo "$XLIB_LOADABLE_XCURSOR" >&6; } 19982 19983# Checks for header files. 19984for ac_header in sys/select.h 19985do : 19986 ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" 19987if test "x$ac_cv_header_sys_select_h" = xyes; then : 19988 cat >>confdefs.h <<_ACEOF 19989#define HAVE_SYS_SELECT_H 1 19990_ACEOF 19991 19992fi 19993 19994done 19995 19996 19997# Checks for typedefs, structures, and compiler characteristics. 19998 19999# Checks for library functions. 20000for ac_func in strtol seteuid 20001do : 20002 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20003ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20004if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20005 cat >>confdefs.h <<_ACEOF 20006#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20007_ACEOF 20008 20009fi 20010done 20011 20012# Used in lcFile.c (see also --enable-xlocaledir settings below) 20013XLOCALEDIR_IS_SAFE="no" 20014ac_fn_c_check_decl "$LINENO" "issetugid" "ac_cv_have_decl_issetugid" "$ac_includes_default" 20015if test "x$ac_cv_have_decl_issetugid" = xyes; then : 20016 20017fi 20018 20019ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid" 20020if test "x$ac_cv_func_issetugid" = xyes; then : 20021 20022fi 20023 20024if test "$ac_cv_have_decl_issetugid" = yes && test "$ac_cv_func_issetugid" = yes; then 20025 XLOCALEDIR_IS_SAFE="yes" 20026 20027$as_echo "#define HASSETUGID 1" >>confdefs.h 20028 20029fi 20030ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid" 20031if test "x$ac_cv_func_getresuid" = xyes; then : 20032 XLOCALEDIR_IS_SAFE="yes" 20033 20034$as_echo "#define HASGETRESUID 1" >>confdefs.h 20035 20036fi 20037 20038# Used in Font.c 20039ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 20040if test "x$ac_cv_func_shmat" = xyes; then : 20041 20042$as_echo "#define HAS_SHM 1" >>confdefs.h 20043 20044fi 20045 20046 20047# Checks for system services 20048# AC_PATH_XTRA 20049 20050# arch specific things 20051WCHAR32="1" 20052case $host_os in 20053 os2*) os2="true" ; WCHAR32="0" ;; 20054 *) ;; 20055esac 20056 20057 20058 if test x$os2 = xtrue; then 20059 OS2_TRUE= 20060 OS2_FALSE='#' 20061else 20062 OS2_TRUE='#' 20063 OS2_FALSE= 20064fi 20065 20066 20067 20068# Check whether --with-launchd was given. 20069if test "${with_launchd+set}" = set; then : 20070 withval=$with_launchd; LAUNCHD=$withval 20071else 20072 LAUNCHD=auto 20073fi 20074 20075if test "x$LAUNCHD" = xauto; then 20076 unset LAUNCHD 20077 # Extract the first word of "launchd", so it can be a program name with args. 20078set dummy launchd; ac_word=$2 20079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20080$as_echo_n "checking for $ac_word... " >&6; } 20081if ${ac_cv_prog_LAUNCHD+:} false; then : 20082 $as_echo_n "(cached) " >&6 20083else 20084 if test -n "$LAUNCHD"; then 20085 ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test. 20086else 20087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20088for as_dir in $PATH$PATH_SEPARATOR/sbin 20089do 20090 IFS=$as_save_IFS 20091 test -z "$as_dir" && as_dir=. 20092 for ac_exec_ext in '' $ac_executable_extensions; do 20093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20094 ac_cv_prog_LAUNCHD="yes" 20095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20096 break 2 20097 fi 20098done 20099 done 20100IFS=$as_save_IFS 20101 20102 test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no" 20103fi 20104fi 20105LAUNCHD=$ac_cv_prog_LAUNCHD 20106if test -n "$LAUNCHD"; then 20107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5 20108$as_echo "$LAUNCHD" >&6; } 20109else 20110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20111$as_echo "no" >&6; } 20112fi 20113 20114 20115fi 20116 20117if test "x$LAUNCHD" = xyes ; then 20118 20119$as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h 20120 20121 20122$as_echo "#define TRANS_REOPEN 1" >>confdefs.h 20123 20124fi 20125 20126# Check whether --enable-xthreads was given. 20127if test "${enable_xthreads+set}" = set; then : 20128 enableval=$enable_xthreads; xthreads=$enableval 20129else 20130 xthreads=yes 20131fi 20132 20133 20134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwuid_r in -lc" >&5 20135$as_echo_n "checking for getpwuid_r in -lc... " >&6; } 20136if ${ac_cv_lib_c_getpwuid_r+:} false; then : 20137 $as_echo_n "(cached) " >&6 20138else 20139 ac_check_lib_save_LIBS=$LIBS 20140LIBS="-lc $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 getpwuid_r (); 20151int 20152main () 20153{ 20154return getpwuid_r (); 20155 ; 20156 return 0; 20157} 20158_ACEOF 20159if ac_fn_c_try_link "$LINENO"; then : 20160 ac_cv_lib_c_getpwuid_r=yes 20161else 20162 ac_cv_lib_c_getpwuid_r=no 20163fi 20164rm -f core conftest.err conftest.$ac_objext \ 20165 conftest$ac_exeext conftest.$ac_ext 20166LIBS=$ac_check_lib_save_LIBS 20167fi 20168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpwuid_r" >&5 20169$as_echo "$ac_cv_lib_c_getpwuid_r" >&6; } 20170if test "x$ac_cv_lib_c_getpwuid_r" = xyes; then : 20171 mtsafeapi="yes" 20172else 20173 mtsafeapi="no" 20174fi 20175 20176 20177case x$xthreads in 20178xyes) 20179 20180$as_echo "#define XTHREADS 1" >>confdefs.h 20181 20182 if test x$mtsafeapi = xyes 20183 then 20184 20185$as_echo "#define XUSE_MTSAFE_API 1" >>confdefs.h 20186 20187 fi 20188 ;; 20189*) 20190 ;; 20191esac 20192 20193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lc" >&5 20194$as_echo_n "checking for pthread_self in -lc... " >&6; } 20195if ${ac_cv_lib_c_pthread_self+:} false; then : 20196 $as_echo_n "(cached) " >&6 20197else 20198 ac_check_lib_save_LIBS=$LIBS 20199LIBS="-lc $LIBS" 20200cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20201/* end confdefs.h. */ 20202 20203/* Override any GCC internal prototype to avoid an error. 20204 Use char because int might match the return type of a GCC 20205 builtin and then its argument prototype would still apply. */ 20206#ifdef __cplusplus 20207extern "C" 20208#endif 20209char pthread_self (); 20210int 20211main () 20212{ 20213return pthread_self (); 20214 ; 20215 return 0; 20216} 20217_ACEOF 20218if ac_fn_c_try_link "$LINENO"; then : 20219 ac_cv_lib_c_pthread_self=yes 20220else 20221 ac_cv_lib_c_pthread_self=no 20222fi 20223rm -f core conftest.err conftest.$ac_objext \ 20224 conftest$ac_exeext conftest.$ac_ext 20225LIBS=$ac_check_lib_save_LIBS 20226fi 20227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_self" >&5 20228$as_echo "$ac_cv_lib_c_pthread_self" >&6; } 20229if test "x$ac_cv_lib_c_pthread_self" = xyes; then : 20230 thrstubs="no" 20231else 20232 thrstubs="yes" 20233fi 20234 20235 if test x$thrstubs = xyes; then 20236 THRSTUBS_TRUE= 20237 THRSTUBS_FALSE='#' 20238else 20239 THRSTUBS_TRUE='#' 20240 THRSTUBS_FALSE= 20241fi 20242 20243 20244# XXX incomplete, please fill this in 20245if test x$xthreads = xyes ; then 20246 case $host_os in 20247 linux*|gnu*|k*bsd*-gnu) 20248 XTHREADLIB=-lpthread ;; 20249 netbsd*) 20250 XTHREAD_CFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS" 20251 XTHREADLIB="-lpthread" ;; 20252 freebsd*) 20253 XTHREAD_CFLAGS="-D_THREAD_SAFE" 20254 XTHREADLIB="-pthread" ;; 20255 dragonfly*|openbsd*) 20256 XTHREADLIB="-pthread" ;; 20257 solaris*) 20258 XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;; 20259 esac 20260fi 20261 20262 20263 20264ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 20265if test "x$ac_cv_func_poll" = xyes; then : 20266 20267$as_echo "#define USE_POLL 1" >>confdefs.h 20268 20269fi 20270 20271 20272# 20273# Find keysymdef.h 20274# 20275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking keysym definitions" >&5 20276$as_echo_n "checking keysym definitions... " >&6; } 20277 20278# Check whether --with-keysymdefdir was given. 20279if test "${with_keysymdefdir+set}" = set; then : 20280 withval=$with_keysymdefdir; KEYSYMDEFDIR=$withval 20281else 20282 KEYSYMDEFDIR=`$PKG_CONFIG --variable=includedir xproto`/X11 20283fi 20284 20285 20286if test ! -d "$KEYSYMDEFDIR"; then 20287 as_fn_error $? "$KEYSYMDEFDIR doesn't exist or isn't a directory" "$LINENO" 5 20288fi 20289 20290FILES="keysymdef.h XF86keysym.h Sunkeysym.h DECkeysym.h HPkeysym.h" 20291for i in $FILES; do 20292 if test -f "$KEYSYMDEFDIR/$i"; then 20293 KEYSYMDEFS="$KEYSYMDEFS $KEYSYMDEFDIR/$i" 20294 elif test "x$i" = "xkeysymdef.h"; then 20295 as_fn_error $? "Cannot find keysymdef.h" "$LINENO" 5 20296 fi 20297done 20298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $KEYSYMDEFS" >&5 20299$as_echo "$KEYSYMDEFS" >&6; } 20300 20301 20302# Check whether --enable-xcms was given. 20303if test "${enable_xcms+set}" = set; then : 20304 enableval=$enable_xcms; XCMS=$enableval 20305else 20306 XCMS=yes 20307fi 20308 20309 if test x$XCMS = xyes ; then 20310 XCMS_TRUE= 20311 XCMS_FALSE='#' 20312else 20313 XCMS_TRUE='#' 20314 XCMS_FALSE= 20315fi 20316 20317if test x"$XCMS" = "xyes"; then 20318 20319$as_echo "#define XCMS 1" >>confdefs.h 20320 20321fi 20322 20323# Check whether --enable-xlocale was given. 20324if test "${enable_xlocale+set}" = set; then : 20325 enableval=$enable_xlocale; XLOCALE=$enableval 20326else 20327 XLOCALE=yes 20328fi 20329 20330 20331 if test x$XLOCALE = xyes ; then 20332 XLOCALE_TRUE= 20333 XLOCALE_FALSE='#' 20334else 20335 XLOCALE_TRUE='#' 20336 XLOCALE_FALSE= 20337fi 20338 20339if test x"$XLOCALE" = "xyes"; then 20340 20341$as_echo "#define XLOCALE 1" >>confdefs.h 20342 20343fi 20344 20345# This disables XLOCALEDIR. Set it if you're using BuildLoadableXlibI18n, 20346# don't have either issetugid() or getresuid(), and you need to protect 20347# clients that are setgid or setuid to an id other than 0. 20348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XLOCALEDIR support should be enabled" >&5 20349$as_echo_n "checking if XLOCALEDIR support should be enabled... " >&6; } 20350# Check whether --enable-xlocaledir was given. 20351if test "${enable_xlocaledir+set}" = set; then : 20352 enableval=$enable_xlocaledir; ENABLE_XLOCALEDIR=$enableval 20353else 20354 ENABLE_XLOCALEDIR=$XLOCALEDIR_IS_SAFE 20355fi 20356 20357if test "x$ENABLE_XLOCALEDIR" = "xno"; then 20358 20359$as_echo "#define NO_XLOCALEDIR 1" >>confdefs.h 20360 20361fi 20362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_XLOCALEDIR" >&5 20363$as_echo "$ENABLE_XLOCALEDIR" >&6; } 20364 20365# Check whether --enable-xf86bigfont was given. 20366if test "${enable_xf86bigfont+set}" = set; then : 20367 enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval 20368else 20369 XF86BIGFONT="yes" 20370fi 20371 20372if test "x$XF86BIGFONT" = "xyes"; then 20373 20374pkg_failed=no 20375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIGFONT" >&5 20376$as_echo_n "checking for BIGFONT... " >&6; } 20377 20378if test -n "$BIGFONT_CFLAGS"; then 20379 pkg_cv_BIGFONT_CFLAGS="$BIGFONT_CFLAGS" 20380 elif test -n "$PKG_CONFIG"; then 20381 if test -n "$PKG_CONFIG" && \ 20382 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto >= 1.2.0\""; } >&5 20383 ($PKG_CONFIG --exists --print-errors "xf86bigfontproto >= 1.2.0") 2>&5 20384 ac_status=$? 20385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20386 test $ac_status = 0; }; then 20387 pkg_cv_BIGFONT_CFLAGS=`$PKG_CONFIG --cflags "xf86bigfontproto >= 1.2.0" 2>/dev/null` 20388else 20389 pkg_failed=yes 20390fi 20391 else 20392 pkg_failed=untried 20393fi 20394if test -n "$BIGFONT_LIBS"; then 20395 pkg_cv_BIGFONT_LIBS="$BIGFONT_LIBS" 20396 elif test -n "$PKG_CONFIG"; then 20397 if test -n "$PKG_CONFIG" && \ 20398 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto >= 1.2.0\""; } >&5 20399 ($PKG_CONFIG --exists --print-errors "xf86bigfontproto >= 1.2.0") 2>&5 20400 ac_status=$? 20401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20402 test $ac_status = 0; }; then 20403 pkg_cv_BIGFONT_LIBS=`$PKG_CONFIG --libs "xf86bigfontproto >= 1.2.0" 2>/dev/null` 20404else 20405 pkg_failed=yes 20406fi 20407 else 20408 pkg_failed=untried 20409fi 20410 20411 20412 20413if test $pkg_failed = yes; then 20414 20415if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20416 _pkg_short_errors_supported=yes 20417else 20418 _pkg_short_errors_supported=no 20419fi 20420 if test $_pkg_short_errors_supported = yes; then 20421 BIGFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xf86bigfontproto >= 1.2.0" 2>&1` 20422 else 20423 BIGFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xf86bigfontproto >= 1.2.0" 2>&1` 20424 fi 20425 # Put the nasty error message in config.log where it belongs 20426 echo "$BIGFONT_PKG_ERRORS" >&5 20427 20428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20429$as_echo "no" >&6; } 20430 XF86BIGFONT="no" 20431elif test $pkg_failed = untried; then 20432 XF86BIGFONT="no" 20433else 20434 BIGFONT_CFLAGS=$pkg_cv_BIGFONT_CFLAGS 20435 BIGFONT_LIBS=$pkg_cv_BIGFONT_LIBS 20436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20437$as_echo "yes" >&6; } 20438 20439$as_echo "#define XF86BIGFONT 1" >>confdefs.h 20440 20441fi 20442fi 20443 20444# Check whether --enable-xkb was given. 20445if test "${enable_xkb+set}" = set; then : 20446 enableval=$enable_xkb; XKB=$enableval 20447else 20448 XKB=yes 20449fi 20450 20451 20452 if test x$XKB = xyes ; then 20453 XKB_TRUE= 20454 XKB_FALSE='#' 20455else 20456 XKB_TRUE='#' 20457 XKB_FALSE= 20458fi 20459 20460if test x"$XKB" = "xyes"; then 20461 XKBPROTO_REQUIRES="kbproto" 20462 X11_REQUIRES="${X11_REQUIRES} kbproto inputproto" 20463 20464$as_echo "#define XKB 1" >>confdefs.h 20465 20466else 20467 XKBPROTO_REQUIRES="" 20468fi 20469 20470 20471 20472 20473 20474 for ac_header in $ac_header_list 20475do : 20476 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20477ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 20478" 20479if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20480 cat >>confdefs.h <<_ACEOF 20481#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20482_ACEOF 20483 20484fi 20485 20486done 20487 20488 20489 20490 20491 20492 20493 20494 20495for ac_func in getpagesize 20496do : 20497 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 20498if test "x$ac_cv_func_getpagesize" = xyes; then : 20499 cat >>confdefs.h <<_ACEOF 20500#define HAVE_GETPAGESIZE 1 20501_ACEOF 20502 20503fi 20504done 20505 20506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 20507$as_echo_n "checking for working mmap... " >&6; } 20508if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 20509 $as_echo_n "(cached) " >&6 20510else 20511 if test "$cross_compiling" = yes; then : 20512 ac_cv_func_mmap_fixed_mapped=no 20513else 20514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20515/* end confdefs.h. */ 20516$ac_includes_default 20517/* malloc might have been renamed as rpl_malloc. */ 20518#undef malloc 20519 20520/* Thanks to Mike Haertel and Jim Avera for this test. 20521 Here is a matrix of mmap possibilities: 20522 mmap private not fixed 20523 mmap private fixed at somewhere currently unmapped 20524 mmap private fixed at somewhere already mapped 20525 mmap shared not fixed 20526 mmap shared fixed at somewhere currently unmapped 20527 mmap shared fixed at somewhere already mapped 20528 For private mappings, we should verify that changes cannot be read() 20529 back from the file, nor mmap's back from the file at a different 20530 address. (There have been systems where private was not correctly 20531 implemented like the infamous i386 svr4.0, and systems where the 20532 VM page cache was not coherent with the file system buffer cache 20533 like early versions of FreeBSD and possibly contemporary NetBSD.) 20534 For shared mappings, we should conversely verify that changes get 20535 propagated back to all the places they're supposed to be. 20536 20537 Grep wants private fixed already mapped. 20538 The main things grep needs to know about mmap are: 20539 * does it exist and is it safe to write into the mmap'd area 20540 * how to use it (BSD variants) */ 20541 20542#include <fcntl.h> 20543#include <sys/mman.h> 20544 20545#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 20546char *malloc (); 20547#endif 20548 20549/* This mess was copied from the GNU getpagesize.h. */ 20550#ifndef HAVE_GETPAGESIZE 20551# ifdef _SC_PAGESIZE 20552# define getpagesize() sysconf(_SC_PAGESIZE) 20553# else /* no _SC_PAGESIZE */ 20554# ifdef HAVE_SYS_PARAM_H 20555# include <sys/param.h> 20556# ifdef EXEC_PAGESIZE 20557# define getpagesize() EXEC_PAGESIZE 20558# else /* no EXEC_PAGESIZE */ 20559# ifdef NBPG 20560# define getpagesize() NBPG * CLSIZE 20561# ifndef CLSIZE 20562# define CLSIZE 1 20563# endif /* no CLSIZE */ 20564# else /* no NBPG */ 20565# ifdef NBPC 20566# define getpagesize() NBPC 20567# else /* no NBPC */ 20568# ifdef PAGESIZE 20569# define getpagesize() PAGESIZE 20570# endif /* PAGESIZE */ 20571# endif /* no NBPC */ 20572# endif /* no NBPG */ 20573# endif /* no EXEC_PAGESIZE */ 20574# else /* no HAVE_SYS_PARAM_H */ 20575# define getpagesize() 8192 /* punt totally */ 20576# endif /* no HAVE_SYS_PARAM_H */ 20577# endif /* no _SC_PAGESIZE */ 20578 20579#endif /* no HAVE_GETPAGESIZE */ 20580 20581int 20582main () 20583{ 20584 char *data, *data2, *data3; 20585 const char *cdata2; 20586 int i, pagesize; 20587 int fd, fd2; 20588 20589 pagesize = getpagesize (); 20590 20591 /* First, make a file with some known garbage in it. */ 20592 data = (char *) malloc (pagesize); 20593 if (!data) 20594 return 1; 20595 for (i = 0; i < pagesize; ++i) 20596 *(data + i) = rand (); 20597 umask (0); 20598 fd = creat ("conftest.mmap", 0600); 20599 if (fd < 0) 20600 return 2; 20601 if (write (fd, data, pagesize) != pagesize) 20602 return 3; 20603 close (fd); 20604 20605 /* Next, check that the tail of a page is zero-filled. File must have 20606 non-zero length, otherwise we risk SIGBUS for entire page. */ 20607 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 20608 if (fd2 < 0) 20609 return 4; 20610 cdata2 = ""; 20611 if (write (fd2, cdata2, 1) != 1) 20612 return 5; 20613 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 20614 if (data2 == MAP_FAILED) 20615 return 6; 20616 for (i = 0; i < pagesize; ++i) 20617 if (*(data2 + i)) 20618 return 7; 20619 close (fd2); 20620 if (munmap (data2, pagesize)) 20621 return 8; 20622 20623 /* Next, try to mmap the file at a fixed address which already has 20624 something else allocated at it. If we can, also make sure that 20625 we see the same garbage. */ 20626 fd = open ("conftest.mmap", O_RDWR); 20627 if (fd < 0) 20628 return 9; 20629 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 20630 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 20631 return 10; 20632 for (i = 0; i < pagesize; ++i) 20633 if (*(data + i) != *(data2 + i)) 20634 return 11; 20635 20636 /* Finally, make sure that changes to the mapped area do not 20637 percolate back to the file as seen by read(). (This is a bug on 20638 some variants of i386 svr4.0.) */ 20639 for (i = 0; i < pagesize; ++i) 20640 *(data2 + i) = *(data2 + i) + 1; 20641 data3 = (char *) malloc (pagesize); 20642 if (!data3) 20643 return 12; 20644 if (read (fd, data3, pagesize) != pagesize) 20645 return 13; 20646 for (i = 0; i < pagesize; ++i) 20647 if (*(data + i) != *(data3 + i)) 20648 return 14; 20649 close (fd); 20650 return 0; 20651} 20652_ACEOF 20653if ac_fn_c_try_run "$LINENO"; then : 20654 ac_cv_func_mmap_fixed_mapped=yes 20655else 20656 ac_cv_func_mmap_fixed_mapped=no 20657fi 20658rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20659 conftest.$ac_objext conftest.beam conftest.$ac_ext 20660fi 20661 20662fi 20663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 20664$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 20665if test $ac_cv_func_mmap_fixed_mapped = yes; then 20666 20667$as_echo "#define HAVE_MMAP 1" >>confdefs.h 20668 20669fi 20670rm -f conftest.mmap conftest.txt 20671 20672composecache_default=$ac_cv_func_mmap_fixed_mapped 20673ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo" 20674if test "x$ac_cv_func_nl_langinfo" = xyes; then : 20675 20676else 20677 composecache_default=no 20678fi 20679 20680# Check whether --enable-composecache was given. 20681if test "${enable_composecache+set}" = set; then : 20682 enableval=$enable_composecache; COMPOSECACHE=$enableval 20683else 20684 COMPOSECACHE=$composecache_default 20685fi 20686 20687if test x"$COMPOSECACHE" = "xyes"; then 20688 20689$as_echo "#define COMPOSECACHE 1" >>confdefs.h 20690 20691fi 20692 20693# Allow checking code with lint, sparse, etc. 20694 20695 20696 20697 20698 20699# Check whether --with-lint was given. 20700if test "${with_lint+set}" = set; then : 20701 withval=$with_lint; use_lint=$withval 20702else 20703 use_lint=no 20704fi 20705 20706 20707# Obtain platform specific info like program name and options 20708# The lint program on FreeBSD and NetBSD is different from the one on Solaris 20709case $host_os in 20710 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 20711 lint_name=splint 20712 lint_options="-badflag" 20713 ;; 20714 *freebsd* | *netbsd*) 20715 lint_name=lint 20716 lint_options="-u -b" 20717 ;; 20718 *solaris*) 20719 lint_name=lint 20720 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 20721 ;; 20722esac 20723 20724# Test for the presence of the program (either guessed by the code or spelled out by the user) 20725if test "x$use_lint" = x"yes" ; then 20726 # Extract the first word of "$lint_name", so it can be a program name with args. 20727set dummy $lint_name; ac_word=$2 20728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20729$as_echo_n "checking for $ac_word... " >&6; } 20730if ${ac_cv_path_LINT+:} false; then : 20731 $as_echo_n "(cached) " >&6 20732else 20733 case $LINT in 20734 [\\/]* | ?:[\\/]*) 20735 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 20736 ;; 20737 *) 20738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20739for as_dir in $PATH 20740do 20741 IFS=$as_save_IFS 20742 test -z "$as_dir" && as_dir=. 20743 for ac_exec_ext in '' $ac_executable_extensions; do 20744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20745 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 20746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20747 break 2 20748 fi 20749done 20750 done 20751IFS=$as_save_IFS 20752 20753 ;; 20754esac 20755fi 20756LINT=$ac_cv_path_LINT 20757if test -n "$LINT"; then 20758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 20759$as_echo "$LINT" >&6; } 20760else 20761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20762$as_echo "no" >&6; } 20763fi 20764 20765 20766 if test "x$LINT" = "x"; then 20767 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 20768 fi 20769elif test "x$use_lint" = x"no" ; then 20770 if test "x$LINT" != "x"; then 20771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 20772$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 20773 fi 20774else 20775 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 20776fi 20777 20778# User supplied flags override default flags 20779if test "x$LINT_FLAGS" != "x"; then 20780 lint_options=$LINT_FLAGS 20781fi 20782 20783LINT_FLAGS=$lint_options 20784 20785 if test "x$LINT" != x; then 20786 LINT_TRUE= 20787 LINT_FALSE='#' 20788else 20789 LINT_TRUE='#' 20790 LINT_FALSE= 20791fi 20792 20793 20794 20795 20796 20797# Check whether --enable-lint-library was given. 20798if test "${enable_lint_library+set}" = set; then : 20799 enableval=$enable_lint_library; make_lint_lib=$enableval 20800else 20801 make_lint_lib=no 20802fi 20803 20804 20805if test "x$make_lint_lib" = x"yes" ; then 20806 LINTLIB=llib-lX11.ln 20807 if test "x$LINT" = "x"; then 20808 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5 20809 fi 20810elif test "x$make_lint_lib" != x"no" ; then 20811 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5 20812fi 20813 20814 20815 if test x$make_lint_lib != xno; then 20816 MAKE_LINT_LIB_TRUE= 20817 MAKE_LINT_LIB_FALSE='#' 20818else 20819 MAKE_LINT_LIB_TRUE='#' 20820 MAKE_LINT_LIB_FALSE= 20821fi 20822 20823 20824 20825 20826X11_DATADIR="${datadir}/X11" 20827 20828 prefix_NONE= 20829 exec_prefix_NONE= 20830 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 20831 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 20832 eval ax_define_dir="\"$X11_DATADIR\"" 20833 eval ax_define_dir="\"$ax_define_dir\"" 20834 X11_DATADIR="$ax_define_dir" 20835 20836 20837cat >>confdefs.h <<_ACEOF 20838#define X11_DATADIR "$ax_define_dir" 20839_ACEOF 20840 20841 test "$prefix_NONE" && prefix=NONE 20842 test "$exec_prefix_NONE" && exec_prefix=NONE 20843 20844 20845 20846X11_LIBDIR="${libdir}/X11" 20847 20848 prefix_NONE= 20849 exec_prefix_NONE= 20850 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 20851 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 20852 eval ax_define_dir="\"$X11_LIBDIR\"" 20853 eval ax_define_dir="\"$ax_define_dir\"" 20854 X11_LIBDIR="$ax_define_dir" 20855 20856 20857cat >>confdefs.h <<_ACEOF 20858#define X11_LIBDIR "$ax_define_dir" 20859_ACEOF 20860 20861 test "$prefix_NONE" && prefix=NONE 20862 test "$exec_prefix_NONE" && exec_prefix=NONE 20863 20864 20865 20866 20867pkg_failed=no 20868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5 20869$as_echo_n "checking for X11... " >&6; } 20870 20871if test -n "$X11_CFLAGS"; then 20872 pkg_cv_X11_CFLAGS="$X11_CFLAGS" 20873 elif test -n "$PKG_CONFIG"; then 20874 if test -n "$PKG_CONFIG" && \ 20875 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5 20876 ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5 20877 ac_status=$? 20878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20879 test $ac_status = 0; }; then 20880 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "$X11_REQUIRES" 2>/dev/null` 20881else 20882 pkg_failed=yes 20883fi 20884 else 20885 pkg_failed=untried 20886fi 20887if test -n "$X11_LIBS"; then 20888 pkg_cv_X11_LIBS="$X11_LIBS" 20889 elif test -n "$PKG_CONFIG"; then 20890 if test -n "$PKG_CONFIG" && \ 20891 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5 20892 ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5 20893 ac_status=$? 20894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20895 test $ac_status = 0; }; then 20896 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "$X11_REQUIRES" 2>/dev/null` 20897else 20898 pkg_failed=yes 20899fi 20900 else 20901 pkg_failed=untried 20902fi 20903 20904 20905 20906if test $pkg_failed = yes; then 20907 20908if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20909 _pkg_short_errors_supported=yes 20910else 20911 _pkg_short_errors_supported=no 20912fi 20913 if test $_pkg_short_errors_supported = yes; then 20914 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$X11_REQUIRES" 2>&1` 20915 else 20916 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors "$X11_REQUIRES" 2>&1` 20917 fi 20918 # Put the nasty error message in config.log where it belongs 20919 echo "$X11_PKG_ERRORS" >&5 20920 20921 as_fn_error $? "Package requirements ($X11_REQUIRES) were not met: 20922 20923$X11_PKG_ERRORS 20924 20925Consider adjusting the PKG_CONFIG_PATH environment variable if you 20926installed software in a non-standard prefix. 20927 20928Alternatively, you may set the environment variables X11_CFLAGS 20929and X11_LIBS to avoid the need to call pkg-config. 20930See the pkg-config man page for more details. 20931" "$LINENO" 5 20932elif test $pkg_failed = untried; then 20933 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20934$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20935as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20936is in your PATH or set the PKG_CONFIG environment variable to the full 20937path to pkg-config. 20938 20939Alternatively, you may set the environment variables X11_CFLAGS 20940and X11_LIBS to avoid the need to call pkg-config. 20941See the pkg-config man page for more details. 20942 20943To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20944See \`config.log' for more details" "$LINENO" 5; } 20945else 20946 X11_CFLAGS=$pkg_cv_X11_CFLAGS 20947 X11_LIBS=$pkg_cv_X11_LIBS 20948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20949$as_echo "yes" >&6; } 20950 : 20951fi 20952X11_CFLAGS="$X11_CFLAGS $XTHREAD_CFLAGS" 20953 20954# 20955# Yes, it would be nice to put the locale data in 20956# /usr/share, but the locale stuff includes loadable 20957# libraries which must be located in the same directory 20958# as the other locale data, so for now, everything lives 20959# in ${libdir} 20960# 20961 20962X11_LOCALEDATADIR="${X11_DATADIR}/locale" 20963 20964 prefix_NONE= 20965 exec_prefix_NONE= 20966 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 20967 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 20968 eval ax_define_dir="\"$X11_LOCALEDATADIR\"" 20969 eval ax_define_dir="\"$ax_define_dir\"" 20970 XLOCALEDATADIR="$ax_define_dir" 20971 20972 20973cat >>confdefs.h <<_ACEOF 20974#define XLOCALEDATADIR "$ax_define_dir" 20975_ACEOF 20976 20977 test "$prefix_NONE" && prefix=NONE 20978 test "$exec_prefix_NONE" && exec_prefix=NONE 20979 20980 20981 20982 20983# Check whether --with-locale-lib-dir was given. 20984if test "${with_locale_lib_dir+set}" = set; then : 20985 withval=$with_locale_lib_dir; X11_LOCALELIBDIR="$withval" 20986else 20987 X11_LOCALELIBDIR="${X11_LIBDIR}/locale" 20988fi 20989 20990 20991 prefix_NONE= 20992 exec_prefix_NONE= 20993 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 20994 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 20995 eval ax_define_dir="\"$X11_LOCALELIBDIR\"" 20996 eval ax_define_dir="\"$ax_define_dir\"" 20997 XLOCALELIBDIR="$ax_define_dir" 20998 20999 21000cat >>confdefs.h <<_ACEOF 21001#define XLOCALELIBDIR "$ax_define_dir" 21002_ACEOF 21003 21004 test "$prefix_NONE" && prefix=NONE 21005 test "$exec_prefix_NONE" && exec_prefix=NONE 21006 21007 21008 21009X11_LOCALEDIR="${X11_LOCALEDATADIR}" 21010 21011 prefix_NONE= 21012 exec_prefix_NONE= 21013 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 21014 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 21015 eval ax_define_dir="\"$X11_LOCALEDIR\"" 21016 eval ax_define_dir="\"$ax_define_dir\"" 21017 XLOCALEDIR="$ax_define_dir" 21018 21019 21020cat >>confdefs.h <<_ACEOF 21021#define XLOCALEDIR "$ax_define_dir" 21022_ACEOF 21023 21024 test "$prefix_NONE" && prefix=NONE 21025 test "$exec_prefix_NONE" && exec_prefix=NONE 21026 21027 21028 21029locales="\ 21030 am_ET.UTF-8 armscii-8 C cs_CZ.UTF-8 el_GR.UTF-8 en_US.UTF-8 \ 21031 fi_FI.UTF-8 georgian-academy georgian-ps ibm-cp1133 iscii-dev \ 21032 isiri-3342 iso8859-1 iso8859-10 iso8859-11 iso8859-13 iso8859-14 \ 21033 iso8859-15 iso8859-2 iso8859-3 iso8859-4 iso8859-5 iso8859-6 \ 21034 iso8859-7 iso8859-8 iso8859-9 iso8859-9e ja ja.JIS \ 21035 ja_JP.UTF-8 ja.SJIS km_KH.UTF-8 ko koi8-c koi8-r \ 21036 koi8-u ko_KR.UTF-8 microsoft-cp1251 microsoft-cp1255 \ 21037 microsoft-cp1256 mulelao-1 nokhchi-1 pt_BR.UTF-8 ru_RU.UTF-8 \ 21038 sr_CS.UTF-8 tatar-cyr th_TH th_TH.UTF-8 tscii-0 vi_VN.tcvn \ 21039 vi_VN.viscii zh_CN zh_CN.gb18030 zh_CN.gbk zh_CN.UTF-8 \ 21040 zh_HK.big5 zh_HK.big5hkscs zh_HK.UTF-8 zh_TW zh_TW.big5 \ 21041 zh_TW.UTF-8" 21042 21043 21044XKEYSYMDB="${X11_DATADIR}/XKeysymDB" 21045 21046 prefix_NONE= 21047 exec_prefix_NONE= 21048 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 21049 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 21050 eval ax_define_dir="\"$XKEYSYMDB\"" 21051 eval ax_define_dir="\"$ax_define_dir\"" 21052 XKEYSYMDB="$ax_define_dir" 21053 21054 21055cat >>confdefs.h <<_ACEOF 21056#define XKEYSYMDB "$ax_define_dir" 21057_ACEOF 21058 21059 test "$prefix_NONE" && prefix=NONE 21060 test "$exec_prefix_NONE" && exec_prefix=NONE 21061 21062 21063XERRORDB="${X11_DATADIR}/XErrorDB" 21064 21065 prefix_NONE= 21066 exec_prefix_NONE= 21067 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 21068 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 21069 eval ax_define_dir="\"$XERRORDB\"" 21070 eval ax_define_dir="\"$ax_define_dir\"" 21071 XERRORDB="$ax_define_dir" 21072 21073 21074cat >>confdefs.h <<_ACEOF 21075#define XERRORDB "$ax_define_dir" 21076_ACEOF 21077 21078 test "$prefix_NONE" && prefix=NONE 21079 test "$exec_prefix_NONE" && exec_prefix=NONE 21080 21081 21082 21083# Check whether --enable-malloc0returnsnull was given. 21084if test "${enable_malloc0returnsnull+set}" = set; then : 21085 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 21086else 21087 MALLOC_ZERO_RETURNS_NULL=auto 21088fi 21089 21090 21091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5 21092$as_echo_n "checking whether malloc(0) returns NULL... " >&6; } 21093if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 21094if ${xorg_cv_malloc0_returns_null+:} false; then : 21095 $as_echo_n "(cached) " >&6 21096else 21097 if test "$cross_compiling" = yes; then : 21098 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21099$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21100as_fn_error $? "cannot run test program while cross compiling 21101See \`config.log' for more details" "$LINENO" 5; } 21102else 21103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21104/* end confdefs.h. */ 21105 21106#include <stdlib.h> 21107 21108int 21109main () 21110{ 21111 21112 char *m0, *r0, *c0, *p; 21113 m0 = malloc(0); 21114 p = malloc(10); 21115 r0 = realloc(p,0); 21116 c0 = calloc(0,10); 21117 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1); 21118 21119 ; 21120 return 0; 21121} 21122_ACEOF 21123if ac_fn_c_try_run "$LINENO"; then : 21124 xorg_cv_malloc0_returns_null=yes 21125else 21126 xorg_cv_malloc0_returns_null=no 21127fi 21128rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21129 conftest.$ac_objext conftest.beam conftest.$ac_ext 21130fi 21131 21132fi 21133 21134MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null 21135fi 21136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 21137$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; } 21138 21139if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 21140 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 21141 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 21142 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 21143else 21144 MALLOC_ZERO_CFLAGS="" 21145 XMALLOC_ZERO_CFLAGS="" 21146 XTMALLOC_ZERO_CFLAGS="" 21147fi 21148 21149 21150 21151 21152 21153 21154ac_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" 21155 21156cat >confcache <<\_ACEOF 21157# This file is a shell script that caches the results of configure 21158# tests run on this system so they can be shared between configure 21159# scripts and configure runs, see configure's option --config-cache. 21160# It is not useful on other systems. If it contains results you don't 21161# want to keep, you may remove or edit it. 21162# 21163# config.status only pays attention to the cache file if you give it 21164# the --recheck option to rerun configure. 21165# 21166# `ac_cv_env_foo' variables (set or unset) will be overridden when 21167# loading this file, other *unset* `ac_cv_foo' will be assigned the 21168# following values. 21169 21170_ACEOF 21171 21172# The following way of writing the cache mishandles newlines in values, 21173# but we know of no workaround that is simple, portable, and efficient. 21174# So, we kill variables containing newlines. 21175# Ultrix sh set writes to stderr and can't be redirected directly, 21176# and sets the high bit in the cache file unless we assign to the vars. 21177( 21178 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21179 eval ac_val=\$$ac_var 21180 case $ac_val in #( 21181 *${as_nl}*) 21182 case $ac_var in #( 21183 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 21184$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21185 esac 21186 case $ac_var in #( 21187 _ | IFS | as_nl) ;; #( 21188 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21189 *) { eval $ac_var=; unset $ac_var;} ;; 21190 esac ;; 21191 esac 21192 done 21193 21194 (set) 2>&1 | 21195 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21196 *${as_nl}ac_space=\ *) 21197 # `set' does not quote correctly, so add quotes: double-quote 21198 # substitution turns \\\\ into \\, and sed turns \\ into \. 21199 sed -n \ 21200 "s/'/'\\\\''/g; 21201 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21202 ;; #( 21203 *) 21204 # `set' quotes correctly as required by POSIX, so do not add quotes. 21205 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21206 ;; 21207 esac | 21208 sort 21209) | 21210 sed ' 21211 /^ac_cv_env_/b end 21212 t clear 21213 :clear 21214 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21215 t end 21216 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21217 :end' >>confcache 21218if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21219 if test -w "$cache_file"; then 21220 if test "x$cache_file" != "x/dev/null"; then 21221 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 21222$as_echo "$as_me: updating cache $cache_file" >&6;} 21223 if test ! -f "$cache_file" || test -h "$cache_file"; then 21224 cat confcache >"$cache_file" 21225 else 21226 case $cache_file in #( 21227 */* | ?:*) 21228 mv -f confcache "$cache_file"$$ && 21229 mv -f "$cache_file"$$ "$cache_file" ;; #( 21230 *) 21231 mv -f confcache "$cache_file" ;; 21232 esac 21233 fi 21234 fi 21235 else 21236 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 21237$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21238 fi 21239fi 21240rm -f confcache 21241 21242test "x$prefix" = xNONE && prefix=$ac_default_prefix 21243# Let make expand exec_prefix. 21244test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21245 21246DEFS=-DHAVE_CONFIG_H 21247 21248ac_libobjs= 21249ac_ltlibobjs= 21250U= 21251for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21252 # 1. Remove the extension, and $U if already installed. 21253 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21254 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 21255 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21256 # will be set to the directory where LIBOBJS objects are built. 21257 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21258 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 21259done 21260LIBOBJS=$ac_libobjs 21261 21262LTLIBOBJS=$ac_ltlibobjs 21263 21264 21265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 21266$as_echo_n "checking that generated files are newer than configure... " >&6; } 21267 if test -n "$am_sleep_pid"; then 21268 # Hide warnings about reused PIDs. 21269 wait $am_sleep_pid 2>/dev/null 21270 fi 21271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 21272$as_echo "done" >&6; } 21273if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21274 as_fn_error $? "conditional \"AMDEP\" was never defined. 21275Usually this means the macro was only invoked conditionally." "$LINENO" 5 21276fi 21277if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21278 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 21279Usually this means the macro was only invoked conditionally." "$LINENO" 5 21280fi 21281 if test -n "$EXEEXT"; then 21282 am__EXEEXT_TRUE= 21283 am__EXEEXT_FALSE='#' 21284else 21285 am__EXEEXT_TRUE='#' 21286 am__EXEEXT_FALSE= 21287fi 21288 21289if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then 21290 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined. 21291Usually this means the macro was only invoked conditionally." "$LINENO" 5 21292fi 21293if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 21294 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 21295Usually this means the macro was only invoked conditionally." "$LINENO" 5 21296fi 21297if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 21298 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 21299Usually this means the macro was only invoked conditionally." "$LINENO" 5 21300fi 21301if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 21302 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 21303Usually this means the macro was only invoked conditionally." "$LINENO" 5 21304fi 21305if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 21306 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 21307Usually this means the macro was only invoked conditionally." "$LINENO" 5 21308fi 21309if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 21310 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 21311Usually this means the macro was only invoked conditionally." "$LINENO" 5 21312fi 21313if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then 21314 as_fn_error $? "conditional \"HAVE_PERL\" was never defined. 21315Usually this means the macro was only invoked conditionally." "$LINENO" 5 21316fi 21317if test -z "${XLIB_LOADABLE_I18N_TRUE}" && test -z "${XLIB_LOADABLE_I18N_FALSE}"; then 21318 as_fn_error $? "conditional \"XLIB_LOADABLE_I18N\" was never defined. 21319Usually this means the macro was only invoked conditionally." "$LINENO" 5 21320fi 21321if test -z "${OS2_TRUE}" && test -z "${OS2_FALSE}"; then 21322 as_fn_error $? "conditional \"OS2\" was never defined. 21323Usually this means the macro was only invoked conditionally." "$LINENO" 5 21324fi 21325if test -z "${THRSTUBS_TRUE}" && test -z "${THRSTUBS_FALSE}"; then 21326 as_fn_error $? "conditional \"THRSTUBS\" was never defined. 21327Usually this means the macro was only invoked conditionally." "$LINENO" 5 21328fi 21329if test -z "${XCMS_TRUE}" && test -z "${XCMS_FALSE}"; then 21330 as_fn_error $? "conditional \"XCMS\" was never defined. 21331Usually this means the macro was only invoked conditionally." "$LINENO" 5 21332fi 21333if test -z "${XLOCALE_TRUE}" && test -z "${XLOCALE_FALSE}"; then 21334 as_fn_error $? "conditional \"XLOCALE\" was never defined. 21335Usually this means the macro was only invoked conditionally." "$LINENO" 5 21336fi 21337if test -z "${XKB_TRUE}" && test -z "${XKB_FALSE}"; then 21338 as_fn_error $? "conditional \"XKB\" was never defined. 21339Usually this means the macro was only invoked conditionally." "$LINENO" 5 21340fi 21341if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 21342 as_fn_error $? "conditional \"LINT\" was never defined. 21343Usually this means the macro was only invoked conditionally." "$LINENO" 5 21344fi 21345if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 21346 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined. 21347Usually this means the macro was only invoked conditionally." "$LINENO" 5 21348fi 21349 21350: "${CONFIG_STATUS=./config.status}" 21351ac_write_fail=0 21352ac_clean_files_save=$ac_clean_files 21353ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21354{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 21355$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 21356as_write_fail=0 21357cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 21358#! $SHELL 21359# Generated by $as_me. 21360# Run this file to recreate the current configuration. 21361# Compiler output produced by configure, useful for debugging 21362# configure, is in config.log if it exists. 21363 21364debug=false 21365ac_cs_recheck=false 21366ac_cs_silent=false 21367 21368SHELL=\${CONFIG_SHELL-$SHELL} 21369export SHELL 21370_ASEOF 21371cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 21372## -------------------- ## 21373## M4sh Initialization. ## 21374## -------------------- ## 21375 21376# Be more Bourne compatible 21377DUALCASE=1; export DUALCASE # for MKS sh 21378if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 21379 emulate sh 21380 NULLCMD=: 21381 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21382 # is contrary to our usage. Disable this feature. 21383 alias -g '${1+"$@"}'='"$@"' 21384 setopt NO_GLOB_SUBST 21385else 21386 case `(set -o) 2>/dev/null` in #( 21387 *posix*) : 21388 set -o posix ;; #( 21389 *) : 21390 ;; 21391esac 21392fi 21393 21394 21395as_nl=' 21396' 21397export as_nl 21398# Printing a long string crashes Solaris 7 /usr/bin/printf. 21399as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 21400as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 21401as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 21402# Prefer a ksh shell builtin over an external printf program on Solaris, 21403# but without wasting forks for bash or zsh. 21404if test -z "$BASH_VERSION$ZSH_VERSION" \ 21405 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 21406 as_echo='print -r --' 21407 as_echo_n='print -rn --' 21408elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 21409 as_echo='printf %s\n' 21410 as_echo_n='printf %s' 21411else 21412 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 21413 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 21414 as_echo_n='/usr/ucb/echo -n' 21415 else 21416 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 21417 as_echo_n_body='eval 21418 arg=$1; 21419 case $arg in #( 21420 *"$as_nl"*) 21421 expr "X$arg" : "X\\(.*\\)$as_nl"; 21422 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 21423 esac; 21424 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 21425 ' 21426 export as_echo_n_body 21427 as_echo_n='sh -c $as_echo_n_body as_echo' 21428 fi 21429 export as_echo_body 21430 as_echo='sh -c $as_echo_body as_echo' 21431fi 21432 21433# The user is always right. 21434if test "${PATH_SEPARATOR+set}" != set; then 21435 PATH_SEPARATOR=: 21436 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 21437 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 21438 PATH_SEPARATOR=';' 21439 } 21440fi 21441 21442 21443# IFS 21444# We need space, tab and new line, in precisely that order. Quoting is 21445# there to prevent editors from complaining about space-tab. 21446# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21447# splitting by setting IFS to empty value.) 21448IFS=" "" $as_nl" 21449 21450# Find who we are. Look in the path if we contain no directory separator. 21451as_myself= 21452case $0 in #(( 21453 *[\\/]* ) as_myself=$0 ;; 21454 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21455for as_dir in $PATH 21456do 21457 IFS=$as_save_IFS 21458 test -z "$as_dir" && as_dir=. 21459 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21460 done 21461IFS=$as_save_IFS 21462 21463 ;; 21464esac 21465# We did not find ourselves, most probably we were run as `sh COMMAND' 21466# in which case we are not to be found in the path. 21467if test "x$as_myself" = x; then 21468 as_myself=$0 21469fi 21470if test ! -f "$as_myself"; then 21471 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21472 exit 1 21473fi 21474 21475# Unset variables that we do not need and which cause bugs (e.g. in 21476# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 21477# suppresses any "Segmentation fault" message there. '((' could 21478# trigger a bug in pdksh 5.2.14. 21479for as_var in BASH_ENV ENV MAIL MAILPATH 21480do eval test x\${$as_var+set} = xset \ 21481 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 21482done 21483PS1='$ ' 21484PS2='> ' 21485PS4='+ ' 21486 21487# NLS nuisances. 21488LC_ALL=C 21489export LC_ALL 21490LANGUAGE=C 21491export LANGUAGE 21492 21493# CDPATH. 21494(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21495 21496 21497# as_fn_error STATUS ERROR [LINENO LOG_FD] 21498# ---------------------------------------- 21499# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 21500# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 21501# script with STATUS, using 1 if that was 0. 21502as_fn_error () 21503{ 21504 as_status=$1; test $as_status -eq 0 && as_status=1 21505 if test "$4"; then 21506 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 21507 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 21508 fi 21509 $as_echo "$as_me: error: $2" >&2 21510 as_fn_exit $as_status 21511} # as_fn_error 21512 21513 21514# as_fn_set_status STATUS 21515# ----------------------- 21516# Set $? to STATUS, without forking. 21517as_fn_set_status () 21518{ 21519 return $1 21520} # as_fn_set_status 21521 21522# as_fn_exit STATUS 21523# ----------------- 21524# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 21525as_fn_exit () 21526{ 21527 set +e 21528 as_fn_set_status $1 21529 exit $1 21530} # as_fn_exit 21531 21532# as_fn_unset VAR 21533# --------------- 21534# Portably unset VAR. 21535as_fn_unset () 21536{ 21537 { eval $1=; unset $1;} 21538} 21539as_unset=as_fn_unset 21540# as_fn_append VAR VALUE 21541# ---------------------- 21542# Append the text in VALUE to the end of the definition contained in VAR. Take 21543# advantage of any shell optimizations that allow amortized linear growth over 21544# repeated appends, instead of the typical quadratic growth present in naive 21545# implementations. 21546if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 21547 eval 'as_fn_append () 21548 { 21549 eval $1+=\$2 21550 }' 21551else 21552 as_fn_append () 21553 { 21554 eval $1=\$$1\$2 21555 } 21556fi # as_fn_append 21557 21558# as_fn_arith ARG... 21559# ------------------ 21560# Perform arithmetic evaluation on the ARGs, and store the result in the 21561# global $as_val. Take advantage of shells that can avoid forks. The arguments 21562# must be portable across $(()) and expr. 21563if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 21564 eval 'as_fn_arith () 21565 { 21566 as_val=$(( $* )) 21567 }' 21568else 21569 as_fn_arith () 21570 { 21571 as_val=`expr "$@" || test $? -eq 1` 21572 } 21573fi # as_fn_arith 21574 21575 21576if expr a : '\(a\)' >/dev/null 2>&1 && 21577 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21578 as_expr=expr 21579else 21580 as_expr=false 21581fi 21582 21583if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21584 as_basename=basename 21585else 21586 as_basename=false 21587fi 21588 21589if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21590 as_dirname=dirname 21591else 21592 as_dirname=false 21593fi 21594 21595as_me=`$as_basename -- "$0" || 21596$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21597 X"$0" : 'X\(//\)$' \| \ 21598 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21599$as_echo X/"$0" | 21600 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21601 s//\1/ 21602 q 21603 } 21604 /^X\/\(\/\/\)$/{ 21605 s//\1/ 21606 q 21607 } 21608 /^X\/\(\/\).*/{ 21609 s//\1/ 21610 q 21611 } 21612 s/.*/./; q'` 21613 21614# Avoid depending upon Character Ranges. 21615as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21616as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21617as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21618as_cr_digits='0123456789' 21619as_cr_alnum=$as_cr_Letters$as_cr_digits 21620 21621ECHO_C= ECHO_N= ECHO_T= 21622case `echo -n x` in #((((( 21623-n*) 21624 case `echo 'xy\c'` in 21625 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21626 xy) ECHO_C='\c';; 21627 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 21628 ECHO_T=' ';; 21629 esac;; 21630*) 21631 ECHO_N='-n';; 21632esac 21633 21634rm -f conf$$ conf$$.exe conf$$.file 21635if test -d conf$$.dir; then 21636 rm -f conf$$.dir/conf$$.file 21637else 21638 rm -f conf$$.dir 21639 mkdir conf$$.dir 2>/dev/null 21640fi 21641if (echo >conf$$.file) 2>/dev/null; then 21642 if ln -s conf$$.file conf$$ 2>/dev/null; then 21643 as_ln_s='ln -s' 21644 # ... but there are two gotchas: 21645 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21646 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21647 # In both cases, we have to default to `cp -pR'. 21648 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21649 as_ln_s='cp -pR' 21650 elif ln conf$$.file conf$$ 2>/dev/null; then 21651 as_ln_s=ln 21652 else 21653 as_ln_s='cp -pR' 21654 fi 21655else 21656 as_ln_s='cp -pR' 21657fi 21658rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21659rmdir conf$$.dir 2>/dev/null 21660 21661 21662# as_fn_mkdir_p 21663# ------------- 21664# Create "$as_dir" as a directory, including parents if necessary. 21665as_fn_mkdir_p () 21666{ 21667 21668 case $as_dir in #( 21669 -*) as_dir=./$as_dir;; 21670 esac 21671 test -d "$as_dir" || eval $as_mkdir_p || { 21672 as_dirs= 21673 while :; do 21674 case $as_dir in #( 21675 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 21676 *) as_qdir=$as_dir;; 21677 esac 21678 as_dirs="'$as_qdir' $as_dirs" 21679 as_dir=`$as_dirname -- "$as_dir" || 21680$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21681 X"$as_dir" : 'X\(//\)[^/]' \| \ 21682 X"$as_dir" : 'X\(//\)$' \| \ 21683 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21684$as_echo X"$as_dir" | 21685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21686 s//\1/ 21687 q 21688 } 21689 /^X\(\/\/\)[^/].*/{ 21690 s//\1/ 21691 q 21692 } 21693 /^X\(\/\/\)$/{ 21694 s//\1/ 21695 q 21696 } 21697 /^X\(\/\).*/{ 21698 s//\1/ 21699 q 21700 } 21701 s/.*/./; q'` 21702 test -d "$as_dir" && break 21703 done 21704 test -z "$as_dirs" || eval "mkdir $as_dirs" 21705 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 21706 21707 21708} # as_fn_mkdir_p 21709if mkdir -p . 2>/dev/null; then 21710 as_mkdir_p='mkdir -p "$as_dir"' 21711else 21712 test -d ./-p && rmdir ./-p 21713 as_mkdir_p=false 21714fi 21715 21716 21717# as_fn_executable_p FILE 21718# ----------------------- 21719# Test if FILE is an executable regular file. 21720as_fn_executable_p () 21721{ 21722 test -f "$1" && test -x "$1" 21723} # as_fn_executable_p 21724as_test_x='test -x' 21725as_executable_p=as_fn_executable_p 21726 21727# Sed expression to map a string onto a valid CPP name. 21728as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21729 21730# Sed expression to map a string onto a valid variable name. 21731as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21732 21733 21734exec 6>&1 21735## ----------------------------------- ## 21736## Main body of $CONFIG_STATUS script. ## 21737## ----------------------------------- ## 21738_ASEOF 21739test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 21740 21741cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21742# Save the log message, to keep $0 and so on meaningful, and to 21743# report actual input values of CONFIG_FILES etc. instead of their 21744# values after options handling. 21745ac_log=" 21746This file was extended by libX11 $as_me 1.6.3, which was 21747generated by GNU Autoconf 2.69. Invocation command line was 21748 21749 CONFIG_FILES = $CONFIG_FILES 21750 CONFIG_HEADERS = $CONFIG_HEADERS 21751 CONFIG_LINKS = $CONFIG_LINKS 21752 CONFIG_COMMANDS = $CONFIG_COMMANDS 21753 $ $0 $@ 21754 21755on `(hostname || uname -n) 2>/dev/null | sed 1q` 21756" 21757 21758_ACEOF 21759 21760case $ac_config_files in *" 21761"*) set x $ac_config_files; shift; ac_config_files=$*;; 21762esac 21763 21764case $ac_config_headers in *" 21765"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21766esac 21767 21768 21769cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21770# Files that config.status was made for. 21771config_files="$ac_config_files" 21772config_headers="$ac_config_headers" 21773config_commands="$ac_config_commands" 21774 21775_ACEOF 21776 21777cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21778ac_cs_usage="\ 21779\`$as_me' instantiates files and other configuration actions 21780from templates according to the current configuration. Unless the files 21781and actions are specified as TAGs, all are instantiated by default. 21782 21783Usage: $0 [OPTION]... [TAG]... 21784 21785 -h, --help print this help, then exit 21786 -V, --version print version number and configuration settings, then exit 21787 --config print configuration, then exit 21788 -q, --quiet, --silent 21789 do not print progress messages 21790 -d, --debug don't remove temporary files 21791 --recheck update $as_me by reconfiguring in the same conditions 21792 --file=FILE[:TEMPLATE] 21793 instantiate the configuration file FILE 21794 --header=FILE[:TEMPLATE] 21795 instantiate the configuration header FILE 21796 21797Configuration files: 21798$config_files 21799 21800Configuration headers: 21801$config_headers 21802 21803Configuration commands: 21804$config_commands 21805 21806Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 21807 21808_ACEOF 21809cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21810ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 21811ac_cs_version="\\ 21812libX11 config.status 1.6.3 21813configured by $0, generated by GNU Autoconf 2.69, 21814 with options \\"\$ac_cs_config\\" 21815 21816Copyright (C) 2012 Free Software Foundation, Inc. 21817This config.status script is free software; the Free Software Foundation 21818gives unlimited permission to copy, distribute and modify it." 21819 21820ac_pwd='$ac_pwd' 21821srcdir='$srcdir' 21822INSTALL='$INSTALL' 21823MKDIR_P='$MKDIR_P' 21824AWK='$AWK' 21825test -n "\$AWK" || AWK=awk 21826_ACEOF 21827 21828cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21829# The default lists apply if the user does not specify any file. 21830ac_need_defaults=: 21831while test $# != 0 21832do 21833 case $1 in 21834 --*=?*) 21835 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21836 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21837 ac_shift=: 21838 ;; 21839 --*=) 21840 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21841 ac_optarg= 21842 ac_shift=: 21843 ;; 21844 *) 21845 ac_option=$1 21846 ac_optarg=$2 21847 ac_shift=shift 21848 ;; 21849 esac 21850 21851 case $ac_option in 21852 # Handling of the options. 21853 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21854 ac_cs_recheck=: ;; 21855 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21856 $as_echo "$ac_cs_version"; exit ;; 21857 --config | --confi | --conf | --con | --co | --c ) 21858 $as_echo "$ac_cs_config"; exit ;; 21859 --debug | --debu | --deb | --de | --d | -d ) 21860 debug=: ;; 21861 --file | --fil | --fi | --f ) 21862 $ac_shift 21863 case $ac_optarg in 21864 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21865 '') as_fn_error $? "missing file argument" ;; 21866 esac 21867 as_fn_append CONFIG_FILES " '$ac_optarg'" 21868 ac_need_defaults=false;; 21869 --header | --heade | --head | --hea ) 21870 $ac_shift 21871 case $ac_optarg in 21872 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21873 esac 21874 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21875 ac_need_defaults=false;; 21876 --he | --h) 21877 # Conflict between --help and --header 21878 as_fn_error $? "ambiguous option: \`$1' 21879Try \`$0 --help' for more information.";; 21880 --help | --hel | -h ) 21881 $as_echo "$ac_cs_usage"; exit ;; 21882 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21883 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21884 ac_cs_silent=: ;; 21885 21886 # This is an error. 21887 -*) as_fn_error $? "unrecognized option: \`$1' 21888Try \`$0 --help' for more information." ;; 21889 21890 *) as_fn_append ac_config_targets " $1" 21891 ac_need_defaults=false ;; 21892 21893 esac 21894 shift 21895done 21896 21897ac_configure_extra_args= 21898 21899if $ac_cs_silent; then 21900 exec 6>/dev/null 21901 ac_configure_extra_args="$ac_configure_extra_args --silent" 21902fi 21903 21904_ACEOF 21905cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21906if \$ac_cs_recheck; then 21907 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21908 shift 21909 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 21910 CONFIG_SHELL='$SHELL' 21911 export CONFIG_SHELL 21912 exec "\$@" 21913fi 21914 21915_ACEOF 21916cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21917exec 5>>config.log 21918{ 21919 echo 21920 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21921## Running $as_me. ## 21922_ASBOX 21923 $as_echo "$ac_log" 21924} >&5 21925 21926_ACEOF 21927cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21928# 21929# INIT-COMMANDS 21930# 21931AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21932 21933 21934# The HP-UX ksh and POSIX shell print the target directory to stdout 21935# if CDPATH is set. 21936(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21937 21938sed_quote_subst='$sed_quote_subst' 21939double_quote_subst='$double_quote_subst' 21940delay_variable_subst='$delay_variable_subst' 21941macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21942macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21943enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21944enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21945pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21946enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21947SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21948ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21949PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21950host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21951host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21952host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21953build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21954build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21955build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21956SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21957Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21958GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21959EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21960FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21961LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21962NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21963LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21964max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21965ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21966exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21967lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21968lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21969lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21970lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21971lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21972reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21973reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21974OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21975deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21976file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21977file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21978want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21979DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21980sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21981AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21982AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21983archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21984STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21985RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21986old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21987old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21988old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21989lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21990CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21991CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21992compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21993GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21994lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21995lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21996lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21997lt_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"`' 21998nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21999lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 22000objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 22001MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 22002lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 22003lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 22004lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 22005lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 22006lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 22007need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 22008MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 22009DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 22010NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 22011LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 22012OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 22013OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 22014libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 22015shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 22016extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22017archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 22018enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 22019export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 22020whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 22021compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 22022old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 22023old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22024archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 22025archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22026module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 22027module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22028with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 22029allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 22030no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 22031hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 22032hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 22033hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 22034hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 22035hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 22036hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 22037hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 22038inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 22039link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 22040always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 22041export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 22042exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 22043include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 22044prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 22045postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 22046file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 22047variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 22048need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 22049need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 22050version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 22051runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 22052shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 22053shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 22054libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 22055library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 22056soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 22057install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 22058postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22059postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22060finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 22061finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 22062hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 22063sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 22064sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 22065hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 22066enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 22067enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 22068enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 22069old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 22070striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 22071 22072LTCC='$LTCC' 22073LTCFLAGS='$LTCFLAGS' 22074compiler='$compiler_DEFAULT' 22075 22076# A function that is used when there is no print builtin or printf. 22077func_fallback_echo () 22078{ 22079 eval 'cat <<_LTECHO_EOF 22080\$1 22081_LTECHO_EOF' 22082} 22083 22084# Quote evaled strings. 22085for var in SHELL \ 22086ECHO \ 22087PATH_SEPARATOR \ 22088SED \ 22089GREP \ 22090EGREP \ 22091FGREP \ 22092LD \ 22093NM \ 22094LN_S \ 22095lt_SP2NL \ 22096lt_NL2SP \ 22097reload_flag \ 22098OBJDUMP \ 22099deplibs_check_method \ 22100file_magic_cmd \ 22101file_magic_glob \ 22102want_nocaseglob \ 22103DLLTOOL \ 22104sharedlib_from_linklib_cmd \ 22105AR \ 22106AR_FLAGS \ 22107archiver_list_spec \ 22108STRIP \ 22109RANLIB \ 22110CC \ 22111CFLAGS \ 22112compiler \ 22113lt_cv_sys_global_symbol_pipe \ 22114lt_cv_sys_global_symbol_to_cdecl \ 22115lt_cv_sys_global_symbol_to_c_name_address \ 22116lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 22117nm_file_list_spec \ 22118lt_prog_compiler_no_builtin_flag \ 22119lt_prog_compiler_pic \ 22120lt_prog_compiler_wl \ 22121lt_prog_compiler_static \ 22122lt_cv_prog_compiler_c_o \ 22123need_locks \ 22124MANIFEST_TOOL \ 22125DSYMUTIL \ 22126NMEDIT \ 22127LIPO \ 22128OTOOL \ 22129OTOOL64 \ 22130shrext_cmds \ 22131export_dynamic_flag_spec \ 22132whole_archive_flag_spec \ 22133compiler_needs_object \ 22134with_gnu_ld \ 22135allow_undefined_flag \ 22136no_undefined_flag \ 22137hardcode_libdir_flag_spec \ 22138hardcode_libdir_separator \ 22139exclude_expsyms \ 22140include_expsyms \ 22141file_list_spec \ 22142variables_saved_for_relink \ 22143libname_spec \ 22144library_names_spec \ 22145soname_spec \ 22146install_override_mode \ 22147finish_eval \ 22148old_striplib \ 22149striplib; do 22150 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22151 *[\\\\\\\`\\"\\\$]*) 22152 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 22153 ;; 22154 *) 22155 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22156 ;; 22157 esac 22158done 22159 22160# Double-quote double-evaled strings. 22161for var in reload_cmds \ 22162old_postinstall_cmds \ 22163old_postuninstall_cmds \ 22164old_archive_cmds \ 22165extract_expsyms_cmds \ 22166old_archive_from_new_cmds \ 22167old_archive_from_expsyms_cmds \ 22168archive_cmds \ 22169archive_expsym_cmds \ 22170module_cmds \ 22171module_expsym_cmds \ 22172export_symbols_cmds \ 22173prelink_cmds \ 22174postlink_cmds \ 22175postinstall_cmds \ 22176postuninstall_cmds \ 22177finish_cmds \ 22178sys_lib_search_path_spec \ 22179sys_lib_dlsearch_path_spec; do 22180 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22181 *[\\\\\\\`\\"\\\$]*) 22182 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 22183 ;; 22184 *) 22185 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22186 ;; 22187 esac 22188done 22189 22190ac_aux_dir='$ac_aux_dir' 22191xsi_shell='$xsi_shell' 22192lt_shell_append='$lt_shell_append' 22193 22194# See if we are running on zsh, and set the options which allow our 22195# commands through without removal of \ escapes INIT. 22196if test -n "\${ZSH_VERSION+set}" ; then 22197 setopt NO_GLOB_SUBST 22198fi 22199 22200 22201 PACKAGE='$PACKAGE' 22202 VERSION='$VERSION' 22203 TIMESTAMP='$TIMESTAMP' 22204 RM='$RM' 22205 ofile='$ofile' 22206 22207 22208 22209 22210_ACEOF 22211 22212cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22213 22214# Handling of arguments. 22215for ac_config_target in $ac_config_targets 22216do 22217 case $ac_config_target in 22218 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 22219 "include/X11/XlibConf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/XlibConf.h" ;; 22220 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22221 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 22222 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22223 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 22224 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 22225 "man/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES man/xkb/Makefile" ;; 22226 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 22227 "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;; 22228 "src/xcms/Makefile") CONFIG_FILES="$CONFIG_FILES src/xcms/Makefile" ;; 22229 "src/xlibi18n/Makefile") CONFIG_FILES="$CONFIG_FILES src/xlibi18n/Makefile" ;; 22230 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; 22231 "modules/im/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/Makefile" ;; 22232 "modules/im/ximcp/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/ximcp/Makefile" ;; 22233 "modules/lc/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Makefile" ;; 22234 "modules/lc/def/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/def/Makefile" ;; 22235 "modules/lc/gen/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/gen/Makefile" ;; 22236 "modules/lc/Utf8/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Utf8/Makefile" ;; 22237 "modules/om/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/Makefile" ;; 22238 "modules/om/generic/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/generic/Makefile" ;; 22239 "src/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES src/xkb/Makefile" ;; 22240 "nls/Makefile") CONFIG_FILES="$CONFIG_FILES nls/Makefile" ;; 22241 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;; 22242 "specs/i18n/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/Makefile" ;; 22243 "specs/i18n/compose/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/compose/Makefile" ;; 22244 "specs/i18n/framework/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/framework/Makefile" ;; 22245 "specs/i18n/localedb/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/localedb/Makefile" ;; 22246 "specs/i18n/trans/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/trans/Makefile" ;; 22247 "specs/libX11/Makefile") CONFIG_FILES="$CONFIG_FILES specs/libX11/Makefile" ;; 22248 "specs/XIM/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XIM/Makefile" ;; 22249 "specs/XKB/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XKB/Makefile" ;; 22250 "x11.pc") CONFIG_FILES="$CONFIG_FILES x11.pc" ;; 22251 "x11-xcb.pc") CONFIG_FILES="$CONFIG_FILES x11-xcb.pc" ;; 22252 22253 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 22254 esac 22255done 22256 22257 22258# If the user did not use the arguments to specify the items to instantiate, 22259# then the envvar interface is used. Set only those that are not. 22260# We use the long form for the default assignment because of an extremely 22261# bizarre bug on SunOS 4.1.3. 22262if $ac_need_defaults; then 22263 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22264 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22265 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22266fi 22267 22268# Have a temporary directory for convenience. Make it in the build tree 22269# simply because there is no reason against having it here, and in addition, 22270# creating and moving files from /tmp can sometimes cause problems. 22271# Hook for its removal unless debugging. 22272# Note that there is a small window in which the directory will not be cleaned: 22273# after its creation but before its name has been assigned to `$tmp'. 22274$debug || 22275{ 22276 tmp= ac_tmp= 22277 trap 'exit_status=$? 22278 : "${ac_tmp:=$tmp}" 22279 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 22280' 0 22281 trap 'as_fn_exit 1' 1 2 13 15 22282} 22283# Create a (secure) tmp directory for tmp files. 22284 22285{ 22286 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22287 test -d "$tmp" 22288} || 22289{ 22290 tmp=./conf$$-$RANDOM 22291 (umask 077 && mkdir "$tmp") 22292} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 22293ac_tmp=$tmp 22294 22295# Set up the scripts for CONFIG_FILES section. 22296# No need to generate them if there are no CONFIG_FILES. 22297# This happens for instance with `./config.status config.h'. 22298if test -n "$CONFIG_FILES"; then 22299 22300 22301ac_cr=`echo X | tr X '\015'` 22302# On cygwin, bash can eat \r inside `` if the user requested igncr. 22303# But we know of no other shell where ac_cr would be empty at this 22304# point, so we can use a bashism as a fallback. 22305if test "x$ac_cr" = x; then 22306 eval ac_cr=\$\'\\r\' 22307fi 22308ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 22309if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 22310 ac_cs_awk_cr='\\r' 22311else 22312 ac_cs_awk_cr=$ac_cr 22313fi 22314 22315echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 22316_ACEOF 22317 22318 22319{ 22320 echo "cat >conf$$subs.awk <<_ACEOF" && 22321 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 22322 echo "_ACEOF" 22323} >conf$$subs.sh || 22324 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22325ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 22326ac_delim='%!_!# ' 22327for ac_last_try in false false false false false :; do 22328 . ./conf$$subs.sh || 22329 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22330 22331 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 22332 if test $ac_delim_n = $ac_delim_num; then 22333 break 22334 elif $ac_last_try; then 22335 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22336 else 22337 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22338 fi 22339done 22340rm -f conf$$subs.sh 22341 22342cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22343cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 22344_ACEOF 22345sed -n ' 22346h 22347s/^/S["/; s/!.*/"]=/ 22348p 22349g 22350s/^[^!]*!// 22351:repl 22352t repl 22353s/'"$ac_delim"'$// 22354t delim 22355:nl 22356h 22357s/\(.\{148\}\)..*/\1/ 22358t more1 22359s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 22360p 22361n 22362b repl 22363:more1 22364s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22365p 22366g 22367s/.\{148\}// 22368t nl 22369:delim 22370h 22371s/\(.\{148\}\)..*/\1/ 22372t more2 22373s/["\\]/\\&/g; s/^/"/; s/$/"/ 22374p 22375b 22376:more2 22377s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22378p 22379g 22380s/.\{148\}// 22381t delim 22382' <conf$$subs.awk | sed ' 22383/^[^""]/{ 22384 N 22385 s/\n// 22386} 22387' >>$CONFIG_STATUS || ac_write_fail=1 22388rm -f conf$$subs.awk 22389cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22390_ACAWK 22391cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 22392 for (key in S) S_is_set[key] = 1 22393 FS = "" 22394 22395} 22396{ 22397 line = $ 0 22398 nfields = split(line, field, "@") 22399 substed = 0 22400 len = length(field[1]) 22401 for (i = 2; i < nfields; i++) { 22402 key = field[i] 22403 keylen = length(key) 22404 if (S_is_set[key]) { 22405 value = S[key] 22406 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 22407 len += length(value) + length(field[++i]) 22408 substed = 1 22409 } else 22410 len += 1 + keylen 22411 } 22412 22413 print line 22414} 22415 22416_ACAWK 22417_ACEOF 22418cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22419if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 22420 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 22421else 22422 cat 22423fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 22424 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 22425_ACEOF 22426 22427# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 22428# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 22429# trailing colons and then remove the whole line if VPATH becomes empty 22430# (actually we leave an empty line to preserve line numbers). 22431if test "x$srcdir" = x.; then 22432 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 22433h 22434s/// 22435s/^/:/ 22436s/[ ]*$/:/ 22437s/:\$(srcdir):/:/g 22438s/:\${srcdir}:/:/g 22439s/:@srcdir@:/:/g 22440s/^:*// 22441s/:*$// 22442x 22443s/\(=[ ]*\).*/\1/ 22444G 22445s/\n// 22446s/^[^=]*=[ ]*$// 22447}' 22448fi 22449 22450cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22451fi # test -n "$CONFIG_FILES" 22452 22453# Set up the scripts for CONFIG_HEADERS section. 22454# No need to generate them if there are no CONFIG_HEADERS. 22455# This happens for instance with `./config.status Makefile'. 22456if test -n "$CONFIG_HEADERS"; then 22457cat >"$ac_tmp/defines.awk" <<\_ACAWK || 22458BEGIN { 22459_ACEOF 22460 22461# Transform confdefs.h into an awk script `defines.awk', embedded as 22462# here-document in config.status, that substitutes the proper values into 22463# config.h.in to produce config.h. 22464 22465# Create a delimiter string that does not exist in confdefs.h, to ease 22466# handling of long lines. 22467ac_delim='%!_!# ' 22468for ac_last_try in false false :; do 22469 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 22470 if test -z "$ac_tt"; then 22471 break 22472 elif $ac_last_try; then 22473 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 22474 else 22475 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22476 fi 22477done 22478 22479# For the awk script, D is an array of macro values keyed by name, 22480# likewise P contains macro parameters if any. Preserve backslash 22481# newline sequences. 22482 22483ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22484sed -n ' 22485s/.\{148\}/&'"$ac_delim"'/g 22486t rset 22487:rset 22488s/^[ ]*#[ ]*define[ ][ ]*/ / 22489t def 22490d 22491:def 22492s/\\$// 22493t bsnl 22494s/["\\]/\\&/g 22495s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22496D["\1"]=" \3"/p 22497s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 22498d 22499:bsnl 22500s/["\\]/\\&/g 22501s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22502D["\1"]=" \3\\\\\\n"\\/p 22503t cont 22504s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 22505t cont 22506d 22507:cont 22508n 22509s/.\{148\}/&'"$ac_delim"'/g 22510t clear 22511:clear 22512s/\\$// 22513t bsnlc 22514s/["\\]/\\&/g; s/^/"/; s/$/"/p 22515d 22516:bsnlc 22517s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 22518b cont 22519' <confdefs.h | sed ' 22520s/'"$ac_delim"'/"\\\ 22521"/g' >>$CONFIG_STATUS || ac_write_fail=1 22522 22523cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22524 for (key in D) D_is_set[key] = 1 22525 FS = "" 22526} 22527/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 22528 line = \$ 0 22529 split(line, arg, " ") 22530 if (arg[1] == "#") { 22531 defundef = arg[2] 22532 mac1 = arg[3] 22533 } else { 22534 defundef = substr(arg[1], 2) 22535 mac1 = arg[2] 22536 } 22537 split(mac1, mac2, "(") #) 22538 macro = mac2[1] 22539 prefix = substr(line, 1, index(line, defundef) - 1) 22540 if (D_is_set[macro]) { 22541 # Preserve the white space surrounding the "#". 22542 print prefix "define", macro P[macro] D[macro] 22543 next 22544 } else { 22545 # Replace #undef with comments. This is necessary, for example, 22546 # in the case of _POSIX_SOURCE, which is predefined and required 22547 # on some systems where configure will not decide to define it. 22548 if (defundef == "undef") { 22549 print "/*", prefix defundef, macro, "*/" 22550 next 22551 } 22552 } 22553} 22554{ print } 22555_ACAWK 22556_ACEOF 22557cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22558 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 22559fi # test -n "$CONFIG_HEADERS" 22560 22561 22562eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 22563shift 22564for ac_tag 22565do 22566 case $ac_tag in 22567 :[FHLC]) ac_mode=$ac_tag; continue;; 22568 esac 22569 case $ac_mode$ac_tag in 22570 :[FHL]*:*);; 22571 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 22572 :[FH]-) ac_tag=-:-;; 22573 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22574 esac 22575 ac_save_IFS=$IFS 22576 IFS=: 22577 set x $ac_tag 22578 IFS=$ac_save_IFS 22579 shift 22580 ac_file=$1 22581 shift 22582 22583 case $ac_mode in 22584 :L) ac_source=$1;; 22585 :[FH]) 22586 ac_file_inputs= 22587 for ac_f 22588 do 22589 case $ac_f in 22590 -) ac_f="$ac_tmp/stdin";; 22591 *) # Look for the file first in the build tree, then in the source tree 22592 # (if the path is not absolute). The absolute path cannot be DOS-style, 22593 # because $ac_f cannot contain `:'. 22594 test -f "$ac_f" || 22595 case $ac_f in 22596 [\\/$]*) false;; 22597 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22598 esac || 22599 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 22600 esac 22601 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22602 as_fn_append ac_file_inputs " '$ac_f'" 22603 done 22604 22605 # Let's still pretend it is `configure' which instantiates (i.e., don't 22606 # use $as_me), people would be surprised to read: 22607 # /* config.h. Generated by config.status. */ 22608 configure_input='Generated from '` 22609 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22610 `' by configure.' 22611 if test x"$ac_file" != x-; then 22612 configure_input="$ac_file. $configure_input" 22613 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 22614$as_echo "$as_me: creating $ac_file" >&6;} 22615 fi 22616 # Neutralize special characters interpreted by sed in replacement strings. 22617 case $configure_input in #( 22618 *\&* | *\|* | *\\* ) 22619 ac_sed_conf_input=`$as_echo "$configure_input" | 22620 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22621 *) ac_sed_conf_input=$configure_input;; 22622 esac 22623 22624 case $ac_tag in 22625 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 22626 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 22627 esac 22628 ;; 22629 esac 22630 22631 ac_dir=`$as_dirname -- "$ac_file" || 22632$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22633 X"$ac_file" : 'X\(//\)[^/]' \| \ 22634 X"$ac_file" : 'X\(//\)$' \| \ 22635 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22636$as_echo X"$ac_file" | 22637 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22638 s//\1/ 22639 q 22640 } 22641 /^X\(\/\/\)[^/].*/{ 22642 s//\1/ 22643 q 22644 } 22645 /^X\(\/\/\)$/{ 22646 s//\1/ 22647 q 22648 } 22649 /^X\(\/\).*/{ 22650 s//\1/ 22651 q 22652 } 22653 s/.*/./; q'` 22654 as_dir="$ac_dir"; as_fn_mkdir_p 22655 ac_builddir=. 22656 22657case "$ac_dir" in 22658.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22659*) 22660 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 22661 # A ".." for each directory in $ac_dir_suffix. 22662 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22663 case $ac_top_builddir_sub in 22664 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22665 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22666 esac ;; 22667esac 22668ac_abs_top_builddir=$ac_pwd 22669ac_abs_builddir=$ac_pwd$ac_dir_suffix 22670# for backward compatibility: 22671ac_top_builddir=$ac_top_build_prefix 22672 22673case $srcdir in 22674 .) # We are building in place. 22675 ac_srcdir=. 22676 ac_top_srcdir=$ac_top_builddir_sub 22677 ac_abs_top_srcdir=$ac_pwd ;; 22678 [\\/]* | ?:[\\/]* ) # Absolute name. 22679 ac_srcdir=$srcdir$ac_dir_suffix; 22680 ac_top_srcdir=$srcdir 22681 ac_abs_top_srcdir=$srcdir ;; 22682 *) # Relative name. 22683 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22684 ac_top_srcdir=$ac_top_build_prefix$srcdir 22685 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22686esac 22687ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22688 22689 22690 case $ac_mode in 22691 :F) 22692 # 22693 # CONFIG_FILE 22694 # 22695 22696 case $INSTALL in 22697 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22698 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22699 esac 22700 ac_MKDIR_P=$MKDIR_P 22701 case $MKDIR_P in 22702 [\\/$]* | ?:[\\/]* ) ;; 22703 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22704 esac 22705_ACEOF 22706 22707cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22708# If the template does not know about datarootdir, expand it. 22709# FIXME: This hack should be removed a few years after 2.60. 22710ac_datarootdir_hack=; ac_datarootdir_seen= 22711ac_sed_dataroot=' 22712/datarootdir/ { 22713 p 22714 q 22715} 22716/@datadir@/p 22717/@docdir@/p 22718/@infodir@/p 22719/@localedir@/p 22720/@mandir@/p' 22721case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22722*datarootdir*) ac_datarootdir_seen=yes;; 22723*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22725$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22726_ACEOF 22727cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22728 ac_datarootdir_hack=' 22729 s&@datadir@&$datadir&g 22730 s&@docdir@&$docdir&g 22731 s&@infodir@&$infodir&g 22732 s&@localedir@&$localedir&g 22733 s&@mandir@&$mandir&g 22734 s&\\\${datarootdir}&$datarootdir&g' ;; 22735esac 22736_ACEOF 22737 22738# Neutralize VPATH when `$srcdir' = `.'. 22739# Shell code in configure.ac might set extrasub. 22740# FIXME: do we really want to maintain this feature? 22741cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22742ac_sed_extra="$ac_vpsub 22743$extrasub 22744_ACEOF 22745cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22746:t 22747/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22748s|@configure_input@|$ac_sed_conf_input|;t t 22749s&@top_builddir@&$ac_top_builddir_sub&;t t 22750s&@top_build_prefix@&$ac_top_build_prefix&;t t 22751s&@srcdir@&$ac_srcdir&;t t 22752s&@abs_srcdir@&$ac_abs_srcdir&;t t 22753s&@top_srcdir@&$ac_top_srcdir&;t t 22754s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22755s&@builddir@&$ac_builddir&;t t 22756s&@abs_builddir@&$ac_abs_builddir&;t t 22757s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22758s&@INSTALL@&$ac_INSTALL&;t t 22759s&@MKDIR_P@&$ac_MKDIR_P&;t t 22760$ac_datarootdir_hack 22761" 22762eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 22763 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22764 22765test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22766 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 22767 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 22768 "$ac_tmp/out"`; test -z "$ac_out"; } && 22769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22770which seems to be undefined. Please make sure it is defined" >&5 22771$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22772which seems to be undefined. Please make sure it is defined" >&2;} 22773 22774 rm -f "$ac_tmp/stdin" 22775 case $ac_file in 22776 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 22777 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 22778 esac \ 22779 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22780 ;; 22781 :H) 22782 # 22783 # CONFIG_HEADER 22784 # 22785 if test x"$ac_file" != x-; then 22786 { 22787 $as_echo "/* $configure_input */" \ 22788 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 22789 } >"$ac_tmp/config.h" \ 22790 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22791 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 22792 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 22793$as_echo "$as_me: $ac_file is unchanged" >&6;} 22794 else 22795 rm -f "$ac_file" 22796 mv "$ac_tmp/config.h" "$ac_file" \ 22797 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22798 fi 22799 else 22800 $as_echo "/* $configure_input */" \ 22801 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22802 || as_fn_error $? "could not create -" "$LINENO" 5 22803 fi 22804# Compute "$ac_file"'s index in $config_headers. 22805_am_arg="$ac_file" 22806_am_stamp_count=1 22807for _am_header in $config_headers :; do 22808 case $_am_header in 22809 $_am_arg | $_am_arg:* ) 22810 break ;; 22811 * ) 22812 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22813 esac 22814done 22815echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22816$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22817 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22818 X"$_am_arg" : 'X\(//\)$' \| \ 22819 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22820$as_echo X"$_am_arg" | 22821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22822 s//\1/ 22823 q 22824 } 22825 /^X\(\/\/\)[^/].*/{ 22826 s//\1/ 22827 q 22828 } 22829 /^X\(\/\/\)$/{ 22830 s//\1/ 22831 q 22832 } 22833 /^X\(\/\).*/{ 22834 s//\1/ 22835 q 22836 } 22837 s/.*/./; q'`/stamp-h$_am_stamp_count 22838 ;; 22839 22840 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22841$as_echo "$as_me: executing $ac_file commands" >&6;} 22842 ;; 22843 esac 22844 22845 22846 case $ac_file$ac_mode in 22847 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22848 # Older Autoconf quotes --file arguments for eval, but not when files 22849 # are listed without --file. Let's play safe and only enable the eval 22850 # if we detect the quoting. 22851 case $CONFIG_FILES in 22852 *\'*) eval set x "$CONFIG_FILES" ;; 22853 *) set x $CONFIG_FILES ;; 22854 esac 22855 shift 22856 for mf 22857 do 22858 # Strip MF so we end up with the name of the file. 22859 mf=`echo "$mf" | sed -e 's/:.*$//'` 22860 # Check whether this is an Automake generated Makefile or not. 22861 # We used to match only the files named 'Makefile.in', but 22862 # some people rename them; so instead we look at the file content. 22863 # Grep'ing the first line is not enough: some people post-process 22864 # each Makefile.in and add a new line on top of each file to say so. 22865 # Grep'ing the whole file is not good either: AIX grep has a line 22866 # limit of 2048, but all sed's we know have understand at least 4000. 22867 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 22868 dirpart=`$as_dirname -- "$mf" || 22869$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22870 X"$mf" : 'X\(//\)[^/]' \| \ 22871 X"$mf" : 'X\(//\)$' \| \ 22872 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 22873$as_echo X"$mf" | 22874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22875 s//\1/ 22876 q 22877 } 22878 /^X\(\/\/\)[^/].*/{ 22879 s//\1/ 22880 q 22881 } 22882 /^X\(\/\/\)$/{ 22883 s//\1/ 22884 q 22885 } 22886 /^X\(\/\).*/{ 22887 s//\1/ 22888 q 22889 } 22890 s/.*/./; q'` 22891 else 22892 continue 22893 fi 22894 # Extract the definition of DEPDIR, am__include, and am__quote 22895 # from the Makefile without running 'make'. 22896 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22897 test -z "$DEPDIR" && continue 22898 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22899 test -z "$am__include" && continue 22900 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22901 # Find all dependency output files, they are included files with 22902 # $(DEPDIR) in their names. We invoke sed twice because it is the 22903 # simplest approach to changing $(DEPDIR) to its actual value in the 22904 # expansion. 22905 for file in `sed -n " 22906 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22907 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 22908 # Make sure the directory exists. 22909 test -f "$dirpart/$file" && continue 22910 fdir=`$as_dirname -- "$file" || 22911$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22912 X"$file" : 'X\(//\)[^/]' \| \ 22913 X"$file" : 'X\(//\)$' \| \ 22914 X"$file" : 'X\(/\)' \| . 2>/dev/null || 22915$as_echo X"$file" | 22916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22917 s//\1/ 22918 q 22919 } 22920 /^X\(\/\/\)[^/].*/{ 22921 s//\1/ 22922 q 22923 } 22924 /^X\(\/\/\)$/{ 22925 s//\1/ 22926 q 22927 } 22928 /^X\(\/\).*/{ 22929 s//\1/ 22930 q 22931 } 22932 s/.*/./; q'` 22933 as_dir=$dirpart/$fdir; as_fn_mkdir_p 22934 # echo "creating $dirpart/$file" 22935 echo '# dummy' > "$dirpart/$file" 22936 done 22937 done 22938} 22939 ;; 22940 "libtool":C) 22941 22942 # See if we are running on zsh, and set the options which allow our 22943 # commands through without removal of \ escapes. 22944 if test -n "${ZSH_VERSION+set}" ; then 22945 setopt NO_GLOB_SUBST 22946 fi 22947 22948 cfgfile="${ofile}T" 22949 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22950 $RM "$cfgfile" 22951 22952 cat <<_LT_EOF >> "$cfgfile" 22953#! $SHELL 22954 22955# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 22956# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 22957# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 22958# NOTE: Changes made to this file will be lost: look at ltmain.sh. 22959# 22960# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 22961# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 22962# Foundation, Inc. 22963# Written by Gordon Matzigkeit, 1996 22964# 22965# This file is part of GNU Libtool. 22966# 22967# GNU Libtool is free software; you can redistribute it and/or 22968# modify it under the terms of the GNU General Public License as 22969# published by the Free Software Foundation; either version 2 of 22970# the License, or (at your option) any later version. 22971# 22972# As a special exception to the GNU General Public License, 22973# if you distribute this file as part of a program or library that 22974# is built using GNU Libtool, you may include this file under the 22975# same distribution terms that you use for the rest of that program. 22976# 22977# GNU Libtool is distributed in the hope that it will be useful, 22978# but WITHOUT ANY WARRANTY; without even the implied warranty of 22979# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22980# GNU General Public License for more details. 22981# 22982# You should have received a copy of the GNU General Public License 22983# along with GNU Libtool; see the file COPYING. If not, a copy 22984# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 22985# obtained by writing to the Free Software Foundation, Inc., 22986# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22987 22988 22989# The names of the tagged configurations supported by this script. 22990available_tags="" 22991 22992# ### BEGIN LIBTOOL CONFIG 22993 22994# Which release of libtool.m4 was used? 22995macro_version=$macro_version 22996macro_revision=$macro_revision 22997 22998# Whether or not to build shared libraries. 22999build_libtool_libs=$enable_shared 23000 23001# Whether or not to build static libraries. 23002build_old_libs=$enable_static 23003 23004# What type of objects to build. 23005pic_mode=$pic_mode 23006 23007# Whether or not to optimize for fast installation. 23008fast_install=$enable_fast_install 23009 23010# Shell to use when invoking shell scripts. 23011SHELL=$lt_SHELL 23012 23013# An echo program that protects backslashes. 23014ECHO=$lt_ECHO 23015 23016# The PATH separator for the build system. 23017PATH_SEPARATOR=$lt_PATH_SEPARATOR 23018 23019# The host system. 23020host_alias=$host_alias 23021host=$host 23022host_os=$host_os 23023 23024# The build system. 23025build_alias=$build_alias 23026build=$build 23027build_os=$build_os 23028 23029# A sed program that does not truncate output. 23030SED=$lt_SED 23031 23032# Sed that helps us avoid accidentally triggering echo(1) options like -n. 23033Xsed="\$SED -e 1s/^X//" 23034 23035# A grep program that handles long lines. 23036GREP=$lt_GREP 23037 23038# An ERE matcher. 23039EGREP=$lt_EGREP 23040 23041# A literal string matcher. 23042FGREP=$lt_FGREP 23043 23044# A BSD- or MS-compatible name lister. 23045NM=$lt_NM 23046 23047# Whether we need soft or hard links. 23048LN_S=$lt_LN_S 23049 23050# What is the maximum length of a command? 23051max_cmd_len=$max_cmd_len 23052 23053# Object file suffix (normally "o"). 23054objext=$ac_objext 23055 23056# Executable file suffix (normally ""). 23057exeext=$exeext 23058 23059# whether the shell understands "unset". 23060lt_unset=$lt_unset 23061 23062# turn spaces into newlines. 23063SP2NL=$lt_lt_SP2NL 23064 23065# turn newlines into spaces. 23066NL2SP=$lt_lt_NL2SP 23067 23068# convert \$build file names to \$host format. 23069to_host_file_cmd=$lt_cv_to_host_file_cmd 23070 23071# convert \$build files to toolchain format. 23072to_tool_file_cmd=$lt_cv_to_tool_file_cmd 23073 23074# An object symbol dumper. 23075OBJDUMP=$lt_OBJDUMP 23076 23077# Method to check whether dependent libraries are shared objects. 23078deplibs_check_method=$lt_deplibs_check_method 23079 23080# Command to use when deplibs_check_method = "file_magic". 23081file_magic_cmd=$lt_file_magic_cmd 23082 23083# How to find potential files when deplibs_check_method = "file_magic". 23084file_magic_glob=$lt_file_magic_glob 23085 23086# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 23087want_nocaseglob=$lt_want_nocaseglob 23088 23089# DLL creation program. 23090DLLTOOL=$lt_DLLTOOL 23091 23092# Command to associate shared and link libraries. 23093sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 23094 23095# The archiver. 23096AR=$lt_AR 23097 23098# Flags to create an archive. 23099AR_FLAGS=$lt_AR_FLAGS 23100 23101# How to feed a file listing to the archiver. 23102archiver_list_spec=$lt_archiver_list_spec 23103 23104# A symbol stripping program. 23105STRIP=$lt_STRIP 23106 23107# Commands used to install an old-style archive. 23108RANLIB=$lt_RANLIB 23109old_postinstall_cmds=$lt_old_postinstall_cmds 23110old_postuninstall_cmds=$lt_old_postuninstall_cmds 23111 23112# Whether to use a lock for old archive extraction. 23113lock_old_archive_extraction=$lock_old_archive_extraction 23114 23115# A C compiler. 23116LTCC=$lt_CC 23117 23118# LTCC compiler flags. 23119LTCFLAGS=$lt_CFLAGS 23120 23121# Take the output of nm and produce a listing of raw symbols and C names. 23122global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 23123 23124# Transform the output of nm in a proper C declaration. 23125global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 23126 23127# Transform the output of nm in a C name address pair. 23128global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 23129 23130# Transform the output of nm in a C name address pair when lib prefix is needed. 23131global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 23132 23133# Specify filename containing input files for \$NM. 23134nm_file_list_spec=$lt_nm_file_list_spec 23135 23136# The root where to search for dependent libraries,and in which our libraries should be installed. 23137lt_sysroot=$lt_sysroot 23138 23139# The name of the directory that contains temporary libtool files. 23140objdir=$objdir 23141 23142# Used to examine libraries when file_magic_cmd begins with "file". 23143MAGIC_CMD=$MAGIC_CMD 23144 23145# Must we lock files when doing compilation? 23146need_locks=$lt_need_locks 23147 23148# Manifest tool. 23149MANIFEST_TOOL=$lt_MANIFEST_TOOL 23150 23151# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 23152DSYMUTIL=$lt_DSYMUTIL 23153 23154# Tool to change global to local symbols on Mac OS X. 23155NMEDIT=$lt_NMEDIT 23156 23157# Tool to manipulate fat objects and archives on Mac OS X. 23158LIPO=$lt_LIPO 23159 23160# ldd/readelf like tool for Mach-O binaries on Mac OS X. 23161OTOOL=$lt_OTOOL 23162 23163# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 23164OTOOL64=$lt_OTOOL64 23165 23166# Old archive suffix (normally "a"). 23167libext=$libext 23168 23169# Shared library suffix (normally ".so"). 23170shrext_cmds=$lt_shrext_cmds 23171 23172# The commands to extract the exported symbol list from a shared archive. 23173extract_expsyms_cmds=$lt_extract_expsyms_cmds 23174 23175# Variables whose values should be saved in libtool wrapper scripts and 23176# restored at link time. 23177variables_saved_for_relink=$lt_variables_saved_for_relink 23178 23179# Do we need the "lib" prefix for modules? 23180need_lib_prefix=$need_lib_prefix 23181 23182# Do we need a version for libraries? 23183need_version=$need_version 23184 23185# Library versioning type. 23186version_type=$version_type 23187 23188# Shared library runtime path variable. 23189runpath_var=$runpath_var 23190 23191# Shared library path variable. 23192shlibpath_var=$shlibpath_var 23193 23194# Is shlibpath searched before the hard-coded library search path? 23195shlibpath_overrides_runpath=$shlibpath_overrides_runpath 23196 23197# Format of library name prefix. 23198libname_spec=$lt_libname_spec 23199 23200# List of archive names. First name is the real one, the rest are links. 23201# The last name is the one that the linker finds with -lNAME 23202library_names_spec=$lt_library_names_spec 23203 23204# The coded name of the library, if different from the real name. 23205soname_spec=$lt_soname_spec 23206 23207# Permission mode override for installation of shared libraries. 23208install_override_mode=$lt_install_override_mode 23209 23210# Command to use after installation of a shared archive. 23211postinstall_cmds=$lt_postinstall_cmds 23212 23213# Command to use after uninstallation of a shared archive. 23214postuninstall_cmds=$lt_postuninstall_cmds 23215 23216# Commands used to finish a libtool library installation in a directory. 23217finish_cmds=$lt_finish_cmds 23218 23219# As "finish_cmds", except a single script fragment to be evaled but 23220# not shown. 23221finish_eval=$lt_finish_eval 23222 23223# Whether we should hardcode library paths into libraries. 23224hardcode_into_libs=$hardcode_into_libs 23225 23226# Compile-time system search path for libraries. 23227sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 23228 23229# Run-time system search path for libraries. 23230sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 23231 23232# Whether dlopen is supported. 23233dlopen_support=$enable_dlopen 23234 23235# Whether dlopen of programs is supported. 23236dlopen_self=$enable_dlopen_self 23237 23238# Whether dlopen of statically linked programs is supported. 23239dlopen_self_static=$enable_dlopen_self_static 23240 23241# Commands to strip libraries. 23242old_striplib=$lt_old_striplib 23243striplib=$lt_striplib 23244 23245 23246# The linker used to build libraries. 23247LD=$lt_LD 23248 23249# How to create reloadable object files. 23250reload_flag=$lt_reload_flag 23251reload_cmds=$lt_reload_cmds 23252 23253# Commands used to build an old-style archive. 23254old_archive_cmds=$lt_old_archive_cmds 23255 23256# A language specific compiler. 23257CC=$lt_compiler 23258 23259# Is the compiler the GNU compiler? 23260with_gcc=$GCC 23261 23262# Compiler flag to turn off builtin functions. 23263no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 23264 23265# Additional compiler flags for building library objects. 23266pic_flag=$lt_lt_prog_compiler_pic 23267 23268# How to pass a linker flag through the compiler. 23269wl=$lt_lt_prog_compiler_wl 23270 23271# Compiler flag to prevent dynamic linking. 23272link_static_flag=$lt_lt_prog_compiler_static 23273 23274# Does compiler simultaneously support -c and -o options? 23275compiler_c_o=$lt_lt_cv_prog_compiler_c_o 23276 23277# Whether or not to add -lc for building shared libraries. 23278build_libtool_need_lc=$archive_cmds_need_lc 23279 23280# Whether or not to disallow shared libs when runtime libs are static. 23281allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 23282 23283# Compiler flag to allow reflexive dlopens. 23284export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 23285 23286# Compiler flag to generate shared objects directly from archives. 23287whole_archive_flag_spec=$lt_whole_archive_flag_spec 23288 23289# Whether the compiler copes with passing no objects directly. 23290compiler_needs_object=$lt_compiler_needs_object 23291 23292# Create an old-style archive from a shared archive. 23293old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 23294 23295# Create a temporary old-style archive to link instead of a shared archive. 23296old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 23297 23298# Commands used to build a shared archive. 23299archive_cmds=$lt_archive_cmds 23300archive_expsym_cmds=$lt_archive_expsym_cmds 23301 23302# Commands used to build a loadable module if different from building 23303# a shared archive. 23304module_cmds=$lt_module_cmds 23305module_expsym_cmds=$lt_module_expsym_cmds 23306 23307# Whether we are building with GNU ld or not. 23308with_gnu_ld=$lt_with_gnu_ld 23309 23310# Flag that allows shared libraries with undefined symbols to be built. 23311allow_undefined_flag=$lt_allow_undefined_flag 23312 23313# Flag that enforces no undefined symbols. 23314no_undefined_flag=$lt_no_undefined_flag 23315 23316# Flag to hardcode \$libdir into a binary during linking. 23317# This must work even if \$libdir does not exist 23318hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 23319 23320# Whether we need a single "-rpath" flag with a separated argument. 23321hardcode_libdir_separator=$lt_hardcode_libdir_separator 23322 23323# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 23324# DIR into the resulting binary. 23325hardcode_direct=$hardcode_direct 23326 23327# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 23328# DIR into the resulting binary and the resulting library dependency is 23329# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 23330# library is relocated. 23331hardcode_direct_absolute=$hardcode_direct_absolute 23332 23333# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23334# into the resulting binary. 23335hardcode_minus_L=$hardcode_minus_L 23336 23337# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23338# into the resulting binary. 23339hardcode_shlibpath_var=$hardcode_shlibpath_var 23340 23341# Set to "yes" if building a shared library automatically hardcodes DIR 23342# into the library and all subsequent libraries and executables linked 23343# against it. 23344hardcode_automatic=$hardcode_automatic 23345 23346# Set to yes if linker adds runtime paths of dependent libraries 23347# to runtime path list. 23348inherit_rpath=$inherit_rpath 23349 23350# Whether libtool must link a program against all its dependency libraries. 23351link_all_deplibs=$link_all_deplibs 23352 23353# Set to "yes" if exported symbols are required. 23354always_export_symbols=$always_export_symbols 23355 23356# The commands to list exported symbols. 23357export_symbols_cmds=$lt_export_symbols_cmds 23358 23359# Symbols that should not be listed in the preloaded symbols. 23360exclude_expsyms=$lt_exclude_expsyms 23361 23362# Symbols that must always be exported. 23363include_expsyms=$lt_include_expsyms 23364 23365# Commands necessary for linking programs (against libraries) with templates. 23366prelink_cmds=$lt_prelink_cmds 23367 23368# Commands necessary for finishing linking programs. 23369postlink_cmds=$lt_postlink_cmds 23370 23371# Specify filename containing input files. 23372file_list_spec=$lt_file_list_spec 23373 23374# How to hardcode a shared library path into an executable. 23375hardcode_action=$hardcode_action 23376 23377# ### END LIBTOOL CONFIG 23378 23379_LT_EOF 23380 23381 case $host_os in 23382 aix3*) 23383 cat <<\_LT_EOF >> "$cfgfile" 23384# AIX sometimes has problems with the GCC collect2 program. For some 23385# reason, if we set the COLLECT_NAMES environment variable, the problems 23386# vanish in a puff of smoke. 23387if test "X${COLLECT_NAMES+set}" != Xset; then 23388 COLLECT_NAMES= 23389 export COLLECT_NAMES 23390fi 23391_LT_EOF 23392 ;; 23393 esac 23394 23395 23396ltmain="$ac_aux_dir/ltmain.sh" 23397 23398 23399 # We use sed instead of cat because bash on DJGPP gets confused if 23400 # if finds mixed CR/LF and LF-only lines. Since sed operates in 23401 # text mode, it properly converts lines to CR/LF. This bash problem 23402 # is reportedly fixed, but why not run on old versions too? 23403 sed '$q' "$ltmain" >> "$cfgfile" \ 23404 || (rm -f "$cfgfile"; exit 1) 23405 23406 if test x"$xsi_shell" = xyes; then 23407 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 23408func_dirname ()\ 23409{\ 23410\ case ${1} in\ 23411\ */*) func_dirname_result="${1%/*}${2}" ;;\ 23412\ * ) func_dirname_result="${3}" ;;\ 23413\ esac\ 23414} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 23415 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23416 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23417test 0 -eq $? || _lt_function_replace_fail=: 23418 23419 23420 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 23421func_basename ()\ 23422{\ 23423\ func_basename_result="${1##*/}"\ 23424} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 23425 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23426 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23427test 0 -eq $? || _lt_function_replace_fail=: 23428 23429 23430 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 23431func_dirname_and_basename ()\ 23432{\ 23433\ case ${1} in\ 23434\ */*) func_dirname_result="${1%/*}${2}" ;;\ 23435\ * ) func_dirname_result="${3}" ;;\ 23436\ esac\ 23437\ func_basename_result="${1##*/}"\ 23438} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 23439 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23440 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23441test 0 -eq $? || _lt_function_replace_fail=: 23442 23443 23444 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 23445func_stripname ()\ 23446{\ 23447\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 23448\ # positional parameters, so assign one to ordinary parameter first.\ 23449\ func_stripname_result=${3}\ 23450\ func_stripname_result=${func_stripname_result#"${1}"}\ 23451\ func_stripname_result=${func_stripname_result%"${2}"}\ 23452} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 23453 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23454 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23455test 0 -eq $? || _lt_function_replace_fail=: 23456 23457 23458 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 23459func_split_long_opt ()\ 23460{\ 23461\ func_split_long_opt_name=${1%%=*}\ 23462\ func_split_long_opt_arg=${1#*=}\ 23463} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 23464 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23465 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23466test 0 -eq $? || _lt_function_replace_fail=: 23467 23468 23469 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 23470func_split_short_opt ()\ 23471{\ 23472\ func_split_short_opt_arg=${1#??}\ 23473\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 23474} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 23475 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23476 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23477test 0 -eq $? || _lt_function_replace_fail=: 23478 23479 23480 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 23481func_lo2o ()\ 23482{\ 23483\ case ${1} in\ 23484\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 23485\ *) func_lo2o_result=${1} ;;\ 23486\ esac\ 23487} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 23488 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23489 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23490test 0 -eq $? || _lt_function_replace_fail=: 23491 23492 23493 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 23494func_xform ()\ 23495{\ 23496 func_xform_result=${1%.*}.lo\ 23497} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 23498 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23499 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23500test 0 -eq $? || _lt_function_replace_fail=: 23501 23502 23503 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 23504func_arith ()\ 23505{\ 23506 func_arith_result=$(( $* ))\ 23507} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 23508 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23509 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23510test 0 -eq $? || _lt_function_replace_fail=: 23511 23512 23513 sed -e '/^func_len ()$/,/^} # func_len /c\ 23514func_len ()\ 23515{\ 23516 func_len_result=${#1}\ 23517} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 23518 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23519 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23520test 0 -eq $? || _lt_function_replace_fail=: 23521 23522fi 23523 23524if test x"$lt_shell_append" = xyes; then 23525 sed -e '/^func_append ()$/,/^} # func_append /c\ 23526func_append ()\ 23527{\ 23528 eval "${1}+=\\${2}"\ 23529} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 23530 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23531 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23532test 0 -eq $? || _lt_function_replace_fail=: 23533 23534 23535 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 23536func_append_quoted ()\ 23537{\ 23538\ func_quote_for_eval "${2}"\ 23539\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 23540} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 23541 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23542 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23543test 0 -eq $? || _lt_function_replace_fail=: 23544 23545 23546 # Save a `func_append' function call where possible by direct use of '+=' 23547 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 23548 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23549 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23550 test 0 -eq $? || _lt_function_replace_fail=: 23551else 23552 # Save a `func_append' function call even when '+=' is not available 23553 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 23554 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23555 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23556 test 0 -eq $? || _lt_function_replace_fail=: 23557fi 23558 23559if test x"$_lt_function_replace_fail" = x":"; then 23560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 23561$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 23562fi 23563 23564 23565 mv -f "$cfgfile" "$ofile" || 23566 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 23567 chmod +x "$ofile" 23568 23569 ;; 23570 23571 esac 23572done # for ac_tag 23573 23574 23575as_fn_exit 0 23576_ACEOF 23577ac_clean_files=$ac_clean_files_save 23578 23579test $ac_write_fail = 0 || 23580 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 23581 23582 23583# configure is writing to config.log, and then calls config.status. 23584# config.status does its own redirection, appending to config.log. 23585# Unfortunately, on DOS this fails, as config.log is still kept open 23586# by configure, so config.status won't be able to write to it; its 23587# output is simply discarded. So we exec the FD to /dev/null, 23588# effectively closing config.log, so it can be properly (re)opened and 23589# appended to by config.status. When coming back to configure, we 23590# need to make the FD available again. 23591if test "$no_create" != yes; then 23592 ac_cs_success=: 23593 ac_config_status_args= 23594 test "$silent" = yes && 23595 ac_config_status_args="$ac_config_status_args --quiet" 23596 exec 5>/dev/null 23597 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23598 exec 5>>config.log 23599 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23600 # would make configure fail if this is the last instruction. 23601 $ac_cs_success || as_fn_exit 1 23602fi 23603if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23605$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23606fi 23607 23608 23609echo "" 23610echo "X11 will be built with the following settings:" 23611echo " Loadable i18n module support: "$XLIB_LOADABLE_I18N 23612echo " Loadable xcursor library support: "$XLIB_LOADABLE_XCURSOR 23613echo " Threading support: "$xthreads 23614echo " Use Threads safe API: "$mtsafeapi 23615echo " Threads stubs in libX11: "$thrstubs 23616echo " XCMS: "$XCMS 23617echo " Internationalization support: "$XLOCALE 23618echo " XF86BigFont support: "$XF86BIGFONT 23619echo " XKB support: "$XKB 23620echo " XLOCALEDIR environment variable support: "$ENABLE_XLOCALEDIR 23621echo " Compose table cache enabled: "$COMPOSECACHE 23622echo " Functional specs building enabled: "$build_specs 23623echo "" 23624